@azure/arm-disconnectedoperations 1.0.0-beta.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.
- package/README.md +1 -1
- package/dist/browser/api/artifacts/index.d.ts +1 -1
- package/dist/browser/api/artifacts/index.js.map +1 -1
- package/dist/browser/api/artifacts/operations.js +7 -16
- package/dist/browser/api/artifacts/operations.js.map +1 -1
- package/dist/browser/api/disconnectedOperations/index.d.ts +1 -1
- package/dist/browser/api/disconnectedOperations/index.js.map +1 -1
- package/dist/browser/api/disconnectedOperations/operations.d.ts +3 -3
- package/dist/browser/api/disconnectedOperations/operations.js +29 -61
- package/dist/browser/api/disconnectedOperations/operations.js.map +1 -1
- package/dist/browser/api/disconnectedOperationsManagementContext.d.ts +3 -3
- package/dist/browser/api/disconnectedOperationsManagementContext.js +3 -18
- package/dist/browser/api/disconnectedOperationsManagementContext.js.map +1 -1
- package/dist/browser/api/hardwareSettings/index.d.ts +3 -0
- package/dist/browser/api/hardwareSettings/index.js +4 -0
- package/dist/browser/api/hardwareSettings/index.js.map +1 -0
- package/dist/browser/api/hardwareSettings/operations.d.ts +28 -0
- package/dist/browser/api/hardwareSettings/operations.js +136 -0
- package/dist/browser/api/hardwareSettings/operations.js.map +1 -0
- package/dist/browser/api/hardwareSettings/options.d.ts +18 -0
- package/dist/browser/api/hardwareSettings/options.js +4 -0
- package/dist/browser/api/hardwareSettings/options.js.map +1 -0
- package/dist/browser/api/images/index.d.ts +1 -1
- package/dist/browser/api/images/index.js.map +1 -1
- package/dist/browser/api/images/operations.js +9 -22
- package/dist/browser/api/images/operations.js.map +1 -1
- package/dist/browser/classic/disconnectedOperations/index.d.ts +2 -2
- package/dist/browser/classic/disconnectedOperations/index.js.map +1 -1
- package/dist/browser/classic/hardwareSettings/index.d.ts +23 -0
- package/dist/browser/classic/hardwareSettings/index.js +17 -0
- package/dist/browser/classic/hardwareSettings/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +4 -3
- package/dist/browser/classic/index.js.map +1 -1
- package/dist/browser/disconnectedOperationsManagementClient.d.ts +4 -1
- package/dist/browser/disconnectedOperationsManagementClient.js +4 -0
- package/dist/browser/disconnectedOperationsManagementClient.js.map +1 -1
- package/dist/browser/index.d.ts +11 -9
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -1
- package/dist/browser/models/index.js +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +213 -14
- package/dist/browser/models/models.js +197 -30
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js +12 -3
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.d.ts +2 -0
- package/dist/browser/static-helpers/pagingHelpers.js +28 -3
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts +4 -0
- package/dist/browser/static-helpers/pollingHelpers.js +18 -2
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.js +20 -5
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/api/artifacts/index.d.ts +1 -1
- package/dist/commonjs/api/artifacts/index.js.map +1 -1
- package/dist/commonjs/api/artifacts/operations.js +7 -16
- package/dist/commonjs/api/artifacts/operations.js.map +2 -2
- package/dist/commonjs/api/disconnectedOperations/index.d.ts +1 -1
- package/dist/commonjs/api/disconnectedOperations/index.js.map +1 -1
- package/dist/commonjs/api/disconnectedOperations/operations.d.ts +3 -3
- package/dist/commonjs/api/disconnectedOperations/operations.js +28 -60
- package/dist/commonjs/api/disconnectedOperations/operations.js.map +2 -2
- package/dist/commonjs/api/disconnectedOperationsManagementContext.d.ts +3 -3
- package/dist/commonjs/api/disconnectedOperationsManagementContext.js +3 -16
- package/dist/commonjs/api/disconnectedOperationsManagementContext.js.map +2 -2
- package/dist/commonjs/api/hardwareSettings/index.d.ts +3 -0
- package/dist/commonjs/api/hardwareSettings/index.js +33 -0
- package/dist/commonjs/api/hardwareSettings/index.js.map +7 -0
- package/dist/commonjs/api/hardwareSettings/operations.d.ts +28 -0
- package/dist/commonjs/api/hardwareSettings/operations.js +194 -0
- package/dist/commonjs/api/hardwareSettings/operations.js.map +7 -0
- package/dist/commonjs/api/hardwareSettings/options.d.ts +18 -0
- package/dist/commonjs/api/hardwareSettings/options.js +15 -0
- package/dist/commonjs/api/hardwareSettings/options.js.map +7 -0
- package/dist/commonjs/api/images/index.d.ts +1 -1
- package/dist/commonjs/api/images/index.js.map +1 -1
- package/dist/commonjs/api/images/operations.js +9 -22
- package/dist/commonjs/api/images/operations.js.map +2 -2
- package/dist/commonjs/classic/disconnectedOperations/index.d.ts +2 -2
- package/dist/commonjs/classic/disconnectedOperations/index.js.map +2 -2
- package/dist/commonjs/classic/hardwareSettings/index.d.ts +23 -0
- package/dist/commonjs/classic/hardwareSettings/index.js +40 -0
- package/dist/commonjs/classic/hardwareSettings/index.js.map +7 -0
- package/dist/commonjs/classic/index.d.ts +4 -3
- package/dist/commonjs/classic/index.js.map +1 -1
- package/dist/commonjs/disconnectedOperationsManagementClient.d.ts +4 -1
- package/dist/commonjs/disconnectedOperationsManagementClient.js +4 -0
- package/dist/commonjs/disconnectedOperationsManagementClient.js.map +2 -2
- package/dist/commonjs/index.d.ts +11 -9
- package/dist/commonjs/index.js +10 -0
- package/dist/commonjs/index.js.map +2 -2
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.js +10 -0
- package/dist/commonjs/models/index.js.map +2 -2
- package/dist/commonjs/models/models.d.ts +213 -14
- package/dist/commonjs/models/models.js +197 -34
- package/dist/commonjs/models/models.js.map +3 -3
- package/dist/commonjs/restorePollerHelpers.js +13 -4
- package/dist/commonjs/restorePollerHelpers.js.map +3 -3
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +2 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +16 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +2 -2
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +4 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +10 -2
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +2 -2
- package/dist/commonjs/static-helpers/urlTemplate.js +15 -5
- package/dist/commonjs/static-helpers/urlTemplate.js.map +2 -2
- package/dist/esm/api/artifacts/index.d.ts +1 -1
- package/dist/esm/api/artifacts/index.js.map +1 -1
- package/dist/esm/api/artifacts/operations.js +7 -16
- package/dist/esm/api/artifacts/operations.js.map +2 -2
- package/dist/esm/api/disconnectedOperations/index.d.ts +1 -1
- package/dist/esm/api/disconnectedOperations/index.js.map +1 -1
- package/dist/esm/api/disconnectedOperations/operations.d.ts +3 -3
- package/dist/esm/api/disconnectedOperations/operations.js +28 -61
- package/dist/esm/api/disconnectedOperations/operations.js.map +2 -2
- package/dist/esm/api/disconnectedOperationsManagementContext.d.ts +3 -3
- package/dist/esm/api/disconnectedOperationsManagementContext.js +3 -16
- package/dist/esm/api/disconnectedOperationsManagementContext.js.map +2 -2
- package/dist/esm/api/hardwareSettings/index.d.ts +3 -0
- package/dist/esm/api/hardwareSettings/index.js +7 -0
- package/dist/esm/api/hardwareSettings/index.js.map +7 -0
- package/dist/esm/api/hardwareSettings/operations.d.ts +28 -0
- package/dist/esm/api/hardwareSettings/operations.js +165 -0
- package/dist/esm/api/hardwareSettings/operations.js.map +7 -0
- package/dist/esm/api/hardwareSettings/options.d.ts +18 -0
- package/dist/esm/api/hardwareSettings/options.js +0 -0
- package/dist/esm/api/hardwareSettings/options.js.map +7 -0
- package/dist/esm/api/images/index.d.ts +1 -1
- package/dist/esm/api/images/index.js.map +1 -1
- package/dist/esm/api/images/operations.js +9 -22
- package/dist/esm/api/images/operations.js.map +2 -2
- package/dist/esm/classic/disconnectedOperations/index.d.ts +2 -2
- package/dist/esm/classic/disconnectedOperations/index.js.map +2 -2
- package/dist/esm/classic/hardwareSettings/index.d.ts +23 -0
- package/dist/esm/classic/hardwareSettings/index.js +22 -0
- package/dist/esm/classic/hardwareSettings/index.js.map +7 -0
- package/dist/esm/classic/index.d.ts +4 -3
- package/dist/esm/disconnectedOperationsManagementClient.d.ts +4 -1
- package/dist/esm/disconnectedOperationsManagementClient.js +4 -0
- package/dist/esm/disconnectedOperationsManagementClient.js.map +2 -2
- package/dist/esm/index.d.ts +11 -9
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +10 -0
- package/dist/esm/models/index.js.map +2 -2
- package/dist/esm/models/models.d.ts +213 -14
- package/dist/esm/models/models.js +176 -32
- package/dist/esm/models/models.js.map +3 -3
- package/dist/esm/restorePollerHelpers.js +15 -3
- package/dist/esm/restorePollerHelpers.js.map +2 -2
- package/dist/esm/static-helpers/pagingHelpers.d.ts +2 -0
- package/dist/esm/static-helpers/pagingHelpers.js +16 -1
- package/dist/esm/static-helpers/pagingHelpers.js.map +2 -2
- package/dist/esm/static-helpers/pollingHelpers.d.ts +4 -0
- package/dist/esm/static-helpers/pollingHelpers.js +10 -2
- package/dist/esm/static-helpers/pollingHelpers.js.map +2 -2
- package/dist/esm/static-helpers/urlTemplate.js +15 -5
- package/dist/esm/static-helpers/urlTemplate.js.map +2 -2
- package/dist/react-native/api/artifacts/index.d.ts +1 -1
- package/dist/react-native/api/artifacts/index.js.map +1 -1
- package/dist/react-native/api/artifacts/operations.js +7 -16
- package/dist/react-native/api/artifacts/operations.js.map +1 -1
- package/dist/react-native/api/disconnectedOperations/index.d.ts +1 -1
- package/dist/react-native/api/disconnectedOperations/index.js.map +1 -1
- package/dist/react-native/api/disconnectedOperations/operations.d.ts +3 -3
- package/dist/react-native/api/disconnectedOperations/operations.js +29 -61
- package/dist/react-native/api/disconnectedOperations/operations.js.map +1 -1
- package/dist/react-native/api/disconnectedOperationsManagementContext.d.ts +3 -3
- package/dist/react-native/api/disconnectedOperationsManagementContext.js +3 -18
- package/dist/react-native/api/disconnectedOperationsManagementContext.js.map +1 -1
- package/dist/react-native/api/hardwareSettings/index.d.ts +3 -0
- package/dist/react-native/api/hardwareSettings/index.js +4 -0
- package/dist/react-native/api/hardwareSettings/index.js.map +1 -0
- package/dist/react-native/api/hardwareSettings/operations.d.ts +28 -0
- package/dist/react-native/api/hardwareSettings/operations.js +136 -0
- package/dist/react-native/api/hardwareSettings/operations.js.map +1 -0
- package/dist/react-native/api/hardwareSettings/options.d.ts +18 -0
- package/dist/react-native/api/hardwareSettings/options.js +4 -0
- package/dist/react-native/api/hardwareSettings/options.js.map +1 -0
- package/dist/react-native/api/images/index.d.ts +1 -1
- package/dist/react-native/api/images/index.js.map +1 -1
- package/dist/react-native/api/images/operations.js +9 -22
- package/dist/react-native/api/images/operations.js.map +1 -1
- package/dist/react-native/classic/disconnectedOperations/index.d.ts +2 -2
- package/dist/react-native/classic/disconnectedOperations/index.js.map +1 -1
- package/dist/react-native/classic/hardwareSettings/index.d.ts +23 -0
- package/dist/react-native/classic/hardwareSettings/index.js +17 -0
- package/dist/react-native/classic/hardwareSettings/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +4 -3
- package/dist/react-native/classic/index.js.map +1 -1
- package/dist/react-native/disconnectedOperationsManagementClient.d.ts +4 -1
- package/dist/react-native/disconnectedOperationsManagementClient.js +4 -0
- package/dist/react-native/disconnectedOperationsManagementClient.js.map +1 -1
- package/dist/react-native/index.d.ts +11 -9
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -1
- package/dist/react-native/models/index.js +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +213 -14
- package/dist/react-native/models/models.js +197 -30
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +12 -3
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +2 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +28 -3
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +4 -0
- package/dist/react-native/static-helpers/pollingHelpers.js +18 -2
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.js +20 -5
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
- package/package.json +19 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Key links:
|
|
|
8
8
|
|
|
9
9
|
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/disconnectedoperations/arm-disconnectedoperations)
|
|
10
10
|
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-disconnectedoperations)
|
|
11
|
-
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-disconnectedoperations
|
|
11
|
+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-disconnectedoperations)
|
|
12
12
|
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/disconnectedoperations/arm-disconnectedoperations/samples)
|
|
13
13
|
|
|
14
14
|
## Getting started
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { listDownloadUri, get, listByParent } from "./operations.js";
|
|
2
|
-
export {
|
|
2
|
+
export type { ArtifactsListDownloadUriOptionalParams, ArtifactsGetOptionalParams, ArtifactsListByParentOptionalParams, } from "./options.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/artifacts/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,eAAe,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { listDownloadUri, get, listByParent } from \"./operations.js\";\nexport {\n
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/artifacts/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,eAAe,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { listDownloadUri, get, listByParent } from \"./operations.js\";\nexport type {\n ArtifactsListDownloadUriOptionalParams,\n ArtifactsGetOptionalParams,\n ArtifactsListByParentOptionalParams,\n} from \"./options.js\";\n"]}
|
|
@@ -11,16 +11,13 @@ export function _listDownloadUriSend(context, resourceGroupName, name, imageName
|
|
|
11
11
|
name: name,
|
|
12
12
|
imageName: imageName,
|
|
13
13
|
artifactName: artifactName,
|
|
14
|
-
"api%2Dversion": context.apiVersion,
|
|
14
|
+
"api%2Dversion": context.apiVersion ?? "2026-03-15",
|
|
15
15
|
}, {
|
|
16
16
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
17
17
|
});
|
|
18
18
|
return context.path(path).post({
|
|
19
19
|
...operationOptionsToRequestParameters(options),
|
|
20
|
-
headers: {
|
|
21
|
-
accept: "application/json",
|
|
22
|
-
...options.requestOptions?.headers,
|
|
23
|
-
},
|
|
20
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
24
21
|
});
|
|
25
22
|
}
|
|
26
23
|
export async function _listDownloadUriDeserialize(result) {
|
|
@@ -44,16 +41,13 @@ export function _getSend(context, resourceGroupName, name, imageName, artifactNa
|
|
|
44
41
|
name: name,
|
|
45
42
|
imageName: imageName,
|
|
46
43
|
artifactName: artifactName,
|
|
47
|
-
"api%2Dversion": context.apiVersion,
|
|
44
|
+
"api%2Dversion": context.apiVersion ?? "2026-03-15",
|
|
48
45
|
}, {
|
|
49
46
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
50
47
|
});
|
|
51
48
|
return context.path(path).get({
|
|
52
49
|
...operationOptionsToRequestParameters(options),
|
|
53
|
-
headers: {
|
|
54
|
-
accept: "application/json",
|
|
55
|
-
...options.requestOptions?.headers,
|
|
56
|
-
},
|
|
50
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
57
51
|
});
|
|
58
52
|
}
|
|
59
53
|
export async function _getDeserialize(result) {
|
|
@@ -76,16 +70,13 @@ export function _listByParentSend(context, resourceGroupName, name, imageName, o
|
|
|
76
70
|
resourceGroupName: resourceGroupName,
|
|
77
71
|
name: name,
|
|
78
72
|
imageName: imageName,
|
|
79
|
-
"api%2Dversion": context.apiVersion,
|
|
73
|
+
"api%2Dversion": context.apiVersion ?? "2026-03-15",
|
|
80
74
|
}, {
|
|
81
75
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
82
76
|
});
|
|
83
77
|
return context.path(path).get({
|
|
84
78
|
...operationOptionsToRequestParameters(options),
|
|
85
|
-
headers: {
|
|
86
|
-
accept: "application/json",
|
|
87
|
-
...options.requestOptions?.headers,
|
|
88
|
-
},
|
|
79
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
89
80
|
});
|
|
90
81
|
}
|
|
91
82
|
export async function _listByParentDeserialize(result) {
|
|
@@ -99,6 +90,6 @@ export async function _listByParentDeserialize(result) {
|
|
|
99
90
|
}
|
|
100
91
|
/** List by parent */
|
|
101
92
|
export function listByParent(context, resourceGroupName, name, imageName, options = { requestOptions: {} }) {
|
|
102
|
-
return buildPagedAsyncIterator(context, () => _listByParentSend(context, resourceGroupName, name, imageName, options), _listByParentDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
93
|
+
return buildPagedAsyncIterator(context, () => _listByParentSend(context, resourceGroupName, name, imageName, options), _listByParentDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-03-15" });
|
|
103
94
|
}
|
|
104
95
|
//# sourceMappingURL=operations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/artifacts/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,yBAAyB,EACzB,+BAA+B,EAC/B,oBAAoB,EACpB,kCAAkC,GACnC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAOxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,oBAAoB,CAClC,OAAe,EACf,iBAAyB,EACzB,IAAY,EACZ,SAAiB,EACjB,YAAoB,EACpB,UAAkD,EAAE,cAAc,EAAE,EAAE,EAAE;IAExE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,uMAAuM,EACvM;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,IAAI,EAAE,IAAI;QACV,SAAS,EAAE,SAAS;QACpB,YAAY,EAAE,YAAY;QAC1B,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;QAC7B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;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OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,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,+BAA+B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACtD,CAAC;AAED,qBAAqB;AACrB,MAAM,UAAU,YAAY,CAC1B,OAAe,EACf,iBAAyB,EACzB,IAAY,EACZ,SAAiB,EACjB,UAA+C,EAAE,cAAc,EAAE,EAAE,EAAE;IAErE,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,EAC7E,wBAAwB,EACxB,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { DisconnectedOperationsManagementContext as Client } from \"../index.js\";\nimport type { _ArtifactListResult, Artifact, ArtifactDownloadResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n _artifactListResultDeserializer,\n artifactDeserializer,\n artifactDownloadResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n ArtifactsListDownloadUriOptionalParams,\n ArtifactsGetOptionalParams,\n ArtifactsListByParentOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listDownloadUriSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n imageName: string,\n artifactName: string,\n options: ArtifactsListDownloadUriOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}/images/{imageName}/artifacts/{artifactName}/listDownloadUri{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\n imageName: imageName,\n artifactName: artifactName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDownloadUriDeserialize(\n result: PathUncheckedResponse,\n): Promise<ArtifactDownloadResult> {\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 artifactDownloadResultDeserializer(result.body);\n}\n\n/** Get artifact download link. */\nexport async function listDownloadUri(\n context: Client,\n resourceGroupName: string,\n name: string,\n imageName: string,\n artifactName: string,\n options: ArtifactsListDownloadUriOptionalParams = { requestOptions: {} },\n): Promise<ArtifactDownloadResult> {\n const result = await _listDownloadUriSend(\n context,\n resourceGroupName,\n name,\n imageName,\n artifactName,\n options,\n );\n return _listDownloadUriDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n imageName: string,\n artifactName: string,\n options: ArtifactsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}/images/{imageName}/artifacts/{artifactName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\n imageName: imageName,\n artifactName: artifactName,\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(result: PathUncheckedResponse): Promise<Artifact> {\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 artifactDeserializer(result.body);\n}\n\n/** Get the resource */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n name: string,\n imageName: string,\n artifactName: string,\n options: ArtifactsGetOptionalParams = { requestOptions: {} },\n): Promise<Artifact> {\n const result = await _getSend(context, resourceGroupName, name, imageName, artifactName, options);\n return _getDeserialize(result);\n}\n\nexport function _listByParentSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n imageName: string,\n options: ArtifactsListByParentOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}/images/{imageName}/artifacts{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\n imageName: imageName,\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 _listByParentDeserialize(\n result: PathUncheckedResponse,\n): Promise<_ArtifactListResult> {\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 _artifactListResultDeserializer(result.body);\n}\n\n/** List by parent */\nexport function listByParent(\n context: Client,\n resourceGroupName: string,\n name: string,\n imageName: string,\n options: ArtifactsListByParentOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Artifact> {\n return buildPagedAsyncIterator(\n context,\n () => _listByParentSend(context, resourceGroupName, name, imageName, options),\n _listByParentDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/artifacts/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,yBAAyB,EACzB,+BAA+B,EAC/B,oBAAoB,EACpB,kCAAkC,GACnC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAOxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,oBAAoB,CAClC,OAAe,EACf,iBAAyB,EACzB,IAAY,EACZ,SAAiB,EACjB,YAAoB,EACpB,UAAkD,EAAE,cAAc,EAAE,EAAE,EAAE;IAExE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,uMAAuM,EACvM;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,IAAI,EAAE,IAAI;QACV,SAAS,EAAE,SAAS;QACpB,YAAY,EAAE,YAAY;QAC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EAAE,EAAE,EAAE;IAErE,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,EAC7E,wBAAwB,EACxB,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,YAAY,EAAE,CAChG,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { DisconnectedOperationsManagementContext as Client } from \"../index.js\";\nimport type { _ArtifactListResult, Artifact, ArtifactDownloadResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n _artifactListResultDeserializer,\n artifactDeserializer,\n artifactDownloadResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n ArtifactsListDownloadUriOptionalParams,\n ArtifactsGetOptionalParams,\n ArtifactsListByParentOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listDownloadUriSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n imageName: string,\n artifactName: string,\n options: ArtifactsListDownloadUriOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}/images/{imageName}/artifacts/{artifactName}/listDownloadUri{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\n imageName: imageName,\n artifactName: artifactName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDownloadUriDeserialize(\n result: PathUncheckedResponse,\n): Promise<ArtifactDownloadResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return artifactDownloadResultDeserializer(result.body);\n}\n\n/** Get artifact download link. */\nexport async function listDownloadUri(\n context: Client,\n resourceGroupName: string,\n name: string,\n imageName: string,\n artifactName: string,\n options: ArtifactsListDownloadUriOptionalParams = { requestOptions: {} },\n): Promise<ArtifactDownloadResult> {\n const result = await _listDownloadUriSend(\n context,\n resourceGroupName,\n name,\n imageName,\n artifactName,\n options,\n );\n return _listDownloadUriDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n imageName: string,\n artifactName: string,\n options: ArtifactsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}/images/{imageName}/artifacts/{artifactName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\n imageName: imageName,\n artifactName: artifactName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Artifact> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return artifactDeserializer(result.body);\n}\n\n/** Get the resource */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n name: string,\n imageName: string,\n artifactName: string,\n options: ArtifactsGetOptionalParams = { requestOptions: {} },\n): Promise<Artifact> {\n const result = await _getSend(context, resourceGroupName, name, imageName, artifactName, options);\n return _getDeserialize(result);\n}\n\nexport function _listByParentSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n imageName: string,\n options: ArtifactsListByParentOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}/images/{imageName}/artifacts{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\n imageName: imageName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listByParentDeserialize(\n result: PathUncheckedResponse,\n): Promise<_ArtifactListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return _artifactListResultDeserializer(result.body);\n}\n\n/** List by parent */\nexport function listByParent(\n context: Client,\n resourceGroupName: string,\n name: string,\n imageName: string,\n options: ArtifactsListByParentOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Artifact> {\n return buildPagedAsyncIterator(\n context,\n () => _listByParentSend(context, resourceGroupName, name, imageName, options),\n _listByParentDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-03-15\" },\n );\n}\n"]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { listDeploymentManifest, listBySubscription, listByResourceGroup, $delete, update, createOrUpdate, get, } from "./operations.js";
|
|
2
|
-
export {
|
|
2
|
+
export type { DisconnectedOperationsListDeploymentManifestOptionalParams, DisconnectedOperationsListBySubscriptionOptionalParams, DisconnectedOperationsListByResourceGroupOptionalParams, DisconnectedOperationsDeleteOptionalParams, DisconnectedOperationsUpdateOptionalParams, DisconnectedOperationsCreateOrUpdateOptionalParams, DisconnectedOperationsGetOptionalParams, } from "./options.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/disconnectedOperations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,GACJ,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n listDeploymentManifest,\n listBySubscription,\n listByResourceGroup,\n $delete,\n update,\n createOrUpdate,\n get,\n} from \"./operations.js\";\nexport {\n
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/disconnectedOperations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,GACJ,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n listDeploymentManifest,\n listBySubscription,\n listByResourceGroup,\n $delete,\n update,\n createOrUpdate,\n get,\n} from \"./operations.js\";\nexport type {\n DisconnectedOperationsListDeploymentManifestOptionalParams,\n DisconnectedOperationsListBySubscriptionOptionalParams,\n DisconnectedOperationsListByResourceGroupOptionalParams,\n DisconnectedOperationsDeleteOptionalParams,\n DisconnectedOperationsUpdateOptionalParams,\n DisconnectedOperationsCreateOrUpdateOptionalParams,\n DisconnectedOperationsGetOptionalParams,\n} from \"./options.js\";\n"]}
|
|
@@ -30,9 +30,9 @@ export declare function _updateDeserialize(result: PathUncheckedResponse): Promi
|
|
|
30
30
|
/** Update a DisconnectedOperation */
|
|
31
31
|
export declare function update(context: Client, resourceGroupName: string, name: string, properties: DisconnectedOperationUpdate, options?: DisconnectedOperationsUpdateOptionalParams): Promise<DisconnectedOperation>;
|
|
32
32
|
export declare function _createOrUpdateSend(context: Client, resourceGroupName: string, name: string, resource: DisconnectedOperationCreateOrUpdate, options?: DisconnectedOperationsCreateOrUpdateOptionalParams): StreamableMethod;
|
|
33
|
-
export declare function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<
|
|
34
|
-
/** Create a
|
|
35
|
-
export declare function createOrUpdate(context: Client, resourceGroupName: string, name: string, resource: DisconnectedOperationCreateOrUpdate, options?: DisconnectedOperationsCreateOrUpdateOptionalParams): PollerLike<OperationState<
|
|
33
|
+
export declare function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<DisconnectedOperation>;
|
|
34
|
+
/** Create a DisconnectedOperation */
|
|
35
|
+
export declare function createOrUpdate(context: Client, resourceGroupName: string, name: string, resource: DisconnectedOperationCreateOrUpdate, options?: DisconnectedOperationsCreateOrUpdateOptionalParams): PollerLike<OperationState<DisconnectedOperation>, DisconnectedOperation>;
|
|
36
36
|
export declare function _getSend(context: Client, resourceGroupName: string, name: string, options?: DisconnectedOperationsGetOptionalParams): StreamableMethod;
|
|
37
37
|
export declare function _getDeserialize(result: PathUncheckedResponse): Promise<DisconnectedOperation>;
|
|
38
38
|
/** Get a DisconnectedOperation */
|
|
@@ -1,27 +1,22 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { disconnectedOperationDeserializer, errorResponseDeserializer, disconnectedOperationCreateOrUpdateSerializer,
|
|
3
|
+
import { disconnectedOperationDeserializer, errorResponseDeserializer, disconnectedOperationCreateOrUpdateSerializer, disconnectedOperationUpdateSerializer, _disconnectedOperationListResultDeserializer, disconnectedOperationDeploymentManifestDeserializer, } from "../../models/models.js";
|
|
4
4
|
import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
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
|
-
export function _listDeploymentManifestSend(context, resourceGroupName, name, options = {
|
|
9
|
-
requestOptions: {},
|
|
10
|
-
}) {
|
|
8
|
+
export function _listDeploymentManifestSend(context, resourceGroupName, name, options = { requestOptions: {} }) {
|
|
11
9
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}/listDeploymentManifest{?api%2Dversion}", {
|
|
12
10
|
subscriptionId: context.subscriptionId,
|
|
13
11
|
resourceGroupName: resourceGroupName,
|
|
14
12
|
name: name,
|
|
15
|
-
"api%2Dversion": context.apiVersion,
|
|
13
|
+
"api%2Dversion": context.apiVersion ?? "2026-03-15",
|
|
16
14
|
}, {
|
|
17
15
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
18
16
|
});
|
|
19
17
|
return context.path(path).post({
|
|
20
18
|
...operationOptionsToRequestParameters(options),
|
|
21
|
-
headers: {
|
|
22
|
-
accept: "application/json",
|
|
23
|
-
...options.requestOptions?.headers,
|
|
24
|
-
},
|
|
19
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
25
20
|
});
|
|
26
21
|
}
|
|
27
22
|
export async function _listDeploymentManifestDeserialize(result) {
|
|
@@ -34,27 +29,20 @@ export async function _listDeploymentManifestDeserialize(result) {
|
|
|
34
29
|
return disconnectedOperationDeploymentManifestDeserializer(result.body);
|
|
35
30
|
}
|
|
36
31
|
/** get deployment manifest. */
|
|
37
|
-
export async function listDeploymentManifest(context, resourceGroupName, name, options = {
|
|
38
|
-
requestOptions: {},
|
|
39
|
-
}) {
|
|
32
|
+
export async function listDeploymentManifest(context, resourceGroupName, name, options = { requestOptions: {} }) {
|
|
40
33
|
const result = await _listDeploymentManifestSend(context, resourceGroupName, name, options);
|
|
41
34
|
return _listDeploymentManifestDeserialize(result);
|
|
42
35
|
}
|
|
43
|
-
export function _listBySubscriptionSend(context, options = {
|
|
44
|
-
requestOptions: {},
|
|
45
|
-
}) {
|
|
36
|
+
export function _listBySubscriptionSend(context, options = { requestOptions: {} }) {
|
|
46
37
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.Edge/disconnectedOperations{?api%2Dversion}", {
|
|
47
38
|
subscriptionId: context.subscriptionId,
|
|
48
|
-
"api%2Dversion": context.apiVersion,
|
|
39
|
+
"api%2Dversion": context.apiVersion ?? "2026-03-15",
|
|
49
40
|
}, {
|
|
50
41
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
51
42
|
});
|
|
52
43
|
return context.path(path).get({
|
|
53
44
|
...operationOptionsToRequestParameters(options),
|
|
54
|
-
headers: {
|
|
55
|
-
accept: "application/json",
|
|
56
|
-
...options.requestOptions?.headers,
|
|
57
|
-
},
|
|
45
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
58
46
|
});
|
|
59
47
|
}
|
|
60
48
|
export async function _listBySubscriptionDeserialize(result) {
|
|
@@ -67,27 +55,20 @@ export async function _listBySubscriptionDeserialize(result) {
|
|
|
67
55
|
return _disconnectedOperationListResultDeserializer(result.body);
|
|
68
56
|
}
|
|
69
57
|
/** List DisconnectedOperation resources by subscription ID */
|
|
70
|
-
export function listBySubscription(context, options = {
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
export function _listByResourceGroupSend(context, resourceGroupName, options = {
|
|
76
|
-
requestOptions: {},
|
|
77
|
-
}) {
|
|
58
|
+
export function listBySubscription(context, options = { requestOptions: {} }) {
|
|
59
|
+
return buildPagedAsyncIterator(context, () => _listBySubscriptionSend(context, options), _listBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-03-15" });
|
|
60
|
+
}
|
|
61
|
+
export function _listByResourceGroupSend(context, resourceGroupName, options = { requestOptions: {} }) {
|
|
78
62
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations{?api%2Dversion}", {
|
|
79
63
|
subscriptionId: context.subscriptionId,
|
|
80
64
|
resourceGroupName: resourceGroupName,
|
|
81
|
-
"api%2Dversion": context.apiVersion,
|
|
65
|
+
"api%2Dversion": context.apiVersion ?? "2026-03-15",
|
|
82
66
|
}, {
|
|
83
67
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
84
68
|
});
|
|
85
69
|
return context.path(path).get({
|
|
86
70
|
...operationOptionsToRequestParameters(options),
|
|
87
|
-
headers: {
|
|
88
|
-
accept: "application/json",
|
|
89
|
-
...options.requestOptions?.headers,
|
|
90
|
-
},
|
|
71
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
91
72
|
});
|
|
92
73
|
}
|
|
93
74
|
export async function _listByResourceGroupDeserialize(result) {
|
|
@@ -100,17 +81,15 @@ export async function _listByResourceGroupDeserialize(result) {
|
|
|
100
81
|
return _disconnectedOperationListResultDeserializer(result.body);
|
|
101
82
|
}
|
|
102
83
|
/** List DisconnectedOperation resources by resource group */
|
|
103
|
-
export function listByResourceGroup(context, resourceGroupName, options = {
|
|
104
|
-
|
|
105
|
-
}) {
|
|
106
|
-
return buildPagedAsyncIterator(context, () => _listByResourceGroupSend(context, resourceGroupName, options), _listByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
84
|
+
export function listByResourceGroup(context, resourceGroupName, options = { requestOptions: {} }) {
|
|
85
|
+
return buildPagedAsyncIterator(context, () => _listByResourceGroupSend(context, resourceGroupName, options), _listByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-03-15" });
|
|
107
86
|
}
|
|
108
87
|
export function _$deleteSend(context, resourceGroupName, name, options = { requestOptions: {} }) {
|
|
109
88
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}{?api%2Dversion}", {
|
|
110
89
|
subscriptionId: context.subscriptionId,
|
|
111
90
|
resourceGroupName: resourceGroupName,
|
|
112
91
|
name: name,
|
|
113
|
-
"api%2Dversion": context.apiVersion,
|
|
92
|
+
"api%2Dversion": context.apiVersion ?? "2026-03-15",
|
|
114
93
|
}, {
|
|
115
94
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
116
95
|
});
|
|
@@ -137,6 +116,7 @@ export function $delete(context, resourceGroupName, name, options = { requestOpt
|
|
|
137
116
|
abortSignal: options?.abortSignal,
|
|
138
117
|
getInitialResponse: () => _$deleteSend(context, resourceGroupName, name, options),
|
|
139
118
|
resourceLocationConfig: "location",
|
|
119
|
+
apiVersion: context.apiVersion ?? "2026-03-15",
|
|
140
120
|
});
|
|
141
121
|
}
|
|
142
122
|
export function _updateSend(context, resourceGroupName, name, properties, options = { requestOptions: {} }) {
|
|
@@ -144,17 +124,14 @@ export function _updateSend(context, resourceGroupName, name, properties, option
|
|
|
144
124
|
subscriptionId: context.subscriptionId,
|
|
145
125
|
resourceGroupName: resourceGroupName,
|
|
146
126
|
name: name,
|
|
147
|
-
"api%2Dversion": context.apiVersion,
|
|
127
|
+
"api%2Dversion": context.apiVersion ?? "2026-03-15",
|
|
148
128
|
}, {
|
|
149
129
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
150
130
|
});
|
|
151
131
|
return context.path(path).patch({
|
|
152
132
|
...operationOptionsToRequestParameters(options),
|
|
153
133
|
contentType: "application/json",
|
|
154
|
-
headers: {
|
|
155
|
-
accept: "application/json",
|
|
156
|
-
...options.requestOptions?.headers,
|
|
157
|
-
},
|
|
134
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
158
135
|
body: disconnectedOperationUpdateSerializer(properties),
|
|
159
136
|
});
|
|
160
137
|
}
|
|
@@ -172,24 +149,19 @@ export async function update(context, resourceGroupName, name, properties, optio
|
|
|
172
149
|
const result = await _updateSend(context, resourceGroupName, name, properties, options);
|
|
173
150
|
return _updateDeserialize(result);
|
|
174
151
|
}
|
|
175
|
-
export function _createOrUpdateSend(context, resourceGroupName, name, resource, options = {
|
|
176
|
-
requestOptions: {},
|
|
177
|
-
}) {
|
|
152
|
+
export function _createOrUpdateSend(context, resourceGroupName, name, resource, options = { requestOptions: {} }) {
|
|
178
153
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}{?api%2Dversion}", {
|
|
179
154
|
subscriptionId: context.subscriptionId,
|
|
180
155
|
resourceGroupName: resourceGroupName,
|
|
181
156
|
name: name,
|
|
182
|
-
"api%2Dversion": context.apiVersion,
|
|
157
|
+
"api%2Dversion": context.apiVersion ?? "2026-03-15",
|
|
183
158
|
}, {
|
|
184
159
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
185
160
|
});
|
|
186
161
|
return context.path(path).put({
|
|
187
162
|
...operationOptionsToRequestParameters(options),
|
|
188
163
|
contentType: "application/json",
|
|
189
|
-
headers: {
|
|
190
|
-
accept: "application/json",
|
|
191
|
-
...options.requestOptions?.headers,
|
|
192
|
-
},
|
|
164
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
193
165
|
body: disconnectedOperationCreateOrUpdateSerializer(resource),
|
|
194
166
|
});
|
|
195
167
|
}
|
|
@@ -200,17 +172,16 @@ export async function _createOrUpdateDeserialize(result) {
|
|
|
200
172
|
error.details = errorResponseDeserializer(result.body);
|
|
201
173
|
throw error;
|
|
202
174
|
}
|
|
203
|
-
return
|
|
175
|
+
return disconnectedOperationDeserializer(result.body);
|
|
204
176
|
}
|
|
205
|
-
/** Create a
|
|
206
|
-
export function createOrUpdate(context, resourceGroupName, name, resource, options = {
|
|
207
|
-
requestOptions: {},
|
|
208
|
-
}) {
|
|
177
|
+
/** Create a DisconnectedOperation */
|
|
178
|
+
export function createOrUpdate(context, resourceGroupName, name, resource, options = { requestOptions: {} }) {
|
|
209
179
|
return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
|
|
210
180
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
211
181
|
abortSignal: options?.abortSignal,
|
|
212
182
|
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, name, resource, options),
|
|
213
183
|
resourceLocationConfig: "azure-async-operation",
|
|
184
|
+
apiVersion: context.apiVersion ?? "2026-03-15",
|
|
214
185
|
});
|
|
215
186
|
}
|
|
216
187
|
export function _getSend(context, resourceGroupName, name, options = { requestOptions: {} }) {
|
|
@@ -218,16 +189,13 @@ export function _getSend(context, resourceGroupName, name, options = { requestOp
|
|
|
218
189
|
subscriptionId: context.subscriptionId,
|
|
219
190
|
resourceGroupName: resourceGroupName,
|
|
220
191
|
name: name,
|
|
221
|
-
"api%2Dversion": context.apiVersion,
|
|
192
|
+
"api%2Dversion": context.apiVersion ?? "2026-03-15",
|
|
222
193
|
}, {
|
|
223
194
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
224
195
|
});
|
|
225
196
|
return context.path(path).get({
|
|
226
197
|
...operationOptionsToRequestParameters(options),
|
|
227
|
-
headers: {
|
|
228
|
-
accept: "application/json",
|
|
229
|
-
...options.requestOptions?.headers,
|
|
230
|
-
},
|
|
198
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
231
199
|
});
|
|
232
200
|
}
|
|
233
201
|
export async function _getDeserialize(result) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/disconnectedOperations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,OAAO,EACL,iCAAiC,EACjC,yBAAyB,EACzB,6CAA6C,EAC7C,+CAA+C,EAC/C,qCAAqC,EACrC,4CAA4C,EAC5C,mDAAmD,GACpD,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAWxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAG/F,MAAM,UAAU,2BAA2B,CACzC,OAAe,EACf,iBAAyB,EACzB,IAAY,EACZ,UAAsE;IACpE,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,IAAI,GAAG,iBAAiB,CAC5B,kKAAkK,EAClK;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,IAAI,EAAE,IAAI;QACV,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;QAC7B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,kCAAkC,CACtD,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAA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MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACzE,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { DisconnectedOperationsManagementContext as Client } from \"../index.js\";\nimport type {\n DisconnectedOperation,\n DisconnectedOperationCreateOrUpdate,\n DisconnectedOperationUpdate,\n _DisconnectedOperationListResult,\n DisconnectedOperationDeploymentManifest,\n} from \"../../models/models.js\";\nimport {\n disconnectedOperationDeserializer,\n errorResponseDeserializer,\n disconnectedOperationCreateOrUpdateSerializer,\n disconnectedOperationCreateOrUpdateDeserializer,\n disconnectedOperationUpdateSerializer,\n _disconnectedOperationListResultDeserializer,\n disconnectedOperationDeploymentManifestDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n DisconnectedOperationsListDeploymentManifestOptionalParams,\n DisconnectedOperationsListBySubscriptionOptionalParams,\n DisconnectedOperationsListByResourceGroupOptionalParams,\n DisconnectedOperationsDeleteOptionalParams,\n DisconnectedOperationsUpdateOptionalParams,\n DisconnectedOperationsCreateOrUpdateOptionalParams,\n DisconnectedOperationsGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _listDeploymentManifestSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n options: DisconnectedOperationsListDeploymentManifestOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}/listDeploymentManifest{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeploymentManifestDeserialize(\n result: PathUncheckedResponse,\n): Promise<DisconnectedOperationDeploymentManifest> {\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 disconnectedOperationDeploymentManifestDeserializer(result.body);\n}\n\n/** get deployment manifest. */\nexport async function listDeploymentManifest(\n context: Client,\n resourceGroupName: string,\n name: string,\n options: DisconnectedOperationsListDeploymentManifestOptionalParams = {\n requestOptions: {},\n },\n): Promise<DisconnectedOperationDeploymentManifest> {\n const result = await _listDeploymentManifestSend(context, resourceGroupName, name, options);\n return _listDeploymentManifestDeserialize(result);\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: DisconnectedOperationsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/disconnectedOperations{?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<_DisconnectedOperationListResult> {\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 _disconnectedOperationListResultDeserializer(result.body);\n}\n\n/** List DisconnectedOperation resources by subscription ID */\nexport function listBySubscription(\n context: Client,\n options: DisconnectedOperationsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<DisconnectedOperation> {\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: DisconnectedOperationsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations{?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<_DisconnectedOperationListResult> {\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 _disconnectedOperationListResultDeserializer(result.body);\n}\n\n/** List DisconnectedOperation resources by resource group */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: DisconnectedOperationsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<DisconnectedOperation> {\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 name: string,\n options: DisconnectedOperationsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"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 DisconnectedOperation */\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 name: string,\n options: DisconnectedOperationsDeleteOptionalParams = { 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, name, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n properties: DisconnectedOperationUpdate,\n options: DisconnectedOperationsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\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: disconnectedOperationUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<DisconnectedOperation> {\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 disconnectedOperationDeserializer(result.body);\n}\n\n/** Update a DisconnectedOperation */\nexport async function update(\n context: Client,\n resourceGroupName: string,\n name: string,\n properties: DisconnectedOperationUpdate,\n options: DisconnectedOperationsUpdateOptionalParams = { requestOptions: {} },\n): Promise<DisconnectedOperation> {\n const result = await _updateSend(context, resourceGroupName, name, properties, options);\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n resource: DisconnectedOperationCreateOrUpdate,\n options: DisconnectedOperationsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\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: disconnectedOperationCreateOrUpdateSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<DisconnectedOperationCreateOrUpdate> {\n const expectedStatuses = [\"200\", \"201\", \"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 disconnectedOperationCreateOrUpdateDeserializer(result.body);\n}\n\n/** Create a DisconnectedOperationCreateOrUpdate */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n name: string,\n resource: DisconnectedOperationCreateOrUpdate,\n options: DisconnectedOperationsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<\n OperationState<DisconnectedOperationCreateOrUpdate>,\n DisconnectedOperationCreateOrUpdate\n> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, name, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<\n OperationState<DisconnectedOperationCreateOrUpdate>,\n DisconnectedOperationCreateOrUpdate\n >;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n options: DisconnectedOperationsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\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<DisconnectedOperation> {\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 disconnectedOperationDeserializer(result.body);\n}\n\n/** Get a DisconnectedOperation */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n name: string,\n options: DisconnectedOperationsGetOptionalParams = { requestOptions: {} },\n): Promise<DisconnectedOperation> {\n const result = await _getSend(context, resourceGroupName, name, options);\n return _getDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/disconnectedOperations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,OAAO,EACL,iCAAiC,EACjC,yBAAyB,EACzB,6CAA6C,EAC7C,qCAAqC,EACrC,4CAA4C,EAC5C,mDAAmD,GACpD,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAWxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAG/F,MAAM,UAAU,2BAA2B,CACzC,OAAe,EACf,iBAAyB,EACzB,IAAY,EACZ,UAAsE,EAAE,cAAc,EAAE,EAAE,EAAE;IAE5F,MAAM,IAAI,GAAG,iBAAiB,CAC5B,kKAAkK,EAClK;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,IAAI,EAAE,IAAI;QACV,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,YAAY;KACpD,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;QAC7B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE,EAAE,MA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,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;QAEvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,iCAAiC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACxD,CAAC;AAED,kCAAkC;AAClC,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,IAAY,EACZ,UAAmD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEzE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACzE,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { DisconnectedOperationsManagementContext as Client } from \"../index.js\";\nimport type {\n DisconnectedOperation,\n DisconnectedOperationCreateOrUpdate,\n DisconnectedOperationUpdate,\n _DisconnectedOperationListResult,\n DisconnectedOperationDeploymentManifest,\n} from \"../../models/models.js\";\nimport {\n disconnectedOperationDeserializer,\n errorResponseDeserializer,\n disconnectedOperationCreateOrUpdateSerializer,\n disconnectedOperationUpdateSerializer,\n _disconnectedOperationListResultDeserializer,\n disconnectedOperationDeploymentManifestDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n DisconnectedOperationsListDeploymentManifestOptionalParams,\n DisconnectedOperationsListBySubscriptionOptionalParams,\n DisconnectedOperationsListByResourceGroupOptionalParams,\n DisconnectedOperationsDeleteOptionalParams,\n DisconnectedOperationsUpdateOptionalParams,\n DisconnectedOperationsCreateOrUpdateOptionalParams,\n DisconnectedOperationsGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _listDeploymentManifestSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n options: DisconnectedOperationsListDeploymentManifestOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}/listDeploymentManifest{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeploymentManifestDeserialize(\n result: PathUncheckedResponse,\n): Promise<DisconnectedOperationDeploymentManifest> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return disconnectedOperationDeploymentManifestDeserializer(result.body);\n}\n\n/** get deployment manifest. */\nexport async function listDeploymentManifest(\n context: Client,\n resourceGroupName: string,\n name: string,\n options: DisconnectedOperationsListDeploymentManifestOptionalParams = { requestOptions: {} },\n): Promise<DisconnectedOperationDeploymentManifest> {\n const result = await _listDeploymentManifestSend(context, resourceGroupName, name, options);\n return _listDeploymentManifestDeserialize(result);\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: DisconnectedOperationsListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Edge/disconnectedOperations{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_DisconnectedOperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return _disconnectedOperationListResultDeserializer(result.body);\n}\n\n/** List DisconnectedOperation resources by subscription ID */\nexport function listBySubscription(\n context: Client,\n options: DisconnectedOperationsListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<DisconnectedOperation> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-03-15\" },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: DisconnectedOperationsListByResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_DisconnectedOperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return _disconnectedOperationListResultDeserializer(result.body);\n}\n\n/** List DisconnectedOperation resources by resource group */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: DisconnectedOperationsListByResourceGroupOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<DisconnectedOperation> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-03-15\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n options: DisconnectedOperationsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return;\n}\n\n/** Delete a DisconnectedOperation */\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 name: string,\n options: DisconnectedOperationsDeleteOptionalParams = { 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, name, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-03-15\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n properties: DisconnectedOperationUpdate,\n options: DisconnectedOperationsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: disconnectedOperationUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<DisconnectedOperation> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return disconnectedOperationDeserializer(result.body);\n}\n\n/** Update a DisconnectedOperation */\nexport async function update(\n context: Client,\n resourceGroupName: string,\n name: string,\n properties: DisconnectedOperationUpdate,\n options: DisconnectedOperationsUpdateOptionalParams = { requestOptions: {} },\n): Promise<DisconnectedOperation> {\n const result = await _updateSend(context, resourceGroupName, name, properties, options);\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n resource: DisconnectedOperationCreateOrUpdate,\n options: DisconnectedOperationsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: disconnectedOperationCreateOrUpdateSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<DisconnectedOperation> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return disconnectedOperationDeserializer(result.body);\n}\n\n/** Create a DisconnectedOperation */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n name: string,\n resource: DisconnectedOperationCreateOrUpdate,\n options: DisconnectedOperationsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<DisconnectedOperation>, DisconnectedOperation> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, name, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n apiVersion: context.apiVersion ?? \"2026-03-15\",\n }) as PollerLike<OperationState<DisconnectedOperation>, DisconnectedOperation>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n options: DisconnectedOperationsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/disconnectedOperations/{name}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<DisconnectedOperation> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return disconnectedOperationDeserializer(result.body);\n}\n\n/** Get a DisconnectedOperation */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n name: string,\n options: DisconnectedOperationsGetOptionalParams = { requestOptions: {} },\n): Promise<DisconnectedOperation> {\n const result = await _getSend(context, resourceGroupName, name, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -3,11 +3,11 @@ import type { Client, ClientOptions } from "@azure-rest/core-client";
|
|
|
3
3
|
import type { TokenCredential } from "@azure/core-auth";
|
|
4
4
|
/** Disconnected operations service API. */
|
|
5
5
|
export interface DisconnectedOperationsManagementContext extends Client {
|
|
6
|
-
/** The API version to use for this operation. */
|
|
7
|
-
/** Known values of {@link KnownVersions} that the service accepts. */
|
|
8
|
-
apiVersion: string;
|
|
9
6
|
/** The ID of the target subscription. The value must be an UUID. */
|
|
10
7
|
subscriptionId: string;
|
|
8
|
+
/** The API version to use for this operation. */
|
|
9
|
+
/** Known values of {@link KnownVersions} that the service accepts. */
|
|
10
|
+
apiVersion?: string;
|
|
11
11
|
}
|
|
12
12
|
/** Optional parameters for the client. */
|
|
13
13
|
export interface DisconnectedOperationsManagementClientOptionalParams extends ClientOptions {
|
|
@@ -7,7 +7,7 @@ import { getClient } from "@azure-rest/core-client";
|
|
|
7
7
|
export function createDisconnectedOperationsManagement(credential, subscriptionId, options = {}) {
|
|
8
8
|
const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
|
|
9
9
|
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
10
|
-
const userAgentInfo = `azsdk-js-arm-disconnectedoperations/1.0.0
|
|
10
|
+
const userAgentInfo = `azsdk-js-arm-disconnectedoperations/1.0.0`;
|
|
11
11
|
const userAgentPrefix = prefixFromOptions
|
|
12
12
|
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
13
13
|
: `azsdk-js-api ${userAgentInfo}`;
|
|
@@ -15,25 +15,10 @@ export function createDisconnectedOperationsManagement(credential, subscriptionI
|
|
|
15
15
|
...options,
|
|
16
16
|
userAgentOptions: { userAgentPrefix },
|
|
17
17
|
loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
|
|
18
|
-
credentials: {
|
|
19
|
-
scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],
|
|
20
|
-
},
|
|
18
|
+
credentials: { scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`] },
|
|
21
19
|
};
|
|
22
20
|
const clientContext = getClient(endpointUrl, credential, updatedOptions);
|
|
23
|
-
|
|
24
|
-
const apiVersion = options.apiVersion ?? "2025-06-01-preview";
|
|
25
|
-
clientContext.pipeline.addPolicy({
|
|
26
|
-
name: "ClientApiVersionPolicy",
|
|
27
|
-
sendRequest: (req, next) => {
|
|
28
|
-
// Use the apiVersion defined in request url directly
|
|
29
|
-
// Append one if there is no apiVersion and we have one at client options
|
|
30
|
-
const url = new URL(req.url);
|
|
31
|
-
if (!url.searchParams.get("api-version")) {
|
|
32
|
-
req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
|
|
33
|
-
}
|
|
34
|
-
return next(req);
|
|
35
|
-
},
|
|
36
|
-
});
|
|
21
|
+
const apiVersion = options.apiVersion;
|
|
37
22
|
return {
|
|
38
23
|
...clientContext,
|
|
39
24
|
apiVersion,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disconnectedOperationsManagementContext.js","sourceRoot":"","sources":["../../../src/api/disconnectedOperationsManagementContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAqBpD,2CAA2C;AAC3C,MAAM,UAAU,sCAAsC,CACpD,UAA2B,EAC3B,cAAsB,EACtB,UAAgE,EAAE;IAElE,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8BAA8B,CAAC;IAC7F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"disconnectedOperationsManagementContext.js","sourceRoot":"","sources":["../../../src/api/disconnectedOperationsManagementContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAqBpD,2CAA2C;AAC3C,MAAM,UAAU,sCAAsC,CACpD,UAA2B,EAC3B,cAAsB,EACtB,UAAgE,EAAE;IAElE,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8BAA8B,CAAC;IAC7F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,2CAA2C,CAAC;IAClE,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,GAAG,WAAW,WAAW,CAAC,EAAE;KACpF,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACtC,OAAO;QACL,GAAG,aAAa;QAChB,UAAU;QACV,cAAc;KAC4B,CAAC;AAC/C,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 type { AzureSupportedClouds } from \"../static-helpers/cloudSettingHelpers.js\";\nimport { getArmEndpoint } from \"../static-helpers/cloudSettingHelpers.js\";\nimport type { Client, ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\n/** Disconnected operations service API. */\nexport interface DisconnectedOperationsManagementContext extends Client {\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** Optional parameters for the client. */\nexport interface DisconnectedOperationsManagementClientOptionalParams 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 /** Specifies the Azure cloud environment for the client. */\n cloudSetting?: AzureSupportedClouds;\n}\n\n/** Disconnected operations service API. */\nexport function createDisconnectedOperationsManagement(\n credential: TokenCredential,\n subscriptionId: string,\n options: DisconnectedOperationsManagementClientOptionalParams = {},\n): DisconnectedOperationsManagementContext {\n const endpointUrl =\n options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-disconnectedoperations/1.0.0`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: { scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`] },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n const apiVersion = options.apiVersion;\n return {\n ...clientContext,\n apiVersion,\n subscriptionId,\n } as DisconnectedOperationsManagementContext;\n}\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { $delete, createOrUpdate, get, listByParent } from "./operations.js";
|
|
2
|
+
export type { HardwareSettingsDeleteOptionalParams, HardwareSettingsCreateOrUpdateOptionalParams, HardwareSettingsGetOptionalParams, HardwareSettingsListByParentOptionalParams, } from "./options.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/hardwareSettings/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { $delete, createOrUpdate, get, listByParent } from \"./operations.js\";\nexport type {\n HardwareSettingsDeleteOptionalParams,\n HardwareSettingsCreateOrUpdateOptionalParams,\n HardwareSettingsGetOptionalParams,\n HardwareSettingsListByParentOptionalParams,\n} from \"./options.js\";\n"]}
|