@azure/arm-operationalinsights 9.0.1-alpha.20250718.1 → 9.0.1-alpha.20250730.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/browser/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +255 -120
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operationalInsightsManagementClient.js +34 -5
- package/dist/browser/operationalInsightsManagementClient.js.map +1 -1
- package/dist/browser/operations/availableServiceTiers.js +1 -0
- package/dist/browser/operations/availableServiceTiers.js.map +1 -1
- package/dist/browser/operations/clusters.js +78 -97
- package/dist/browser/operations/clusters.js.map +1 -1
- package/dist/browser/operations/dataExports.js +10 -27
- package/dist/browser/operations/dataExports.js.map +1 -1
- package/dist/browser/operations/dataSources.js +23 -40
- package/dist/browser/operations/dataSources.js.map +1 -1
- package/dist/browser/operations/deletedWorkspaces.js +19 -53
- package/dist/browser/operations/deletedWorkspaces.js.map +1 -1
- package/dist/browser/operations/gateways.js +1 -0
- package/dist/browser/operations/gateways.js.map +1 -1
- package/dist/browser/operations/intelligencePacks.js +1 -0
- package/dist/browser/operations/intelligencePacks.js.map +1 -1
- package/dist/browser/operations/linkedServices.js +32 -39
- package/dist/browser/operations/linkedServices.js.map +1 -1
- package/dist/browser/operations/linkedStorageAccounts.js +10 -27
- package/dist/browser/operations/linkedStorageAccounts.js.map +1 -1
- package/dist/browser/operations/managementGroups.js +10 -27
- package/dist/browser/operations/managementGroups.js.map +1 -1
- package/dist/browser/operations/operationStatuses.js +1 -0
- package/dist/browser/operations/operationStatuses.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/queries.js +45 -79
- package/dist/browser/operations/queries.js.map +1 -1
- package/dist/browser/operations/queryPacks.js +45 -79
- package/dist/browser/operations/queryPacks.js.map +1 -1
- package/dist/browser/operations/savedSearches.js +1 -0
- package/dist/browser/operations/savedSearches.js.map +1 -1
- package/dist/browser/operations/schemaOperations.js +1 -0
- package/dist/browser/operations/schemaOperations.js.map +1 -1
- package/dist/browser/operations/sharedKeysOperations.js +1 -0
- package/dist/browser/operations/sharedKeysOperations.js.map +1 -1
- package/dist/browser/operations/storageInsightConfigs.js +23 -40
- package/dist/browser/operations/storageInsightConfigs.js.map +1 -1
- package/dist/browser/operations/tables.js +43 -45
- package/dist/browser/operations/tables.js.map +1 -1
- package/dist/browser/operations/usages.js +10 -27
- package/dist/browser/operations/usages.js.map +1 -1
- package/dist/browser/operations/workspacePurge.js +1 -0
- package/dist/browser/operations/workspacePurge.js.map +1 -1
- package/dist/browser/operations/workspaces.js +41 -65
- package/dist/browser/operations/workspaces.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +255 -120
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operationalInsightsManagementClient.js +34 -5
- package/dist/commonjs/operationalInsightsManagementClient.js.map +1 -1
- package/dist/commonjs/operations/availableServiceTiers.js +1 -0
- package/dist/commonjs/operations/availableServiceTiers.js.map +1 -1
- package/dist/commonjs/operations/clusters.js +78 -96
- package/dist/commonjs/operations/clusters.js.map +1 -1
- package/dist/commonjs/operations/dataExports.js +10 -26
- package/dist/commonjs/operations/dataExports.js.map +1 -1
- package/dist/commonjs/operations/dataSources.js +23 -39
- package/dist/commonjs/operations/dataSources.js.map +1 -1
- package/dist/commonjs/operations/deletedWorkspaces.js +19 -52
- package/dist/commonjs/operations/deletedWorkspaces.js.map +1 -1
- package/dist/commonjs/operations/gateways.js +1 -0
- package/dist/commonjs/operations/gateways.js.map +1 -1
- package/dist/commonjs/operations/intelligencePacks.js +1 -0
- package/dist/commonjs/operations/intelligencePacks.js.map +1 -1
- package/dist/commonjs/operations/linkedServices.js +32 -38
- package/dist/commonjs/operations/linkedServices.js.map +1 -1
- package/dist/commonjs/operations/linkedStorageAccounts.js +10 -26
- package/dist/commonjs/operations/linkedStorageAccounts.js.map +1 -1
- package/dist/commonjs/operations/managementGroups.js +10 -26
- package/dist/commonjs/operations/managementGroups.js.map +1 -1
- package/dist/commonjs/operations/operationStatuses.js +1 -0
- package/dist/commonjs/operations/operationStatuses.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/queries.js +45 -78
- package/dist/commonjs/operations/queries.js.map +1 -1
- package/dist/commonjs/operations/queryPacks.js +45 -78
- package/dist/commonjs/operations/queryPacks.js.map +1 -1
- package/dist/commonjs/operations/savedSearches.js +1 -0
- package/dist/commonjs/operations/savedSearches.js.map +1 -1
- package/dist/commonjs/operations/schemaOperations.js +1 -0
- package/dist/commonjs/operations/schemaOperations.js.map +1 -1
- package/dist/commonjs/operations/sharedKeysOperations.js +1 -0
- package/dist/commonjs/operations/sharedKeysOperations.js.map +1 -1
- package/dist/commonjs/operations/storageInsightConfigs.js +23 -39
- package/dist/commonjs/operations/storageInsightConfigs.js.map +1 -1
- package/dist/commonjs/operations/tables.js +43 -44
- package/dist/commonjs/operations/tables.js.map +1 -1
- package/dist/commonjs/operations/usages.js +10 -26
- package/dist/commonjs/operations/usages.js.map +1 -1
- package/dist/commonjs/operations/workspacePurge.js +1 -0
- package/dist/commonjs/operations/workspacePurge.js.map +1 -1
- package/dist/commonjs/operations/workspaces.js +41 -64
- package/dist/commonjs/operations/workspaces.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +255 -120
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operationalInsightsManagementClient.js +34 -5
- package/dist/esm/operationalInsightsManagementClient.js.map +1 -1
- package/dist/esm/operations/availableServiceTiers.js +1 -0
- package/dist/esm/operations/availableServiceTiers.js.map +1 -1
- package/dist/esm/operations/clusters.js +78 -97
- package/dist/esm/operations/clusters.js.map +1 -1
- package/dist/esm/operations/dataExports.js +10 -27
- package/dist/esm/operations/dataExports.js.map +1 -1
- package/dist/esm/operations/dataSources.js +23 -40
- package/dist/esm/operations/dataSources.js.map +1 -1
- package/dist/esm/operations/deletedWorkspaces.js +19 -53
- package/dist/esm/operations/deletedWorkspaces.js.map +1 -1
- package/dist/esm/operations/gateways.js +1 -0
- package/dist/esm/operations/gateways.js.map +1 -1
- package/dist/esm/operations/intelligencePacks.js +1 -0
- package/dist/esm/operations/intelligencePacks.js.map +1 -1
- package/dist/esm/operations/linkedServices.js +32 -39
- package/dist/esm/operations/linkedServices.js.map +1 -1
- package/dist/esm/operations/linkedStorageAccounts.js +10 -27
- package/dist/esm/operations/linkedStorageAccounts.js.map +1 -1
- package/dist/esm/operations/managementGroups.js +10 -27
- package/dist/esm/operations/managementGroups.js.map +1 -1
- package/dist/esm/operations/operationStatuses.js +1 -0
- package/dist/esm/operations/operationStatuses.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/queries.js +45 -79
- package/dist/esm/operations/queries.js.map +1 -1
- package/dist/esm/operations/queryPacks.js +45 -79
- package/dist/esm/operations/queryPacks.js.map +1 -1
- package/dist/esm/operations/savedSearches.js +1 -0
- package/dist/esm/operations/savedSearches.js.map +1 -1
- package/dist/esm/operations/schemaOperations.js +1 -0
- package/dist/esm/operations/schemaOperations.js.map +1 -1
- package/dist/esm/operations/sharedKeysOperations.js +1 -0
- package/dist/esm/operations/sharedKeysOperations.js.map +1 -1
- package/dist/esm/operations/storageInsightConfigs.js +23 -40
- package/dist/esm/operations/storageInsightConfigs.js.map +1 -1
- package/dist/esm/operations/tables.js +43 -45
- package/dist/esm/operations/tables.js.map +1 -1
- package/dist/esm/operations/usages.js +10 -27
- package/dist/esm/operations/usages.js.map +1 -1
- package/dist/esm/operations/workspacePurge.js +1 -0
- package/dist/esm/operations/workspacePurge.js.map +1 -1
- package/dist/esm/operations/workspaces.js +41 -65
- package/dist/esm/operations/workspaces.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +255 -120
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operationalInsightsManagementClient.js +34 -5
- package/dist/react-native/operationalInsightsManagementClient.js.map +1 -1
- package/dist/react-native/operations/availableServiceTiers.js +1 -0
- package/dist/react-native/operations/availableServiceTiers.js.map +1 -1
- package/dist/react-native/operations/clusters.js +78 -97
- package/dist/react-native/operations/clusters.js.map +1 -1
- package/dist/react-native/operations/dataExports.js +10 -27
- package/dist/react-native/operations/dataExports.js.map +1 -1
- package/dist/react-native/operations/dataSources.js +23 -40
- package/dist/react-native/operations/dataSources.js.map +1 -1
- package/dist/react-native/operations/deletedWorkspaces.js +19 -53
- package/dist/react-native/operations/deletedWorkspaces.js.map +1 -1
- package/dist/react-native/operations/gateways.js +1 -0
- package/dist/react-native/operations/gateways.js.map +1 -1
- package/dist/react-native/operations/intelligencePacks.js +1 -0
- package/dist/react-native/operations/intelligencePacks.js.map +1 -1
- package/dist/react-native/operations/linkedServices.js +32 -39
- package/dist/react-native/operations/linkedServices.js.map +1 -1
- package/dist/react-native/operations/linkedStorageAccounts.js +10 -27
- package/dist/react-native/operations/linkedStorageAccounts.js.map +1 -1
- package/dist/react-native/operations/managementGroups.js +10 -27
- package/dist/react-native/operations/managementGroups.js.map +1 -1
- package/dist/react-native/operations/operationStatuses.js +1 -0
- package/dist/react-native/operations/operationStatuses.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/queries.js +45 -79
- package/dist/react-native/operations/queries.js.map +1 -1
- package/dist/react-native/operations/queryPacks.js +45 -79
- package/dist/react-native/operations/queryPacks.js.map +1 -1
- package/dist/react-native/operations/savedSearches.js +1 -0
- package/dist/react-native/operations/savedSearches.js.map +1 -1
- package/dist/react-native/operations/schemaOperations.js +1 -0
- package/dist/react-native/operations/schemaOperations.js.map +1 -1
- package/dist/react-native/operations/sharedKeysOperations.js +1 -0
- package/dist/react-native/operations/sharedKeysOperations.js.map +1 -1
- package/dist/react-native/operations/storageInsightConfigs.js +23 -40
- package/dist/react-native/operations/storageInsightConfigs.js.map +1 -1
- package/dist/react-native/operations/tables.js +43 -45
- package/dist/react-native/operations/tables.js.map +1 -1
- package/dist/react-native/operations/usages.js +10 -27
- package/dist/react-native/operations/usages.js.map +1 -1
- package/dist/react-native/operations/workspacePurge.js +1 -0
- package/dist/react-native/operations/workspacePurge.js.map +1 -1
- package/dist/react-native/operations/workspaces.js +41 -65
- package/dist/react-native/operations/workspaces.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-operationalinsights-node.api.md +1758 -1758
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
|
12
11
|
/// <reference lib="esnext.asynciterable" />
|
|
13
12
|
/** Class containing DataExports operations. */
|
|
14
13
|
export class DataExportsImpl {
|
|
14
|
+
client;
|
|
15
15
|
/**
|
|
16
16
|
* Initialize a new instance of the class DataExports class.
|
|
17
17
|
* @param client Reference to the service client
|
|
@@ -35,39 +35,22 @@ export class DataExportsImpl {
|
|
|
35
35
|
return this;
|
|
36
36
|
},
|
|
37
37
|
byPage: (settings) => {
|
|
38
|
-
if (settings
|
|
38
|
+
if (settings?.maxPageSize) {
|
|
39
39
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
40
|
}
|
|
41
41
|
return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
listByWorkspacePagingPage(resourceGroupName, workspaceName, options, _settings) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
yield yield __await(result.value || []);
|
|
50
|
-
});
|
|
45
|
+
async *listByWorkspacePagingPage(resourceGroupName, workspaceName, options, _settings) {
|
|
46
|
+
let result;
|
|
47
|
+
result = await this._listByWorkspace(resourceGroupName, workspaceName, options);
|
|
48
|
+
yield result.value || [];
|
|
51
49
|
}
|
|
52
|
-
listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
for (var _d = true, _e = __asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
57
|
-
_c = _f.value;
|
|
58
|
-
_d = false;
|
|
59
|
-
const page = _c;
|
|
60
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
-
finally {
|
|
65
|
-
try {
|
|
66
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
67
|
-
}
|
|
68
|
-
finally { if (e_1) throw e_1.error; }
|
|
69
|
-
}
|
|
70
|
-
});
|
|
50
|
+
async *listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
|
|
51
|
+
for await (const page of this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)) {
|
|
52
|
+
yield* page;
|
|
53
|
+
}
|
|
71
54
|
}
|
|
72
55
|
/**
|
|
73
56
|
* Lists the data export instances within a workspace.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataExports.js","sourceRoot":"","sources":["../../../src/operations/dataExports.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAatD,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IAG1B;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,eAAe,CACpB,iBAAyB,EACzB,aAAqB,EACrB,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,CACxC,iBAAiB,EACjB,aAAa,EACb,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,yBAAyB,CACnC,iBAAiB,EACjB,aAAa,EACb,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,yBAAyB,CACtC,iBAAyB,EACzB,aAAqB,EACrB,OAAkD,EAClD,SAAwB;;YAExB,IAAI,MAA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,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EACF,oKAAoK;IACtK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,oKAAoK;IACtK,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { DataExports } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { OperationalInsightsManagementClient } from \"../operationalInsightsManagementClient.js\";\nimport {\n DataExport,\n DataExportsListByWorkspaceOptionalParams,\n DataExportsListByWorkspaceResponse,\n DataExportsCreateOrUpdateOptionalParams,\n DataExportsCreateOrUpdateResponse,\n DataExportsGetOptionalParams,\n DataExportsGetResponse,\n DataExportsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DataExports operations. */\nexport class DataExportsImpl implements DataExports {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class DataExports class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the data export instances within a workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n public listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: DataExportsListByWorkspaceOptionalParams\n ): PagedAsyncIterableIterator<DataExport> {\n const iter = this.listByWorkspacePagingAll(\n resourceGroupName,\n workspaceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByWorkspacePagingPage(\n resourceGroupName: string,\n workspaceName: string,\n options?: DataExportsListByWorkspaceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<DataExport[]> {\n let result: DataExportsListByWorkspaceResponse;\n result = await this._listByWorkspace(\n resourceGroupName,\n workspaceName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByWorkspacePagingAll(\n resourceGroupName: string,\n workspaceName: string,\n options?: DataExportsListByWorkspaceOptionalParams\n ): AsyncIterableIterator<DataExport> {\n for await (const page of this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the data export instances within a workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n private _listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: DataExportsListByWorkspaceOptionalParams\n ): Promise<DataExportsListByWorkspaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listByWorkspaceOperationSpec\n );\n }\n\n /**\n * Create or update a data export.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param dataExportName The data export rule name.\n * @param parameters The parameters required to create or update a data export.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n dataExportName: string,\n parameters: DataExport,\n options?: DataExportsCreateOrUpdateOptionalParams\n ): Promise<DataExportsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, dataExportName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Gets a data export instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param dataExportName The data export rule name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n dataExportName: string,\n options?: DataExportsGetOptionalParams\n ): Promise<DataExportsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, dataExportName, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes the specified data export in a given workspace..\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param dataExportName The data export rule name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n dataExportName: string,\n options?: DataExportsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, dataExportName, options },\n deleteOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataExportListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataExport\n },\n 201: {\n bodyMapper: Mappers.DataExport\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.dataExportName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataExport\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.dataExportName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 404: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.dataExportName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"dataExports.js","sourceRoot":"","sources":["../../../src/operations/dataExports.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAatD,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IACT,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,eAAe,CACpB,iBAAyB,EACzB,aAAqB,EACrB,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,CACxC,iBAAiB,EACjB,aAAa,EACb,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAA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AAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { DataExports } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { OperationalInsightsManagementClient } from \"../operationalInsightsManagementClient.js\";\nimport {\n DataExport,\n DataExportsListByWorkspaceOptionalParams,\n DataExportsListByWorkspaceResponse,\n DataExportsCreateOrUpdateOptionalParams,\n DataExportsCreateOrUpdateResponse,\n DataExportsGetOptionalParams,\n DataExportsGetResponse,\n DataExportsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DataExports operations. */\nexport class DataExportsImpl implements DataExports {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class DataExports class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the data export instances within a workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n public listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: DataExportsListByWorkspaceOptionalParams\n ): PagedAsyncIterableIterator<DataExport> {\n const iter = this.listByWorkspacePagingAll(\n resourceGroupName,\n workspaceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByWorkspacePagingPage(\n resourceGroupName: string,\n workspaceName: string,\n options?: DataExportsListByWorkspaceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<DataExport[]> {\n let result: DataExportsListByWorkspaceResponse;\n result = await this._listByWorkspace(\n resourceGroupName,\n workspaceName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByWorkspacePagingAll(\n resourceGroupName: string,\n workspaceName: string,\n options?: DataExportsListByWorkspaceOptionalParams\n ): AsyncIterableIterator<DataExport> {\n for await (const page of this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the data export instances within a workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n private _listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: DataExportsListByWorkspaceOptionalParams\n ): Promise<DataExportsListByWorkspaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listByWorkspaceOperationSpec\n );\n }\n\n /**\n * Create or update a data export.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param dataExportName The data export rule name.\n * @param parameters The parameters required to create or update a data export.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n dataExportName: string,\n parameters: DataExport,\n options?: DataExportsCreateOrUpdateOptionalParams\n ): Promise<DataExportsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, dataExportName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Gets a data export instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param dataExportName The data export rule name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n dataExportName: string,\n options?: DataExportsGetOptionalParams\n ): Promise<DataExportsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, dataExportName, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes the specified data export in a given workspace..\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param dataExportName The data export rule name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n dataExportName: string,\n options?: DataExportsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, dataExportName, options },\n deleteOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataExportListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataExport\n },\n 201: {\n bodyMapper: Mappers.DataExport\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.dataExportName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataExport\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.dataExportName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 404: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.dataExportName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing DataSources operations. */
|
|
15
14
|
export class DataSourcesImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class DataSources class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class DataSourcesImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, filter, options, settings);
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listByWorkspacePagingPage(resourceGroupName, workspaceName, filter, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listByWorkspacePagingPage(resourceGroupName, workspaceName, filter, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._listByWorkspace(resourceGroupName, workspaceName, filter, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listByWorkspacePagingAll(resourceGroupName, workspaceName, filter, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, filter, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listByWorkspacePagingAll(resourceGroupName, workspaceName, filter, options) {
|
|
66
|
+
for await (const page of this.listByWorkspacePagingPage(resourceGroupName, workspaceName, filter, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Create or update a data source.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataSources.js","sourceRoot":"","sources":["../../../src/operations/dataSources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IAG1B;;;OAGG;IACH,YAAY,MAA2C;QACr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AAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DataSources } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { OperationalInsightsManagementClient } from \"../operationalInsightsManagementClient.js\";\nimport {\n DataSource,\n DataSourcesListByWorkspaceNextOptionalParams,\n DataSourcesListByWorkspaceOptionalParams,\n DataSourcesListByWorkspaceResponse,\n DataSourcesCreateOrUpdateOptionalParams,\n DataSourcesCreateOrUpdateResponse,\n DataSourcesDeleteOptionalParams,\n DataSourcesGetOptionalParams,\n DataSourcesGetResponse,\n DataSourcesListByWorkspaceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DataSources operations. */\nexport class DataSourcesImpl implements DataSources {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class DataSources class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the first page of data source instances in a workspace with the link to the next page.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param filter The filter to apply on the operation.\n * @param options The options parameters.\n */\n public listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n filter: string,\n options?: DataSourcesListByWorkspaceOptionalParams\n ): PagedAsyncIterableIterator<DataSource> {\n const iter = this.listByWorkspacePagingAll(\n resourceGroupName,\n workspaceName,\n filter,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n filter,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByWorkspacePagingPage(\n resourceGroupName: string,\n workspaceName: string,\n filter: string,\n options?: DataSourcesListByWorkspaceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<DataSource[]> {\n let result: DataSourcesListByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByWorkspace(\n resourceGroupName,\n workspaceName,\n filter,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByWorkspaceNext(\n resourceGroupName,\n workspaceName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByWorkspacePagingAll(\n resourceGroupName: string,\n workspaceName: string,\n filter: string,\n options?: DataSourcesListByWorkspaceOptionalParams\n ): AsyncIterableIterator<DataSource> {\n for await (const page of this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n filter,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Create or update a data source.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param dataSourceName The name of the datasource resource.\n * @param parameters The parameters required to create or update a datasource.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n dataSourceName: string,\n parameters: DataSource,\n options?: DataSourcesCreateOrUpdateOptionalParams\n ): Promise<DataSourcesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, dataSourceName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a data source instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param dataSourceName Name of the datasource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n dataSourceName: string,\n options?: DataSourcesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, dataSourceName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Gets a datasource instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param dataSourceName Name of the datasource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n dataSourceName: string,\n options?: DataSourcesGetOptionalParams\n ): Promise<DataSourcesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, dataSourceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets the first page of data source instances in a workspace with the link to the next page.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param filter The filter to apply on the operation.\n * @param options The options parameters.\n */\n private _listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n filter: string,\n options?: DataSourcesListByWorkspaceOptionalParams\n ): Promise<DataSourcesListByWorkspaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, filter, options },\n listByWorkspaceOperationSpec\n );\n }\n\n /**\n * ListByWorkspaceNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.\n * @param options The options parameters.\n */\n private _listByWorkspaceNext(\n resourceGroupName: string,\n workspaceName: string,\n nextLink: string,\n options?: DataSourcesListByWorkspaceNextOptionalParams\n ): Promise<DataSourcesListByWorkspaceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, nextLink, options },\n listByWorkspaceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataSource\n },\n 201: {\n bodyMapper: Mappers.DataSource\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.dataSourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 204: {} },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.dataSourceName\n ],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataSource\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.dataSourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataSourceListResult\n }\n },\n queryParameters: [\n Parameters.apiVersion1,\n Parameters.filter,\n Parameters.skiptoken\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataSourceListResult\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"dataSources.js","sourceRoot":"","sources":["../../../src/operations/dataSources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,+CAA+C;AAC/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AAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DataSources } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { OperationalInsightsManagementClient } from \"../operationalInsightsManagementClient.js\";\nimport {\n DataSource,\n DataSourcesListByWorkspaceNextOptionalParams,\n DataSourcesListByWorkspaceOptionalParams,\n DataSourcesListByWorkspaceResponse,\n DataSourcesCreateOrUpdateOptionalParams,\n DataSourcesCreateOrUpdateResponse,\n DataSourcesDeleteOptionalParams,\n DataSourcesGetOptionalParams,\n DataSourcesGetResponse,\n DataSourcesListByWorkspaceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DataSources operations. */\nexport class DataSourcesImpl implements DataSources {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class DataSources class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the first page of data source instances in a workspace with the link to the next page.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param filter The filter to apply on the operation.\n * @param options The options parameters.\n */\n public listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n filter: string,\n options?: DataSourcesListByWorkspaceOptionalParams\n ): PagedAsyncIterableIterator<DataSource> {\n const iter = this.listByWorkspacePagingAll(\n resourceGroupName,\n workspaceName,\n filter,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n filter,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByWorkspacePagingPage(\n resourceGroupName: string,\n workspaceName: string,\n filter: string,\n options?: DataSourcesListByWorkspaceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<DataSource[]> {\n let result: DataSourcesListByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByWorkspace(\n resourceGroupName,\n workspaceName,\n filter,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByWorkspaceNext(\n resourceGroupName,\n workspaceName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByWorkspacePagingAll(\n resourceGroupName: string,\n workspaceName: string,\n filter: string,\n options?: DataSourcesListByWorkspaceOptionalParams\n ): AsyncIterableIterator<DataSource> {\n for await (const page of this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n filter,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Create or update a data source.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param dataSourceName The name of the datasource resource.\n * @param parameters The parameters required to create or update a datasource.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n dataSourceName: string,\n parameters: DataSource,\n options?: DataSourcesCreateOrUpdateOptionalParams\n ): Promise<DataSourcesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, dataSourceName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a data source instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param dataSourceName Name of the datasource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n dataSourceName: string,\n options?: DataSourcesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, dataSourceName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Gets a datasource instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param dataSourceName Name of the datasource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n dataSourceName: string,\n options?: DataSourcesGetOptionalParams\n ): Promise<DataSourcesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, dataSourceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets the first page of data source instances in a workspace with the link to the next page.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param filter The filter to apply on the operation.\n * @param options The options parameters.\n */\n private _listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n filter: string,\n options?: DataSourcesListByWorkspaceOptionalParams\n ): Promise<DataSourcesListByWorkspaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, filter, options },\n listByWorkspaceOperationSpec\n );\n }\n\n /**\n * ListByWorkspaceNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.\n * @param options The options parameters.\n */\n private _listByWorkspaceNext(\n resourceGroupName: string,\n workspaceName: string,\n nextLink: string,\n options?: DataSourcesListByWorkspaceNextOptionalParams\n ): Promise<DataSourcesListByWorkspaceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, nextLink, options },\n listByWorkspaceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataSource\n },\n 201: {\n bodyMapper: Mappers.DataSource\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.dataSourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 204: {} },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.dataSourceName\n ],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataSource\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.dataSourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataSourceListResult\n }\n },\n queryParameters: [\n Parameters.apiVersion1,\n Parameters.filter,\n Parameters.skiptoken\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataSourceListResult\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
|
12
11
|
/// <reference lib="esnext.asynciterable" />
|
|
13
12
|
/** Class containing DeletedWorkspaces operations. */
|
|
14
13
|
export class DeletedWorkspacesImpl {
|
|
14
|
+
client;
|
|
15
15
|
/**
|
|
16
16
|
* Initialize a new instance of the class DeletedWorkspaces class.
|
|
17
17
|
* @param client Reference to the service client
|
|
@@ -33,39 +33,22 @@ export class DeletedWorkspacesImpl {
|
|
|
33
33
|
return this;
|
|
34
34
|
},
|
|
35
35
|
byPage: (settings) => {
|
|
36
|
-
if (settings
|
|
36
|
+
if (settings?.maxPageSize) {
|
|
37
37
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
38
38
|
}
|
|
39
39
|
return this.listPagingPage(options, settings);
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
listPagingPage(options, _settings) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
yield yield __await(result.value || []);
|
|
48
|
-
});
|
|
43
|
+
async *listPagingPage(options, _settings) {
|
|
44
|
+
let result;
|
|
45
|
+
result = await this._list(options);
|
|
46
|
+
yield result.value || [];
|
|
49
47
|
}
|
|
50
|
-
listPagingAll(options) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
55
|
-
_c = _f.value;
|
|
56
|
-
_d = false;
|
|
57
|
-
const page = _c;
|
|
58
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
62
|
-
finally {
|
|
63
|
-
try {
|
|
64
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
65
|
-
}
|
|
66
|
-
finally { if (e_1) throw e_1.error; }
|
|
67
|
-
}
|
|
68
|
-
});
|
|
48
|
+
async *listPagingAll(options) {
|
|
49
|
+
for await (const page of this.listPagingPage(options)) {
|
|
50
|
+
yield* page;
|
|
51
|
+
}
|
|
69
52
|
}
|
|
70
53
|
/**
|
|
71
54
|
* Gets recently deleted workspaces in a resource group, available for recovery.
|
|
@@ -82,39 +65,22 @@ export class DeletedWorkspacesImpl {
|
|
|
82
65
|
return this;
|
|
83
66
|
},
|
|
84
67
|
byPage: (settings) => {
|
|
85
|
-
if (settings
|
|
68
|
+
if (settings?.maxPageSize) {
|
|
86
69
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
87
70
|
}
|
|
88
71
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
89
72
|
}
|
|
90
73
|
};
|
|
91
74
|
}
|
|
92
|
-
listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
yield yield __await(result.value || []);
|
|
97
|
-
});
|
|
75
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
76
|
+
let result;
|
|
77
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
78
|
+
yield result.value || [];
|
|
98
79
|
}
|
|
99
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
104
|
-
_c = _f.value;
|
|
105
|
-
_d = false;
|
|
106
|
-
const page = _c;
|
|
107
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
111
|
-
finally {
|
|
112
|
-
try {
|
|
113
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
114
|
-
}
|
|
115
|
-
finally { if (e_2) throw e_2.error; }
|
|
116
|
-
}
|
|
117
|
-
});
|
|
80
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
81
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
82
|
+
yield* page;
|
|
83
|
+
}
|
|
118
84
|
}
|
|
119
85
|
/**
|
|
120
86
|
* Gets recently deleted workspaces in a subscription, available for recovery.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deletedWorkspaces.js","sourceRoot":"","sources":["../../../src/operations/deletedWorkspaces.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"deletedWorkspaces.js","sourceRoot":"","sources":["../../../src/operations/deletedWorkspaces.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IACf,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA6C;QAE7C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAA6C,EAC7C,SAAwB;QAExB,IAAI,MAAqC,CAAC;QAC1C,MAAM,G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AAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { DeletedWorkspaces } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { OperationalInsightsManagementClient } from \"../operationalInsightsManagementClient.js\";\nimport {\n Workspace,\n DeletedWorkspacesListOptionalParams,\n DeletedWorkspacesListResponse,\n DeletedWorkspacesListByResourceGroupOptionalParams,\n DeletedWorkspacesListByResourceGroupResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DeletedWorkspaces operations. */\nexport class DeletedWorkspacesImpl implements DeletedWorkspaces {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class DeletedWorkspaces class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets recently deleted workspaces in a subscription, available for recovery.\n * @param options The options parameters.\n */\n public list(\n options?: DeletedWorkspacesListOptionalParams\n ): PagedAsyncIterableIterator<Workspace> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: DeletedWorkspacesListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Workspace[]> {\n let result: DeletedWorkspacesListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: DeletedWorkspacesListOptionalParams\n ): AsyncIterableIterator<Workspace> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets recently deleted workspaces in a resource group, available for recovery.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: DeletedWorkspacesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Workspace> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: DeletedWorkspacesListByResourceGroupOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Workspace[]> {\n let result: DeletedWorkspacesListByResourceGroupResponse;\n result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: DeletedWorkspacesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Workspace> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets recently deleted workspaces in a subscription, available for recovery.\n * @param options The options parameters.\n */\n private _list(\n options?: DeletedWorkspacesListOptionalParams\n ): Promise<DeletedWorkspacesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets recently deleted workspaces in a resource group, available for recovery.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: DeletedWorkspacesListByResourceGroupOptionalParams\n ): Promise<DeletedWorkspacesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/deletedWorkspaces\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/deletedWorkspaces\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing Gateways operations. */
|
|
12
12
|
export class GatewaysImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class Gateways class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateways.js","sourceRoot":"","sources":["../../../src/operations/gateways.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAItD,4CAA4C;AAC5C,MAAM,OAAO,YAAY;
|
|
1
|
+
{"version":3,"file":"gateways.js","sourceRoot":"","sources":["../../../src/operations/gateways.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAItD,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IACN,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,iBAAyB,EACzB,aAAqB,EACrB,SAAiB,EACjB,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,SAAS,EAAE,OAAO,EAAE,EACxD,mBAAmB,CACpB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,4JAA4J;IAC9J,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IACtB,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,SAAS;KACrB;IACD,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Gateways } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { OperationalInsightsManagementClient } from \"../operationalInsightsManagementClient.js\";\nimport { GatewaysDeleteOptionalParams } from \"../models/index.js\";\n\n/** Class containing Gateways operations. */\nexport class GatewaysImpl implements Gateways {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class Gateways class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Delete a Log Analytics gateway.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param gatewayId The Log Analytics gateway Id.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n gatewayId: string,\n options?: GatewaysDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, gatewayId, options },\n deleteOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/gateways/{gatewayId}\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.gatewayId\n ],\n serializer\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing IntelligencePacks operations. */
|
|
12
12
|
export class IntelligencePacksImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class IntelligencePacks class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intelligencePacks.js","sourceRoot":"","sources":["../../../src/operations/intelligencePacks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;
|
|
1
|
+
{"version":3,"file":"intelligencePacks.js","sourceRoot":"","sources":["../../../src/operations/intelligencePacks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IACf,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,OAAO,CACL,iBAAyB,EACzB,aAAqB,EACrB,oBAA4B,EAC5B,OAAgD;QAEhD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,oBAAoB,EAAE,OAAO,EAAE,EACnE,oBAAoB,CACrB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,iBAAyB,EACzB,aAAqB,EACrB,oBAA4B,EAC5B,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,oBAAoB,EAAE,OAAO,EAAE,EACnE,m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P,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,kBAAkB,EAAE;qBAC3D;iBACF;aACF;SACF;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { IntelligencePacks } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { OperationalInsightsManagementClient } from \"../operationalInsightsManagementClient.js\";\nimport {\n IntelligencePacksDisableOptionalParams,\n IntelligencePacksEnableOptionalParams,\n IntelligencePacksListOptionalParams,\n IntelligencePacksListResponse\n} from \"../models/index.js\";\n\n/** Class containing IntelligencePacks operations. */\nexport class IntelligencePacksImpl implements IntelligencePacks {\n private readonly client: OperationalInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class IntelligencePacks class.\n * @param client Reference to the service client\n */\n constructor(client: OperationalInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Disables an intelligence pack for a given workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param intelligencePackName The name of the intelligence pack to be disabled.\n * @param options The options parameters.\n */\n disable(\n resourceGroupName: string,\n workspaceName: string,\n intelligencePackName: string,\n options?: IntelligencePacksDisableOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, intelligencePackName, options },\n disableOperationSpec\n );\n }\n\n /**\n * Enables an intelligence pack for a given workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param intelligencePackName The name of the intelligence pack to be enabled.\n * @param options The options parameters.\n */\n enable(\n resourceGroupName: string,\n workspaceName: string,\n intelligencePackName: string,\n options?: IntelligencePacksEnableOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, intelligencePackName, options },\n enableOperationSpec\n );\n }\n\n /**\n * Lists all the intelligence packs possible and whether they are enabled or disabled for a given\n * workspace.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n workspaceName: string,\n options?: IntelligencePacksListOptionalParams\n ): Promise<IntelligencePacksListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst disableOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Disable\",\n httpMethod: \"POST\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.intelligencePackName\n ],\n serializer\n};\nconst enableOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Enable\",\n httpMethod: \"POST\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.intelligencePackName\n ],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"IntelligencePack\" }\n }\n }\n }\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|