@azure/arm-mongodbatlas 1.0.0-alpha.20250619.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 (150) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +1 -1
  3. package/dist/browser/api/atlasContext.js +1 -1
  4. package/dist/browser/api/atlasContext.js.map +1 -1
  5. package/dist/browser/api/organizations/operations.d.ts +3 -3
  6. package/dist/browser/api/organizations/operations.js +3 -3
  7. package/dist/browser/api/organizations/operations.js.map +1 -1
  8. package/dist/browser/classic/organizations/index.d.ts +2 -2
  9. package/dist/browser/classic/organizations/index.js.map +1 -1
  10. package/dist/browser/index.d.ts +1 -1
  11. package/dist/browser/index.js.map +1 -1
  12. package/dist/browser/models/index.d.ts +1 -1
  13. package/dist/browser/models/index.js.map +1 -1
  14. package/dist/browser/models/models.d.ts +21 -7
  15. package/dist/browser/models/models.js +22 -6
  16. package/dist/browser/models/models.js.map +1 -1
  17. package/dist/browser/static-helpers/urlTemplate.js +1 -1
  18. package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
  19. package/dist/commonjs/api/atlasContext.js +1 -1
  20. package/dist/commonjs/api/atlasContext.js.map +1 -1
  21. package/dist/commonjs/api/organizations/operations.d.ts +3 -3
  22. package/dist/commonjs/api/organizations/operations.js +2 -2
  23. package/dist/commonjs/api/organizations/operations.js.map +1 -1
  24. package/dist/commonjs/classic/organizations/index.d.ts +2 -2
  25. package/dist/commonjs/classic/organizations/index.js.map +1 -1
  26. package/dist/commonjs/index.d.ts +1 -1
  27. package/dist/commonjs/index.js.map +1 -1
  28. package/dist/commonjs/models/index.d.ts +1 -1
  29. package/dist/commonjs/models/index.js.map +1 -1
  30. package/dist/commonjs/models/models.d.ts +21 -7
  31. package/dist/commonjs/models/models.js +24 -7
  32. package/dist/commonjs/models/models.js.map +1 -1
  33. package/dist/commonjs/static-helpers/urlTemplate.js +1 -1
  34. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
  35. package/dist/esm/api/atlasContext.js +1 -1
  36. package/dist/esm/api/atlasContext.js.map +1 -1
  37. package/dist/esm/api/organizations/operations.d.ts +3 -3
  38. package/dist/esm/api/organizations/operations.js +3 -3
  39. package/dist/esm/api/organizations/operations.js.map +1 -1
  40. package/dist/esm/classic/organizations/index.d.ts +2 -2
  41. package/dist/esm/classic/organizations/index.js.map +1 -1
  42. package/dist/esm/index.d.ts +1 -1
  43. package/dist/esm/index.js.map +1 -1
  44. package/dist/esm/models/index.d.ts +1 -1
  45. package/dist/esm/models/index.js.map +1 -1
  46. package/dist/esm/models/models.d.ts +21 -7
  47. package/dist/esm/models/models.js +22 -6
  48. package/dist/esm/models/models.js.map +1 -1
  49. package/dist/esm/static-helpers/urlTemplate.js +1 -1
  50. package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
  51. package/dist/react-native/api/atlasContext.js +1 -1
  52. package/dist/react-native/api/atlasContext.js.map +1 -1
  53. package/dist/react-native/api/organizations/operations.d.ts +3 -3
  54. package/dist/react-native/api/organizations/operations.js +3 -3
  55. package/dist/react-native/api/organizations/operations.js.map +1 -1
  56. package/dist/react-native/classic/organizations/index.d.ts +2 -2
  57. package/dist/react-native/classic/organizations/index.js.map +1 -1
  58. package/dist/react-native/index.d.ts +1 -1
  59. package/dist/react-native/index.js.map +1 -1
  60. package/dist/react-native/models/index.d.ts +1 -1
  61. package/dist/react-native/models/index.js.map +1 -1
  62. package/dist/react-native/models/models.d.ts +21 -7
  63. package/dist/react-native/models/models.js +22 -6
  64. package/dist/react-native/models/models.js.map +1 -1
  65. package/dist/react-native/static-helpers/urlTemplate.js +1 -1
  66. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
  67. package/package.json +11 -10
  68. package/review/arm-mongodbatlas-api-organizations.api.md +1 -1
  69. package/review/arm-mongodbatlas-models.api.md +15 -2
  70. package/review/arm-mongodbatlas.api.md +16 -3
  71. package/dist/browser/api/atlasContext.d.ts.map +0 -1
  72. package/dist/browser/api/index.d.ts.map +0 -1
  73. package/dist/browser/api/operations/index.d.ts.map +0 -1
  74. package/dist/browser/api/operations/operations.d.ts.map +0 -1
  75. package/dist/browser/api/operations/options.d.ts.map +0 -1
  76. package/dist/browser/api/organizations/index.d.ts.map +0 -1
  77. package/dist/browser/api/organizations/operations.d.ts.map +0 -1
  78. package/dist/browser/api/organizations/options.d.ts.map +0 -1
  79. package/dist/browser/atlasClient.d.ts.map +0 -1
  80. package/dist/browser/classic/index.d.ts.map +0 -1
  81. package/dist/browser/classic/operations/index.d.ts.map +0 -1
  82. package/dist/browser/classic/organizations/index.d.ts.map +0 -1
  83. package/dist/browser/index.d.ts.map +0 -1
  84. package/dist/browser/logger.d.ts.map +0 -1
  85. package/dist/browser/models/index.d.ts.map +0 -1
  86. package/dist/browser/models/models.d.ts.map +0 -1
  87. package/dist/browser/restorePollerHelpers.d.ts.map +0 -1
  88. package/dist/browser/static-helpers/pagingHelpers.d.ts.map +0 -1
  89. package/dist/browser/static-helpers/pollingHelpers.d.ts.map +0 -1
  90. package/dist/browser/static-helpers/urlTemplate.d.ts.map +0 -1
  91. package/dist/commonjs/api/atlasContext.d.ts.map +0 -1
  92. package/dist/commonjs/api/index.d.ts.map +0 -1
  93. package/dist/commonjs/api/operations/index.d.ts.map +0 -1
  94. package/dist/commonjs/api/operations/operations.d.ts.map +0 -1
  95. package/dist/commonjs/api/operations/options.d.ts.map +0 -1
  96. package/dist/commonjs/api/organizations/index.d.ts.map +0 -1
  97. package/dist/commonjs/api/organizations/operations.d.ts.map +0 -1
  98. package/dist/commonjs/api/organizations/options.d.ts.map +0 -1
  99. package/dist/commonjs/atlasClient.d.ts.map +0 -1
  100. package/dist/commonjs/classic/index.d.ts.map +0 -1
  101. package/dist/commonjs/classic/operations/index.d.ts.map +0 -1
  102. package/dist/commonjs/classic/organizations/index.d.ts.map +0 -1
  103. package/dist/commonjs/index.d.ts.map +0 -1
  104. package/dist/commonjs/logger.d.ts.map +0 -1
  105. package/dist/commonjs/models/index.d.ts.map +0 -1
  106. package/dist/commonjs/models/models.d.ts.map +0 -1
  107. package/dist/commonjs/restorePollerHelpers.d.ts.map +0 -1
  108. package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +0 -1
  109. package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +0 -1
  110. package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +0 -1
  111. package/dist/esm/api/atlasContext.d.ts.map +0 -1
  112. package/dist/esm/api/index.d.ts.map +0 -1
  113. package/dist/esm/api/operations/index.d.ts.map +0 -1
  114. package/dist/esm/api/operations/operations.d.ts.map +0 -1
  115. package/dist/esm/api/operations/options.d.ts.map +0 -1
  116. package/dist/esm/api/organizations/index.d.ts.map +0 -1
  117. package/dist/esm/api/organizations/operations.d.ts.map +0 -1
  118. package/dist/esm/api/organizations/options.d.ts.map +0 -1
  119. package/dist/esm/atlasClient.d.ts.map +0 -1
  120. package/dist/esm/classic/index.d.ts.map +0 -1
  121. package/dist/esm/classic/operations/index.d.ts.map +0 -1
  122. package/dist/esm/classic/organizations/index.d.ts.map +0 -1
  123. package/dist/esm/index.d.ts.map +0 -1
  124. package/dist/esm/logger.d.ts.map +0 -1
  125. package/dist/esm/models/index.d.ts.map +0 -1
  126. package/dist/esm/models/models.d.ts.map +0 -1
  127. package/dist/esm/restorePollerHelpers.d.ts.map +0 -1
  128. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +0 -1
  129. package/dist/esm/static-helpers/pollingHelpers.d.ts.map +0 -1
  130. package/dist/esm/static-helpers/urlTemplate.d.ts.map +0 -1
  131. package/dist/react-native/api/atlasContext.d.ts.map +0 -1
  132. package/dist/react-native/api/index.d.ts.map +0 -1
  133. package/dist/react-native/api/operations/index.d.ts.map +0 -1
  134. package/dist/react-native/api/operations/operations.d.ts.map +0 -1
  135. package/dist/react-native/api/operations/options.d.ts.map +0 -1
  136. package/dist/react-native/api/organizations/index.d.ts.map +0 -1
  137. package/dist/react-native/api/organizations/operations.d.ts.map +0 -1
  138. package/dist/react-native/api/organizations/options.d.ts.map +0 -1
  139. package/dist/react-native/atlasClient.d.ts.map +0 -1
  140. package/dist/react-native/classic/index.d.ts.map +0 -1
  141. package/dist/react-native/classic/operations/index.d.ts.map +0 -1
  142. package/dist/react-native/classic/organizations/index.d.ts.map +0 -1
  143. package/dist/react-native/index.d.ts.map +0 -1
  144. package/dist/react-native/logger.d.ts.map +0 -1
  145. package/dist/react-native/models/index.d.ts.map +0 -1
  146. package/dist/react-native/models/models.d.ts.map +0 -1
  147. package/dist/react-native/restorePollerHelpers.d.ts.map +0 -1
  148. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +0 -1
  149. package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +0 -1
  150. package/dist/react-native/static-helpers/urlTemplate.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Release History
2
2
 
3
- ## 1.0.0-beta.1 (2025-06-06)
3
+ ## 1.0.0 (2025-07-02)
4
4
 
5
5
  ### Features Added
6
6
 
7
- Initial release of @azure/arm-mongodbatlas
7
+ This is the first stable version with the package of @azure/arm-mongodbatlas
package/README.md CHANGED
@@ -65,11 +65,11 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
65
65
  import { InteractiveBrowserCredential } from "@azure/identity";
66
66
  import { AtlasClient } from "@azure/arm-mongodbatlas";
67
67
 
68
- const subscriptionId = "00000000-0000-0000-0000-000000000000";
69
68
  const credential = new InteractiveBrowserCredential({
70
69
  tenantId: "<YOUR_TENANT_ID>",
71
70
  clientId: "<YOUR_CLIENT_ID>",
72
71
  });
72
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
73
73
  const client = new AtlasClient(credential, subscriptionId);
74
74
  ```
75
75
 
@@ -16,7 +16,7 @@ export function createAtlas(credential, subscriptionId, options = {}) {
16
16
  } }), { apiVersion: _ } = _j, updatedOptions = __rest(_j, ["apiVersion"]);
17
17
  const clientContext = getClient(endpointUrl, credential, updatedOptions);
18
18
  clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
19
- const apiVersion = (_h = options.apiVersion) !== null && _h !== void 0 ? _h : "2024-11-18-preview";
19
+ const apiVersion = (_h = options.apiVersion) !== null && _h !== void 0 ? _h : "2025-06-01";
20
20
  clientContext.pipeline.addPolicy({
21
21
  name: "ClientApiVersionPolicy",
22
22
  sendRequest: (req, next) => {
@@ -1 +1 @@
1
- {"version":3,"file":"atlasContext.js","sourceRoot":"","sources":["../../../src/api/atlasContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAkB3E,MAAM,UAAU,WAAW,CACzB,UAA2B,EAC3B,cAAsB,EACtB,UAAqC,EAAE;;IAEvC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,CAAC;IAC1F,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,wCAAwC,CAAC;IAC/D,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,qCACD,OAAO,KACV,gBAAgB,EAAE,EAAE,eAAe,EAAE,EACrC,cAAc,EAAE,EAAE,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,MAAM,CAAC,IAAI,EAAE,EACzE,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,GAAG,WAAW,WAAW,CAAC;SACnE,GACF,EAPK,EAAE,UAAU,EAAE,CAAC,OAOpB,EAPyB,cAAc,cAAlC,cAAoC,CAOzC,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,MAAA,OAAO,CAAC,UAAU,mCAAI,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,gCAAK,aAAa,KAAE,UAAU,EAAE,cAAc,GAAkB,CAAC;AAC1E,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport interface AtlasContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} 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 AtlasClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\nexport function createAtlas(\n credential: TokenCredential,\n subscriptionId: string,\n options: AtlasClientOptionalParams = {},\n): AtlasContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-mongodbatlas/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 ?? \"2024-11-18-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 { ...clientContext, apiVersion, subscriptionId } as AtlasContext;\n}\n"]}
1
+ {"version":3,"file":"atlasContext.js","sourceRoot":"","sources":["../../../src/api/atlasContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EA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;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,gCAAK,aAAa,KAAE,UAAU,EAAE,cAAc,GAAkB,CAAC;AAC1E,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport interface AtlasContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} 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 AtlasClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\nexport function createAtlas(\n credential: TokenCredential,\n subscriptionId: string,\n options: AtlasClientOptionalParams = {},\n): AtlasContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-mongodbatlas/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\";\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 { ...clientContext, apiVersion, subscriptionId } as AtlasContext;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { AtlasContext as Client } from "../index.js";
2
- import { OrganizationResource, _OrganizationResourceListResult } from "../../models/models.js";
2
+ import { OrganizationResource, OrganizationResourceUpdate, _OrganizationResourceListResult } from "../../models/models.js";
3
3
  import { OrganizationsListBySubscriptionOptionalParams, OrganizationsListByResourceGroupOptionalParams, OrganizationsDeleteOptionalParams, OrganizationsUpdateOptionalParams, OrganizationsCreateOrUpdateOptionalParams, OrganizationsGetOptionalParams } from "./options.js";
4
4
  import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
5
  import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
@@ -21,10 +21,10 @@ export declare function _$deleteDeserialize(result: PathUncheckedResponse): Prom
21
21
  * to the operation to override the generated name.
22
22
  */
23
23
  export declare function $delete(context: Client, resourceGroupName: string, organizationName: string, options?: OrganizationsDeleteOptionalParams): PollerLike<OperationState<void>, void>;
24
- export declare function _updateSend(context: Client, resourceGroupName: string, organizationName: string, properties: OrganizationResource, options?: OrganizationsUpdateOptionalParams): StreamableMethod;
24
+ export declare function _updateSend(context: Client, resourceGroupName: string, organizationName: string, properties: OrganizationResourceUpdate, options?: OrganizationsUpdateOptionalParams): StreamableMethod;
25
25
  export declare function _updateDeserialize(result: PathUncheckedResponse): Promise<OrganizationResource>;
26
26
  /** Update a OrganizationResource */
27
- export declare function update(context: Client, resourceGroupName: string, organizationName: string, properties: OrganizationResource, options?: OrganizationsUpdateOptionalParams): PollerLike<OperationState<OrganizationResource>, OrganizationResource>;
27
+ export declare function update(context: Client, resourceGroupName: string, organizationName: string, properties: OrganizationResourceUpdate, options?: OrganizationsUpdateOptionalParams): PollerLike<OperationState<OrganizationResource>, OrganizationResource>;
28
28
  export declare function _createOrUpdateSend(context: Client, resourceGroupName: string, organizationName: string, resource: OrganizationResource, options?: OrganizationsCreateOrUpdateOptionalParams): StreamableMethod;
29
29
  export declare function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<OrganizationResource>;
30
30
  /** Create a OrganizationResource */
@@ -1,8 +1,8 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- import { errorResponseDeserializer, organizationResourceSerializer, organizationResourceDeserializer, _organizationResourceListResultDeserializer, } from "../../models/models.js";
4
- import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
3
+ import { errorResponseDeserializer, organizationResourceSerializer, organizationResourceDeserializer, organizationResourceUpdateSerializer, _organizationResourceListResultDeserializer, } from "../../models/models.js";
5
4
  import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
5
+ import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
6
6
  import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
7
7
  import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
8
8
  export function _listBySubscriptionSend(context, options = {
@@ -105,7 +105,7 @@ export function _updateSend(context, resourceGroupName, organizationName, proper
105
105
  }, {
106
106
  allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
107
107
  });
108
- return context.path(path).patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: organizationResourceSerializer(properties) }));
108
+ return context.path(path).patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: organizationResourceUpdateSerializer(properties) }));
109
109
  }
110
110
  export async function _updateDeserialize(result) {
111
111
  const expectedStatuses = ["200", "202"];
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/organizations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,8BAA8B,EAC9B,gCAAgC,EAEhC,2CAA2C,GAC5C,MAAM,wBAAwB,CAAC;AAShC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,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;AAGjC,MAAM,UAAU,uBAAuB,CACrC,OAAe,EACf,UAAyD;IACvD,cAAc,EAAE,EAAE;CACnB;;IAED,MAAM,IAAI,GAAG,iBAAiB,CAC5B,uFAAuF,EACvF;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,0CAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,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AAP,OAAO,uBAAP,OAAO,CAAE,cAAc,0CAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,iCACxB,mCAAmC,CAAC,OAAO,CAAC,KAC/C,OAAO,kBACL,MAAM,EAAE,kBAAkB,IACvB,MAAA,OAAO,CAAC,cAAc,0CAAE,OAAO,KAEpC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,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,iCAAiC;AACjC,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,gBAAwB,EACxB,UAA0C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEhE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AtlasContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n OrganizationResource,\n organizationResourceSerializer,\n organizationResourceDeserializer,\n _OrganizationResourceListResult,\n _organizationResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n OrganizationsListBySubscriptionOptionalParams,\n OrganizationsListByResourceGroupOptionalParams,\n OrganizationsDeleteOptionalParams,\n OrganizationsUpdateOptionalParams,\n OrganizationsCreateOrUpdateOptionalParams,\n OrganizationsGetOptionalParams,\n} from \"./options.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.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\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: OrganizationsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/MongoDB.Atlas/organizations{?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<_OrganizationResourceListResult> {\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 _organizationResourceListResultDeserializer(result.body);\n}\n\n/** List OrganizationResource resources by subscription ID */\nexport function listBySubscription(\n context: Client,\n options: OrganizationsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<OrganizationResource> {\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: OrganizationsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/organizations{?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<_OrganizationResourceListResult> {\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 _organizationResourceListResultDeserializer(result.body);\n}\n\n/** List OrganizationResource resources by resource group */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: OrganizationsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<OrganizationResource> {\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 organizationName: string,\n options: OrganizationsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/organizations/{organizationName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n organizationName: organizationName,\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 = [\"202\", \"204\", \"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;\n}\n\n/** Delete a OrganizationResource */\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 function $delete(\n context: Client,\n resourceGroupName: string,\n organizationName: string,\n options: OrganizationsDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, organizationName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n organizationName: string,\n properties: OrganizationResource,\n options: OrganizationsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/organizations/{organizationName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n organizationName: organizationName,\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: organizationResourceSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<OrganizationResource> {\n const expectedStatuses = [\"200\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return organizationResourceDeserializer(result.body);\n}\n\n/** Update a OrganizationResource */\nexport function update(\n context: Client,\n resourceGroupName: string,\n organizationName: string,\n properties: OrganizationResource,\n options: OrganizationsUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<OrganizationResource>, OrganizationResource> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, organizationName, properties, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<OrganizationResource>, OrganizationResource>;\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n organizationName: string,\n resource: OrganizationResource,\n options: OrganizationsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/organizations/{organizationName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n organizationName: organizationName,\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: organizationResourceSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<OrganizationResource> {\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 organizationResourceDeserializer(result.body);\n}\n\n/** Create a OrganizationResource */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n organizationName: string,\n resource: OrganizationResource,\n options: OrganizationsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<OrganizationResource>, OrganizationResource> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, organizationName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<OrganizationResource>, OrganizationResource>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n organizationName: string,\n options: OrganizationsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/organizations/{organizationName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n organizationName: organizationName,\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<OrganizationResource> {\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 organizationResourceDeserializer(result.body);\n}\n\n/** Get a OrganizationResource */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n organizationName: string,\n options: OrganizationsGetOptionalParams = { requestOptions: {} },\n): Promise<OrganizationResource> {\n const result = await _getSend(context, resourceGroupName, organizationName, options);\n return _getDeserialize(result);\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/organizations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,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ACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,iCAAiC;AACjC,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,gBAAwB,EACxB,UAA0C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEhE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AtlasContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n OrganizationResource,\n organizationResourceSerializer,\n organizationResourceDeserializer,\n OrganizationResourceUpdate,\n organizationResourceUpdateSerializer,\n _OrganizationResourceListResult,\n _organizationResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n OrganizationsListBySubscriptionOptionalParams,\n OrganizationsListByResourceGroupOptionalParams,\n OrganizationsDeleteOptionalParams,\n OrganizationsUpdateOptionalParams,\n OrganizationsCreateOrUpdateOptionalParams,\n OrganizationsGetOptionalParams,\n} from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: OrganizationsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/MongoDB.Atlas/organizations{?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<_OrganizationResourceListResult> {\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 _organizationResourceListResultDeserializer(result.body);\n}\n\n/** List OrganizationResource resources by subscription ID */\nexport function listBySubscription(\n context: Client,\n options: OrganizationsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<OrganizationResource> {\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: OrganizationsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/organizations{?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<_OrganizationResourceListResult> {\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 _organizationResourceListResultDeserializer(result.body);\n}\n\n/** List OrganizationResource resources by resource group */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: OrganizationsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<OrganizationResource> {\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 organizationName: string,\n options: OrganizationsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/organizations/{organizationName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n organizationName: organizationName,\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 = [\"202\", \"204\", \"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;\n}\n\n/** Delete a OrganizationResource */\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 function $delete(\n context: Client,\n resourceGroupName: string,\n organizationName: string,\n options: OrganizationsDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, organizationName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n organizationName: string,\n properties: OrganizationResourceUpdate,\n options: OrganizationsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/organizations/{organizationName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n organizationName: organizationName,\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: organizationResourceUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<OrganizationResource> {\n const expectedStatuses = [\"200\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return organizationResourceDeserializer(result.body);\n}\n\n/** Update a OrganizationResource */\nexport function update(\n context: Client,\n resourceGroupName: string,\n organizationName: string,\n properties: OrganizationResourceUpdate,\n options: OrganizationsUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<OrganizationResource>, OrganizationResource> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, organizationName, properties, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<OrganizationResource>, OrganizationResource>;\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n organizationName: string,\n resource: OrganizationResource,\n options: OrganizationsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/organizations/{organizationName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n organizationName: organizationName,\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: organizationResourceSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<OrganizationResource> {\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 organizationResourceDeserializer(result.body);\n}\n\n/** Create a OrganizationResource */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n organizationName: string,\n resource: OrganizationResource,\n options: OrganizationsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<OrganizationResource>, OrganizationResource> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, organizationName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<OrganizationResource>, OrganizationResource>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n organizationName: string,\n options: OrganizationsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/organizations/{organizationName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n organizationName: organizationName,\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<OrganizationResource> {\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 organizationResourceDeserializer(result.body);\n}\n\n/** Get a OrganizationResource */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n organizationName: string,\n options: OrganizationsGetOptionalParams = { requestOptions: {} },\n): Promise<OrganizationResource> {\n const result = await _getSend(context, resourceGroupName, organizationName, options);\n return _getDeserialize(result);\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { AtlasContext } from "../../api/atlasContext.js";
2
- import { OrganizationResource } from "../../models/models.js";
2
+ import { OrganizationResource, OrganizationResourceUpdate } from "../../models/models.js";
3
3
  import { OrganizationsListBySubscriptionOptionalParams, OrganizationsListByResourceGroupOptionalParams, OrganizationsDeleteOptionalParams, OrganizationsUpdateOptionalParams, OrganizationsCreateOrUpdateOptionalParams, OrganizationsGetOptionalParams } from "../../api/organizations/options.js";
4
4
  import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
5
  import { PollerLike, OperationState } from "@azure/core-lro";
@@ -17,7 +17,7 @@ export interface OrganizationsOperations {
17
17
  */
18
18
  delete: (resourceGroupName: string, organizationName: string, options?: OrganizationsDeleteOptionalParams) => PollerLike<OperationState<void>, void>;
19
19
  /** Update a OrganizationResource */
20
- update: (resourceGroupName: string, organizationName: string, properties: OrganizationResource, options?: OrganizationsUpdateOptionalParams) => PollerLike<OperationState<OrganizationResource>, OrganizationResource>;
20
+ update: (resourceGroupName: string, organizationName: string, properties: OrganizationResourceUpdate, options?: OrganizationsUpdateOptionalParams) => PollerLike<OperationState<OrganizationResource>, OrganizationResource>;
21
21
  /** Create a OrganizationResource */
22
22
  createOrUpdate: (resourceGroupName: string, organizationName: string, resource: OrganizationResource, options?: OrganizationsCreateOrUpdateOptionalParams) => PollerLike<OperationState<OrganizationResource>, OrganizationResource>;
23
23
  /** Get a OrganizationResource */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/organizations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAYlC,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,GACJ,MAAM,uCAAuC,CAAC;AAgD/C,SAAS,iBAAiB,CAAC,OAAqB;IAC9C,OAAO;QACL,kBAAkB,EAAE,CAAC,OAAuD,EAAE,EAAE,CAC9E,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC;QACtC,mBAAmB,EAAE,CACnB,iBAAyB,EACzB,OAAwD,EACxD,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC;QAC7D,MAAM,EAAE,CACN,iBAAyB,EACzB,gBAAwB,EACxB,OAA2C,EAC3C,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,OAAO,CAAC;QACnE,MAAM,EAAE,CACN,iBAAyB,EACzB,gBAAwB,EACxB,UAAgC,EAChC,OAA2C,EAC3C,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,UAAU,EAAE,OAAO,CAAC;QAC9E,cAAc,EAAE,CACd,iBAAyB,EACzB,gBAAwB,EACxB,QAA8B,EAC9B,OAAmD,EACnD,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,OAAO,CAAC;QACpF,GAAG,EAAE,CACH,iBAAyB,EACzB,gBAAwB,EACxB,OAAwC,EACxC,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,OAAO,CAAC;KAChE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,OAAqB;IAC/D,yBACK,iBAAiB,CAAC,OAAO,CAAC,EAC7B;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AtlasContext } from \"../../api/atlasContext.js\";\nimport { OrganizationResource } from \"../../models/models.js\";\nimport {\n OrganizationsListBySubscriptionOptionalParams,\n OrganizationsListByResourceGroupOptionalParams,\n OrganizationsDeleteOptionalParams,\n OrganizationsUpdateOptionalParams,\n OrganizationsCreateOrUpdateOptionalParams,\n OrganizationsGetOptionalParams,\n} from \"../../api/organizations/options.js\";\nimport {\n listBySubscription,\n listByResourceGroup,\n $delete,\n update,\n createOrUpdate,\n get,\n} from \"../../api/organizations/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a Organizations operations. */\nexport interface OrganizationsOperations {\n /** List OrganizationResource resources by subscription ID */\n listBySubscription: (\n options?: OrganizationsListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<OrganizationResource>;\n /** List OrganizationResource resources by resource group */\n listByResourceGroup: (\n resourceGroupName: string,\n options?: OrganizationsListByResourceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<OrganizationResource>;\n /** Delete a OrganizationResource */\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 organizationName: string,\n options?: OrganizationsDeleteOptionalParams,\n ) => PollerLike<OperationState<void>, void>;\n /** Update a OrganizationResource */\n update: (\n resourceGroupName: string,\n organizationName: string,\n properties: OrganizationResource,\n options?: OrganizationsUpdateOptionalParams,\n ) => PollerLike<OperationState<OrganizationResource>, OrganizationResource>;\n /** Create a OrganizationResource */\n createOrUpdate: (\n resourceGroupName: string,\n organizationName: string,\n resource: OrganizationResource,\n options?: OrganizationsCreateOrUpdateOptionalParams,\n ) => PollerLike<OperationState<OrganizationResource>, OrganizationResource>;\n /** Get a OrganizationResource */\n get: (\n resourceGroupName: string,\n organizationName: string,\n options?: OrganizationsGetOptionalParams,\n ) => Promise<OrganizationResource>;\n}\n\nfunction _getOrganizations(context: AtlasContext) {\n return {\n listBySubscription: (options?: OrganizationsListBySubscriptionOptionalParams) =>\n listBySubscription(context, options),\n listByResourceGroup: (\n resourceGroupName: string,\n options?: OrganizationsListByResourceGroupOptionalParams,\n ) => listByResourceGroup(context, resourceGroupName, options),\n delete: (\n resourceGroupName: string,\n organizationName: string,\n options?: OrganizationsDeleteOptionalParams,\n ) => $delete(context, resourceGroupName, organizationName, options),\n update: (\n resourceGroupName: string,\n organizationName: string,\n properties: OrganizationResource,\n options?: OrganizationsUpdateOptionalParams,\n ) => update(context, resourceGroupName, organizationName, properties, options),\n createOrUpdate: (\n resourceGroupName: string,\n organizationName: string,\n resource: OrganizationResource,\n options?: OrganizationsCreateOrUpdateOptionalParams,\n ) => createOrUpdate(context, resourceGroupName, organizationName, resource, options),\n get: (\n resourceGroupName: string,\n organizationName: string,\n options?: OrganizationsGetOptionalParams,\n ) => get(context, resourceGroupName, organizationName, options),\n };\n}\n\nexport function _getOrganizationsOperations(context: AtlasContext): OrganizationsOperations {\n return {\n ..._getOrganizations(context),\n };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/organizations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAYlC,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,GACJ,MAAM,uCAAuC,CAAC;AAgD/C,SAAS,iBAAiB,CAAC,OAAqB;IAC9C,OAAO;QACL,kBAAkB,EAAE,CAAC,OAAuD,EAAE,EAAE,CAC9E,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC;QACtC,mBAAmB,EAAE,CACnB,iBAAyB,EACzB,OAAwD,EACxD,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC;QAC7D,MAAM,EAAE,CACN,iBAAyB,EACzB,gBAAwB,EACxB,OAA2C,EAC3C,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,OAAO,CAAC;QACnE,MAAM,EAAE,CACN,iBAAyB,EACzB,gBAAwB,EACxB,UAAsC,EACtC,OAA2C,EAC3C,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,UAAU,EAAE,OAAO,CAAC;QAC9E,cAAc,EAAE,CACd,iBAAyB,EACzB,gBAAwB,EACxB,QAA8B,EAC9B,OAAmD,EACnD,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,OAAO,CAAC;QACpF,GAAG,EAAE,CACH,iBAAyB,EACzB,gBAAwB,EACxB,OAAwC,EACxC,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,OAAO,CAAC;KAChE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,OAAqB;IAC/D,yBACK,iBAAiB,CAAC,OAAO,CAAC,EAC7B;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AtlasContext } from \"../../api/atlasContext.js\";\nimport { OrganizationResource, OrganizationResourceUpdate } from \"../../models/models.js\";\nimport {\n OrganizationsListBySubscriptionOptionalParams,\n OrganizationsListByResourceGroupOptionalParams,\n OrganizationsDeleteOptionalParams,\n OrganizationsUpdateOptionalParams,\n OrganizationsCreateOrUpdateOptionalParams,\n OrganizationsGetOptionalParams,\n} from \"../../api/organizations/options.js\";\nimport {\n listBySubscription,\n listByResourceGroup,\n $delete,\n update,\n createOrUpdate,\n get,\n} from \"../../api/organizations/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a Organizations operations. */\nexport interface OrganizationsOperations {\n /** List OrganizationResource resources by subscription ID */\n listBySubscription: (\n options?: OrganizationsListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<OrganizationResource>;\n /** List OrganizationResource resources by resource group */\n listByResourceGroup: (\n resourceGroupName: string,\n options?: OrganizationsListByResourceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<OrganizationResource>;\n /** Delete a OrganizationResource */\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 organizationName: string,\n options?: OrganizationsDeleteOptionalParams,\n ) => PollerLike<OperationState<void>, void>;\n /** Update a OrganizationResource */\n update: (\n resourceGroupName: string,\n organizationName: string,\n properties: OrganizationResourceUpdate,\n options?: OrganizationsUpdateOptionalParams,\n ) => PollerLike<OperationState<OrganizationResource>, OrganizationResource>;\n /** Create a OrganizationResource */\n createOrUpdate: (\n resourceGroupName: string,\n organizationName: string,\n resource: OrganizationResource,\n options?: OrganizationsCreateOrUpdateOptionalParams,\n ) => PollerLike<OperationState<OrganizationResource>, OrganizationResource>;\n /** Get a OrganizationResource */\n get: (\n resourceGroupName: string,\n organizationName: string,\n options?: OrganizationsGetOptionalParams,\n ) => Promise<OrganizationResource>;\n}\n\nfunction _getOrganizations(context: AtlasContext) {\n return {\n listBySubscription: (options?: OrganizationsListBySubscriptionOptionalParams) =>\n listBySubscription(context, options),\n listByResourceGroup: (\n resourceGroupName: string,\n options?: OrganizationsListByResourceGroupOptionalParams,\n ) => listByResourceGroup(context, resourceGroupName, options),\n delete: (\n resourceGroupName: string,\n organizationName: string,\n options?: OrganizationsDeleteOptionalParams,\n ) => $delete(context, resourceGroupName, organizationName, options),\n update: (\n resourceGroupName: string,\n organizationName: string,\n properties: OrganizationResourceUpdate,\n options?: OrganizationsUpdateOptionalParams,\n ) => update(context, resourceGroupName, organizationName, properties, options),\n createOrUpdate: (\n resourceGroupName: string,\n organizationName: string,\n resource: OrganizationResource,\n options?: OrganizationsCreateOrUpdateOptionalParams,\n ) => createOrUpdate(context, resourceGroupName, organizationName, resource, options),\n get: (\n resourceGroupName: string,\n organizationName: string,\n options?: OrganizationsGetOptionalParams,\n ) => get(context, resourceGroupName, organizationName, options),\n };\n}\n\nexport function _getOrganizationsOperations(context: AtlasContext): OrganizationsOperations {\n return {\n ..._getOrganizations(context),\n };\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  import { PageSettings, ContinuablePage, PagedAsyncIterableIterator } from "./static-helpers/pagingHelpers.js";
2
2
  export { AtlasClient } from "./atlasClient.js";
3
3
  export { restorePoller, RestorePollerOptions } from "./restorePollerHelpers.js";
4
- export { Operation, OperationDisplay, KnownOrigin, Origin, KnownActionType, ActionType, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, OrganizationResource, OrganizationProperties, MarketplaceDetails, KnownMarketplaceSubscriptionStatus, MarketplaceSubscriptionStatus, OfferDetails, UserDetails, KnownResourceProvisioningState, ResourceProvisioningState, PartnerProperties, ManagedServiceIdentity, KnownManagedServiceIdentityType, ManagedServiceIdentityType, UserAssignedIdentity, TrackedResource, Resource, SystemData, KnownCreatedByType, CreatedByType, KnownVersions, } from "./models/index.js";
4
+ export { Operation, OperationDisplay, KnownOrigin, Origin, KnownActionType, ActionType, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, OrganizationResource, OrganizationProperties, MarketplaceDetails, KnownMarketplaceSubscriptionStatus, MarketplaceSubscriptionStatus, OfferDetails, UserDetails, KnownResourceProvisioningState, ResourceProvisioningState, PartnerProperties, ManagedServiceIdentity, KnownManagedServiceIdentityType, ManagedServiceIdentityType, UserAssignedIdentity, TrackedResource, Resource, SystemData, KnownCreatedByType, CreatedByType, OrganizationResourceUpdate, OrganizationResourceUpdateProperties, KnownVersions, } from "./models/index.js";
5
5
  export { AtlasClientOptionalParams } from "./api/index.js";
6
6
  export { OperationsListOptionalParams } from "./api/operations/index.js";
7
7
  export { OrganizationsListBySubscriptionOptionalParams, OrganizationsListByResourceGroupOptionalParams, OrganizationsDeleteOptionalParams, OrganizationsUpdateOptionalParams, OrganizationsCreateOrUpdateOptionalParams, OrganizationsGetOptionalParams, } from "./api/organizations/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAwB,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAGL,WAAW,EAEX,eAAe,EAQf,kCAAkC,EAIlC,8BAA8B,EAI9B,+BAA+B,EAM/B,kBAAkB,EAElB,aAAa,GACd,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 { AtlasClient } from \"./atlasClient.js\";\nexport { restorePoller, RestorePollerOptions } from \"./restorePollerHelpers.js\";\nexport {\n Operation,\n OperationDisplay,\n KnownOrigin,\n Origin,\n KnownActionType,\n ActionType,\n ErrorResponse,\n ErrorDetail,\n ErrorAdditionalInfo,\n OrganizationResource,\n OrganizationProperties,\n MarketplaceDetails,\n KnownMarketplaceSubscriptionStatus,\n MarketplaceSubscriptionStatus,\n OfferDetails,\n UserDetails,\n KnownResourceProvisioningState,\n ResourceProvisioningState,\n PartnerProperties,\n ManagedServiceIdentity,\n KnownManagedServiceIdentityType,\n ManagedServiceIdentityType,\n UserAssignedIdentity,\n TrackedResource,\n Resource,\n SystemData,\n KnownCreatedByType,\n CreatedByType,\n KnownVersions,\n} from \"./models/index.js\";\nexport { AtlasClientOptionalParams } from \"./api/index.js\";\nexport { OperationsListOptionalParams } from \"./api/operations/index.js\";\nexport {\n OrganizationsListBySubscriptionOptionalParams,\n OrganizationsListByResourceGroupOptionalParams,\n OrganizationsDeleteOptionalParams,\n OrganizationsUpdateOptionalParams,\n OrganizationsCreateOrUpdateOptionalParams,\n OrganizationsGetOptionalParams,\n} from \"./api/organizations/index.js\";\nexport { OperationsOperations, OrganizationsOperations } 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;AAQlC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAwB,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAGL,WAAW,EAEX,eAAe,EAQf,kCAAkC,EAIlC,8BAA8B,EAI9B,+BAA+B,EAM/B,kBAAkB,EAIlB,aAAa,GACd,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 { AtlasClient } from \"./atlasClient.js\";\nexport { restorePoller, RestorePollerOptions } from \"./restorePollerHelpers.js\";\nexport {\n Operation,\n OperationDisplay,\n KnownOrigin,\n Origin,\n KnownActionType,\n ActionType,\n ErrorResponse,\n ErrorDetail,\n ErrorAdditionalInfo,\n OrganizationResource,\n OrganizationProperties,\n MarketplaceDetails,\n KnownMarketplaceSubscriptionStatus,\n MarketplaceSubscriptionStatus,\n OfferDetails,\n UserDetails,\n KnownResourceProvisioningState,\n ResourceProvisioningState,\n PartnerProperties,\n ManagedServiceIdentity,\n KnownManagedServiceIdentityType,\n ManagedServiceIdentityType,\n UserAssignedIdentity,\n TrackedResource,\n Resource,\n SystemData,\n KnownCreatedByType,\n CreatedByType,\n OrganizationResourceUpdate,\n OrganizationResourceUpdateProperties,\n KnownVersions,\n} from \"./models/index.js\";\nexport { AtlasClientOptionalParams } from \"./api/index.js\";\nexport { OperationsListOptionalParams } from \"./api/operations/index.js\";\nexport {\n OrganizationsListBySubscriptionOptionalParams,\n OrganizationsListByResourceGroupOptionalParams,\n OrganizationsDeleteOptionalParams,\n OrganizationsUpdateOptionalParams,\n OrganizationsCreateOrUpdateOptionalParams,\n OrganizationsGetOptionalParams,\n} from \"./api/organizations/index.js\";\nexport { OperationsOperations, OrganizationsOperations } from \"./classic/index.js\";\nexport { PageSettings, ContinuablePage, PagedAsyncIterableIterator };\n"]}
@@ -1,2 +1,2 @@
1
- export { Operation, OperationDisplay, KnownOrigin, Origin, KnownActionType, ActionType, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, OrganizationResource, OrganizationProperties, MarketplaceDetails, KnownMarketplaceSubscriptionStatus, MarketplaceSubscriptionStatus, OfferDetails, UserDetails, KnownResourceProvisioningState, ResourceProvisioningState, PartnerProperties, ManagedServiceIdentity, KnownManagedServiceIdentityType, ManagedServiceIdentityType, UserAssignedIdentity, TrackedResource, Resource, SystemData, KnownCreatedByType, CreatedByType, KnownVersions, } from "./models.js";
1
+ export { Operation, OperationDisplay, KnownOrigin, Origin, KnownActionType, ActionType, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, OrganizationResource, OrganizationProperties, MarketplaceDetails, KnownMarketplaceSubscriptionStatus, MarketplaceSubscriptionStatus, OfferDetails, UserDetails, KnownResourceProvisioningState, ResourceProvisioningState, PartnerProperties, ManagedServiceIdentity, KnownManagedServiceIdentityType, ManagedServiceIdentityType, UserAssignedIdentity, TrackedResource, Resource, SystemData, KnownCreatedByType, CreatedByType, OrganizationResourceUpdate, OrganizationResourceUpdateProperties, KnownVersions, } from "./models.js";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAGL,WAAW,EAEX,eAAe,EAQf,kCAAkC,EAIlC,8BAA8B,EAI9B,+BAA+B,EAM/B,kBAAkB,EAElB,aAAa,GACd,MAAM,aAAa,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n Operation,\n OperationDisplay,\n KnownOrigin,\n Origin,\n KnownActionType,\n ActionType,\n ErrorResponse,\n ErrorDetail,\n ErrorAdditionalInfo,\n OrganizationResource,\n OrganizationProperties,\n MarketplaceDetails,\n KnownMarketplaceSubscriptionStatus,\n MarketplaceSubscriptionStatus,\n OfferDetails,\n UserDetails,\n KnownResourceProvisioningState,\n ResourceProvisioningState,\n PartnerProperties,\n ManagedServiceIdentity,\n KnownManagedServiceIdentityType,\n ManagedServiceIdentityType,\n UserAssignedIdentity,\n TrackedResource,\n Resource,\n SystemData,\n KnownCreatedByType,\n CreatedByType,\n KnownVersions,\n} from \"./models.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAGL,WAAW,EAEX,eAAe,EAQf,kCAAkC,EAIlC,8BAA8B,EAI9B,+BAA+B,EAM/B,kBAAkB,EAIlB,aAAa,GACd,MAAM,aAAa,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n Operation,\n OperationDisplay,\n KnownOrigin,\n Origin,\n KnownActionType,\n ActionType,\n ErrorResponse,\n ErrorDetail,\n ErrorAdditionalInfo,\n OrganizationResource,\n OrganizationProperties,\n MarketplaceDetails,\n KnownMarketplaceSubscriptionStatus,\n MarketplaceSubscriptionStatus,\n OfferDetails,\n UserDetails,\n KnownResourceProvisioningState,\n ResourceProvisioningState,\n PartnerProperties,\n ManagedServiceIdentity,\n KnownManagedServiceIdentityType,\n ManagedServiceIdentityType,\n UserAssignedIdentity,\n TrackedResource,\n Resource,\n SystemData,\n KnownCreatedByType,\n CreatedByType,\n OrganizationResourceUpdate,\n OrganizationResourceUpdateProperties,\n KnownVersions,\n} from \"./models.js\";\n"]}
@@ -92,13 +92,9 @@ export interface ErrorAdditionalInfo {
92
92
  /** The additional info type. */
93
93
  readonly type?: string;
94
94
  /** The additional info. */
95
- readonly info?: Record<string, any>;
95
+ readonly info?: any;
96
96
  }
97
97
  export declare function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo;
98
- /** model interface _ErrorAdditionalInfoInfo */
99
- export interface _ErrorAdditionalInfoInfo {
100
- }
101
- export declare function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo;
102
98
  /** The resource model definition for an Azure Organization */
103
99
  export interface OrganizationResource extends TrackedResource {
104
100
  /** The resource-specific properties for this resource. */
@@ -322,6 +318,24 @@ export declare enum KnownCreatedByType {
322
318
  * **Key**: The entity was created by a key.
323
319
  */
324
320
  export type CreatedByType = string;
321
+ /** The type used for update operations of the OrganizationResource. */
322
+ export interface OrganizationResourceUpdate {
323
+ /** The managed service identities assigned to this resource. */
324
+ identity?: ManagedServiceIdentity;
325
+ /** Resource tags. */
326
+ tags?: Record<string, string>;
327
+ /** The resource-specific properties for this resource. */
328
+ properties?: OrganizationResourceUpdateProperties;
329
+ }
330
+ export declare function organizationResourceUpdateSerializer(item: OrganizationResourceUpdate): any;
331
+ /** The updatable properties of the OrganizationResource. */
332
+ export interface OrganizationResourceUpdateProperties {
333
+ /** Details of the user. */
334
+ user?: UserDetails;
335
+ /** MongoDB properties */
336
+ partnerProperties?: PartnerProperties;
337
+ }
338
+ export declare function organizationResourceUpdatePropertiesSerializer(item: OrganizationResourceUpdateProperties): any;
325
339
  /** The response of a OrganizationResource list operation. */
326
340
  export interface _OrganizationResourceListResult {
327
341
  /** The OrganizationResource items on this page */
@@ -334,7 +348,7 @@ export declare function organizationResourceArraySerializer(result: Array<Organi
334
348
  export declare function organizationResourceArrayDeserializer(result: Array<OrganizationResource>): any[];
335
349
  /** Supported versions for the MongoDB.Atlas resource model */
336
350
  export declare enum KnownVersions {
337
- /** 2024-11-18 preview version */
338
- V20241118Preview = "2024-11-18-preview"
351
+ /** 2025-06-01 version */
352
+ V20250601 = "2025-06-01"
339
353
  }
340
354
  //# sourceMappingURL=models.d.ts.map
@@ -73,12 +73,9 @@ export function errorAdditionalInfoArrayDeserializer(result) {
73
73
  export function errorAdditionalInfoDeserializer(item) {
74
74
  return {
75
75
  type: item["type"],
76
- info: !item["info"] ? item["info"] : _errorAdditionalInfoInfoDeserializer(item["info"]),
76
+ info: item["info"],
77
77
  };
78
78
  }
79
- export function _errorAdditionalInfoInfoDeserializer(item) {
80
- return item;
81
- }
82
79
  export function organizationResourceSerializer(item) {
83
80
  return {
84
81
  tags: item["tags"],
@@ -304,6 +301,25 @@ export var KnownCreatedByType;
304
301
  /** The entity was created by a key. */
305
302
  KnownCreatedByType["Key"] = "Key";
306
303
  })(KnownCreatedByType || (KnownCreatedByType = {}));
304
+ export function organizationResourceUpdateSerializer(item) {
305
+ return {
306
+ identity: !item["identity"]
307
+ ? item["identity"]
308
+ : managedServiceIdentitySerializer(item["identity"]),
309
+ tags: item["tags"],
310
+ properties: !item["properties"]
311
+ ? item["properties"]
312
+ : organizationResourceUpdatePropertiesSerializer(item["properties"]),
313
+ };
314
+ }
315
+ export function organizationResourceUpdatePropertiesSerializer(item) {
316
+ return {
317
+ user: !item["user"] ? item["user"] : userDetailsSerializer(item["user"]),
318
+ partnerProperties: !item["partnerProperties"]
319
+ ? item["partnerProperties"]
320
+ : partnerPropertiesSerializer(item["partnerProperties"]),
321
+ };
322
+ }
307
323
  export function _organizationResourceListResultDeserializer(item) {
308
324
  return {
309
325
  value: organizationResourceArrayDeserializer(item["value"]),
@@ -323,7 +339,7 @@ export function organizationResourceArrayDeserializer(result) {
323
339
  /** Supported versions for the MongoDB.Atlas resource model */
324
340
  export var KnownVersions;
325
341
  (function (KnownVersions) {
326
- /** 2024-11-18 preview version */
327
- KnownVersions["V20241118Preview"] = "2024-11-18-preview";
342
+ /** 2025-06-01 version */
343
+ KnownVersions["V20250601"] = "2025-06-01";
328
344
  })(KnownVersions || (KnownVersions = {}));
329
345
  //# sourceMappingURL=models.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACxD,OAAO;QACL,KAAK,EAAE,0BAA0B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,MAAwB;IACjE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC;AAgBD,MAAM,UAAU,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;A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AM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,gCAAgC,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,8DAA8D;AAC9D,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,iCAAiC;IACjC,wDAAuC,CAAA;AACzC,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\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/** 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?: Record<string, any>;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: !item[\"info\"] ? item[\"info\"] : _errorAdditionalInfoInfoDeserializer(item[\"info\"]),\n };\n}\n\n/** model interface _ErrorAdditionalInfoInfo */\nexport interface _ErrorAdditionalInfoInfo {}\n\nexport function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo {\n return item;\n}\n\n/** The resource model definition for an Azure Organization */\nexport interface OrganizationResource extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: OrganizationProperties;\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentity;\n}\n\nexport function organizationResourceSerializer(item: OrganizationResource): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : organizationPropertiesSerializer(item[\"properties\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentitySerializer(item[\"identity\"]),\n };\n}\n\nexport function organizationResourceDeserializer(item: any): OrganizationResource {\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 : organizationPropertiesDeserializer(item[\"properties\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentityDeserializer(item[\"identity\"]),\n };\n}\n\n/** Properties specific to Organization */\nexport interface OrganizationProperties {\n /** Marketplace details of the resource. */\n marketplace: MarketplaceDetails;\n /** Details of the user. */\n user: UserDetails;\n /** Provisioning state of the resource. */\n readonly provisioningState?: ResourceProvisioningState;\n /** MongoDB properties */\n partnerProperties?: PartnerProperties;\n}\n\nexport function organizationPropertiesSerializer(item: OrganizationProperties): any {\n return {\n marketplace: marketplaceDetailsSerializer(item[\"marketplace\"]),\n user: userDetailsSerializer(item[\"user\"]),\n partnerProperties: !item[\"partnerProperties\"]\n ? item[\"partnerProperties\"]\n : partnerPropertiesSerializer(item[\"partnerProperties\"]),\n };\n}\n\nexport function organizationPropertiesDeserializer(item: any): OrganizationProperties {\n return {\n marketplace: marketplaceDetailsDeserializer(item[\"marketplace\"]),\n user: userDetailsDeserializer(item[\"user\"]),\n provisioningState: item[\"provisioningState\"],\n partnerProperties: !item[\"partnerProperties\"]\n ? item[\"partnerProperties\"]\n : partnerPropertiesDeserializer(item[\"partnerProperties\"]),\n };\n}\n\n/** Marketplace details for an organization */\nexport interface MarketplaceDetails {\n /** Azure subscription id for the the marketplace offer is purchased from */\n subscriptionId: string;\n /** Marketplace subscription status */\n readonly subscriptionStatus?: MarketplaceSubscriptionStatus;\n /** Offer details for the marketplace that is selected by the user */\n offerDetails: OfferDetails;\n}\n\nexport function marketplaceDetailsSerializer(item: MarketplaceDetails): any {\n return {\n subscriptionId: item[\"subscriptionId\"],\n offerDetails: offerDetailsSerializer(item[\"offerDetails\"]),\n };\n}\n\nexport function marketplaceDetailsDeserializer(item: any): MarketplaceDetails {\n return {\n subscriptionId: item[\"subscriptionId\"],\n subscriptionStatus: item[\"subscriptionStatus\"],\n offerDetails: offerDetailsDeserializer(item[\"offerDetails\"]),\n };\n}\n\n/** Marketplace subscription status of a resource. */\nexport enum KnownMarketplaceSubscriptionStatus {\n /** Purchased but not yet activated */\n PendingFulfillmentStart = \"PendingFulfillmentStart\",\n /** Marketplace subscription is activated */\n Subscribed = \"Subscribed\",\n /** This state indicates that a customer's payment for the Marketplace service was not received */\n Suspended = \"Suspended\",\n /** Customer has cancelled the subscription */\n Unsubscribed = \"Unsubscribed\",\n}\n\n/**\n * Marketplace subscription status of a resource. \\\n * {@link KnownMarketplaceSubscriptionStatus} can be used interchangeably with MarketplaceSubscriptionStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **PendingFulfillmentStart**: Purchased but not yet activated \\\n * **Subscribed**: Marketplace subscription is activated \\\n * **Suspended**: This state indicates that a customer's payment for the Marketplace service was not received \\\n * **Unsubscribed**: Customer has cancelled the subscription\n */\nexport type MarketplaceSubscriptionStatus = string;\n\n/** Offer details for the marketplace that is selected by the user */\nexport interface OfferDetails {\n /** Publisher Id for the marketplace offer */\n publisherId: string;\n /** Offer Id for the marketplace offer */\n offerId: string;\n /** Plan Id for the marketplace offer */\n planId: string;\n /** Plan Name for the marketplace offer */\n planName?: string;\n /** Plan Display Name for the marketplace offer */\n termUnit?: string;\n /** Plan Display Name for the marketplace offer */\n termId?: string;\n}\n\nexport function offerDetailsSerializer(item: OfferDetails): any {\n return {\n publisherId: item[\"publisherId\"],\n offerId: item[\"offerId\"],\n planId: item[\"planId\"],\n planName: item[\"planName\"],\n termUnit: item[\"termUnit\"],\n termId: item[\"termId\"],\n };\n}\n\nexport function offerDetailsDeserializer(item: any): OfferDetails {\n return {\n publisherId: item[\"publisherId\"],\n offerId: item[\"offerId\"],\n planId: item[\"planId\"],\n planName: item[\"planName\"],\n termUnit: item[\"termUnit\"],\n termId: item[\"termId\"],\n };\n}\n\n/** User details for an organization */\nexport interface UserDetails {\n /** First name of the user */\n firstName: string;\n /** Last name of the user */\n lastName: string;\n /** Email address of the user */\n emailAddress: string;\n /** User's principal name */\n upn?: string;\n /** User's phone number */\n phoneNumber?: string;\n /** Company Name */\n companyName?: string;\n}\n\nexport function userDetailsSerializer(item: UserDetails): any {\n return {\n firstName: item[\"firstName\"],\n lastName: item[\"lastName\"],\n emailAddress: item[\"emailAddress\"],\n upn: item[\"upn\"],\n phoneNumber: item[\"phoneNumber\"],\n companyName: item[\"companyName\"],\n };\n}\n\nexport function userDetailsDeserializer(item: any): UserDetails {\n return {\n firstName: item[\"firstName\"],\n lastName: item[\"lastName\"],\n emailAddress: item[\"emailAddress\"],\n upn: item[\"upn\"],\n phoneNumber: item[\"phoneNumber\"],\n companyName: item[\"companyName\"],\n };\n}\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/** MongoDB specific Properties */\nexport interface PartnerProperties {\n /** Organization Id in MongoDB system */\n organizationId?: string;\n /** Redirect URL for the MongoDB */\n redirectUrl?: string;\n /** Organization name in MongoDB system */\n organizationName: string;\n}\n\nexport function partnerPropertiesSerializer(item: PartnerProperties): any {\n return {\n organizationId: item[\"organizationId\"],\n redirectUrl: item[\"redirectUrl\"],\n organizationName: item[\"organizationName\"],\n };\n}\n\nexport function partnerPropertiesDeserializer(item: any): PartnerProperties {\n return {\n organizationId: item[\"organizationId\"],\n redirectUrl: item[\"redirectUrl\"],\n organizationName: item[\"organizationName\"],\n };\n}\n\n/** Managed service identity (system assigned and/or user assigned identities) */\nexport interface ManagedServiceIdentity {\n /** The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly principalId?: string;\n /** The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly tenantId?: string;\n /** The type of managed identity assigned to this resource. */\n type: ManagedServiceIdentityType;\n /** The identities assigned to this resource by the user. */\n userAssignedIdentities?: Record<string, UserAssignedIdentity | null>;\n}\n\nexport function managedServiceIdentitySerializer(item: ManagedServiceIdentity): any {\n return {\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\nexport function managedServiceIdentityDeserializer(item: any): ManagedServiceIdentity {\n return {\n principalId: item[\"principalId\"],\n tenantId: item[\"tenantId\"],\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\n/** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */\nexport enum KnownManagedServiceIdentityType {\n /** No managed identity. */\n None = \"None\",\n /** System assigned managed identity. */\n SystemAssigned = \"SystemAssigned\",\n /** User assigned managed identity. */\n UserAssigned = \"UserAssigned\",\n /** System and user assigned managed identity. */\n SystemAssignedUserAssigned = \"SystemAssigned,UserAssigned\",\n}\n\n/**\n * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). \\\n * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None**: No managed identity. \\\n * **SystemAssigned**: System assigned managed identity. \\\n * **UserAssigned**: User assigned managed identity. \\\n * **SystemAssigned,UserAssigned**: System and user assigned managed identity.\n */\nexport type ManagedServiceIdentityType = string;\n\n/** User assigned identity properties */\nexport interface UserAssignedIdentity {\n /** The principal ID of the assigned identity. */\n readonly principalId?: string;\n /** The client ID of the assigned identity. */\n readonly clientId?: string;\n}\n\nexport function userAssignedIdentitySerializer(item: UserAssignedIdentity): any {\n return item;\n}\n\nexport function userAssignedIdentityDeserializer(item: any): UserAssignedIdentity {\n return {\n principalId: item[\"principalId\"],\n clientId: item[\"clientId\"],\n };\n}\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/** The response of a OrganizationResource list operation. */\nexport interface _OrganizationResourceListResult {\n /** The OrganizationResource items on this page */\n value: OrganizationResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _organizationResourceListResultDeserializer(\n item: any,\n): _OrganizationResourceListResult {\n return {\n value: organizationResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function organizationResourceArraySerializer(result: Array<OrganizationResource>): any[] {\n return result.map((item) => {\n return organizationResourceSerializer(item);\n });\n}\n\nexport function organizationResourceArrayDeserializer(result: Array<OrganizationResource>): any[] {\n return result.map((item) => {\n return organizationResourceDeserializer(item);\n });\n}\n\n/** Supported versions for the MongoDB.Atlas resource model */\nexport enum KnownVersions {\n /** 2024-11-18 preview version */\n V20241118Preview = \"2024-11-18-preview\",\n}\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACxD,OAAO;QACL,KAAK,EAAE,0BAA0B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,MAAwB;IACjE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC;AAgBD,MAAM,UAAU,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,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YAC3C,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC;YAC3B,CAAC,CAAC,2BAA2B,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;KAC3D,CAAC;AACJ,CAAC;AAUD,MAAM,UAAU,2CAA2C,CACzD,IAAS;IAET,OAAO;QACL,KAAK,EAAE,qCAAqC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3D,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mCAAmC,CAAC,MAAmC;IACrF,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,8BAA8B,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,qCAAqC,CAAC,MAAmC;IACvF,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,gCAAgC,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,8DAA8D;AAC9D,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,yBAAyB;IACzB,yCAAwB,CAAA;AAC1B,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\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/** 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 resource model definition for an Azure Organization */\nexport interface OrganizationResource extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: OrganizationProperties;\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentity;\n}\n\nexport function organizationResourceSerializer(item: OrganizationResource): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : organizationPropertiesSerializer(item[\"properties\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentitySerializer(item[\"identity\"]),\n };\n}\n\nexport function organizationResourceDeserializer(item: any): OrganizationResource {\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 : organizationPropertiesDeserializer(item[\"properties\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentityDeserializer(item[\"identity\"]),\n };\n}\n\n/** Properties specific to Organization */\nexport interface OrganizationProperties {\n /** Marketplace details of the resource. */\n marketplace: MarketplaceDetails;\n /** Details of the user. */\n user: UserDetails;\n /** Provisioning state of the resource. */\n readonly provisioningState?: ResourceProvisioningState;\n /** MongoDB properties */\n partnerProperties?: PartnerProperties;\n}\n\nexport function organizationPropertiesSerializer(item: OrganizationProperties): any {\n return {\n marketplace: marketplaceDetailsSerializer(item[\"marketplace\"]),\n user: userDetailsSerializer(item[\"user\"]),\n partnerProperties: !item[\"partnerProperties\"]\n ? item[\"partnerProperties\"]\n : partnerPropertiesSerializer(item[\"partnerProperties\"]),\n };\n}\n\nexport function organizationPropertiesDeserializer(item: any): OrganizationProperties {\n return {\n marketplace: marketplaceDetailsDeserializer(item[\"marketplace\"]),\n user: userDetailsDeserializer(item[\"user\"]),\n provisioningState: item[\"provisioningState\"],\n partnerProperties: !item[\"partnerProperties\"]\n ? item[\"partnerProperties\"]\n : partnerPropertiesDeserializer(item[\"partnerProperties\"]),\n };\n}\n\n/** Marketplace details for an organization */\nexport interface MarketplaceDetails {\n /** Azure subscription id for the the marketplace offer is purchased from */\n subscriptionId: string;\n /** Marketplace subscription status */\n readonly subscriptionStatus?: MarketplaceSubscriptionStatus;\n /** Offer details for the marketplace that is selected by the user */\n offerDetails: OfferDetails;\n}\n\nexport function marketplaceDetailsSerializer(item: MarketplaceDetails): any {\n return {\n subscriptionId: item[\"subscriptionId\"],\n offerDetails: offerDetailsSerializer(item[\"offerDetails\"]),\n };\n}\n\nexport function marketplaceDetailsDeserializer(item: any): MarketplaceDetails {\n return {\n subscriptionId: item[\"subscriptionId\"],\n subscriptionStatus: item[\"subscriptionStatus\"],\n offerDetails: offerDetailsDeserializer(item[\"offerDetails\"]),\n };\n}\n\n/** Marketplace subscription status of a resource. */\nexport enum KnownMarketplaceSubscriptionStatus {\n /** Purchased but not yet activated */\n PendingFulfillmentStart = \"PendingFulfillmentStart\",\n /** Marketplace subscription is activated */\n Subscribed = \"Subscribed\",\n /** This state indicates that a customer's payment for the Marketplace service was not received */\n Suspended = \"Suspended\",\n /** Customer has cancelled the subscription */\n Unsubscribed = \"Unsubscribed\",\n}\n\n/**\n * Marketplace subscription status of a resource. \\\n * {@link KnownMarketplaceSubscriptionStatus} can be used interchangeably with MarketplaceSubscriptionStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **PendingFulfillmentStart**: Purchased but not yet activated \\\n * **Subscribed**: Marketplace subscription is activated \\\n * **Suspended**: This state indicates that a customer's payment for the Marketplace service was not received \\\n * **Unsubscribed**: Customer has cancelled the subscription\n */\nexport type MarketplaceSubscriptionStatus = string;\n\n/** Offer details for the marketplace that is selected by the user */\nexport interface OfferDetails {\n /** Publisher Id for the marketplace offer */\n publisherId: string;\n /** Offer Id for the marketplace offer */\n offerId: string;\n /** Plan Id for the marketplace offer */\n planId: string;\n /** Plan Name for the marketplace offer */\n planName?: string;\n /** Plan Display Name for the marketplace offer */\n termUnit?: string;\n /** Plan Display Name for the marketplace offer */\n termId?: string;\n}\n\nexport function offerDetailsSerializer(item: OfferDetails): any {\n return {\n publisherId: item[\"publisherId\"],\n offerId: item[\"offerId\"],\n planId: item[\"planId\"],\n planName: item[\"planName\"],\n termUnit: item[\"termUnit\"],\n termId: item[\"termId\"],\n };\n}\n\nexport function offerDetailsDeserializer(item: any): OfferDetails {\n return {\n publisherId: item[\"publisherId\"],\n offerId: item[\"offerId\"],\n planId: item[\"planId\"],\n planName: item[\"planName\"],\n termUnit: item[\"termUnit\"],\n termId: item[\"termId\"],\n };\n}\n\n/** User details for an organization */\nexport interface UserDetails {\n /** First name of the user */\n firstName: string;\n /** Last name of the user */\n lastName: string;\n /** Email address of the user */\n emailAddress: string;\n /** User's principal name */\n upn?: string;\n /** User's phone number */\n phoneNumber?: string;\n /** Company Name */\n companyName?: string;\n}\n\nexport function userDetailsSerializer(item: UserDetails): any {\n return {\n firstName: item[\"firstName\"],\n lastName: item[\"lastName\"],\n emailAddress: item[\"emailAddress\"],\n upn: item[\"upn\"],\n phoneNumber: item[\"phoneNumber\"],\n companyName: item[\"companyName\"],\n };\n}\n\nexport function userDetailsDeserializer(item: any): UserDetails {\n return {\n firstName: item[\"firstName\"],\n lastName: item[\"lastName\"],\n emailAddress: item[\"emailAddress\"],\n upn: item[\"upn\"],\n phoneNumber: item[\"phoneNumber\"],\n companyName: item[\"companyName\"],\n };\n}\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/** MongoDB specific Properties */\nexport interface PartnerProperties {\n /** Organization Id in MongoDB system */\n organizationId?: string;\n /** Redirect URL for the MongoDB */\n redirectUrl?: string;\n /** Organization name in MongoDB system */\n organizationName: string;\n}\n\nexport function partnerPropertiesSerializer(item: PartnerProperties): any {\n return {\n organizationId: item[\"organizationId\"],\n redirectUrl: item[\"redirectUrl\"],\n organizationName: item[\"organizationName\"],\n };\n}\n\nexport function partnerPropertiesDeserializer(item: any): PartnerProperties {\n return {\n organizationId: item[\"organizationId\"],\n redirectUrl: item[\"redirectUrl\"],\n organizationName: item[\"organizationName\"],\n };\n}\n\n/** Managed service identity (system assigned and/or user assigned identities) */\nexport interface ManagedServiceIdentity {\n /** The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly principalId?: string;\n /** The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly tenantId?: string;\n /** The type of managed identity assigned to this resource. */\n type: ManagedServiceIdentityType;\n /** The identities assigned to this resource by the user. */\n userAssignedIdentities?: Record<string, UserAssignedIdentity | null>;\n}\n\nexport function managedServiceIdentitySerializer(item: ManagedServiceIdentity): any {\n return {\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\nexport function managedServiceIdentityDeserializer(item: any): ManagedServiceIdentity {\n return {\n principalId: item[\"principalId\"],\n tenantId: item[\"tenantId\"],\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\n/** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */\nexport enum KnownManagedServiceIdentityType {\n /** No managed identity. */\n None = \"None\",\n /** System assigned managed identity. */\n SystemAssigned = \"SystemAssigned\",\n /** User assigned managed identity. */\n UserAssigned = \"UserAssigned\",\n /** System and user assigned managed identity. */\n SystemAssignedUserAssigned = \"SystemAssigned,UserAssigned\",\n}\n\n/**\n * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). \\\n * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None**: No managed identity. \\\n * **SystemAssigned**: System assigned managed identity. \\\n * **UserAssigned**: User assigned managed identity. \\\n * **SystemAssigned,UserAssigned**: System and user assigned managed identity.\n */\nexport type ManagedServiceIdentityType = string;\n\n/** User assigned identity properties */\nexport interface UserAssignedIdentity {\n /** The principal ID of the assigned identity. */\n readonly principalId?: string;\n /** The client ID of the assigned identity. */\n readonly clientId?: string;\n}\n\nexport function userAssignedIdentitySerializer(item: UserAssignedIdentity): any {\n return item;\n}\n\nexport function userAssignedIdentityDeserializer(item: any): UserAssignedIdentity {\n return {\n principalId: item[\"principalId\"],\n clientId: item[\"clientId\"],\n };\n}\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/** The type used for update operations of the OrganizationResource. */\nexport interface OrganizationResourceUpdate {\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentity;\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The resource-specific properties for this resource. */\n properties?: OrganizationResourceUpdateProperties;\n}\n\nexport function organizationResourceUpdateSerializer(item: OrganizationResourceUpdate): any {\n return {\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentitySerializer(item[\"identity\"]),\n tags: item[\"tags\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : organizationResourceUpdatePropertiesSerializer(item[\"properties\"]),\n };\n}\n\n/** The updatable properties of the OrganizationResource. */\nexport interface OrganizationResourceUpdateProperties {\n /** Details of the user. */\n user?: UserDetails;\n /** MongoDB properties */\n partnerProperties?: PartnerProperties;\n}\n\nexport function organizationResourceUpdatePropertiesSerializer(\n item: OrganizationResourceUpdateProperties,\n): any {\n return {\n user: !item[\"user\"] ? item[\"user\"] : userDetailsSerializer(item[\"user\"]),\n partnerProperties: !item[\"partnerProperties\"]\n ? item[\"partnerProperties\"]\n : partnerPropertiesSerializer(item[\"partnerProperties\"]),\n };\n}\n\n/** The response of a OrganizationResource list operation. */\nexport interface _OrganizationResourceListResult {\n /** The OrganizationResource items on this page */\n value: OrganizationResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _organizationResourceListResultDeserializer(\n item: any,\n): _OrganizationResourceListResult {\n return {\n value: organizationResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function organizationResourceArraySerializer(result: Array<OrganizationResource>): any[] {\n return result.map((item) => {\n return organizationResourceSerializer(item);\n });\n}\n\nexport function organizationResourceArrayDeserializer(result: Array<OrganizationResource>): any[] {\n return result.map((item) => {\n return organizationResourceDeserializer(item);\n });\n}\n\n/** Supported versions for the MongoDB.Atlas resource model */\nexport enum KnownVersions {\n /** 2025-06-01 version */\n V20250601 = \"2025-06-01\",\n}\n"]}
@@ -142,7 +142,7 @@ export function expandUrlTemplate(template, context, option) {
142
142
  }
143
143
  let op;
144
144
  if (["+", "#", ".", "/", ";", "?", "&"].includes(expr[0])) {
145
- (op = expr[0]), (expr = expr.slice(1));
145
+ ((op = expr[0]), (expr = expr.slice(1)));
146
146
  }
147
147
  const varList = expr.split(/,/g);
148
148
  const result = [];