@azure/arm-storagediscovery 1.0.0-alpha.20250930.1 → 1.0.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 (131) hide show
  1. package/dist/browser/api/operations/operations.d.ts +5 -5
  2. package/dist/browser/api/operations/operations.js +2 -2
  3. package/dist/browser/api/operations/operations.js.map +1 -1
  4. package/dist/browser/api/operations/options.d.ts +1 -1
  5. package/dist/browser/api/operations/options.js.map +1 -1
  6. package/dist/browser/api/storageDiscoveryContext.d.ts +5 -2
  7. package/dist/browser/api/storageDiscoveryContext.js +4 -3
  8. package/dist/browser/api/storageDiscoveryContext.js.map +1 -1
  9. package/dist/browser/api/storageDiscoveryWorkspaces/operations.d.ts +5 -5
  10. package/dist/browser/api/storageDiscoveryWorkspaces/operations.js +3 -9
  11. package/dist/browser/api/storageDiscoveryWorkspaces/operations.js.map +1 -1
  12. package/dist/browser/api/storageDiscoveryWorkspaces/options.d.ts +1 -1
  13. package/dist/browser/api/storageDiscoveryWorkspaces/options.js.map +1 -1
  14. package/dist/browser/classic/operations/index.d.ts +4 -4
  15. package/dist/browser/classic/operations/index.js.map +1 -1
  16. package/dist/browser/classic/storageDiscoveryWorkspaces/index.d.ts +4 -4
  17. package/dist/browser/classic/storageDiscoveryWorkspaces/index.js.map +1 -1
  18. package/dist/browser/index.d.ts +2 -0
  19. package/dist/browser/index.js +2 -0
  20. package/dist/browser/index.js.map +1 -1
  21. package/dist/browser/models/models.d.ts +3 -2
  22. package/dist/browser/models/models.js +2 -1
  23. package/dist/browser/models/models.js.map +1 -1
  24. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
  25. package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
  26. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  27. package/dist/browser/static-helpers/pagingHelpers.d.ts +1 -1
  28. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
  29. package/dist/browser/static-helpers/urlTemplate.js +22 -6
  30. package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
  31. package/dist/browser/storageDiscoveryClient.d.ts +5 -5
  32. package/dist/browser/storageDiscoveryClient.js +2 -2
  33. package/dist/browser/storageDiscoveryClient.js.map +1 -1
  34. package/dist/commonjs/api/operations/operations.d.ts +5 -5
  35. package/dist/commonjs/api/operations/operations.js.map +1 -1
  36. package/dist/commonjs/api/operations/options.d.ts +1 -1
  37. package/dist/commonjs/api/operations/options.js.map +1 -1
  38. package/dist/commonjs/api/storageDiscoveryContext.d.ts +5 -2
  39. package/dist/commonjs/api/storageDiscoveryContext.js +4 -3
  40. package/dist/commonjs/api/storageDiscoveryContext.js.map +1 -1
  41. package/dist/commonjs/api/storageDiscoveryWorkspaces/operations.d.ts +5 -5
  42. package/dist/commonjs/api/storageDiscoveryWorkspaces/operations.js +1 -7
  43. package/dist/commonjs/api/storageDiscoveryWorkspaces/operations.js.map +1 -1
  44. package/dist/commonjs/api/storageDiscoveryWorkspaces/options.d.ts +1 -1
  45. package/dist/commonjs/api/storageDiscoveryWorkspaces/options.js.map +1 -1
  46. package/dist/commonjs/classic/operations/index.d.ts +4 -4
  47. package/dist/commonjs/classic/operations/index.js.map +1 -1
  48. package/dist/commonjs/classic/storageDiscoveryWorkspaces/index.d.ts +4 -4
  49. package/dist/commonjs/classic/storageDiscoveryWorkspaces/index.js.map +1 -1
  50. package/dist/commonjs/index.d.ts +2 -0
  51. package/dist/commonjs/index.js +3 -1
  52. package/dist/commonjs/index.js.map +1 -1
  53. package/dist/commonjs/models/models.d.ts +3 -2
  54. package/dist/commonjs/models/models.js +2 -1
  55. package/dist/commonjs/models/models.js.map +1 -1
  56. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
  57. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +42 -0
  58. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
  59. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +1 -1
  60. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
  61. package/dist/commonjs/static-helpers/urlTemplate.js +22 -6
  62. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
  63. package/dist/commonjs/storageDiscoveryClient.d.ts +5 -5
  64. package/dist/commonjs/storageDiscoveryClient.js.map +1 -1
  65. package/dist/esm/api/operations/operations.d.ts +5 -5
  66. package/dist/esm/api/operations/operations.js +2 -2
  67. package/dist/esm/api/operations/operations.js.map +1 -1
  68. package/dist/esm/api/operations/options.d.ts +1 -1
  69. package/dist/esm/api/operations/options.js.map +1 -1
  70. package/dist/esm/api/storageDiscoveryContext.d.ts +5 -2
  71. package/dist/esm/api/storageDiscoveryContext.js +4 -3
  72. package/dist/esm/api/storageDiscoveryContext.js.map +1 -1
  73. package/dist/esm/api/storageDiscoveryWorkspaces/operations.d.ts +5 -5
  74. package/dist/esm/api/storageDiscoveryWorkspaces/operations.js +3 -9
  75. package/dist/esm/api/storageDiscoveryWorkspaces/operations.js.map +1 -1
  76. package/dist/esm/api/storageDiscoveryWorkspaces/options.d.ts +1 -1
  77. package/dist/esm/api/storageDiscoveryWorkspaces/options.js.map +1 -1
  78. package/dist/esm/classic/operations/index.d.ts +4 -4
  79. package/dist/esm/classic/operations/index.js.map +1 -1
  80. package/dist/esm/classic/storageDiscoveryWorkspaces/index.d.ts +4 -4
  81. package/dist/esm/classic/storageDiscoveryWorkspaces/index.js.map +1 -1
  82. package/dist/esm/index.d.ts +2 -0
  83. package/dist/esm/index.js +2 -0
  84. package/dist/esm/index.js.map +1 -1
  85. package/dist/esm/models/models.d.ts +3 -2
  86. package/dist/esm/models/models.js +2 -1
  87. package/dist/esm/models/models.js.map +1 -1
  88. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
  89. package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
  90. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  91. package/dist/esm/static-helpers/pagingHelpers.d.ts +1 -1
  92. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
  93. package/dist/esm/static-helpers/urlTemplate.js +22 -6
  94. package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
  95. package/dist/esm/storageDiscoveryClient.d.ts +5 -5
  96. package/dist/esm/storageDiscoveryClient.js +2 -2
  97. package/dist/esm/storageDiscoveryClient.js.map +1 -1
  98. package/dist/react-native/api/operations/operations.d.ts +5 -5
  99. package/dist/react-native/api/operations/operations.js +2 -2
  100. package/dist/react-native/api/operations/operations.js.map +1 -1
  101. package/dist/react-native/api/operations/options.d.ts +1 -1
  102. package/dist/react-native/api/operations/options.js.map +1 -1
  103. package/dist/react-native/api/storageDiscoveryContext.d.ts +5 -2
  104. package/dist/react-native/api/storageDiscoveryContext.js +4 -3
  105. package/dist/react-native/api/storageDiscoveryContext.js.map +1 -1
  106. package/dist/react-native/api/storageDiscoveryWorkspaces/operations.d.ts +5 -5
  107. package/dist/react-native/api/storageDiscoveryWorkspaces/operations.js +3 -9
  108. package/dist/react-native/api/storageDiscoveryWorkspaces/operations.js.map +1 -1
  109. package/dist/react-native/api/storageDiscoveryWorkspaces/options.d.ts +1 -1
  110. package/dist/react-native/api/storageDiscoveryWorkspaces/options.js.map +1 -1
  111. package/dist/react-native/classic/operations/index.d.ts +4 -4
  112. package/dist/react-native/classic/operations/index.js.map +1 -1
  113. package/dist/react-native/classic/storageDiscoveryWorkspaces/index.d.ts +4 -4
  114. package/dist/react-native/classic/storageDiscoveryWorkspaces/index.js.map +1 -1
  115. package/dist/react-native/index.d.ts +2 -0
  116. package/dist/react-native/index.js +2 -0
  117. package/dist/react-native/index.js.map +1 -1
  118. package/dist/react-native/models/models.d.ts +3 -2
  119. package/dist/react-native/models/models.js +2 -1
  120. package/dist/react-native/models/models.js.map +1 -1
  121. package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +22 -0
  122. package/dist/react-native/static-helpers/cloudSettingHelpers.js +38 -0
  123. package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
  124. package/dist/react-native/static-helpers/pagingHelpers.d.ts +1 -1
  125. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
  126. package/dist/react-native/static-helpers/urlTemplate.js +22 -6
  127. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
  128. package/dist/react-native/storageDiscoveryClient.d.ts +5 -5
  129. package/dist/react-native/storageDiscoveryClient.js +2 -2
  130. package/dist/react-native/storageDiscoveryClient.js.map +1 -1
  131. package/package.json +35 -34
@@ -1,8 +1,8 @@
1
- import { StorageDiscoveryContext as Client } from "../index.js";
2
- import { _OperationListResult, Operation } from "../../models/models.js";
3
- import { OperationsListOptionalParams } from "./options.js";
4
- import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
- import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
1
+ import type { StorageDiscoveryContext as Client } from "../index.js";
2
+ import type { _OperationListResult, Operation } from "../../models/models.js";
3
+ import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
+ import type { OperationsListOptionalParams } from "./options.js";
5
+ import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
6
  export declare function _listSend(context: Client, options?: OperationsListOptionalParams): StreamableMethod;
7
7
  export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_OperationListResult>;
8
8
  /** List the operations for the provider */
@@ -1,9 +1,9 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
  import { errorResponseDeserializer, _operationListResultDeserializer, } from "../../models/models.js";
4
- import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
4
+ import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
5
5
  import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
6
- import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
6
+ import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
7
7
  export function _listSend(context, options = { requestOptions: {} }) {
8
8
  const path = expandUrlTemplate("/providers/Microsoft.StorageDiscovery/operations{?api%2Dversion}", {
9
9
  "api%2Dversion": context.apiVersion,
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,gCAAgC,GAEjC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,MAAM,IAAI,GAAG,iBAAiB,CAC5B,kEAAkE,EAClE;QACE,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,IAAI,CAClB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,EACjC,gBAAgB,EAChB,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { StorageDiscoveryContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n _OperationListResult,\n _operationListResultDeserializer,\n Operation,\n} from \"../../models/models.js\";\nimport { OperationsListOptionalParams } from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.StorageDiscovery/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function list(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,yBAAyB,EACzB,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAGxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,MAAM,IAAI,GAAG,iBAAiB,CAC5B,kEAAkE,EAClE;QACE,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,IAAI,CAClB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,EACjC,gBAAgB,EAChB,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { StorageDiscoveryContext as Client } from \"../index.js\";\nimport type { _OperationListResult, Operation } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n _operationListResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type { OperationsListOptionalParams } from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.StorageDiscovery/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function list(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { OperationOptions } from "@azure-rest/core-client";
1
+ import type { OperationOptions } from "@azure-rest/core-client";
2
2
  /** Optional parameters. */
3
3
  export interface OperationsListOptionalParams extends OperationOptions {
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/operations/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams extends OperationOptions {}\n"]}
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/operations/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams extends OperationOptions {}\n"]}
@@ -1,5 +1,6 @@
1
- import { Client, ClientOptions } from "@azure-rest/core-client";
2
- import { TokenCredential } from "@azure/core-auth";
1
+ import type { AzureSupportedClouds } from "../static-helpers/cloudSettingHelpers.js";
2
+ import type { Client, ClientOptions } from "@azure-rest/core-client";
3
+ import type { TokenCredential } from "@azure/core-auth";
3
4
  /** The Azure Storage Discovery Management API. */
4
5
  export interface StorageDiscoveryContext extends Client {
5
6
  /** The API version to use for this operation. */
@@ -13,6 +14,8 @@ export interface StorageDiscoveryClientOptionalParams extends ClientOptions {
13
14
  /** The API version to use for this operation. */
14
15
  /** Known values of {@link KnownApiVersion} that the service accepts. */
15
16
  apiVersion?: string;
17
+ /** Specifies the Azure cloud environment for the client. */
18
+ cloudSetting?: AzureSupportedClouds;
16
19
  }
17
20
  /** The Azure Storage Discovery Management API. */
18
21
  export declare function createStorageDiscovery(credential: TokenCredential, subscriptionId: string, options?: StorageDiscoveryClientOptionalParams): StorageDiscoveryContext;
@@ -1,12 +1,13 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
  import { logger } from "../logger.js";
4
+ import { getArmEndpoint } from "../static-helpers/cloudSettingHelpers.js";
4
5
  import { getClient } from "@azure-rest/core-client";
5
6
  /** The Azure Storage Discovery Management API. */
6
7
  export function createStorageDiscovery(credential, subscriptionId, options = {}) {
7
- const endpointUrl = options.endpoint ?? "https://management.azure.com";
8
+ const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
8
9
  const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
9
- const userAgentInfo = `azsdk-js-arm-storagediscovery/1.0.0-beta.1`;
10
+ const userAgentInfo = `azsdk-js-arm-storagediscovery/1.0.0`;
10
11
  const userAgentPrefix = prefixFromOptions
11
12
  ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
12
13
  : `azsdk-js-api ${userAgentInfo}`;
@@ -20,7 +21,7 @@ export function createStorageDiscovery(credential, subscriptionId, options = {})
20
21
  };
21
22
  const clientContext = getClient(endpointUrl, credential, updatedOptions);
22
23
  clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
23
- const apiVersion = options.apiVersion ?? "2025-06-01-preview";
24
+ const apiVersion = options.apiVersion ?? "2025-09-01";
24
25
  clientContext.pipeline.addPolicy({
25
26
  name: "ClientApiVersionPolicy",
26
27
  sendRequest: (req, next) => {
@@ -1 +1 @@
1
- {"version":3,"file":"storageDiscoveryContext.js","sourceRoot":"","sources":["../../../src/api/storageDiscoveryContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAmB3E,kDAAkD;AAClD,MAAM,UAAU,sBAAsB,CACpC,UAA2B,EAC3B,cAAsB,EACtB,UAAgD,EAAE;IAElD,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,IAAI,8BAA8B,CAAC;IACvE,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,4CAA4C,CAAC;IACnE,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,GAAG,WAAW,WAAW,CAAC;SACnE;KACF,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,aAAa,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAClE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,oBAAoB,CAAC;IAC9D,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC/B,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO;QACL,GAAG,aAAa;QAChB,UAAU;QACV,cAAc;KACY,CAAC;AAC/B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownApiVersion } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\n/** The Azure Storage Discovery Management API. */\nexport interface StorageDiscoveryContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownApiVersion} that the service accepts. */\n apiVersion: string;\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n}\n\n/** Optional parameters for the client. */\nexport interface StorageDiscoveryClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownApiVersion} that the service accepts. */\n apiVersion?: string;\n}\n\n/** The Azure Storage Discovery Management API. */\nexport function createStorageDiscovery(\n credential: TokenCredential,\n subscriptionId: string,\n options: StorageDiscoveryClientOptionalParams = {},\n): StorageDiscoveryContext {\n const endpointUrl = options.endpoint ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-storagediscovery/1.0.0-beta.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2025-06-01-preview\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return {\n ...clientContext,\n apiVersion,\n subscriptionId,\n } as StorageDiscoveryContext;\n}\n"]}
1
+ {"version":3,"file":"storageDiscoveryContext.js","sourceRoot":"","sources":["../../../src/api/storageDiscoveryContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAqBpD,kDAAkD;AAClD,MAAM,UAAU,sBAA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AC,aAAa,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO;QACL,GAAG,aAAa;QAChB,UAAU;QACV,cAAc;KACY,CAAC;AAC/B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownApiVersion } from \"../models/models.js\";\nimport type { AzureSupportedClouds } from \"../static-helpers/cloudSettingHelpers.js\";\nimport { getArmEndpoint } from \"../static-helpers/cloudSettingHelpers.js\";\nimport type { Client, ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\n/** The Azure Storage Discovery Management API. */\nexport interface StorageDiscoveryContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownApiVersion} that the service accepts. */\n apiVersion: string;\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n}\n\n/** Optional parameters for the client. */\nexport interface StorageDiscoveryClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownApiVersion} that the service accepts. */\n apiVersion?: string;\n /** Specifies the Azure cloud environment for the client. */\n cloudSetting?: AzureSupportedClouds;\n}\n\n/** The Azure Storage Discovery Management API. */\nexport function createStorageDiscovery(\n credential: TokenCredential,\n subscriptionId: string,\n options: StorageDiscoveryClientOptionalParams = {},\n): StorageDiscoveryContext {\n const endpointUrl =\n options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-storagediscovery/1.0.0`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2025-09-01\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return {\n ...clientContext,\n apiVersion,\n subscriptionId,\n } as StorageDiscoveryContext;\n}\n"]}
@@ -1,8 +1,8 @@
1
- import { StorageDiscoveryContext as Client } from "../index.js";
2
- import { StorageDiscoveryWorkspace, StorageDiscoveryWorkspaceUpdate, _StorageDiscoveryWorkspaceListResult } from "../../models/models.js";
3
- import { StorageDiscoveryWorkspacesListBySubscriptionOptionalParams, StorageDiscoveryWorkspacesListByResourceGroupOptionalParams, StorageDiscoveryWorkspacesDeleteOptionalParams, StorageDiscoveryWorkspacesUpdateOptionalParams, StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams, StorageDiscoveryWorkspacesGetOptionalParams } from "./options.js";
4
- import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
- import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
1
+ import type { StorageDiscoveryContext as Client } from "../index.js";
2
+ import type { StorageDiscoveryWorkspace, StorageDiscoveryWorkspaceUpdate, _StorageDiscoveryWorkspaceListResult } from "../../models/models.js";
3
+ import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
+ import type { StorageDiscoveryWorkspacesListBySubscriptionOptionalParams, StorageDiscoveryWorkspacesListByResourceGroupOptionalParams, StorageDiscoveryWorkspacesDeleteOptionalParams, StorageDiscoveryWorkspacesUpdateOptionalParams, StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams, StorageDiscoveryWorkspacesGetOptionalParams } from "./options.js";
5
+ import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
6
  export declare function _listBySubscriptionSend(context: Client, options?: StorageDiscoveryWorkspacesListBySubscriptionOptionalParams): StreamableMethod;
7
7
  export declare function _listBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_StorageDiscoveryWorkspaceListResult>;
8
8
  /** List StorageDiscoveryWorkspace resources by subscription ID */
@@ -1,9 +1,9 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
  import { storageDiscoveryWorkspaceSerializer, storageDiscoveryWorkspaceDeserializer, errorResponseDeserializer, storageDiscoveryWorkspaceUpdateSerializer, _storageDiscoveryWorkspaceListResultDeserializer, } from "../../models/models.js";
4
- import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
4
+ import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
5
5
  import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
6
- import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
6
+ import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
7
7
  export function _listBySubscriptionSend(context, options = {
8
8
  requestOptions: {},
9
9
  }) {
@@ -80,13 +80,7 @@ export function _$deleteSend(context, resourceGroupName, storageDiscoveryWorkspa
80
80
  }, {
81
81
  allowReserved: options?.requestOptions?.skipUrlEncoding,
82
82
  });
83
- return context.path(path).delete({
84
- ...operationOptionsToRequestParameters(options),
85
- headers: {
86
- accept: "application/json",
87
- ...options.requestOptions?.headers,
88
- },
89
- });
83
+ return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });
90
84
  }
91
85
  export async function _$deleteDeserialize(result) {
92
86
  const expectedStatuses = ["200", "204"];
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/storageDiscoveryWorkspaces/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAEL,mCAAmC,EACnC,qCAAqC,EACrC,yBAAyB,EAEzB,yCAAyC,EAEzC,gDAAgD,GACjD,MAAM,wBAAwB,CAAC;AAShC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,uBAAuB,CACrC,OAAe,EACf,UAAsE;IACpE,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,IAAI,GAAG,iBAAiB,CAC5B,iHAAiH,EACjH;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,C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.\n\nimport { StorageDiscoveryContext as Client } from \"../index.js\";\nimport {\n StorageDiscoveryWorkspace,\n storageDiscoveryWorkspaceSerializer,\n storageDiscoveryWorkspaceDeserializer,\n errorResponseDeserializer,\n StorageDiscoveryWorkspaceUpdate,\n storageDiscoveryWorkspaceUpdateSerializer,\n _StorageDiscoveryWorkspaceListResult,\n _storageDiscoveryWorkspaceListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n StorageDiscoveryWorkspacesListBySubscriptionOptionalParams,\n StorageDiscoveryWorkspacesListByResourceGroupOptionalParams,\n StorageDiscoveryWorkspacesDeleteOptionalParams,\n StorageDiscoveryWorkspacesUpdateOptionalParams,\n StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams,\n StorageDiscoveryWorkspacesGetOptionalParams,\n} from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: StorageDiscoveryWorkspacesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageDiscovery/storageDiscoveryWorkspaces{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_StorageDiscoveryWorkspaceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _storageDiscoveryWorkspaceListResultDeserializer(result.body);\n}\n\n/** List StorageDiscoveryWorkspace resources by subscription ID */\nexport function listBySubscription(\n context: Client,\n options: StorageDiscoveryWorkspacesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<StorageDiscoveryWorkspace> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: StorageDiscoveryWorkspacesListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageDiscovery/storageDiscoveryWorkspaces{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_StorageDiscoveryWorkspaceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _storageDiscoveryWorkspaceListResultDeserializer(result.body);\n}\n\n/** List StorageDiscoveryWorkspace resources by resource group */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: StorageDiscoveryWorkspacesListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<StorageDiscoveryWorkspace> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n options: StorageDiscoveryWorkspacesDeleteOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageDiscovery/storageDiscoveryWorkspaces/{storageDiscoveryWorkspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n storageDiscoveryWorkspaceName: storageDiscoveryWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete a StorageDiscoveryWorkspace */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport async function $delete(\n context: Client,\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n options: StorageDiscoveryWorkspacesDeleteOptionalParams = {\n requestOptions: {},\n },\n): Promise<void> {\n const result = await _$deleteSend(\n context,\n resourceGroupName,\n storageDiscoveryWorkspaceName,\n options,\n );\n return _$deleteDeserialize(result);\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n properties: StorageDiscoveryWorkspaceUpdate,\n options: StorageDiscoveryWorkspacesUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageDiscovery/storageDiscoveryWorkspaces/{storageDiscoveryWorkspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n storageDiscoveryWorkspaceName: storageDiscoveryWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: storageDiscoveryWorkspaceUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<StorageDiscoveryWorkspace> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return storageDiscoveryWorkspaceDeserializer(result.body);\n}\n\n/** Update a StorageDiscoveryWorkspace */\nexport async function update(\n context: Client,\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n properties: StorageDiscoveryWorkspaceUpdate,\n options: StorageDiscoveryWorkspacesUpdateOptionalParams = {\n requestOptions: {},\n },\n): Promise<StorageDiscoveryWorkspace> {\n const result = await _updateSend(\n context,\n resourceGroupName,\n storageDiscoveryWorkspaceName,\n properties,\n options,\n );\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n resource: StorageDiscoveryWorkspace,\n options: StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageDiscovery/storageDiscoveryWorkspaces/{storageDiscoveryWorkspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n storageDiscoveryWorkspaceName: storageDiscoveryWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: storageDiscoveryWorkspaceSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<StorageDiscoveryWorkspace> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return storageDiscoveryWorkspaceDeserializer(result.body);\n}\n\n/** Create a StorageDiscoveryWorkspace */\nexport async function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n resource: StorageDiscoveryWorkspace,\n options: StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): Promise<StorageDiscoveryWorkspace> {\n const result = await _createOrUpdateSend(\n context,\n resourceGroupName,\n storageDiscoveryWorkspaceName,\n resource,\n options,\n );\n return _createOrUpdateDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n options: StorageDiscoveryWorkspacesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageDiscovery/storageDiscoveryWorkspaces/{storageDiscoveryWorkspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n storageDiscoveryWorkspaceName: storageDiscoveryWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<StorageDiscoveryWorkspace> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return storageDiscoveryWorkspaceDeserializer(result.body);\n}\n\n/** Get a StorageDiscoveryWorkspace */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n options: StorageDiscoveryWorkspacesGetOptionalParams = { requestOptions: {} },\n): Promise<StorageDiscoveryWorkspace> {\n const result = await _getSend(context, resourceGroupName, storageDiscoveryWorkspaceName, options);\n return _getDeserialize(result);\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/storageDiscoveryWorkspaces/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EACL,mCAAmC,EACnC,qCAAqC,EACrC,yBAAyB,EACzB,yCAAyC,EACzC,gDAAgD,GACjD,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAUxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,uBAAuB,CACrC,OAAe,EACf,UAAsE;IACpE,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,IAAI,GAAG,iBAAiB,CAC5B,iHAAiH,EACjH;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe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,EACrC,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAClG,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { StorageDiscoveryContext as Client } from \"../index.js\";\nimport type {\n StorageDiscoveryWorkspace,\n StorageDiscoveryWorkspaceUpdate,\n _StorageDiscoveryWorkspaceListResult,\n} from \"../../models/models.js\";\nimport {\n storageDiscoveryWorkspaceSerializer,\n storageDiscoveryWorkspaceDeserializer,\n errorResponseDeserializer,\n storageDiscoveryWorkspaceUpdateSerializer,\n _storageDiscoveryWorkspaceListResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n StorageDiscoveryWorkspacesListBySubscriptionOptionalParams,\n StorageDiscoveryWorkspacesListByResourceGroupOptionalParams,\n StorageDiscoveryWorkspacesDeleteOptionalParams,\n StorageDiscoveryWorkspacesUpdateOptionalParams,\n StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams,\n StorageDiscoveryWorkspacesGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: StorageDiscoveryWorkspacesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageDiscovery/storageDiscoveryWorkspaces{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_StorageDiscoveryWorkspaceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _storageDiscoveryWorkspaceListResultDeserializer(result.body);\n}\n\n/** List StorageDiscoveryWorkspace resources by subscription ID */\nexport function listBySubscription(\n context: Client,\n options: StorageDiscoveryWorkspacesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<StorageDiscoveryWorkspace> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: StorageDiscoveryWorkspacesListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageDiscovery/storageDiscoveryWorkspaces{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_StorageDiscoveryWorkspaceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _storageDiscoveryWorkspaceListResultDeserializer(result.body);\n}\n\n/** List StorageDiscoveryWorkspace resources by resource group */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: StorageDiscoveryWorkspacesListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<StorageDiscoveryWorkspace> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n options: StorageDiscoveryWorkspacesDeleteOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageDiscovery/storageDiscoveryWorkspaces/{storageDiscoveryWorkspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n storageDiscoveryWorkspaceName: storageDiscoveryWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete a StorageDiscoveryWorkspace */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport async function $delete(\n context: Client,\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n options: StorageDiscoveryWorkspacesDeleteOptionalParams = {\n requestOptions: {},\n },\n): Promise<void> {\n const result = await _$deleteSend(\n context,\n resourceGroupName,\n storageDiscoveryWorkspaceName,\n options,\n );\n return _$deleteDeserialize(result);\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n properties: StorageDiscoveryWorkspaceUpdate,\n options: StorageDiscoveryWorkspacesUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageDiscovery/storageDiscoveryWorkspaces/{storageDiscoveryWorkspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n storageDiscoveryWorkspaceName: storageDiscoveryWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: storageDiscoveryWorkspaceUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<StorageDiscoveryWorkspace> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return storageDiscoveryWorkspaceDeserializer(result.body);\n}\n\n/** Update a StorageDiscoveryWorkspace */\nexport async function update(\n context: Client,\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n properties: StorageDiscoveryWorkspaceUpdate,\n options: StorageDiscoveryWorkspacesUpdateOptionalParams = {\n requestOptions: {},\n },\n): Promise<StorageDiscoveryWorkspace> {\n const result = await _updateSend(\n context,\n resourceGroupName,\n storageDiscoveryWorkspaceName,\n properties,\n options,\n );\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n resource: StorageDiscoveryWorkspace,\n options: StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageDiscovery/storageDiscoveryWorkspaces/{storageDiscoveryWorkspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n storageDiscoveryWorkspaceName: storageDiscoveryWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: storageDiscoveryWorkspaceSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<StorageDiscoveryWorkspace> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return storageDiscoveryWorkspaceDeserializer(result.body);\n}\n\n/** Create a StorageDiscoveryWorkspace */\nexport async function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n resource: StorageDiscoveryWorkspace,\n options: StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): Promise<StorageDiscoveryWorkspace> {\n const result = await _createOrUpdateSend(\n context,\n resourceGroupName,\n storageDiscoveryWorkspaceName,\n resource,\n options,\n );\n return _createOrUpdateDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n options: StorageDiscoveryWorkspacesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageDiscovery/storageDiscoveryWorkspaces/{storageDiscoveryWorkspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n storageDiscoveryWorkspaceName: storageDiscoveryWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<StorageDiscoveryWorkspace> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return storageDiscoveryWorkspaceDeserializer(result.body);\n}\n\n/** Get a StorageDiscoveryWorkspace */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n options: StorageDiscoveryWorkspacesGetOptionalParams = { requestOptions: {} },\n): Promise<StorageDiscoveryWorkspace> {\n const result = await _getSend(context, resourceGroupName, storageDiscoveryWorkspaceName, options);\n return _getDeserialize(result);\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { OperationOptions } from "@azure-rest/core-client";
1
+ import type { OperationOptions } from "@azure-rest/core-client";
2
2
  /** Optional parameters. */
3
3
  export interface StorageDiscoveryWorkspacesListBySubscriptionOptionalParams extends OperationOptions {
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/storageDiscoveryWorkspaces/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface StorageDiscoveryWorkspacesListBySubscriptionOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StorageDiscoveryWorkspacesListByResourceGroupOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StorageDiscoveryWorkspacesDeleteOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StorageDiscoveryWorkspacesUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StorageDiscoveryWorkspacesGetOptionalParams extends OperationOptions {}\n"]}
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/storageDiscoveryWorkspaces/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface StorageDiscoveryWorkspacesListBySubscriptionOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StorageDiscoveryWorkspacesListByResourceGroupOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StorageDiscoveryWorkspacesDeleteOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StorageDiscoveryWorkspacesUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StorageDiscoveryWorkspacesGetOptionalParams extends OperationOptions {}\n"]}
@@ -1,7 +1,7 @@
1
- import { StorageDiscoveryContext } from "../../api/storageDiscoveryContext.js";
2
- import { Operation } from "../../models/models.js";
3
- import { OperationsListOptionalParams } from "../../api/operations/options.js";
4
- import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
1
+ import type { StorageDiscoveryContext } from "../../api/storageDiscoveryContext.js";
2
+ import type { OperationsListOptionalParams } from "../../api/operations/options.js";
3
+ import type { Operation } from "../../models/models.js";
4
+ import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
5
  /** Interface representing a Operations operations. */
6
6
  export interface OperationsOperations {
7
7
  /** List the operations for the provider */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAKlC,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAS1D,SAAS,cAAc,CAAC,OAAgC;IACtD,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;KACzE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,OAAgC;IACvE,OAAO;QACL,GAAG,cAAc,CAAC,OAAO,CAAC;KAC3B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { StorageDiscoveryContext } from \"../../api/storageDiscoveryContext.js\";\nimport { Operation } from \"../../models/models.js\";\nimport { OperationsListOptionalParams } from \"../../api/operations/options.js\";\nimport { list } from \"../../api/operations/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a Operations operations. */\nexport interface OperationsOperations {\n /** List the operations for the provider */\n list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator<Operation>;\n}\n\nfunction _getOperations(context: StorageDiscoveryContext) {\n return {\n list: (options?: OperationsListOptionalParams) => list(context, options),\n };\n}\n\nexport function _getOperationsOperations(context: StorageDiscoveryContext): OperationsOperations {\n return {\n ..._getOperations(context),\n };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAW1D,SAAS,cAAc,CAAC,OAAgC;IACtD,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;KACzE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,OAAgC;IACvE,OAAO;QACL,GAAG,cAAc,CAAC,OAAO,CAAC;KAC3B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { StorageDiscoveryContext } from \"../../api/storageDiscoveryContext.js\";\nimport { list } from \"../../api/operations/operations.js\";\nimport type { OperationsListOptionalParams } from \"../../api/operations/options.js\";\nimport type { Operation } from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a Operations operations. */\nexport interface OperationsOperations {\n /** List the operations for the provider */\n list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator<Operation>;\n}\n\nfunction _getOperations(context: StorageDiscoveryContext) {\n return {\n list: (options?: OperationsListOptionalParams) => list(context, options),\n };\n}\n\nexport function _getOperationsOperations(context: StorageDiscoveryContext): OperationsOperations {\n return {\n ..._getOperations(context),\n };\n}\n"]}
@@ -1,7 +1,7 @@
1
- import { StorageDiscoveryContext } from "../../api/storageDiscoveryContext.js";
2
- import { StorageDiscoveryWorkspace, StorageDiscoveryWorkspaceUpdate } from "../../models/models.js";
3
- import { StorageDiscoveryWorkspacesListBySubscriptionOptionalParams, StorageDiscoveryWorkspacesListByResourceGroupOptionalParams, StorageDiscoveryWorkspacesDeleteOptionalParams, StorageDiscoveryWorkspacesUpdateOptionalParams, StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams, StorageDiscoveryWorkspacesGetOptionalParams } from "../../api/storageDiscoveryWorkspaces/options.js";
4
- import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
1
+ import type { StorageDiscoveryContext } from "../../api/storageDiscoveryContext.js";
2
+ import type { StorageDiscoveryWorkspacesListBySubscriptionOptionalParams, StorageDiscoveryWorkspacesListByResourceGroupOptionalParams, StorageDiscoveryWorkspacesDeleteOptionalParams, StorageDiscoveryWorkspacesUpdateOptionalParams, StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams, StorageDiscoveryWorkspacesGetOptionalParams } from "../../api/storageDiscoveryWorkspaces/options.js";
3
+ import type { StorageDiscoveryWorkspace, StorageDiscoveryWorkspaceUpdate } from "../../models/models.js";
4
+ import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
5
  /** Interface representing a StorageDiscoveryWorkspaces operations. */
6
6
  export interface StorageDiscoveryWorkspacesOperations {
7
7
  /** List StorageDiscoveryWorkspace resources by subscription ID */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/storageDiscoveryWorkspaces/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAYlC,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,GACJ,MAAM,oDAAoD,CAAC;AA+C5D,SAAS,8BAA8B,CAAC,OAAgC;IACtE,OAAO;QACL,kBAAkB,EAAE,CAAC,OAAoE,EAAE,EAAE,CAC3F,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC;QACtC,mBAAmB,EAAE,CACnB,iBAAyB,EACzB,OAAqE,EACrE,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC;QAC7D,MAAM,EAAE,CACN,iBAAyB,EACzB,6BAAqC,EACrC,OAAwD,EACxD,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,OAAO,CAAC;QAChF,MAAM,EAAE,CACN,iBAAyB,EACzB,6BAAqC,EACrC,UAA2C,EAC3C,OAAwD,EACxD,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,UAAU,EAAE,OAAO,CAAC;QAC3F,cAAc,EAAE,CACd,iBAAyB,EACzB,6BAAqC,EACrC,QAAmC,EACnC,OAAgE,EAChE,EAAE,CACF,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC9F,GAAG,EAAE,CACH,iBAAyB,EACzB,6BAAqC,EACrC,OAAqD,EACrD,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,OAAO,CAAC;KAC7E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,OAAgC;IAEhC,OAAO;QACL,GAAG,8BAA8B,CAAC,OAAO,CAAC;KAC3C,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { StorageDiscoveryContext } from \"../../api/storageDiscoveryContext.js\";\nimport { StorageDiscoveryWorkspace, StorageDiscoveryWorkspaceUpdate } from \"../../models/models.js\";\nimport {\n StorageDiscoveryWorkspacesListBySubscriptionOptionalParams,\n StorageDiscoveryWorkspacesListByResourceGroupOptionalParams,\n StorageDiscoveryWorkspacesDeleteOptionalParams,\n StorageDiscoveryWorkspacesUpdateOptionalParams,\n StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams,\n StorageDiscoveryWorkspacesGetOptionalParams,\n} from \"../../api/storageDiscoveryWorkspaces/options.js\";\nimport {\n listBySubscription,\n listByResourceGroup,\n $delete,\n update,\n createOrUpdate,\n get,\n} from \"../../api/storageDiscoveryWorkspaces/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a StorageDiscoveryWorkspaces operations. */\nexport interface StorageDiscoveryWorkspacesOperations {\n /** List StorageDiscoveryWorkspace resources by subscription ID */\n listBySubscription: (\n options?: StorageDiscoveryWorkspacesListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<StorageDiscoveryWorkspace>;\n /** List StorageDiscoveryWorkspace resources by resource group */\n listByResourceGroup: (\n resourceGroupName: string,\n options?: StorageDiscoveryWorkspacesListByResourceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<StorageDiscoveryWorkspace>;\n /** Delete a StorageDiscoveryWorkspace */\n /**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\n delete: (\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n options?: StorageDiscoveryWorkspacesDeleteOptionalParams,\n ) => Promise<void>;\n /** Update a StorageDiscoveryWorkspace */\n update: (\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n properties: StorageDiscoveryWorkspaceUpdate,\n options?: StorageDiscoveryWorkspacesUpdateOptionalParams,\n ) => Promise<StorageDiscoveryWorkspace>;\n /** Create a StorageDiscoveryWorkspace */\n createOrUpdate: (\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n resource: StorageDiscoveryWorkspace,\n options?: StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams,\n ) => Promise<StorageDiscoveryWorkspace>;\n /** Get a StorageDiscoveryWorkspace */\n get: (\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n options?: StorageDiscoveryWorkspacesGetOptionalParams,\n ) => Promise<StorageDiscoveryWorkspace>;\n}\n\nfunction _getStorageDiscoveryWorkspaces(context: StorageDiscoveryContext) {\n return {\n listBySubscription: (options?: StorageDiscoveryWorkspacesListBySubscriptionOptionalParams) =>\n listBySubscription(context, options),\n listByResourceGroup: (\n resourceGroupName: string,\n options?: StorageDiscoveryWorkspacesListByResourceGroupOptionalParams,\n ) => listByResourceGroup(context, resourceGroupName, options),\n delete: (\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n options?: StorageDiscoveryWorkspacesDeleteOptionalParams,\n ) => $delete(context, resourceGroupName, storageDiscoveryWorkspaceName, options),\n update: (\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n properties: StorageDiscoveryWorkspaceUpdate,\n options?: StorageDiscoveryWorkspacesUpdateOptionalParams,\n ) => update(context, resourceGroupName, storageDiscoveryWorkspaceName, properties, options),\n createOrUpdate: (\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n resource: StorageDiscoveryWorkspace,\n options?: StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams,\n ) =>\n createOrUpdate(context, resourceGroupName, storageDiscoveryWorkspaceName, resource, options),\n get: (\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n options?: StorageDiscoveryWorkspacesGetOptionalParams,\n ) => get(context, resourceGroupName, storageDiscoveryWorkspaceName, options),\n };\n}\n\nexport function _getStorageDiscoveryWorkspacesOperations(\n context: StorageDiscoveryContext,\n): StorageDiscoveryWorkspacesOperations {\n return {\n ..._getStorageDiscoveryWorkspaces(context),\n };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/storageDiscoveryWorkspaces/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,GACJ,MAAM,oDAAoD,CAAC;AA2D5D,SAAS,8BAA8B,CAAC,OAAgC;IACtE,OAAO;QACL,kBAAkB,EAAE,CAAC,OAAoE,EAAE,EAAE,CAC3F,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC;QACtC,mBAAmB,EAAE,CACnB,iBAAyB,EACzB,OAAqE,EACrE,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC;QAC7D,MAAM,EAAE,CACN,iBAAyB,EACzB,6BAAqC,EACrC,OAAwD,EACxD,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,OAAO,CAAC;QAChF,MAAM,EAAE,CACN,iBAAyB,EACzB,6BAAqC,EACrC,UAA2C,EAC3C,OAAwD,EACxD,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,UAAU,EAAE,OAAO,CAAC;QAC3F,cAAc,EAAE,CACd,iBAAyB,EACzB,6BAAqC,EACrC,QAAmC,EACnC,OAAgE,EAChE,EAAE,CACF,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC9F,GAAG,EAAE,CACH,iBAAyB,EACzB,6BAAqC,EACrC,OAAqD,EACrD,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,OAAO,CAAC;KAC7E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,OAAgC;IAEhC,OAAO;QACL,GAAG,8BAA8B,CAAC,OAAO,CAAC;KAC3C,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { StorageDiscoveryContext } from \"../../api/storageDiscoveryContext.js\";\nimport {\n listBySubscription,\n listByResourceGroup,\n $delete,\n update,\n createOrUpdate,\n get,\n} from \"../../api/storageDiscoveryWorkspaces/operations.js\";\nimport type {\n StorageDiscoveryWorkspacesListBySubscriptionOptionalParams,\n StorageDiscoveryWorkspacesListByResourceGroupOptionalParams,\n StorageDiscoveryWorkspacesDeleteOptionalParams,\n StorageDiscoveryWorkspacesUpdateOptionalParams,\n StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams,\n StorageDiscoveryWorkspacesGetOptionalParams,\n} from \"../../api/storageDiscoveryWorkspaces/options.js\";\nimport type {\n StorageDiscoveryWorkspace,\n StorageDiscoveryWorkspaceUpdate,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a StorageDiscoveryWorkspaces operations. */\nexport interface StorageDiscoveryWorkspacesOperations {\n /** List StorageDiscoveryWorkspace resources by subscription ID */\n listBySubscription: (\n options?: StorageDiscoveryWorkspacesListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<StorageDiscoveryWorkspace>;\n /** List StorageDiscoveryWorkspace resources by resource group */\n listByResourceGroup: (\n resourceGroupName: string,\n options?: StorageDiscoveryWorkspacesListByResourceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<StorageDiscoveryWorkspace>;\n /** Delete a StorageDiscoveryWorkspace */\n /**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\n delete: (\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n options?: StorageDiscoveryWorkspacesDeleteOptionalParams,\n ) => Promise<void>;\n /** Update a StorageDiscoveryWorkspace */\n update: (\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n properties: StorageDiscoveryWorkspaceUpdate,\n options?: StorageDiscoveryWorkspacesUpdateOptionalParams,\n ) => Promise<StorageDiscoveryWorkspace>;\n /** Create a StorageDiscoveryWorkspace */\n createOrUpdate: (\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n resource: StorageDiscoveryWorkspace,\n options?: StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams,\n ) => Promise<StorageDiscoveryWorkspace>;\n /** Get a StorageDiscoveryWorkspace */\n get: (\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n options?: StorageDiscoveryWorkspacesGetOptionalParams,\n ) => Promise<StorageDiscoveryWorkspace>;\n}\n\nfunction _getStorageDiscoveryWorkspaces(context: StorageDiscoveryContext) {\n return {\n listBySubscription: (options?: StorageDiscoveryWorkspacesListBySubscriptionOptionalParams) =>\n listBySubscription(context, options),\n listByResourceGroup: (\n resourceGroupName: string,\n options?: StorageDiscoveryWorkspacesListByResourceGroupOptionalParams,\n ) => listByResourceGroup(context, resourceGroupName, options),\n delete: (\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n options?: StorageDiscoveryWorkspacesDeleteOptionalParams,\n ) => $delete(context, resourceGroupName, storageDiscoveryWorkspaceName, options),\n update: (\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n properties: StorageDiscoveryWorkspaceUpdate,\n options?: StorageDiscoveryWorkspacesUpdateOptionalParams,\n ) => update(context, resourceGroupName, storageDiscoveryWorkspaceName, properties, options),\n createOrUpdate: (\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n resource: StorageDiscoveryWorkspace,\n options?: StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams,\n ) =>\n createOrUpdate(context, resourceGroupName, storageDiscoveryWorkspaceName, resource, options),\n get: (\n resourceGroupName: string,\n storageDiscoveryWorkspaceName: string,\n options?: StorageDiscoveryWorkspacesGetOptionalParams,\n ) => get(context, resourceGroupName, storageDiscoveryWorkspaceName, options),\n };\n}\n\nexport function _getStorageDiscoveryWorkspacesOperations(\n context: StorageDiscoveryContext,\n): StorageDiscoveryWorkspacesOperations {\n return {\n ..._getStorageDiscoveryWorkspaces(context),\n };\n}\n"]}
@@ -1,3 +1,4 @@
1
+ import { AzureClouds, AzureSupportedClouds } from "./static-helpers/cloudSettingHelpers.js";
1
2
  import { PageSettings, ContinuablePage, PagedAsyncIterableIterator } from "./static-helpers/pagingHelpers.js";
2
3
  export { StorageDiscoveryClient } from "./storageDiscoveryClient.js";
3
4
  export { StorageDiscoveryWorkspace, StorageDiscoveryWorkspaceProperties, KnownStorageDiscoverySku, StorageDiscoverySku, StorageDiscoveryScope, KnownStorageDiscoveryResourceType, StorageDiscoveryResourceType, KnownResourceProvisioningState, ResourceProvisioningState, TrackedResource, Resource, SystemData, KnownCreatedByType, CreatedByType, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, StorageDiscoveryWorkspaceUpdate, StorageDiscoveryWorkspacePropertiesUpdate, Operation, OperationDisplay, KnownOrigin, Origin, KnownActionType, ActionType, KnownApiVersion, } from "./models/index.js";
@@ -6,4 +7,5 @@ export { OperationsListOptionalParams } from "./api/operations/index.js";
6
7
  export { StorageDiscoveryWorkspacesListBySubscriptionOptionalParams, StorageDiscoveryWorkspacesListByResourceGroupOptionalParams, StorageDiscoveryWorkspacesDeleteOptionalParams, StorageDiscoveryWorkspacesUpdateOptionalParams, StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams, StorageDiscoveryWorkspacesGetOptionalParams, } from "./api/storageDiscoveryWorkspaces/index.js";
7
8
  export { OperationsOperations, StorageDiscoveryWorkspacesOperations } from "./classic/index.js";
8
9
  export { PageSettings, ContinuablePage, PagedAsyncIterableIterator };
10
+ export { AzureClouds, AzureSupportedClouds };
9
11
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,7 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
+ import { AzureClouds } from "./static-helpers/cloudSettingHelpers.js";
3
4
  export { StorageDiscoveryClient } from "./storageDiscoveryClient.js";
4
5
  export { KnownStorageDiscoverySku, KnownStorageDiscoveryResourceType, KnownResourceProvisioningState, KnownCreatedByType, KnownOrigin, KnownActionType, KnownApiVersion, } from "./models/index.js";
6
+ export { AzureClouds };
5
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAGL,wBAAwB,EAGxB,iCAAiC,EAEjC,8BAA8B,EAK9B,kBAAkB,EASlB,WAAW,EAEX,eAAe,EAEf,eAAe,GAChB,MAAM,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n PageSettings,\n ContinuablePage,\n PagedAsyncIterableIterator,\n} from \"./static-helpers/pagingHelpers.js\";\n\nexport { StorageDiscoveryClient } from \"./storageDiscoveryClient.js\";\nexport {\n StorageDiscoveryWorkspace,\n StorageDiscoveryWorkspaceProperties,\n KnownStorageDiscoverySku,\n StorageDiscoverySku,\n StorageDiscoveryScope,\n KnownStorageDiscoveryResourceType,\n StorageDiscoveryResourceType,\n KnownResourceProvisioningState,\n ResourceProvisioningState,\n TrackedResource,\n Resource,\n SystemData,\n KnownCreatedByType,\n CreatedByType,\n ErrorResponse,\n ErrorDetail,\n ErrorAdditionalInfo,\n StorageDiscoveryWorkspaceUpdate,\n StorageDiscoveryWorkspacePropertiesUpdate,\n Operation,\n OperationDisplay,\n KnownOrigin,\n Origin,\n KnownActionType,\n ActionType,\n KnownApiVersion,\n} from \"./models/index.js\";\nexport { StorageDiscoveryClientOptionalParams } from \"./api/index.js\";\nexport { OperationsListOptionalParams } from \"./api/operations/index.js\";\nexport {\n StorageDiscoveryWorkspacesListBySubscriptionOptionalParams,\n StorageDiscoveryWorkspacesListByResourceGroupOptionalParams,\n StorageDiscoveryWorkspacesDeleteOptionalParams,\n StorageDiscoveryWorkspacesUpdateOptionalParams,\n StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams,\n StorageDiscoveryWorkspacesGetOptionalParams,\n} from \"./api/storageDiscoveryWorkspaces/index.js\";\nexport { OperationsOperations, StorageDiscoveryWorkspacesOperations } from \"./classic/index.js\";\nexport { PageSettings, ContinuablePage, PagedAsyncIterableIterator };\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,WAAW,EAAwB,MAAM,yCAAyC,CAAC;AAO5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAGL,wBAAwB,EAGxB,iCAAiC,EAEjC,8BAA8B,EAK9B,kBAAkB,EASlB,WAAW,EAEX,eAAe,EAEf,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAa3B,OAAO,EAAE,WAAW,EAAwB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AzureClouds, AzureSupportedClouds } from \"./static-helpers/cloudSettingHelpers.js\";\nimport {\n PageSettings,\n ContinuablePage,\n PagedAsyncIterableIterator,\n} from \"./static-helpers/pagingHelpers.js\";\n\nexport { StorageDiscoveryClient } from \"./storageDiscoveryClient.js\";\nexport {\n StorageDiscoveryWorkspace,\n StorageDiscoveryWorkspaceProperties,\n KnownStorageDiscoverySku,\n StorageDiscoverySku,\n StorageDiscoveryScope,\n KnownStorageDiscoveryResourceType,\n StorageDiscoveryResourceType,\n KnownResourceProvisioningState,\n ResourceProvisioningState,\n TrackedResource,\n Resource,\n SystemData,\n KnownCreatedByType,\n CreatedByType,\n ErrorResponse,\n ErrorDetail,\n ErrorAdditionalInfo,\n StorageDiscoveryWorkspaceUpdate,\n StorageDiscoveryWorkspacePropertiesUpdate,\n Operation,\n OperationDisplay,\n KnownOrigin,\n Origin,\n KnownActionType,\n ActionType,\n KnownApiVersion,\n} from \"./models/index.js\";\nexport { StorageDiscoveryClientOptionalParams } from \"./api/index.js\";\nexport { OperationsListOptionalParams } from \"./api/operations/index.js\";\nexport {\n StorageDiscoveryWorkspacesListBySubscriptionOptionalParams,\n StorageDiscoveryWorkspacesListByResourceGroupOptionalParams,\n StorageDiscoveryWorkspacesDeleteOptionalParams,\n StorageDiscoveryWorkspacesUpdateOptionalParams,\n StorageDiscoveryWorkspacesCreateOrUpdateOptionalParams,\n StorageDiscoveryWorkspacesGetOptionalParams,\n} from \"./api/storageDiscoveryWorkspaces/index.js\";\nexport { OperationsOperations, StorageDiscoveryWorkspacesOperations } from \"./classic/index.js\";\nexport { PageSettings, ContinuablePage, PagedAsyncIterableIterator };\nexport { AzureClouds, AzureSupportedClouds };\n"]}
@@ -134,7 +134,7 @@ export declare enum KnownCreatedByType {
134
134
  }
135
135
  /**
136
136
  * The kind of entity that created the resource. \
137
- * {@link KnownCreatedByType} can be used interchangeably with createdByType,
137
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
138
138
  * this enum contains the known values that the service supports.
139
139
  * ### Known values supported by the service
140
140
  * **User**: The entity was created by a user. \
@@ -272,6 +272,7 @@ export declare enum KnownActionType {
272
272
  export type ActionType = string;
273
273
  /** Known values of {@link ApiVersion} that the service accepts. */
274
274
  export declare enum KnownApiVersion {
275
- V20250601Preview = "2025-06-01-preview"
275
+ /** 2025-09-01 */
276
+ V20250901 = "2025-09-01"
276
277
  }
277
278
  //# sourceMappingURL=models.d.ts.map
@@ -274,6 +274,7 @@ export var KnownActionType;
274
274
  /** Known values of {@link ApiVersion} that the service accepts. */
275
275
  export var KnownApiVersion;
276
276
  (function (KnownApiVersion) {
277
- KnownApiVersion["V20250601Preview"] = "2025-06-01-preview";
277
+ /** 2025-09-01 */
278
+ KnownApiVersion["V20250901"] = "2025-09-01";
278
279
  })(KnownApiVersion || (KnownApiVersion = {}));
279
280
  //# sourceMappingURL=models.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,MAAM,UAAU,mCAAmC,CAAC,IAA+B;IACjF,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,6CAA6C,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACtE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,qCAAqC,CAAC,IAAS;IAC7D,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,QAAQ,EAAE,IAAI,CAAC,UAAU,CA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,WAOX;AAPD,WAAY,WAAW;IACrB,sDAAsD;IACtD,4BAAa,CAAA;IACb,wDAAwD;IACxD,gCAAiB,CAAA;IACjB,gEAAgE;IAChE,yCAA0B,CAAA;AAC5B,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAaD,gHAAgH;AAChH,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,0CAA0C;IAC1C,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAWD,mEAAmE;AACnE,MAAM,CAAN,IAAY,eAEX;AAFD,WAAY,eAAe;IACzB,0DAAuC,CAAA;AACzC,CAAC,EAFW,eAAe,KAAf,eAAe,QAE1B","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** A Storage Discovery Workspace resource. This resource configures the collection of storage account metrics. */\nexport interface StorageDiscoveryWorkspace extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: StorageDiscoveryWorkspaceProperties;\n}\n\nexport function storageDiscoveryWorkspaceSerializer(item: StorageDiscoveryWorkspace): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : storageDiscoveryWorkspacePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function storageDiscoveryWorkspaceDeserializer(item: any): StorageDiscoveryWorkspace {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : storageDiscoveryWorkspacePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Storage Discovery Workspace Properties */\nexport interface StorageDiscoveryWorkspaceProperties {\n /** The storage discovery sku */\n sku?: StorageDiscoverySku;\n /** The description of the storage discovery workspace */\n description?: string;\n /** The view level storage discovery data estate */\n workspaceRoots: string[];\n /** The scopes of the storage discovery workspace. */\n scopes: StorageDiscoveryScope[];\n /** The status of the last operation. */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function storageDiscoveryWorkspacePropertiesSerializer(\n item: StorageDiscoveryWorkspaceProperties,\n): any {\n return {\n sku: item[\"sku\"],\n description: item[\"description\"],\n workspaceRoots: item[\"workspaceRoots\"].map((p: any) => {\n return p;\n }),\n scopes: storageDiscoveryScopeArraySerializer(item[\"scopes\"]),\n };\n}\n\nexport function storageDiscoveryWorkspacePropertiesDeserializer(\n item: any,\n): StorageDiscoveryWorkspaceProperties {\n return {\n sku: item[\"sku\"],\n description: item[\"description\"],\n workspaceRoots: item[\"workspaceRoots\"].map((p: any) => {\n return p;\n }),\n scopes: storageDiscoveryScopeArrayDeserializer(item[\"scopes\"]),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Storage Discovery Sku */\nexport enum KnownStorageDiscoverySku {\n /** Standard Sku */\n Standard = \"Standard\",\n /** Free Sku */\n Free = \"Free\",\n}\n\n/**\n * Storage Discovery Sku \\\n * {@link KnownStorageDiscoverySku} can be used interchangeably with StorageDiscoverySku,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Standard**: Standard Sku \\\n * **Free**: Free Sku\n */\nexport type StorageDiscoverySku = string;\n\nexport function storageDiscoveryScopeArraySerializer(result: Array<StorageDiscoveryScope>): any[] {\n return result.map((item) => {\n return storageDiscoveryScopeSerializer(item);\n });\n}\n\nexport function storageDiscoveryScopeArrayDeserializer(\n result: Array<StorageDiscoveryScope>,\n): any[] {\n return result.map((item) => {\n return storageDiscoveryScopeDeserializer(item);\n });\n}\n\n/** Storage Discovery Scope. This had added validations */\nexport interface StorageDiscoveryScope {\n /** Display name of the collection */\n displayName: string;\n /** Resource types for the collection */\n resourceTypes: StorageDiscoveryResourceType[];\n /** The storage account tags keys to filter */\n tagKeysOnly?: string[];\n /** Resource tags. */\n tags?: Record<string, string>;\n}\n\nexport function storageDiscoveryScopeSerializer(item: StorageDiscoveryScope): any {\n return {\n displayName: item[\"displayName\"],\n resourceTypes: item[\"resourceTypes\"].map((p: any) => {\n return p;\n }),\n tagKeysOnly: !item[\"tagKeysOnly\"]\n ? item[\"tagKeysOnly\"]\n : item[\"tagKeysOnly\"].map((p: any) => {\n return p;\n }),\n tags: item[\"tags\"],\n };\n}\n\nexport function storageDiscoveryScopeDeserializer(item: any): StorageDiscoveryScope {\n return {\n displayName: item[\"displayName\"],\n resourceTypes: item[\"resourceTypes\"].map((p: any) => {\n return p;\n }),\n tagKeysOnly: !item[\"tagKeysOnly\"]\n ? item[\"tagKeysOnly\"]\n : item[\"tagKeysOnly\"].map((p: any) => {\n return p;\n }),\n tags: item[\"tags\"],\n };\n}\n\n/** Storage Discovery Resource Type */\nexport enum KnownStorageDiscoveryResourceType {\n /** Storage Account Resource Type */\n StorageAccounts = \"Microsoft.Storage/storageAccounts\",\n}\n\n/**\n * Storage Discovery Resource Type \\\n * {@link KnownStorageDiscoveryResourceType} can be used interchangeably with StorageDiscoveryResourceType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Microsoft.Storage\\/storageAccounts**: Storage Account Resource Type\n */\nexport type StorageDiscoveryResourceType = string;\n\n/** The provisioning state of a resource type. */\nexport enum KnownResourceProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled.\n */\nexport type ResourceProvisioningState = string;\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: item[\"tags\"],\n location: item[\"location\"],\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnownCreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** The template for adding updateable properties. */\nexport interface StorageDiscoveryWorkspaceUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The resource-specific properties for this resource. */\n properties?: StorageDiscoveryWorkspacePropertiesUpdate;\n}\n\nexport function storageDiscoveryWorkspaceUpdateSerializer(\n item: StorageDiscoveryWorkspaceUpdate,\n): any {\n return {\n tags: item[\"tags\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : storageDiscoveryWorkspacePropertiesUpdateSerializer(item[\"properties\"]),\n };\n}\n\n/** The template for adding updateable properties. */\nexport interface StorageDiscoveryWorkspacePropertiesUpdate {\n /** The storage discovery sku */\n sku?: StorageDiscoverySku;\n /** The description of the storage discovery workspace */\n description?: string;\n /** The view level storage discovery data estate */\n workspaceRoots?: string[];\n /** The scopes of the storage discovery workspace. */\n scopes?: StorageDiscoveryScope[];\n}\n\nexport function storageDiscoveryWorkspacePropertiesUpdateSerializer(\n item: StorageDiscoveryWorkspacePropertiesUpdate,\n): any {\n return {\n sku: item[\"sku\"],\n description: item[\"description\"],\n workspaceRoots: !item[\"workspaceRoots\"]\n ? item[\"workspaceRoots\"]\n : item[\"workspaceRoots\"].map((p: any) => {\n return p;\n }),\n scopes: !item[\"scopes\"] ? item[\"scopes\"] : storageDiscoveryScopeArraySerializer(item[\"scopes\"]),\n };\n}\n\n/** The response of a StorageDiscoveryWorkspace list operation. */\nexport interface _StorageDiscoveryWorkspaceListResult {\n /** The StorageDiscoveryWorkspace items on this page */\n value: StorageDiscoveryWorkspace[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _storageDiscoveryWorkspaceListResultDeserializer(\n item: any,\n): _StorageDiscoveryWorkspaceListResult {\n return {\n value: storageDiscoveryWorkspaceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function storageDiscoveryWorkspaceArraySerializer(\n result: Array<StorageDiscoveryWorkspace>,\n): any[] {\n return result.map((item) => {\n return storageDiscoveryWorkspaceSerializer(item);\n });\n}\n\nexport function storageDiscoveryWorkspaceArrayDeserializer(\n result: Array<StorageDiscoveryWorkspace>,\n): any[] {\n return result.map((item) => {\n return storageDiscoveryWorkspaceDeserializer(item);\n });\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Known values of {@link ApiVersion} that the service accepts. */\nexport enum KnownApiVersion {\n V20250601Preview = \"2025-06-01-preview\",\n}\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,MAAM,UAAU,mCAAmC,CAAC,IAA+B;IACjF,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,6CAA6C,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACtE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,qCAAqC,CAAC,IAAS;IAC7D,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9C,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,+CAA+C,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACxE,CAAC;AACJ,CAAC;AAgBD,MAAM,UAAU,6CAA6C,CAC3D,IAAyC;IAEzC,OAAO;QACL,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC;QAChB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,qBAAqB,CAAC,IAAS;IAC7C,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;QAClC,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,4BAA4B,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC3F,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;QACtB,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;KAC/B,CAAC;AACJ,CAAC;AAcD,MAAM,UAAU,4BAA4B,CAAC,IAAS;IACpD,OAAO;QACL,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC;QAC5B,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;KACjC,CAAC;AACJ,CAAC;AAED,2IAA2I;AAC3I,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,sDAAsD;IACtD,4BAAa,CAAA;IACb,wDAAwD;IACxD,gCAAiB,CAAA;IACjB,gEAAgE;IAChE,yCAA0B,CAAA;AAC5B,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAaD,gHAAgH;AAChH,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,0CAA0C;IAC1C,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAWD,mEAAmE;AACnE,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,iBAAiB;IACjB,2CAAwB,CAAA;AAC1B,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** A Storage Discovery Workspace resource. This resource configures the collection of storage account metrics. */\nexport interface StorageDiscoveryWorkspace extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: StorageDiscoveryWorkspaceProperties;\n}\n\nexport function storageDiscoveryWorkspaceSerializer(item: StorageDiscoveryWorkspace): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : storageDiscoveryWorkspacePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function storageDiscoveryWorkspaceDeserializer(item: any): StorageDiscoveryWorkspace {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : storageDiscoveryWorkspacePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Storage Discovery Workspace Properties */\nexport interface StorageDiscoveryWorkspaceProperties {\n /** The storage discovery sku */\n sku?: StorageDiscoverySku;\n /** The description of the storage discovery workspace */\n description?: string;\n /** The view level storage discovery data estate */\n workspaceRoots: string[];\n /** The scopes of the storage discovery workspace. */\n scopes: StorageDiscoveryScope[];\n /** The status of the last operation. */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function storageDiscoveryWorkspacePropertiesSerializer(\n item: StorageDiscoveryWorkspaceProperties,\n): any {\n return {\n sku: item[\"sku\"],\n description: item[\"description\"],\n workspaceRoots: item[\"workspaceRoots\"].map((p: any) => {\n return p;\n }),\n scopes: storageDiscoveryScopeArraySerializer(item[\"scopes\"]),\n };\n}\n\nexport function storageDiscoveryWorkspacePropertiesDeserializer(\n item: any,\n): StorageDiscoveryWorkspaceProperties {\n return {\n sku: item[\"sku\"],\n description: item[\"description\"],\n workspaceRoots: item[\"workspaceRoots\"].map((p: any) => {\n return p;\n }),\n scopes: storageDiscoveryScopeArrayDeserializer(item[\"scopes\"]),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Storage Discovery Sku */\nexport enum KnownStorageDiscoverySku {\n /** Standard Sku */\n Standard = \"Standard\",\n /** Free Sku */\n Free = \"Free\",\n}\n\n/**\n * Storage Discovery Sku \\\n * {@link KnownStorageDiscoverySku} can be used interchangeably with StorageDiscoverySku,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Standard**: Standard Sku \\\n * **Free**: Free Sku\n */\nexport type StorageDiscoverySku = string;\n\nexport function storageDiscoveryScopeArraySerializer(result: Array<StorageDiscoveryScope>): any[] {\n return result.map((item) => {\n return storageDiscoveryScopeSerializer(item);\n });\n}\n\nexport function storageDiscoveryScopeArrayDeserializer(\n result: Array<StorageDiscoveryScope>,\n): any[] {\n return result.map((item) => {\n return storageDiscoveryScopeDeserializer(item);\n });\n}\n\n/** Storage Discovery Scope. This had added validations */\nexport interface StorageDiscoveryScope {\n /** Display name of the collection */\n displayName: string;\n /** Resource types for the collection */\n resourceTypes: StorageDiscoveryResourceType[];\n /** The storage account tags keys to filter */\n tagKeysOnly?: string[];\n /** Resource tags. */\n tags?: Record<string, string>;\n}\n\nexport function storageDiscoveryScopeSerializer(item: StorageDiscoveryScope): any {\n return {\n displayName: item[\"displayName\"],\n resourceTypes: item[\"resourceTypes\"].map((p: any) => {\n return p;\n }),\n tagKeysOnly: !item[\"tagKeysOnly\"]\n ? item[\"tagKeysOnly\"]\n : item[\"tagKeysOnly\"].map((p: any) => {\n return p;\n }),\n tags: item[\"tags\"],\n };\n}\n\nexport function storageDiscoveryScopeDeserializer(item: any): StorageDiscoveryScope {\n return {\n displayName: item[\"displayName\"],\n resourceTypes: item[\"resourceTypes\"].map((p: any) => {\n return p;\n }),\n tagKeysOnly: !item[\"tagKeysOnly\"]\n ? item[\"tagKeysOnly\"]\n : item[\"tagKeysOnly\"].map((p: any) => {\n return p;\n }),\n tags: item[\"tags\"],\n };\n}\n\n/** Storage Discovery Resource Type */\nexport enum KnownStorageDiscoveryResourceType {\n /** Storage Account Resource Type */\n StorageAccounts = \"Microsoft.Storage/storageAccounts\",\n}\n\n/**\n * Storage Discovery Resource Type \\\n * {@link KnownStorageDiscoveryResourceType} can be used interchangeably with StorageDiscoveryResourceType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Microsoft.Storage\\/storageAccounts**: Storage Account Resource Type\n */\nexport type StorageDiscoveryResourceType = string;\n\n/** The provisioning state of a resource type. */\nexport enum KnownResourceProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled.\n */\nexport type ResourceProvisioningState = string;\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: item[\"tags\"],\n location: item[\"location\"],\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** The template for adding updateable properties. */\nexport interface StorageDiscoveryWorkspaceUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The resource-specific properties for this resource. */\n properties?: StorageDiscoveryWorkspacePropertiesUpdate;\n}\n\nexport function storageDiscoveryWorkspaceUpdateSerializer(\n item: StorageDiscoveryWorkspaceUpdate,\n): any {\n return {\n tags: item[\"tags\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : storageDiscoveryWorkspacePropertiesUpdateSerializer(item[\"properties\"]),\n };\n}\n\n/** The template for adding updateable properties. */\nexport interface StorageDiscoveryWorkspacePropertiesUpdate {\n /** The storage discovery sku */\n sku?: StorageDiscoverySku;\n /** The description of the storage discovery workspace */\n description?: string;\n /** The view level storage discovery data estate */\n workspaceRoots?: string[];\n /** The scopes of the storage discovery workspace. */\n scopes?: StorageDiscoveryScope[];\n}\n\nexport function storageDiscoveryWorkspacePropertiesUpdateSerializer(\n item: StorageDiscoveryWorkspacePropertiesUpdate,\n): any {\n return {\n sku: item[\"sku\"],\n description: item[\"description\"],\n workspaceRoots: !item[\"workspaceRoots\"]\n ? item[\"workspaceRoots\"]\n : item[\"workspaceRoots\"].map((p: any) => {\n return p;\n }),\n scopes: !item[\"scopes\"] ? item[\"scopes\"] : storageDiscoveryScopeArraySerializer(item[\"scopes\"]),\n };\n}\n\n/** The response of a StorageDiscoveryWorkspace list operation. */\nexport interface _StorageDiscoveryWorkspaceListResult {\n /** The StorageDiscoveryWorkspace items on this page */\n value: StorageDiscoveryWorkspace[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _storageDiscoveryWorkspaceListResultDeserializer(\n item: any,\n): _StorageDiscoveryWorkspaceListResult {\n return {\n value: storageDiscoveryWorkspaceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function storageDiscoveryWorkspaceArraySerializer(\n result: Array<StorageDiscoveryWorkspace>,\n): any[] {\n return result.map((item) => {\n return storageDiscoveryWorkspaceSerializer(item);\n });\n}\n\nexport function storageDiscoveryWorkspaceArrayDeserializer(\n result: Array<StorageDiscoveryWorkspace>,\n): any[] {\n return result.map((item) => {\n return storageDiscoveryWorkspaceDeserializer(item);\n });\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Known values of {@link ApiVersion} that the service accepts. */\nexport enum KnownApiVersion {\n /** 2025-09-01 */\n V20250901 = \"2025-09-01\",\n}\n"]}