@azure/arm-operationalinsights 8.0.0-beta.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/CHANGELOG.md +16 -0
- package/LICENSE +21 -0
- package/README.md +94 -0
- package/dist/index.js +5674 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1418 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +157 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +64 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +2023 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +40 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +351 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operationalInsightsManagementClient.d.ts +33 -0
- package/dist-esm/src/operationalInsightsManagementClient.d.ts.map +1 -0
- package/dist-esm/src/operationalInsightsManagementClient.js +40 -0
- package/dist-esm/src/operationalInsightsManagementClient.js.map +1 -0
- package/dist-esm/src/operationalInsightsManagementClientContext.d.ts +15 -0
- package/dist-esm/src/operationalInsightsManagementClientContext.d.ts.map +1 -0
- package/dist-esm/src/operationalInsightsManagementClientContext.js +48 -0
- package/dist-esm/src/operationalInsightsManagementClientContext.js.map +1 -0
- package/dist-esm/src/operations/availableServiceTiers.d.ts +20 -0
- package/dist-esm/src/operations/availableServiceTiers.d.ts.map +1 -0
- package/dist-esm/src/operations/availableServiceTiers.js +57 -0
- package/dist-esm/src/operations/availableServiceTiers.js.map +1 -0
- package/dist-esm/src/operations/clusters.d.ts +99 -0
- package/dist-esm/src/operations/clusters.d.ts.map +1 -0
- package/dist-esm/src/operations/clusters.js +450 -0
- package/dist-esm/src/operations/clusters.js.map +1 -0
- package/dist-esm/src/operations/dataExports.d.ts +55 -0
- package/dist-esm/src/operations/dataExports.d.ts.map +1 -0
- package/dist-esm/src/operations/dataExports.js +200 -0
- package/dist-esm/src/operations/dataExports.js.map +1 -0
- package/dist-esm/src/operations/dataSources.d.ts +66 -0
- package/dist-esm/src/operations/dataSources.d.ts.map +1 -0
- package/dist-esm/src/operations/dataSources.js +230 -0
- package/dist-esm/src/operations/dataSources.js.map +1 -0
- package/dist-esm/src/operations/deletedWorkspaces.d.ts +40 -0
- package/dist-esm/src/operations/deletedWorkspaces.d.ts.map +1 -0
- package/dist-esm/src/operations/deletedWorkspaces.js +161 -0
- package/dist-esm/src/operations/deletedWorkspaces.js.map +1 -0
- package/dist-esm/src/operations/gateways.d.ts +21 -0
- package/dist-esm/src/operations/gateways.d.ts.map +1 -0
- package/dist-esm/src/operations/gateways.js +47 -0
- package/dist-esm/src/operations/gateways.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +20 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +27 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/intelligencePacks.d.ts +37 -0
- package/dist-esm/src/operations/intelligencePacks.d.ts.map +1 -0
- package/dist-esm/src/operations/intelligencePacks.js +106 -0
- package/dist-esm/src/operations/intelligencePacks.js.map +1 -0
- package/dist-esm/src/operations/linkedServices.d.ts +73 -0
- package/dist-esm/src/operations/linkedServices.d.ts.map +1 -0
- package/dist-esm/src/operations/linkedServices.js +295 -0
- package/dist-esm/src/operations/linkedServices.js.map +1 -0
- package/dist-esm/src/operations/linkedStorageAccounts.d.ts +60 -0
- package/dist-esm/src/operations/linkedStorageAccounts.d.ts.map +1 -0
- package/dist-esm/src/operations/linkedStorageAccounts.js +186 -0
- package/dist-esm/src/operations/linkedStorageAccounts.js.map +1 -0
- package/dist-esm/src/operations/managementGroups.d.ts +30 -0
- package/dist-esm/src/operations/managementGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/managementGroups.js +96 -0
- package/dist-esm/src/operations/managementGroups.js.map +1 -0
- package/dist-esm/src/operations/operationStatuses.d.ts +20 -0
- package/dist-esm/src/operations/operationStatuses.d.ts.map +1 -0
- package/dist-esm/src/operations/operationStatuses.js +50 -0
- package/dist-esm/src/operations/operationStatuses.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/savedSearches.d.ts +45 -0
- package/dist-esm/src/operations/savedSearches.d.ts.map +1 -0
- package/dist-esm/src/operations/savedSearches.js +135 -0
- package/dist-esm/src/operations/savedSearches.js.map +1 -0
- package/dist-esm/src/operations/schema.d.ts +20 -0
- package/dist-esm/src/operations/schema.d.ts.map +1 -0
- package/dist-esm/src/operations/schema.js +50 -0
- package/dist-esm/src/operations/schema.js.map +1 -0
- package/dist-esm/src/operations/sharedKeysOperations.d.ts +28 -0
- package/dist-esm/src/operations/sharedKeysOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/sharedKeysOperations.js +78 -0
- package/dist-esm/src/operations/sharedKeysOperations.js.map +1 -0
- package/dist-esm/src/operations/storageInsightConfigs.d.ts +63 -0
- package/dist-esm/src/operations/storageInsightConfigs.d.ts.map +1 -0
- package/dist-esm/src/operations/storageInsightConfigs.js +225 -0
- package/dist-esm/src/operations/storageInsightConfigs.js.map +1 -0
- package/dist-esm/src/operations/usages.d.ts +30 -0
- package/dist-esm/src/operations/usages.d.ts.map +1 -0
- package/dist-esm/src/operations/usages.js +96 -0
- package/dist-esm/src/operations/usages.js.map +1 -0
- package/dist-esm/src/operations/workspacePurge.d.ts +36 -0
- package/dist-esm/src/operations/workspacePurge.d.ts.map +1 -0
- package/dist-esm/src/operations/workspacePurge.js +90 -0
- package/dist-esm/src/operations/workspacePurge.js.map +1 -0
- package/dist-esm/src/operations/workspaces.d.ts +90 -0
- package/dist-esm/src/operations/workspaces.d.ts.map +1 -0
- package/dist-esm/src/operations/workspaces.js +384 -0
- package/dist-esm/src/operations/workspaces.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/availableServiceTiers.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/availableServiceTiers.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/availableServiceTiers.js +9 -0
- package/dist-esm/src/operationsInterfaces/availableServiceTiers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +63 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.js +9 -0
- package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataExports.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/dataExports.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataExports.js +9 -0
- package/dist-esm/src/operationsInterfaces/dataExports.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataSources.d.ts +39 -0
- package/dist-esm/src/operationsInterfaces/dataSources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataSources.js +9 -0
- package/dist-esm/src/operationsInterfaces/dataSources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/deletedWorkspaces.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/deletedWorkspaces.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/deletedWorkspaces.js +9 -0
- package/dist-esm/src/operationsInterfaces/deletedWorkspaces.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/gateways.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/gateways.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/gateways.js +9 -0
- package/dist-esm/src/operationsInterfaces/gateways.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +20 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +27 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/intelligencePacks.d.ts +29 -0
- package/dist-esm/src/operationsInterfaces/intelligencePacks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/intelligencePacks.js +9 -0
- package/dist-esm/src/operationsInterfaces/intelligencePacks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/linkedServices.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/linkedServices.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/linkedServices.js +9 -0
- package/dist-esm/src/operationsInterfaces/linkedServices.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/linkedStorageAccounts.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/linkedStorageAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/linkedStorageAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/linkedStorageAccounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/managementGroups.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/managementGroups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/managementGroups.js +9 -0
- package/dist-esm/src/operationsInterfaces/managementGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationStatuses.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/operationStatuses.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationStatuses.js +9 -0
- package/dist-esm/src/operationsInterfaces/operationStatuses.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/savedSearches.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/savedSearches.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/savedSearches.js +9 -0
- package/dist-esm/src/operationsInterfaces/savedSearches.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/schema.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/schema.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/schema.js +9 -0
- package/dist-esm/src/operationsInterfaces/schema.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sharedKeysOperations.d.ts +20 -0
- package/dist-esm/src/operationsInterfaces/sharedKeysOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sharedKeysOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/sharedKeysOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageInsightConfigs.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/storageInsightConfigs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageInsightConfigs.js +9 -0
- package/dist-esm/src/operationsInterfaces/storageInsightConfigs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.js +9 -0
- package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspacePurge.d.ts +28 -0
- package/dist-esm/src/operationsInterfaces/workspacePurge.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspacePurge.js +9 -0
- package/dist-esm/src/operationsInterfaces/workspacePurge.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts +67 -0
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspaces.js +9 -0
- package/dist-esm/src/operationsInterfaces/workspaces.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +92 -0
- package/review/arm-operationalinsights.api.md +1349 -0
- package/rollup.config.js +188 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1622 -0
- package/src/models/mappers.ts +2183 -0
- package/src/models/parameters.ts +406 -0
- package/src/operationalInsightsManagementClient.ts +108 -0
- package/src/operationalInsightsManagementClientContext.ts +68 -0
- package/src/operations/availableServiceTiers.ts +76 -0
- package/src/operations/clusters.ts +591 -0
- package/src/operations/dataExports.ts +272 -0
- package/src/operations/dataSources.ts +328 -0
- package/src/operations/deletedWorkspaces.ts +180 -0
- package/src/operations/gateways.ts +64 -0
- package/src/operations/index.ts +27 -0
- package/src/operations/intelligencePacks.ts +147 -0
- package/src/operations/linkedServices.ts +430 -0
- package/src/operations/linkedStorageAccounts.ts +259 -0
- package/src/operations/managementGroups.ts +120 -0
- package/src/operations/operationStatuses.ts +69 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/savedSearches.ts +191 -0
- package/src/operations/schema.ts +66 -0
- package/src/operations/sharedKeysOperations.ts +108 -0
- package/src/operations/storageInsightConfigs.ts +313 -0
- package/src/operations/usages.ts +120 -0
- package/src/operations/workspacePurge.ts +123 -0
- package/src/operations/workspaces.ts +502 -0
- package/src/operationsInterfaces/availableServiceTiers.ts +27 -0
- package/src/operationsInterfaces/clusters.ts +121 -0
- package/src/operationsInterfaces/dataExports.ts +75 -0
- package/src/operationsInterfaces/dataSources.ts +77 -0
- package/src/operationsInterfaces/deletedWorkspaces.ts +35 -0
- package/src/operationsInterfaces/gateways.ts +26 -0
- package/src/operationsInterfaces/index.ts +27 -0
- package/src/operationsInterfaces/intelligencePacks.ts +56 -0
- package/src/operationsInterfaces/linkedServices.ts +115 -0
- package/src/operationsInterfaces/linkedStorageAccounts.ts +80 -0
- package/src/operationsInterfaces/managementGroups.ts +26 -0
- package/src/operationsInterfaces/operationStatuses.ts +27 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/savedSearches.ts +74 -0
- package/src/operationsInterfaces/schema.ts +24 -0
- package/src/operationsInterfaces/sharedKeysOperations.ts +41 -0
- package/src/operationsInterfaces/storageInsightConfigs.ts +75 -0
- package/src/operationsInterfaces/usages.ts +26 -0
- package/src/operationsInterfaces/workspacePurge.ts +52 -0
- package/src/operationsInterfaces/workspaces.ts +125 -0
- package/tsconfig.json +19 -0
- package/types/arm-operationalinsights.d.ts +2190 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { DataExports } from "../operationsInterfaces";
|
|
3
|
+
import { OperationalInsightsManagementClientContext } from "../operationalInsightsManagementClientContext";
|
|
4
|
+
import { DataExport, DataExportsListByWorkspaceOptionalParams, DataExportsCreateOrUpdateOptionalParams, DataExportsCreateOrUpdateResponse, DataExportsGetOptionalParams, DataExportsGetResponse, DataExportsDeleteOptionalParams } from "../models";
|
|
5
|
+
/** Class containing DataExports operations. */
|
|
6
|
+
export declare class DataExportsImpl implements DataExports {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class DataExports class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: OperationalInsightsManagementClientContext);
|
|
13
|
+
/**
|
|
14
|
+
* Lists the data export instances within a workspace.
|
|
15
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
16
|
+
* @param workspaceName The name of the workspace.
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
listByWorkspace(resourceGroupName: string, workspaceName: string, options?: DataExportsListByWorkspaceOptionalParams): PagedAsyncIterableIterator<DataExport>;
|
|
20
|
+
private listByWorkspacePagingPage;
|
|
21
|
+
private listByWorkspacePagingAll;
|
|
22
|
+
/**
|
|
23
|
+
* Lists the data export instances within a workspace.
|
|
24
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
25
|
+
* @param workspaceName The name of the workspace.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
private _listByWorkspace;
|
|
29
|
+
/**
|
|
30
|
+
* Create or update a data export.
|
|
31
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
32
|
+
* @param workspaceName The name of the workspace.
|
|
33
|
+
* @param dataExportName The data export rule name.
|
|
34
|
+
* @param parameters The parameters required to create or update a data export.
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
createOrUpdate(resourceGroupName: string, workspaceName: string, dataExportName: string, parameters: DataExport, options?: DataExportsCreateOrUpdateOptionalParams): Promise<DataExportsCreateOrUpdateResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Gets a data export instance.
|
|
40
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
41
|
+
* @param workspaceName The name of the workspace.
|
|
42
|
+
* @param dataExportName The data export rule name.
|
|
43
|
+
* @param options The options parameters.
|
|
44
|
+
*/
|
|
45
|
+
get(resourceGroupName: string, workspaceName: string, dataExportName: string, options?: DataExportsGetOptionalParams): Promise<DataExportsGetResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Deletes the specified data export in a given workspace..
|
|
48
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
49
|
+
* @param workspaceName The name of the workspace.
|
|
50
|
+
* @param dataExportName The data export rule name.
|
|
51
|
+
* @param options The options parameters.
|
|
52
|
+
*/
|
|
53
|
+
delete(resourceGroupName: string, workspaceName: string, dataExportName: string, options?: DataExportsDeleteOptionalParams): Promise<void>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=dataExports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataExports.d.ts","sourceRoot":"","sources":["../../../src/operations/dataExports.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD,OAAO,EAAE,0CAA0C,EAAE,MAAM,+CAA+C,CAAC;AAC3G,OAAO,EACL,UAAU,EACV,wCAAwC,EAExC,uCAAuC,EACvC,iCAAiC,EACjC,4BAA4B,EAC5B,sBAAsB,EACtB,+BAA+B,EAChC,MAAM,WAAW,CAAC;AAGnB,+CAA+C;AAC/C,qBAAa,eAAgB,YAAW,WAAW;IACjD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6C;IAEpE;;;OAGG;gBACS,MAAM,EAAE,0CAA0C;IAI9D;;;;;OAKG;IACI,eAAe,CACpB,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,UAAU,CAAC;YAuB1B,yBAAyB;YAazB,wBAAwB;IAcvC;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAWxB;;;;;;;OAOG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC;IAO7C;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;IAOlC;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,IAAI,CAAC;CAMjB"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing DataExports operations. */
|
|
14
|
+
export class DataExportsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class DataExports class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Lists the data export instances within a workspace.
|
|
24
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
25
|
+
* @param workspaceName The name of the workspace.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
listByWorkspace(resourceGroupName, workspaceName, options) {
|
|
29
|
+
const iter = this.listByWorkspacePagingAll(resourceGroupName, workspaceName, options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: () => {
|
|
38
|
+
return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
listByWorkspacePagingPage(resourceGroupName, workspaceName, options) {
|
|
43
|
+
return __asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
|
|
44
|
+
let result = yield __await(this._listByWorkspace(resourceGroupName, workspaceName, options));
|
|
45
|
+
yield yield __await(result.value || []);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
|
|
49
|
+
return __asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
|
|
50
|
+
var e_1, _a;
|
|
51
|
+
try {
|
|
52
|
+
for (var _b = __asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
53
|
+
const page = _c.value;
|
|
54
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
58
|
+
finally {
|
|
59
|
+
try {
|
|
60
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
61
|
+
}
|
|
62
|
+
finally { if (e_1) throw e_1.error; }
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Lists the data export instances within a workspace.
|
|
68
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
69
|
+
* @param workspaceName The name of the workspace.
|
|
70
|
+
* @param options The options parameters.
|
|
71
|
+
*/
|
|
72
|
+
_listByWorkspace(resourceGroupName, workspaceName, options) {
|
|
73
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listByWorkspaceOperationSpec);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Create or update a data export.
|
|
77
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
78
|
+
* @param workspaceName The name of the workspace.
|
|
79
|
+
* @param dataExportName The data export rule name.
|
|
80
|
+
* @param parameters The parameters required to create or update a data export.
|
|
81
|
+
* @param options The options parameters.
|
|
82
|
+
*/
|
|
83
|
+
createOrUpdate(resourceGroupName, workspaceName, dataExportName, parameters, options) {
|
|
84
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, dataExportName, parameters, options }, createOrUpdateOperationSpec);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Gets a data export instance.
|
|
88
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
89
|
+
* @param workspaceName The name of the workspace.
|
|
90
|
+
* @param dataExportName The data export rule name.
|
|
91
|
+
* @param options The options parameters.
|
|
92
|
+
*/
|
|
93
|
+
get(resourceGroupName, workspaceName, dataExportName, options) {
|
|
94
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, dataExportName, options }, getOperationSpec);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Deletes the specified data export in a given workspace..
|
|
98
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
99
|
+
* @param workspaceName The name of the workspace.
|
|
100
|
+
* @param dataExportName The data export rule name.
|
|
101
|
+
* @param options The options parameters.
|
|
102
|
+
*/
|
|
103
|
+
delete(resourceGroupName, workspaceName, dataExportName, options) {
|
|
104
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, dataExportName, options }, deleteOperationSpec);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
// Operation Specifications
|
|
108
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
109
|
+
const listByWorkspaceOperationSpec = {
|
|
110
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports",
|
|
111
|
+
httpMethod: "GET",
|
|
112
|
+
responses: {
|
|
113
|
+
200: {
|
|
114
|
+
bodyMapper: Mappers.DataExportListResult
|
|
115
|
+
},
|
|
116
|
+
default: {
|
|
117
|
+
bodyMapper: Mappers.ErrorResponse
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
queryParameters: [Parameters.apiVersion],
|
|
121
|
+
urlParameters: [
|
|
122
|
+
Parameters.$host,
|
|
123
|
+
Parameters.subscriptionId,
|
|
124
|
+
Parameters.resourceGroupName,
|
|
125
|
+
Parameters.workspaceName
|
|
126
|
+
],
|
|
127
|
+
headerParameters: [Parameters.accept],
|
|
128
|
+
serializer
|
|
129
|
+
};
|
|
130
|
+
const createOrUpdateOperationSpec = {
|
|
131
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}",
|
|
132
|
+
httpMethod: "PUT",
|
|
133
|
+
responses: {
|
|
134
|
+
200: {
|
|
135
|
+
bodyMapper: Mappers.DataExport
|
|
136
|
+
},
|
|
137
|
+
201: {
|
|
138
|
+
bodyMapper: Mappers.DataExport
|
|
139
|
+
},
|
|
140
|
+
default: {
|
|
141
|
+
bodyMapper: Mappers.ErrorResponse
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
requestBody: Parameters.parameters,
|
|
145
|
+
queryParameters: [Parameters.apiVersion],
|
|
146
|
+
urlParameters: [
|
|
147
|
+
Parameters.$host,
|
|
148
|
+
Parameters.subscriptionId,
|
|
149
|
+
Parameters.resourceGroupName,
|
|
150
|
+
Parameters.workspaceName,
|
|
151
|
+
Parameters.dataExportName
|
|
152
|
+
],
|
|
153
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
154
|
+
mediaType: "json",
|
|
155
|
+
serializer
|
|
156
|
+
};
|
|
157
|
+
const getOperationSpec = {
|
|
158
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}",
|
|
159
|
+
httpMethod: "GET",
|
|
160
|
+
responses: {
|
|
161
|
+
200: {
|
|
162
|
+
bodyMapper: Mappers.DataExport
|
|
163
|
+
},
|
|
164
|
+
default: {
|
|
165
|
+
bodyMapper: Mappers.ErrorResponse
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
queryParameters: [Parameters.apiVersion],
|
|
169
|
+
urlParameters: [
|
|
170
|
+
Parameters.$host,
|
|
171
|
+
Parameters.subscriptionId,
|
|
172
|
+
Parameters.resourceGroupName,
|
|
173
|
+
Parameters.workspaceName,
|
|
174
|
+
Parameters.dataExportName1
|
|
175
|
+
],
|
|
176
|
+
headerParameters: [Parameters.accept],
|
|
177
|
+
serializer
|
|
178
|
+
};
|
|
179
|
+
const deleteOperationSpec = {
|
|
180
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}",
|
|
181
|
+
httpMethod: "DELETE",
|
|
182
|
+
responses: {
|
|
183
|
+
200: {},
|
|
184
|
+
404: {},
|
|
185
|
+
default: {
|
|
186
|
+
bodyMapper: Mappers.ErrorResponse
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
queryParameters: [Parameters.apiVersion],
|
|
190
|
+
urlParameters: [
|
|
191
|
+
Parameters.$host,
|
|
192
|
+
Parameters.subscriptionId,
|
|
193
|
+
Parameters.resourceGroupName,
|
|
194
|
+
Parameters.workspaceName,
|
|
195
|
+
Parameters.dataExportName1
|
|
196
|
+
],
|
|
197
|
+
headerParameters: [Parameters.accept],
|
|
198
|
+
serializer
|
|
199
|
+
};
|
|
200
|
+
//# sourceMappingURL=dataExports.js.map
|
|
@@ -0,0 +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,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sB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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,UAAU,CAAC;IACxC,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"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { DataSources } from "../operationsInterfaces";
|
|
3
|
+
import { OperationalInsightsManagementClientContext } from "../operationalInsightsManagementClientContext";
|
|
4
|
+
import { DataSource, DataSourcesListByWorkspaceOptionalParams, DataSourcesCreateOrUpdateOptionalParams, DataSourcesCreateOrUpdateResponse, DataSourcesDeleteOptionalParams, DataSourcesGetOptionalParams, DataSourcesGetResponse } from "../models";
|
|
5
|
+
/** Class containing DataSources operations. */
|
|
6
|
+
export declare class DataSourcesImpl implements DataSources {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class DataSources class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: OperationalInsightsManagementClientContext);
|
|
13
|
+
/**
|
|
14
|
+
* Gets the first page of data source instances in a workspace with the link to the next page.
|
|
15
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
16
|
+
* @param workspaceName The name of the workspace.
|
|
17
|
+
* @param filter The filter to apply on the operation.
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
listByWorkspace(resourceGroupName: string, workspaceName: string, filter: string, options?: DataSourcesListByWorkspaceOptionalParams): PagedAsyncIterableIterator<DataSource>;
|
|
21
|
+
private listByWorkspacePagingPage;
|
|
22
|
+
private listByWorkspacePagingAll;
|
|
23
|
+
/**
|
|
24
|
+
* Create or update a data source.
|
|
25
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
26
|
+
* @param workspaceName The name of the workspace.
|
|
27
|
+
* @param dataSourceName The name of the datasource resource.
|
|
28
|
+
* @param parameters The parameters required to create or update a datasource.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
createOrUpdate(resourceGroupName: string, workspaceName: string, dataSourceName: string, parameters: DataSource, options?: DataSourcesCreateOrUpdateOptionalParams): Promise<DataSourcesCreateOrUpdateResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Deletes a data source instance.
|
|
34
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
35
|
+
* @param workspaceName The name of the workspace.
|
|
36
|
+
* @param dataSourceName Name of the datasource.
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
delete(resourceGroupName: string, workspaceName: string, dataSourceName: string, options?: DataSourcesDeleteOptionalParams): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Gets a datasource instance.
|
|
42
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
43
|
+
* @param workspaceName The name of the workspace.
|
|
44
|
+
* @param dataSourceName Name of the datasource
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
get(resourceGroupName: string, workspaceName: string, dataSourceName: string, options?: DataSourcesGetOptionalParams): Promise<DataSourcesGetResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Gets the first page of data source instances in a workspace with the link to the next page.
|
|
50
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
51
|
+
* @param workspaceName The name of the workspace.
|
|
52
|
+
* @param filter The filter to apply on the operation.
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
private _listByWorkspace;
|
|
56
|
+
/**
|
|
57
|
+
* ListByWorkspaceNext
|
|
58
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
59
|
+
* @param workspaceName The name of the workspace.
|
|
60
|
+
* @param filter The filter to apply on the operation.
|
|
61
|
+
* @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.
|
|
62
|
+
* @param options The options parameters.
|
|
63
|
+
*/
|
|
64
|
+
private _listByWorkspaceNext;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=dataSources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataSources.d.ts","sourceRoot":"","sources":["../../../src/operations/dataSources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD,OAAO,EAAE,0CAA0C,EAAE,MAAM,+CAA+C,CAAC;AAC3G,OAAO,EACL,UAAU,EAEV,wCAAwC,EACxC,uCAAuC,EACvC,iCAAiC,EACjC,+BAA+B,EAC/B,4BAA4B,EAC5B,sBAAsB,EAGvB,MAAM,WAAW,CAAC;AAGnB,+CAA+C;AAC/C,qBAAa,eAAgB,YAAW,WAAW;IACjD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6C;IAEpE;;;OAGG;gBACS,MAAM,EAAE,0CAA0C;IAI9D;;;;;;OAMG;IACI,eAAe,CACpB,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,UAAU,CAAC;YAyB1B,yBAAyB;YA2BzB,wBAAwB;IAgBvC;;;;;;;OAOG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC;IAO7C;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;IAOlC;;;;;;OAMG;IACH,OAAO,CAAC,gBAAgB;IAYxB;;;;;;;OAOG;IACH,OAAO,CAAC,oBAAoB;CAY7B"}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing DataSources operations. */
|
|
14
|
+
export class DataSourcesImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class DataSources class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Gets the first page of data source instances in a workspace with the link to the next page.
|
|
24
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
25
|
+
* @param workspaceName The name of the workspace.
|
|
26
|
+
* @param filter The filter to apply on the operation.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
listByWorkspace(resourceGroupName, workspaceName, filter, options) {
|
|
30
|
+
const iter = this.listByWorkspacePagingAll(resourceGroupName, workspaceName, filter, options);
|
|
31
|
+
return {
|
|
32
|
+
next() {
|
|
33
|
+
return iter.next();
|
|
34
|
+
},
|
|
35
|
+
[Symbol.asyncIterator]() {
|
|
36
|
+
return this;
|
|
37
|
+
},
|
|
38
|
+
byPage: () => {
|
|
39
|
+
return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, filter, options);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
listByWorkspacePagingPage(resourceGroupName, workspaceName, filter, options) {
|
|
44
|
+
return __asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
|
|
45
|
+
let result = yield __await(this._listByWorkspace(resourceGroupName, workspaceName, filter, options));
|
|
46
|
+
yield yield __await(result.value || []);
|
|
47
|
+
let continuationToken = result.nextLink;
|
|
48
|
+
while (continuationToken) {
|
|
49
|
+
result = yield __await(this._listByWorkspaceNext(resourceGroupName, workspaceName, filter, continuationToken, options));
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
yield yield __await(result.value || []);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
listByWorkspacePagingAll(resourceGroupName, workspaceName, filter, options) {
|
|
56
|
+
return __asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
|
|
57
|
+
var e_1, _a;
|
|
58
|
+
try {
|
|
59
|
+
for (var _b = __asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, filter, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
60
|
+
const page = _c.value;
|
|
61
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
65
|
+
finally {
|
|
66
|
+
try {
|
|
67
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
68
|
+
}
|
|
69
|
+
finally { if (e_1) throw e_1.error; }
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Create or update a data source.
|
|
75
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
76
|
+
* @param workspaceName The name of the workspace.
|
|
77
|
+
* @param dataSourceName The name of the datasource resource.
|
|
78
|
+
* @param parameters The parameters required to create or update a datasource.
|
|
79
|
+
* @param options The options parameters.
|
|
80
|
+
*/
|
|
81
|
+
createOrUpdate(resourceGroupName, workspaceName, dataSourceName, parameters, options) {
|
|
82
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, dataSourceName, parameters, options }, createOrUpdateOperationSpec);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Deletes a data source instance.
|
|
86
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
87
|
+
* @param workspaceName The name of the workspace.
|
|
88
|
+
* @param dataSourceName Name of the datasource.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
delete(resourceGroupName, workspaceName, dataSourceName, options) {
|
|
92
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, dataSourceName, options }, deleteOperationSpec);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Gets a datasource instance.
|
|
96
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
97
|
+
* @param workspaceName The name of the workspace.
|
|
98
|
+
* @param dataSourceName Name of the datasource
|
|
99
|
+
* @param options The options parameters.
|
|
100
|
+
*/
|
|
101
|
+
get(resourceGroupName, workspaceName, dataSourceName, options) {
|
|
102
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, dataSourceName, options }, getOperationSpec);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Gets the first page of data source instances in a workspace with the link to the next page.
|
|
106
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
107
|
+
* @param workspaceName The name of the workspace.
|
|
108
|
+
* @param filter The filter to apply on the operation.
|
|
109
|
+
* @param options The options parameters.
|
|
110
|
+
*/
|
|
111
|
+
_listByWorkspace(resourceGroupName, workspaceName, filter, options) {
|
|
112
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, filter, options }, listByWorkspaceOperationSpec);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* ListByWorkspaceNext
|
|
116
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
117
|
+
* @param workspaceName The name of the workspace.
|
|
118
|
+
* @param filter The filter to apply on the operation.
|
|
119
|
+
* @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.
|
|
120
|
+
* @param options The options parameters.
|
|
121
|
+
*/
|
|
122
|
+
_listByWorkspaceNext(resourceGroupName, workspaceName, filter, nextLink, options) {
|
|
123
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, filter, nextLink, options }, listByWorkspaceNextOperationSpec);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
// Operation Specifications
|
|
127
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
128
|
+
const createOrUpdateOperationSpec = {
|
|
129
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}",
|
|
130
|
+
httpMethod: "PUT",
|
|
131
|
+
responses: {
|
|
132
|
+
200: {
|
|
133
|
+
bodyMapper: Mappers.DataSource
|
|
134
|
+
},
|
|
135
|
+
201: {
|
|
136
|
+
bodyMapper: Mappers.DataSource
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
requestBody: Parameters.parameters1,
|
|
140
|
+
queryParameters: [Parameters.apiVersion],
|
|
141
|
+
urlParameters: [
|
|
142
|
+
Parameters.$host,
|
|
143
|
+
Parameters.subscriptionId,
|
|
144
|
+
Parameters.resourceGroupName,
|
|
145
|
+
Parameters.workspaceName,
|
|
146
|
+
Parameters.dataSourceName
|
|
147
|
+
],
|
|
148
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
149
|
+
mediaType: "json",
|
|
150
|
+
serializer
|
|
151
|
+
};
|
|
152
|
+
const deleteOperationSpec = {
|
|
153
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}",
|
|
154
|
+
httpMethod: "DELETE",
|
|
155
|
+
responses: { 200: {}, 204: {} },
|
|
156
|
+
queryParameters: [Parameters.apiVersion],
|
|
157
|
+
urlParameters: [
|
|
158
|
+
Parameters.$host,
|
|
159
|
+
Parameters.subscriptionId,
|
|
160
|
+
Parameters.resourceGroupName,
|
|
161
|
+
Parameters.workspaceName,
|
|
162
|
+
Parameters.dataSourceName
|
|
163
|
+
],
|
|
164
|
+
serializer
|
|
165
|
+
};
|
|
166
|
+
const getOperationSpec = {
|
|
167
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}",
|
|
168
|
+
httpMethod: "GET",
|
|
169
|
+
responses: {
|
|
170
|
+
200: {
|
|
171
|
+
bodyMapper: Mappers.DataSource
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
queryParameters: [Parameters.apiVersion],
|
|
175
|
+
urlParameters: [
|
|
176
|
+
Parameters.$host,
|
|
177
|
+
Parameters.subscriptionId,
|
|
178
|
+
Parameters.resourceGroupName,
|
|
179
|
+
Parameters.workspaceName,
|
|
180
|
+
Parameters.dataSourceName
|
|
181
|
+
],
|
|
182
|
+
headerParameters: [Parameters.accept],
|
|
183
|
+
serializer
|
|
184
|
+
};
|
|
185
|
+
const listByWorkspaceOperationSpec = {
|
|
186
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources",
|
|
187
|
+
httpMethod: "GET",
|
|
188
|
+
responses: {
|
|
189
|
+
200: {
|
|
190
|
+
bodyMapper: Mappers.DataSourceListResult
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
queryParameters: [
|
|
194
|
+
Parameters.apiVersion,
|
|
195
|
+
Parameters.filter,
|
|
196
|
+
Parameters.skiptoken
|
|
197
|
+
],
|
|
198
|
+
urlParameters: [
|
|
199
|
+
Parameters.$host,
|
|
200
|
+
Parameters.subscriptionId,
|
|
201
|
+
Parameters.resourceGroupName,
|
|
202
|
+
Parameters.workspaceName
|
|
203
|
+
],
|
|
204
|
+
headerParameters: [Parameters.accept],
|
|
205
|
+
serializer
|
|
206
|
+
};
|
|
207
|
+
const listByWorkspaceNextOperationSpec = {
|
|
208
|
+
path: "{nextLink}",
|
|
209
|
+
httpMethod: "GET",
|
|
210
|
+
responses: {
|
|
211
|
+
200: {
|
|
212
|
+
bodyMapper: Mappers.DataSourceListResult
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
queryParameters: [
|
|
216
|
+
Parameters.apiVersion,
|
|
217
|
+
Parameters.filter,
|
|
218
|
+
Parameters.skiptoken
|
|
219
|
+
],
|
|
220
|
+
urlParameters: [
|
|
221
|
+
Parameters.$host,
|
|
222
|
+
Parameters.subscriptionId,
|
|
223
|
+
Parameters.resourceGroupName,
|
|
224
|
+
Parameters.workspaceName,
|
|
225
|
+
Parameters.nextLink
|
|
226
|
+
],
|
|
227
|
+
headerParameters: [Parameters.accept],
|
|
228
|
+
serializer
|
|
229
|
+
};
|
|
230
|
+
//# sourceMappingURL=dataSources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataSources.js","sourceRoot":"","sources":["../../../src/operations/dataSources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAenD,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IAG1B;;;OAGG;IACH,YAAY,MAAkD;QAC5D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,eAAe,CACpB,iBAAyB,EACzB,aAAqB,EACrB,MAAc,EACd,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,CACxC,iBAAiB,EACjB,aAAa,EACb,MAAM,EACN,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,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,yBAAyB,CACnC,iBAAiB,EACjB,aAAa,EACb,MAAM,EACN,OAAO,CACR,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,yBAAyB,CACtC,iBAAyB,EACzB,aAAqB,EACrB,MAAc,EACd,OAAkD;;YAElD,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,gBAAgB,CACtC,iBAAiB,EACjB,aAAa,EACb,MAAM,EACN,OAAO,CACR,CAAA,CAAC;YACF,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;YACxC,OAAO,iBAAiB,EAAE;gBACxB,MAAM,GAAG,cA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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,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,SAAS;KACrB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { DeletedWorkspaces } from "../operationsInterfaces";
|
|
3
|
+
import { OperationalInsightsManagementClientContext } from "../operationalInsightsManagementClientContext";
|
|
4
|
+
import { Workspace, DeletedWorkspacesListOptionalParams, DeletedWorkspacesListByResourceGroupOptionalParams } from "../models";
|
|
5
|
+
/** Class containing DeletedWorkspaces operations. */
|
|
6
|
+
export declare class DeletedWorkspacesImpl implements DeletedWorkspaces {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class DeletedWorkspaces class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: OperationalInsightsManagementClientContext);
|
|
13
|
+
/**
|
|
14
|
+
* Gets recently deleted workspaces in a subscription, available for recovery.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: DeletedWorkspacesListOptionalParams): PagedAsyncIterableIterator<Workspace>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Gets recently deleted workspaces in a resource group, available for recovery.
|
|
22
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
23
|
+
* @param options The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
listByResourceGroup(resourceGroupName: string, options?: DeletedWorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Workspace>;
|
|
26
|
+
private listByResourceGroupPagingPage;
|
|
27
|
+
private listByResourceGroupPagingAll;
|
|
28
|
+
/**
|
|
29
|
+
* Gets recently deleted workspaces in a subscription, available for recovery.
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
private _list;
|
|
33
|
+
/**
|
|
34
|
+
* Gets recently deleted workspaces in a resource group, available for recovery.
|
|
35
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
36
|
+
* @param options The options parameters.
|
|
37
|
+
*/
|
|
38
|
+
private _listByResourceGroup;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=deletedWorkspaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deletedWorkspaces.d.ts","sourceRoot":"","sources":["../../../src/operations/deletedWorkspaces.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAI5D,OAAO,EAAE,0CAA0C,EAAE,MAAM,+CAA+C,CAAC;AAC3G,OAAO,EACL,SAAS,EACT,mCAAmC,EACnC,kDAAkD,EAGnD,MAAM,WAAW,CAAC;AAGnB,qDAAqD;AACrD,qBAAa,qBAAsB,YAAW,iBAAiB;IAC7D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6C;IAEpE;;;OAGG;gBACS,MAAM,EAAE,0CAA0C;IAI9D;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,mCAAmC,GAC5C,0BAA0B,CAAC,SAAS,CAAC;YAezB,cAAc;YAOd,aAAa;IAQ5B;;;;OAIG;IACI,mBAAmB,CACxB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,kDAAkD,GAC3D,0BAA0B,CAAC,SAAS,CAAC;YAezB,6BAA6B;YAQ7B,4BAA4B;IAY3C;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;CAS7B"}
|