@azure/arm-devopsinfrastructure 1.0.0-alpha.20260302.1 → 1.0.0-alpha.20260303.2

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 (101) hide show
  1. package/dist/commonjs/api/devOpsInfrastructureContext.js +50 -38
  2. package/dist/commonjs/api/devOpsInfrastructureContext.js.map +7 -1
  3. package/dist/commonjs/api/imageVersions/index.js +45 -21
  4. package/dist/commonjs/api/imageVersions/index.js.map +7 -1
  5. package/dist/commonjs/api/index.js +40 -25
  6. package/dist/commonjs/api/index.js.map +7 -1
  7. package/dist/commonjs/api/operations/index.js +40 -21
  8. package/dist/commonjs/api/operations/index.js.map +7 -1
  9. package/dist/commonjs/api/options.js +15 -5
  10. package/dist/commonjs/api/options.js.map +7 -1
  11. package/dist/commonjs/api/pools/index.js +153 -109
  12. package/dist/commonjs/api/pools/index.js.map +7 -1
  13. package/dist/commonjs/api/resourceDetails/index.js +45 -21
  14. package/dist/commonjs/api/resourceDetails/index.js.map +7 -1
  15. package/dist/commonjs/api/sku/index.js +44 -21
  16. package/dist/commonjs/api/sku/index.js.map +7 -1
  17. package/dist/commonjs/api/subscriptionUsages/index.js +44 -21
  18. package/dist/commonjs/api/subscriptionUsages/index.js.map +7 -1
  19. package/dist/commonjs/classic/imageVersions/index.js +30 -14
  20. package/dist/commonjs/classic/imageVersions/index.js.map +7 -1
  21. package/dist/commonjs/classic/index.js +15 -5
  22. package/dist/commonjs/classic/index.js.map +7 -1
  23. package/dist/commonjs/classic/operations/index.js +30 -14
  24. package/dist/commonjs/classic/operations/index.js.map +7 -1
  25. package/dist/commonjs/classic/pools/index.js +35 -19
  26. package/dist/commonjs/classic/pools/index.js.map +7 -1
  27. package/dist/commonjs/classic/resourceDetails/index.js +30 -14
  28. package/dist/commonjs/classic/resourceDetails/index.js.map +7 -1
  29. package/dist/commonjs/classic/sku/index.js +30 -14
  30. package/dist/commonjs/classic/sku/index.js.map +7 -1
  31. package/dist/commonjs/classic/subscriptionUsages/index.js +30 -14
  32. package/dist/commonjs/classic/subscriptionUsages/index.js.map +7 -1
  33. package/dist/commonjs/devOpsInfrastructureClient.js +59 -46
  34. package/dist/commonjs/devOpsInfrastructureClient.js.map +7 -1
  35. package/dist/commonjs/helpers/serializerHelpers.js +39 -22
  36. package/dist/commonjs/helpers/serializerHelpers.js.map +7 -1
  37. package/dist/commonjs/index.js +42 -27
  38. package/dist/commonjs/index.js.map +7 -1
  39. package/dist/commonjs/logger.js +24 -8
  40. package/dist/commonjs/logger.js.map +7 -1
  41. package/dist/commonjs/models/index.js +38 -23
  42. package/dist/commonjs/models/index.js.map +7 -1
  43. package/dist/commonjs/models/models.js +801 -946
  44. package/dist/commonjs/models/models.js.map +7 -1
  45. package/dist/commonjs/restorePollerHelpers.js +93 -88
  46. package/dist/commonjs/restorePollerHelpers.js.map +7 -1
  47. package/dist/commonjs/static-helpers/pagingHelpers.js +105 -103
  48. package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -1
  49. package/dist/commonjs/static-helpers/pollingHelpers.js +82 -76
  50. package/dist/commonjs/static-helpers/pollingHelpers.js.map +7 -1
  51. package/dist/esm/api/devOpsInfrastructureContext.js +30 -34
  52. package/dist/esm/api/devOpsInfrastructureContext.js.map +7 -1
  53. package/dist/esm/api/imageVersions/index.js +36 -19
  54. package/dist/esm/api/imageVersions/index.js.map +7 -1
  55. package/dist/esm/api/index.js +30 -10
  56. package/dist/esm/api/index.js.map +7 -1
  57. package/dist/esm/api/operations/index.js +31 -19
  58. package/dist/esm/api/operations/index.js.map +7 -1
  59. package/dist/esm/api/options.js +0 -4
  60. package/dist/esm/api/options.js.map +7 -1
  61. package/dist/esm/api/pools/index.js +179 -124
  62. package/dist/esm/api/pools/index.js.map +7 -1
  63. package/dist/esm/api/resourceDetails/index.js +36 -19
  64. package/dist/esm/api/resourceDetails/index.js.map +7 -1
  65. package/dist/esm/api/sku/index.js +35 -19
  66. package/dist/esm/api/sku/index.js.map +7 -1
  67. package/dist/esm/api/subscriptionUsages/index.js +32 -18
  68. package/dist/esm/api/subscriptionUsages/index.js.map +7 -1
  69. package/dist/esm/classic/imageVersions/index.js +12 -11
  70. package/dist/esm/classic/imageVersions/index.js.map +7 -1
  71. package/dist/esm/classic/index.js +0 -4
  72. package/dist/esm/classic/index.js.map +7 -1
  73. package/dist/esm/classic/operations/index.js +12 -11
  74. package/dist/esm/classic/operations/index.js.map +7 -1
  75. package/dist/esm/classic/pools/index.js +25 -17
  76. package/dist/esm/classic/pools/index.js.map +7 -1
  77. package/dist/esm/classic/resourceDetails/index.js +12 -11
  78. package/dist/esm/classic/resourceDetails/index.js.map +7 -1
  79. package/dist/esm/classic/sku/index.js +12 -11
  80. package/dist/esm/classic/sku/index.js.map +7 -1
  81. package/dist/esm/classic/subscriptionUsages/index.js +12 -11
  82. package/dist/esm/classic/subscriptionUsages/index.js.map +7 -1
  83. package/dist/esm/devOpsInfrastructureClient.js +46 -40
  84. package/dist/esm/devOpsInfrastructureClient.js.map +7 -1
  85. package/dist/esm/helpers/serializerHelpers.js +21 -20
  86. package/dist/esm/helpers/serializerHelpers.js.map +7 -1
  87. package/dist/esm/index.js +40 -6
  88. package/dist/esm/index.js.map +7 -1
  89. package/dist/esm/logger.js +4 -4
  90. package/dist/esm/logger.js.map +7 -1
  91. package/dist/esm/models/index.js +36 -4
  92. package/dist/esm/models/index.js.map +7 -1
  93. package/dist/esm/models/models.js +985 -1038
  94. package/dist/esm/models/models.js.map +7 -1
  95. package/dist/esm/restorePollerHelpers.js +80 -85
  96. package/dist/esm/restorePollerHelpers.js.map +7 -1
  97. package/dist/esm/static-helpers/pagingHelpers.js +85 -99
  98. package/dist/esm/static-helpers/pagingHelpers.js.map +7 -1
  99. package/dist/esm/static-helpers/pollingHelpers.js +65 -73
  100. package/dist/esm/static-helpers/pollingHelpers.js.map +7 -1
  101. package/package.json +1 -19
@@ -1,40 +1,52 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.createDevOpsInfrastructure = createDevOpsInfrastructure;
6
- const logger_js_1 = require("../logger.js");
7
- const core_client_1 = require("@azure-rest/core-client");
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var devOpsInfrastructureContext_exports = {};
19
+ __export(devOpsInfrastructureContext_exports, {
20
+ createDevOpsInfrastructure: () => createDevOpsInfrastructure
21
+ });
22
+ module.exports = __toCommonJS(devOpsInfrastructureContext_exports);
23
+ var import_logger = require("../logger.js");
24
+ var import_core_client = require("@azure-rest/core-client");
8
25
  function createDevOpsInfrastructure(credential, options = {}) {
9
- const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;
10
- const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
11
- const userAgentInfo = `azsdk-js-arm-devopsinfrastructure/1.0.0-beta.1`;
12
- const userAgentPrefix = prefixFromOptions
13
- ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
14
- : `azsdk-js-api ${userAgentInfo}`;
15
- const { apiVersion: _, ...updatedOptions } = {
16
- ...options,
17
- userAgentOptions: { userAgentPrefix },
18
- loggingOptions: { logger: options.loggingOptions?.logger ?? logger_js_1.logger.info },
19
- credentials: {
20
- scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],
21
- },
22
- };
23
- const clientContext = (0, core_client_1.getClient)(endpointUrl, credential, updatedOptions);
24
- clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
25
- const apiVersion = options.apiVersion ?? "2024-10-19";
26
- clientContext.pipeline.addPolicy({
27
- name: "ClientApiVersionPolicy",
28
- sendRequest: (req, next) => {
29
- // Use the apiVersion defined in request url directly
30
- // Append one if there is no apiVersion and we have one at client options
31
- const url = new URL(req.url);
32
- if (!url.searchParams.get("api-version")) {
33
- req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
34
- }
35
- return next(req);
36
- },
37
- });
38
- return clientContext;
26
+ const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;
27
+ const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
28
+ const userAgentInfo = `azsdk-js-arm-devopsinfrastructure/1.0.0-beta.1`;
29
+ const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}` : `azsdk-js-api ${userAgentInfo}`;
30
+ const { apiVersion: _, ...updatedOptions } = {
31
+ ...options,
32
+ userAgentOptions: { userAgentPrefix },
33
+ loggingOptions: { logger: options.loggingOptions?.logger ?? import_logger.logger.info },
34
+ credentials: {
35
+ scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`]
36
+ }
37
+ };
38
+ const clientContext = (0, import_core_client.getClient)(endpointUrl, credential, updatedOptions);
39
+ clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
40
+ const apiVersion = options.apiVersion ?? "2024-10-19";
41
+ clientContext.pipeline.addPolicy({
42
+ name: "ClientApiVersionPolicy",
43
+ sendRequest: (req, next) => {
44
+ const url = new URL(req.url);
45
+ if (!url.searchParams.get("api-version")) {
46
+ req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
47
+ }
48
+ return next(req);
49
+ }
50
+ });
51
+ return clientContext;
39
52
  }
40
- //# sourceMappingURL=devOpsInfrastructureContext.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"devOpsInfrastructureContext.js","sourceRoot":"","sources":["../../../src/api/devOpsInfrastructureContext.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAgBlC,gEAqCC;AAnDD,4CAAsC;AAEtC,yDAA2E;AAY3E,SAAgB,0BAA0B,CACxC,UAA2B,EAC3B,UAAoD,EAAE;IAEtD,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,OAAO,IAAI,8BAA8B,CAAC;IAC1F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,gDAAgD,CAAC;IACvE,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,kBAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,GAAG,WAAW,WAAW,CAAC;SACnE;KACF,CAAC;IACF,MAAM,aAAa,GAAG,IAAA,uBAAS,EAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,aAAa,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAClE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACtD,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,aAAa,CAAC;AACvB,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 DevOpsInfrastructureContext extends Client {}\n\n/** Optional parameters for the client. */\nexport interface DevOpsInfrastructureClientOptionalParams 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 createDevOpsInfrastructure(\n credential: TokenCredential,\n options: DevOpsInfrastructureClientOptionalParams = {},\n): DevOpsInfrastructureContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-devopsinfrastructure/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-10-19\";\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;\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/devOpsInfrastructureContext.ts"],
4
+ "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 DevOpsInfrastructureContext extends Client {}\n\n/** Optional parameters for the client. */\nexport interface DevOpsInfrastructureClientOptionalParams 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 createDevOpsInfrastructure(\n credential: TokenCredential,\n options: DevOpsInfrastructureClientOptionalParams = {},\n): DevOpsInfrastructureContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-devopsinfrastructure/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-10-19\";\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;\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAAuB;AAEvB,yBAAiD;AAY1C,SAAS,2BACd,YACA,UAAoD,CAAC,GACxB;AAC7B,QAAM,cAAc,QAAQ,YAAY,QAAQ,WAAW;AAC3D,QAAM,oBAAoB,SAAS,kBAAkB;AACrD,QAAM,gBAAgB;AACtB,QAAM,kBAAkB,oBACpB,GAAG,iBAAiB,iBAAiB,aAAa,KAClD,gBAAgB,aAAa;AACjC,QAAM,EAAE,YAAY,GAAG,GAAG,eAAe,IAAI;AAAA,IAC3C,GAAG;AAAA,IACH,kBAAkB,EAAE,gBAAgB;AAAA,IACpC,gBAAgB,EAAE,QAAQ,QAAQ,gBAAgB,UAAU,qBAAO,KAAK;AAAA,IACxE,aAAa;AAAA,MACX,QAAQ,QAAQ,aAAa,UAAU,CAAC,GAAG,WAAW,WAAW;AAAA,IACnE;AAAA,EACF;AACA,QAAM,oBAAgB,8BAAU,aAAa,YAAY,cAAc;AACvE,gBAAc,SAAS,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAChE,QAAM,aAAa,QAAQ,cAAc;AACzC,gBAAc,SAAS,UAAU;AAAA,IAC/B,MAAM;AAAA,IACN,aAAa,CAAC,KAAK,SAAS;AAG1B,YAAM,MAAM,IAAI,IAAI,IAAI,GAAG;AAC3B,UAAI,CAAC,IAAI,aAAa,IAAI,aAAa,GAAG;AACxC,YAAI,MAAM,GAAG,IAAI,GAAG,GAClB,MAAM,KAAK,IAAI,aAAa,KAAK,CAAC,EAAE,SAAS,IAAI,MAAM,GACzD,eAAe,UAAU;AAAA,MAC3B;AAEA,aAAO,KAAK,GAAG;AAAA,IACjB;AAAA,EACF,CAAC;AACD,SAAO;AACT;",
6
+ "names": []
7
+ }
@@ -1,27 +1,51 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports._imageVersionsListByImageSend = _imageVersionsListByImageSend;
6
- exports._imageVersionsListByImageDeserialize = _imageVersionsListByImageDeserialize;
7
- exports.imageVersionsListByImage = imageVersionsListByImage;
8
- const models_js_1 = require("../../models/models.js");
9
- const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
10
- const core_client_1 = require("@azure-rest/core-client");
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var imageVersions_exports = {};
19
+ __export(imageVersions_exports, {
20
+ _imageVersionsListByImageDeserialize: () => _imageVersionsListByImageDeserialize,
21
+ _imageVersionsListByImageSend: () => _imageVersionsListByImageSend,
22
+ imageVersionsListByImage: () => imageVersionsListByImage
23
+ });
24
+ module.exports = __toCommonJS(imageVersions_exports);
25
+ var import_models = require("../../models/models.js");
26
+ var import_pagingHelpers = require("../../static-helpers/pagingHelpers.js");
27
+ var import_core_client = require("@azure-rest/core-client");
11
28
  function _imageVersionsListByImageSend(context, subscriptionId, resourceGroupName, imageName, options = { requestOptions: {} }) {
12
- return context
13
- .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/images/{imageName}/versions", subscriptionId, resourceGroupName, imageName)
14
- .get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
29
+ return context.path(
30
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/images/{imageName}/versions",
31
+ subscriptionId,
32
+ resourceGroupName,
33
+ imageName
34
+ ).get({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
15
35
  }
16
36
  async function _imageVersionsListByImageDeserialize(result) {
17
- const expectedStatuses = ["200"];
18
- if (!expectedStatuses.includes(result.status)) {
19
- throw (0, core_client_1.createRestError)(result);
20
- }
21
- return (0, models_js_1._imageVersionListResultDeserializer)(result.body);
37
+ const expectedStatuses = ["200"];
38
+ if (!expectedStatuses.includes(result.status)) {
39
+ throw (0, import_core_client.createRestError)(result);
40
+ }
41
+ return (0, import_models._imageVersionListResultDeserializer)(result.body);
22
42
  }
23
- /** List ImageVersion resources by Image */
24
43
  function imageVersionsListByImage(context, subscriptionId, resourceGroupName, imageName, options = { requestOptions: {} }) {
25
- return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _imageVersionsListByImageSend(context, subscriptionId, resourceGroupName, imageName, options), _imageVersionsListByImageDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
44
+ return (0, import_pagingHelpers.buildPagedAsyncIterator)(
45
+ context,
46
+ () => _imageVersionsListByImageSend(context, subscriptionId, resourceGroupName, imageName, options),
47
+ _imageVersionsListByImageDeserialize,
48
+ ["200"],
49
+ { itemName: "value", nextLinkName: "nextLink" }
50
+ );
26
51
  }
27
- //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/imageVersions/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAsBlC,sEAeC;AAED,oFASC;AAGD,4DAeC;AA5DD,sDAIgC;AAChC,4EAG+C;AAC/C,yDAKiC;AAEjC,SAAgB,6BAA6B,CAC3C,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,SAAiB,EACjB,UAAkD,EAAE,cAAc,EAAE,EAAE,EAAE;IAExE,OAAO,OAAO;SACX,IAAI,CACH,yIAAyI,EACzI,cAAc,EACd,iBAAiB,EACjB,SAAS,CACV;SACA,GAAG,CAAC,EAAE,GAAG,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,oCAAoC,CACxD,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,+CAAmC,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC1D,CAAC;AAED,2CAA2C;AAC3C,SAAgB,wBAAwB,CACtC,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,SAAiB,EACjB,UAAkD,EAAE,cAAc,EAAE,EAAE,EAAE;IAExE,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CACH,6BAA6B,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,OAAO,CAAC,EAC/F,oCAAoC,EACpC,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n DevOpsInfrastructureContext as Client,\n ImageVersionsListByImageOptionalParams,\n} from \"../index.js\";\nimport {\n _ImageVersionListResult,\n _imageVersionListResultDeserializer,\n ImageVersion,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _imageVersionsListByImageSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n imageName: string,\n options: ImageVersionsListByImageOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/images/{imageName}/versions\",\n subscriptionId,\n resourceGroupName,\n imageName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _imageVersionsListByImageDeserialize(\n result: PathUncheckedResponse,\n): Promise<_ImageVersionListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _imageVersionListResultDeserializer(result.body);\n}\n\n/** List ImageVersion resources by Image */\nexport function imageVersionsListByImage(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n imageName: string,\n options: ImageVersionsListByImageOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<ImageVersion> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _imageVersionsListByImageSend(context, subscriptionId, resourceGroupName, imageName, options),\n _imageVersionsListByImageDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/imageVersions/index.ts"],
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n DevOpsInfrastructureContext as Client,\n ImageVersionsListByImageOptionalParams,\n} from \"../index.js\";\nimport {\n _ImageVersionListResult,\n _imageVersionListResultDeserializer,\n ImageVersion,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _imageVersionsListByImageSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n imageName: string,\n options: ImageVersionsListByImageOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/images/{imageName}/versions\",\n subscriptionId,\n resourceGroupName,\n imageName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _imageVersionsListByImageDeserialize(\n result: PathUncheckedResponse,\n): Promise<_ImageVersionListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _imageVersionListResultDeserializer(result.body);\n}\n\n/** List ImageVersion resources by Image */\nexport function imageVersionsListByImage(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n imageName: string,\n options: ImageVersionsListByImageOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<ImageVersion> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _imageVersionsListByImageSend(context, subscriptionId, resourceGroupName, imageName, options),\n _imageVersionsListByImageDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,oBAIO;AACP,2BAGO;AACP,yBAKO;AAEA,SAAS,8BACd,SACA,gBACA,mBACA,WACA,UAAkD,EAAE,gBAAgB,CAAC,EAAE,GACrD;AAClB,SAAO,QACJ;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,EACC,IAAI,EAAE,OAAG,wDAAoC,OAAO,EAAE,CAAC;AAC5D;AAEA,eAAsB,qCACpB,QACkC;AAClC,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,cAAM,oCAAgB,MAAM;AAAA,EAC9B;AAEA,aAAO,mDAAoC,OAAO,IAAI;AACxD;AAGO,SAAS,yBACd,SACA,gBACA,mBACA,WACA,UAAkD,EAAE,gBAAgB,CAAC,EAAE,GAC7B;AAC1C,aAAO;AAAA,IACL;AAAA,IACA,MACE,8BAA8B,SAAS,gBAAgB,mBAAmB,WAAW,OAAO;AAAA,IAC9F;AAAA,IACA,CAAC,KAAK;AAAA,IACN,EAAE,UAAU,SAAS,cAAc,WAAW;AAAA,EAChD;AACF;",
6
+ "names": []
7
+ }
@@ -1,25 +1,40 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.subscriptionUsagesUsages = exports.skuListByLocation = exports.resourceDetailsListByPool = exports.poolsListBySubscription = exports.poolsListByResourceGroup = exports.poolsDelete = exports.poolsUpdate = exports.poolsCreateOrUpdate = exports.poolsGet = exports.operationsList = exports.imageVersionsListByImage = exports.createDevOpsInfrastructure = void 0;
6
- var devOpsInfrastructureContext_js_1 = require("./devOpsInfrastructureContext.js");
7
- Object.defineProperty(exports, "createDevOpsInfrastructure", { enumerable: true, get: function () { return devOpsInfrastructureContext_js_1.createDevOpsInfrastructure; } });
8
- var index_js_1 = require("./imageVersions/index.js");
9
- Object.defineProperty(exports, "imageVersionsListByImage", { enumerable: true, get: function () { return index_js_1.imageVersionsListByImage; } });
10
- var index_js_2 = require("./operations/index.js");
11
- Object.defineProperty(exports, "operationsList", { enumerable: true, get: function () { return index_js_2.operationsList; } });
12
- var index_js_3 = require("./pools/index.js");
13
- Object.defineProperty(exports, "poolsGet", { enumerable: true, get: function () { return index_js_3.poolsGet; } });
14
- Object.defineProperty(exports, "poolsCreateOrUpdate", { enumerable: true, get: function () { return index_js_3.poolsCreateOrUpdate; } });
15
- Object.defineProperty(exports, "poolsUpdate", { enumerable: true, get: function () { return index_js_3.poolsUpdate; } });
16
- Object.defineProperty(exports, "poolsDelete", { enumerable: true, get: function () { return index_js_3.poolsDelete; } });
17
- Object.defineProperty(exports, "poolsListByResourceGroup", { enumerable: true, get: function () { return index_js_3.poolsListByResourceGroup; } });
18
- Object.defineProperty(exports, "poolsListBySubscription", { enumerable: true, get: function () { return index_js_3.poolsListBySubscription; } });
19
- var index_js_4 = require("./resourceDetails/index.js");
20
- Object.defineProperty(exports, "resourceDetailsListByPool", { enumerable: true, get: function () { return index_js_4.resourceDetailsListByPool; } });
21
- var index_js_5 = require("./sku/index.js");
22
- Object.defineProperty(exports, "skuListByLocation", { enumerable: true, get: function () { return index_js_5.skuListByLocation; } });
23
- var index_js_6 = require("./subscriptionUsages/index.js");
24
- Object.defineProperty(exports, "subscriptionUsagesUsages", { enumerable: true, get: function () { return index_js_6.subscriptionUsagesUsages; } });
25
- //# sourceMappingURL=index.js.map
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var api_exports = {};
19
+ __export(api_exports, {
20
+ createDevOpsInfrastructure: () => import_devOpsInfrastructureContext.createDevOpsInfrastructure,
21
+ imageVersionsListByImage: () => import_imageVersions.imageVersionsListByImage,
22
+ operationsList: () => import_operations.operationsList,
23
+ poolsCreateOrUpdate: () => import_pools.poolsCreateOrUpdate,
24
+ poolsDelete: () => import_pools.poolsDelete,
25
+ poolsGet: () => import_pools.poolsGet,
26
+ poolsListByResourceGroup: () => import_pools.poolsListByResourceGroup,
27
+ poolsListBySubscription: () => import_pools.poolsListBySubscription,
28
+ poolsUpdate: () => import_pools.poolsUpdate,
29
+ resourceDetailsListByPool: () => import_resourceDetails.resourceDetailsListByPool,
30
+ skuListByLocation: () => import_sku.skuListByLocation,
31
+ subscriptionUsagesUsages: () => import_subscriptionUsages.subscriptionUsagesUsages
32
+ });
33
+ module.exports = __toCommonJS(api_exports);
34
+ var import_devOpsInfrastructureContext = require("./devOpsInfrastructureContext.js");
35
+ var import_imageVersions = require("./imageVersions/index.js");
36
+ var import_operations = require("./operations/index.js");
37
+ var import_pools = require("./pools/index.js");
38
+ var import_resourceDetails = require("./resourceDetails/index.js");
39
+ var import_sku = require("./sku/index.js");
40
+ var import_subscriptionUsages = require("./subscriptionUsages/index.js");
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,mFAI0C;AAHxC,4IAAA,0BAA0B,OAAA;AAiB5B,qDAAoE;AAA3D,oHAAA,wBAAwB,OAAA;AACjC,kDAAuD;AAA9C,0GAAA,cAAc,OAAA;AACvB,6CAO0B;AANxB,oGAAA,QAAQ,OAAA;AACR,+GAAA,mBAAmB,OAAA;AACnB,uGAAA,WAAW,OAAA;AACX,uGAAA,WAAW,OAAA;AACX,oHAAA,wBAAwB,OAAA;AACxB,mHAAA,uBAAuB,OAAA;AAEzB,uDAAuE;AAA9D,qHAAA,yBAAyB,OAAA;AAClC,2CAAmD;AAA1C,6GAAA,iBAAiB,OAAA;AAC1B,0DAAyE;AAAhE,oHAAA,wBAAwB,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n createDevOpsInfrastructure,\n type DevOpsInfrastructureContext,\n type DevOpsInfrastructureClientOptionalParams,\n} from \"./devOpsInfrastructureContext.js\";\nexport {\n type OperationsListOptionalParams,\n type PoolsGetOptionalParams,\n type PoolsCreateOrUpdateOptionalParams,\n type PoolsUpdateOptionalParams,\n type PoolsDeleteOptionalParams,\n type PoolsListByResourceGroupOptionalParams,\n type PoolsListBySubscriptionOptionalParams,\n type ResourceDetailsListByPoolOptionalParams,\n type SkuListByLocationOptionalParams,\n type SubscriptionUsagesUsagesOptionalParams,\n type ImageVersionsListByImageOptionalParams,\n} from \"./options.js\";\nexport { imageVersionsListByImage } from \"./imageVersions/index.js\";\nexport { operationsList } from \"./operations/index.js\";\nexport {\n poolsGet,\n poolsCreateOrUpdate,\n poolsUpdate,\n poolsDelete,\n poolsListByResourceGroup,\n poolsListBySubscription,\n} from \"./pools/index.js\";\nexport { resourceDetailsListByPool } from \"./resourceDetails/index.js\";\nexport { skuListByLocation } from \"./sku/index.js\";\nexport { subscriptionUsagesUsages } from \"./subscriptionUsages/index.js\";\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/index.ts"],
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n createDevOpsInfrastructure,\n type DevOpsInfrastructureContext,\n type DevOpsInfrastructureClientOptionalParams,\n} from \"./devOpsInfrastructureContext.js\";\nexport {\n type OperationsListOptionalParams,\n type PoolsGetOptionalParams,\n type PoolsCreateOrUpdateOptionalParams,\n type PoolsUpdateOptionalParams,\n type PoolsDeleteOptionalParams,\n type PoolsListByResourceGroupOptionalParams,\n type PoolsListBySubscriptionOptionalParams,\n type ResourceDetailsListByPoolOptionalParams,\n type SkuListByLocationOptionalParams,\n type SubscriptionUsagesUsagesOptionalParams,\n type ImageVersionsListByImageOptionalParams,\n} from \"./options.js\";\nexport { imageVersionsListByImage } from \"./imageVersions/index.js\";\nexport { operationsList } from \"./operations/index.js\";\nexport {\n poolsGet,\n poolsCreateOrUpdate,\n poolsUpdate,\n poolsDelete,\n poolsListByResourceGroup,\n poolsListBySubscription,\n} from \"./pools/index.js\";\nexport { resourceDetailsListByPool } from \"./resourceDetails/index.js\";\nexport { skuListByLocation } from \"./sku/index.js\";\nexport { subscriptionUsagesUsages } from \"./subscriptionUsages/index.js\";\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,yCAIO;AAcP,2BAAyC;AACzC,wBAA+B;AAC/B,mBAOO;AACP,6BAA0C;AAC1C,iBAAkC;AAClC,gCAAyC;",
6
+ "names": []
7
+ }
@@ -1,27 +1,46 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports._operationsListSend = _operationsListSend;
6
- exports._operationsListDeserialize = _operationsListDeserialize;
7
- exports.operationsList = operationsList;
8
- const models_js_1 = require("../../models/models.js");
9
- const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
10
- const core_client_1 = require("@azure-rest/core-client");
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var operations_exports = {};
19
+ __export(operations_exports, {
20
+ _operationsListDeserialize: () => _operationsListDeserialize,
21
+ _operationsListSend: () => _operationsListSend,
22
+ operationsList: () => operationsList
23
+ });
24
+ module.exports = __toCommonJS(operations_exports);
25
+ var import_models = require("../../models/models.js");
26
+ var import_pagingHelpers = require("../../static-helpers/pagingHelpers.js");
27
+ var import_core_client = require("@azure-rest/core-client");
11
28
  function _operationsListSend(context, options = { requestOptions: {} }) {
12
- return context
13
- .path("/providers/Microsoft.DevOpsInfrastructure/operations")
14
- .get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
29
+ return context.path("/providers/Microsoft.DevOpsInfrastructure/operations").get({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
15
30
  }
16
31
  async function _operationsListDeserialize(result) {
17
- const expectedStatuses = ["200"];
18
- if (!expectedStatuses.includes(result.status)) {
19
- throw (0, core_client_1.createRestError)(result);
20
- }
21
- return (0, models_js_1._operationListResultDeserializer)(result.body);
32
+ const expectedStatuses = ["200"];
33
+ if (!expectedStatuses.includes(result.status)) {
34
+ throw (0, import_core_client.createRestError)(result);
35
+ }
36
+ return (0, import_models._operationListResultDeserializer)(result.body);
22
37
  }
23
- /** List the operations for the provider */
24
38
  function operationsList(context, options = { requestOptions: {} }) {
25
- return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _operationsListSend(context, options), _operationsListDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
39
+ return (0, import_pagingHelpers.buildPagedAsyncIterator)(
40
+ context,
41
+ () => _operationsListSend(context, options),
42
+ _operationsListDeserialize,
43
+ ["200"],
44
+ { itemName: "value", nextLinkName: "nextLink" }
45
+ );
26
46
  }
27
- //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,kDAOC;AAED,gEASC;AAGD,wCAWC;AAhDD,sDAIgC;AAChC,4EAG+C;AAC/C,yDAKiC;AAEjC,SAAgB,mBAAmB,CACjC,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,OAAO;SACX,IAAI,CAAC,sDAAsD,CAAC;SAC5D,GAAG,CAAC,EAAE,GAAG,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,0BAA0B,CAC9C,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,4CAAgC,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,SAAgB,cAAc,CAC5B,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,EAC3C,0BAA0B,EAC1B,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { DevOpsInfrastructureContext as Client, OperationsListOptionalParams } from \"../index.js\";\nimport {\n _OperationListResult,\n _operationListResultDeserializer,\n Operation,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _operationsListSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\"/providers/Microsoft.DevOpsInfrastructure/operations\")\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _operationsListDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function operationsList(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _operationsListSend(context, options),\n _operationsListDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/operations/index.ts"],
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { DevOpsInfrastructureContext as Client, OperationsListOptionalParams } from \"../index.js\";\nimport {\n _OperationListResult,\n _operationListResultDeserializer,\n Operation,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _operationsListSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\"/providers/Microsoft.DevOpsInfrastructure/operations\")\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _operationsListDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function operationsList(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _operationsListSend(context, options),\n _operationsListDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,oBAIO;AACP,2BAGO;AACP,yBAKO;AAEA,SAAS,oBACd,SACA,UAAwC,EAAE,gBAAgB,CAAC,EAAE,GAC3C;AAClB,SAAO,QACJ,KAAK,sDAAsD,EAC3D,IAAI,EAAE,OAAG,wDAAoC,OAAO,EAAE,CAAC;AAC5D;AAEA,eAAsB,2BACpB,QAC+B;AAC/B,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,cAAM,oCAAgB,MAAM;AAAA,EAC9B;AAEA,aAAO,gDAAiC,OAAO,IAAI;AACrD;AAGO,SAAS,eACd,SACA,UAAwC,EAAE,gBAAgB,CAAC,EAAE,GACtB;AACvC,aAAO;AAAA,IACL;AAAA,IACA,MAAM,oBAAoB,SAAS,OAAO;AAAA,IAC1C;AAAA,IACA,CAAC,KAAK;AAAA,IACN,EAAE,UAAU,SAAS,cAAc,WAAW;AAAA,EAChD;AACF;",
6
+ "names": []
7
+ }
@@ -1,5 +1,15 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=options.js.map
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var options_exports = {};
15
+ module.exports = __toCommonJS(options_exports);
@@ -1 +1,7 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/api/options.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface PoolsGetOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface PoolsCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface PoolsUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface PoolsDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface PoolsListByResourceGroupOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface PoolsListBySubscriptionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ResourceDetailsListByPoolOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface SkuListByLocationOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface SubscriptionUsagesUsagesOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ImageVersionsListByImageOptionalParams extends OperationOptions {}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/options.ts"],
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface PoolsGetOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface PoolsCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface PoolsUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface PoolsDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface PoolsListByResourceGroupOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface PoolsListBySubscriptionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ResourceDetailsListByPoolOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface SkuListByLocationOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface SubscriptionUsagesUsagesOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ImageVersionsListByImageOptionalParams extends OperationOptions {}\n"],
5
+ "mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
6
+ "names": []
7
+ }