@azure/arm-devopsinfrastructure 1.0.0-alpha.20260302.1 → 1.0.0-alpha.20260304.1
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.
- package/dist/commonjs/api/devOpsInfrastructureContext.js +54 -38
- package/dist/commonjs/api/devOpsInfrastructureContext.js.map +7 -1
- package/dist/commonjs/api/imageVersions/index.js +51 -21
- package/dist/commonjs/api/imageVersions/index.js.map +7 -1
- package/dist/commonjs/api/index.js +55 -25
- package/dist/commonjs/api/index.js.map +7 -1
- package/dist/commonjs/api/operations/index.js +46 -21
- package/dist/commonjs/api/operations/index.js.map +7 -1
- package/dist/commonjs/api/options.js +15 -5
- package/dist/commonjs/api/options.js.map +7 -1
- package/dist/commonjs/api/pools/index.js +175 -110
- package/dist/commonjs/api/pools/index.js.map +7 -1
- package/dist/commonjs/api/resourceDetails/index.js +51 -21
- package/dist/commonjs/api/resourceDetails/index.js.map +7 -1
- package/dist/commonjs/api/sku/index.js +50 -21
- package/dist/commonjs/api/sku/index.js.map +7 -1
- package/dist/commonjs/api/subscriptionUsages/index.js +50 -21
- package/dist/commonjs/api/subscriptionUsages/index.js.map +7 -1
- package/dist/commonjs/classic/imageVersions/index.js +35 -14
- package/dist/commonjs/classic/imageVersions/index.js.map +7 -1
- package/dist/commonjs/classic/index.js +15 -5
- package/dist/commonjs/classic/index.js.map +7 -1
- package/dist/commonjs/classic/operations/index.js +35 -14
- package/dist/commonjs/classic/operations/index.js.map +7 -1
- package/dist/commonjs/classic/pools/index.js +40 -19
- package/dist/commonjs/classic/pools/index.js.map +7 -1
- package/dist/commonjs/classic/resourceDetails/index.js +35 -14
- package/dist/commonjs/classic/resourceDetails/index.js.map +7 -1
- package/dist/commonjs/classic/sku/index.js +35 -14
- package/dist/commonjs/classic/sku/index.js.map +7 -1
- package/dist/commonjs/classic/subscriptionUsages/index.js +35 -14
- package/dist/commonjs/classic/subscriptionUsages/index.js.map +7 -1
- package/dist/commonjs/devOpsInfrastructureClient.js +63 -46
- package/dist/commonjs/devOpsInfrastructureClient.js.map +7 -1
- package/dist/commonjs/helpers/serializerHelpers.js +43 -22
- package/dist/commonjs/helpers/serializerHelpers.js.map +7 -1
- package/dist/commonjs/index.js +63 -27
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/logger.js +28 -8
- package/dist/commonjs/logger.js.map +7 -1
- package/dist/commonjs/models/index.js +57 -23
- package/dist/commonjs/models/index.js.map +7 -1
- package/dist/commonjs/models/models.js +928 -946
- package/dist/commonjs/models/models.js.map +7 -1
- package/dist/commonjs/restorePollerHelpers.js +97 -88
- package/dist/commonjs/restorePollerHelpers.js.map +7 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js +109 -103
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js +86 -76
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +7 -1
- package/dist/esm/api/devOpsInfrastructureContext.js +30 -34
- package/dist/esm/api/devOpsInfrastructureContext.js.map +7 -1
- package/dist/esm/api/imageVersions/index.js +36 -19
- package/dist/esm/api/imageVersions/index.js.map +7 -1
- package/dist/esm/api/index.js +30 -10
- package/dist/esm/api/index.js.map +7 -1
- package/dist/esm/api/operations/index.js +31 -19
- package/dist/esm/api/operations/index.js.map +7 -1
- package/dist/esm/api/options.js +0 -4
- package/dist/esm/api/options.js.map +7 -1
- package/dist/esm/api/pools/index.js +179 -124
- package/dist/esm/api/pools/index.js.map +7 -1
- package/dist/esm/api/resourceDetails/index.js +36 -19
- package/dist/esm/api/resourceDetails/index.js.map +7 -1
- package/dist/esm/api/sku/index.js +35 -19
- package/dist/esm/api/sku/index.js.map +7 -1
- package/dist/esm/api/subscriptionUsages/index.js +32 -18
- package/dist/esm/api/subscriptionUsages/index.js.map +7 -1
- package/dist/esm/classic/imageVersions/index.js +12 -11
- package/dist/esm/classic/imageVersions/index.js.map +7 -1
- package/dist/esm/classic/index.js +0 -4
- package/dist/esm/classic/index.js.map +7 -1
- package/dist/esm/classic/operations/index.js +12 -11
- package/dist/esm/classic/operations/index.js.map +7 -1
- package/dist/esm/classic/pools/index.js +25 -17
- package/dist/esm/classic/pools/index.js.map +7 -1
- package/dist/esm/classic/resourceDetails/index.js +12 -11
- package/dist/esm/classic/resourceDetails/index.js.map +7 -1
- package/dist/esm/classic/sku/index.js +12 -11
- package/dist/esm/classic/sku/index.js.map +7 -1
- package/dist/esm/classic/subscriptionUsages/index.js +12 -11
- package/dist/esm/classic/subscriptionUsages/index.js.map +7 -1
- package/dist/esm/devOpsInfrastructureClient.js +46 -40
- package/dist/esm/devOpsInfrastructureClient.js.map +7 -1
- package/dist/esm/helpers/serializerHelpers.js +21 -20
- package/dist/esm/helpers/serializerHelpers.js.map +7 -1
- package/dist/esm/index.js +40 -6
- package/dist/esm/index.js.map +7 -1
- package/dist/esm/logger.js +4 -4
- package/dist/esm/logger.js.map +7 -1
- package/dist/esm/models/index.js +36 -4
- package/dist/esm/models/index.js.map +7 -1
- package/dist/esm/models/models.js +985 -1038
- package/dist/esm/models/models.js.map +7 -1
- package/dist/esm/restorePollerHelpers.js +80 -85
- package/dist/esm/restorePollerHelpers.js.map +7 -1
- package/dist/esm/static-helpers/pagingHelpers.js +85 -99
- package/dist/esm/static-helpers/pagingHelpers.js.map +7 -1
- package/dist/esm/static-helpers/pollingHelpers.js +65 -73
- package/dist/esm/static-helpers/pollingHelpers.js.map +7 -1
- package/package.json +1 -19
|
@@ -1,40 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
55
|
+
createDevOpsInfrastructure
|
|
56
|
+
});
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
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,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
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
|
-
|
|
52
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
53
|
+
0 && (module.exports = {
|
|
54
|
+
_imageVersionsListByImageDeserialize,
|
|
55
|
+
_imageVersionsListByImageSend,
|
|
56
|
+
imageVersionsListByImage
|
|
57
|
+
});
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
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,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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");
|
|
41
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
+
0 && (module.exports = {
|
|
43
|
+
createDevOpsInfrastructure,
|
|
44
|
+
imageVersionsListByImage,
|
|
45
|
+
operationsList,
|
|
46
|
+
poolsCreateOrUpdate,
|
|
47
|
+
poolsDelete,
|
|
48
|
+
poolsGet,
|
|
49
|
+
poolsListByResourceGroup,
|
|
50
|
+
poolsListBySubscription,
|
|
51
|
+
poolsUpdate,
|
|
52
|
+
resourceDetailsListByPool,
|
|
53
|
+
skuListByLocation,
|
|
54
|
+
subscriptionUsagesUsages
|
|
55
|
+
});
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
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,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
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
|
-
|
|
47
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
48
|
+
0 && (module.exports = {
|
|
49
|
+
_operationsListDeserialize,
|
|
50
|
+
_operationsListSend,
|
|
51
|
+
operationsList
|
|
52
|
+
});
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
{
|
|
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
|
+
}
|