@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,313 @@
|
|
|
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
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { StorageInsightConfigs } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { OperationalInsightsManagementClientContext } from "../operationalInsightsManagementClientContext";
|
|
15
|
+
import {
|
|
16
|
+
StorageInsight,
|
|
17
|
+
StorageInsightConfigsListByWorkspaceNextOptionalParams,
|
|
18
|
+
StorageInsightConfigsListByWorkspaceOptionalParams,
|
|
19
|
+
StorageInsightConfigsCreateOrUpdateOptionalParams,
|
|
20
|
+
StorageInsightConfigsCreateOrUpdateResponse,
|
|
21
|
+
StorageInsightConfigsGetOptionalParams,
|
|
22
|
+
StorageInsightConfigsGetResponse,
|
|
23
|
+
StorageInsightConfigsDeleteOptionalParams,
|
|
24
|
+
StorageInsightConfigsListByWorkspaceResponse,
|
|
25
|
+
StorageInsightConfigsListByWorkspaceNextResponse
|
|
26
|
+
} from "../models";
|
|
27
|
+
|
|
28
|
+
/// <reference lib="esnext.asynciterable" />
|
|
29
|
+
/** Class containing StorageInsightConfigs operations. */
|
|
30
|
+
export class StorageInsightConfigsImpl implements StorageInsightConfigs {
|
|
31
|
+
private readonly client: OperationalInsightsManagementClientContext;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Initialize a new instance of the class StorageInsightConfigs class.
|
|
35
|
+
* @param client Reference to the service client
|
|
36
|
+
*/
|
|
37
|
+
constructor(client: OperationalInsightsManagementClientContext) {
|
|
38
|
+
this.client = client;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Lists the storage insight instances within a workspace
|
|
43
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
44
|
+
* @param workspaceName The name of the workspace.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
public listByWorkspace(
|
|
48
|
+
resourceGroupName: string,
|
|
49
|
+
workspaceName: string,
|
|
50
|
+
options?: StorageInsightConfigsListByWorkspaceOptionalParams
|
|
51
|
+
): PagedAsyncIterableIterator<StorageInsight> {
|
|
52
|
+
const iter = this.listByWorkspacePagingAll(
|
|
53
|
+
resourceGroupName,
|
|
54
|
+
workspaceName,
|
|
55
|
+
options
|
|
56
|
+
);
|
|
57
|
+
return {
|
|
58
|
+
next() {
|
|
59
|
+
return iter.next();
|
|
60
|
+
},
|
|
61
|
+
[Symbol.asyncIterator]() {
|
|
62
|
+
return this;
|
|
63
|
+
},
|
|
64
|
+
byPage: () => {
|
|
65
|
+
return this.listByWorkspacePagingPage(
|
|
66
|
+
resourceGroupName,
|
|
67
|
+
workspaceName,
|
|
68
|
+
options
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
private async *listByWorkspacePagingPage(
|
|
75
|
+
resourceGroupName: string,
|
|
76
|
+
workspaceName: string,
|
|
77
|
+
options?: StorageInsightConfigsListByWorkspaceOptionalParams
|
|
78
|
+
): AsyncIterableIterator<StorageInsight[]> {
|
|
79
|
+
let result = await this._listByWorkspace(
|
|
80
|
+
resourceGroupName,
|
|
81
|
+
workspaceName,
|
|
82
|
+
options
|
|
83
|
+
);
|
|
84
|
+
yield result.value || [];
|
|
85
|
+
let continuationToken = result.odataNextLink;
|
|
86
|
+
while (continuationToken) {
|
|
87
|
+
result = await this._listByWorkspaceNext(
|
|
88
|
+
resourceGroupName,
|
|
89
|
+
workspaceName,
|
|
90
|
+
continuationToken,
|
|
91
|
+
options
|
|
92
|
+
);
|
|
93
|
+
continuationToken = result.odataNextLink;
|
|
94
|
+
yield result.value || [];
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
private async *listByWorkspacePagingAll(
|
|
99
|
+
resourceGroupName: string,
|
|
100
|
+
workspaceName: string,
|
|
101
|
+
options?: StorageInsightConfigsListByWorkspaceOptionalParams
|
|
102
|
+
): AsyncIterableIterator<StorageInsight> {
|
|
103
|
+
for await (const page of this.listByWorkspacePagingPage(
|
|
104
|
+
resourceGroupName,
|
|
105
|
+
workspaceName,
|
|
106
|
+
options
|
|
107
|
+
)) {
|
|
108
|
+
yield* page;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Create or update a storage insight.
|
|
114
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
115
|
+
* @param workspaceName The name of the workspace.
|
|
116
|
+
* @param storageInsightName Name of the storageInsightsConfigs resource
|
|
117
|
+
* @param parameters The parameters required to create or update a storage insight.
|
|
118
|
+
* @param options The options parameters.
|
|
119
|
+
*/
|
|
120
|
+
createOrUpdate(
|
|
121
|
+
resourceGroupName: string,
|
|
122
|
+
workspaceName: string,
|
|
123
|
+
storageInsightName: string,
|
|
124
|
+
parameters: StorageInsight,
|
|
125
|
+
options?: StorageInsightConfigsCreateOrUpdateOptionalParams
|
|
126
|
+
): Promise<StorageInsightConfigsCreateOrUpdateResponse> {
|
|
127
|
+
return this.client.sendOperationRequest(
|
|
128
|
+
{
|
|
129
|
+
resourceGroupName,
|
|
130
|
+
workspaceName,
|
|
131
|
+
storageInsightName,
|
|
132
|
+
parameters,
|
|
133
|
+
options
|
|
134
|
+
},
|
|
135
|
+
createOrUpdateOperationSpec
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Gets a storage insight instance.
|
|
141
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
142
|
+
* @param workspaceName The name of the workspace.
|
|
143
|
+
* @param storageInsightName Name of the storageInsightsConfigs resource
|
|
144
|
+
* @param options The options parameters.
|
|
145
|
+
*/
|
|
146
|
+
get(
|
|
147
|
+
resourceGroupName: string,
|
|
148
|
+
workspaceName: string,
|
|
149
|
+
storageInsightName: string,
|
|
150
|
+
options?: StorageInsightConfigsGetOptionalParams
|
|
151
|
+
): Promise<StorageInsightConfigsGetResponse> {
|
|
152
|
+
return this.client.sendOperationRequest(
|
|
153
|
+
{ resourceGroupName, workspaceName, storageInsightName, options },
|
|
154
|
+
getOperationSpec
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Deletes a storageInsightsConfigs resource
|
|
160
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
161
|
+
* @param workspaceName The name of the workspace.
|
|
162
|
+
* @param storageInsightName Name of the storageInsightsConfigs resource
|
|
163
|
+
* @param options The options parameters.
|
|
164
|
+
*/
|
|
165
|
+
delete(
|
|
166
|
+
resourceGroupName: string,
|
|
167
|
+
workspaceName: string,
|
|
168
|
+
storageInsightName: string,
|
|
169
|
+
options?: StorageInsightConfigsDeleteOptionalParams
|
|
170
|
+
): Promise<void> {
|
|
171
|
+
return this.client.sendOperationRequest(
|
|
172
|
+
{ resourceGroupName, workspaceName, storageInsightName, options },
|
|
173
|
+
deleteOperationSpec
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Lists the storage insight instances within a workspace
|
|
179
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
180
|
+
* @param workspaceName The name of the workspace.
|
|
181
|
+
* @param options The options parameters.
|
|
182
|
+
*/
|
|
183
|
+
private _listByWorkspace(
|
|
184
|
+
resourceGroupName: string,
|
|
185
|
+
workspaceName: string,
|
|
186
|
+
options?: StorageInsightConfigsListByWorkspaceOptionalParams
|
|
187
|
+
): Promise<StorageInsightConfigsListByWorkspaceResponse> {
|
|
188
|
+
return this.client.sendOperationRequest(
|
|
189
|
+
{ resourceGroupName, workspaceName, options },
|
|
190
|
+
listByWorkspaceOperationSpec
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* ListByWorkspaceNext
|
|
196
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
197
|
+
* @param workspaceName The name of the workspace.
|
|
198
|
+
* @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.
|
|
199
|
+
* @param options The options parameters.
|
|
200
|
+
*/
|
|
201
|
+
private _listByWorkspaceNext(
|
|
202
|
+
resourceGroupName: string,
|
|
203
|
+
workspaceName: string,
|
|
204
|
+
nextLink: string,
|
|
205
|
+
options?: StorageInsightConfigsListByWorkspaceNextOptionalParams
|
|
206
|
+
): Promise<StorageInsightConfigsListByWorkspaceNextResponse> {
|
|
207
|
+
return this.client.sendOperationRequest(
|
|
208
|
+
{ resourceGroupName, workspaceName, nextLink, options },
|
|
209
|
+
listByWorkspaceNextOperationSpec
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
// Operation Specifications
|
|
214
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
215
|
+
|
|
216
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
217
|
+
path:
|
|
218
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}",
|
|
219
|
+
httpMethod: "PUT",
|
|
220
|
+
responses: {
|
|
221
|
+
200: {
|
|
222
|
+
bodyMapper: Mappers.StorageInsight
|
|
223
|
+
},
|
|
224
|
+
201: {
|
|
225
|
+
bodyMapper: Mappers.StorageInsight
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
requestBody: Parameters.parameters4,
|
|
229
|
+
queryParameters: [Parameters.apiVersion],
|
|
230
|
+
urlParameters: [
|
|
231
|
+
Parameters.$host,
|
|
232
|
+
Parameters.subscriptionId,
|
|
233
|
+
Parameters.resourceGroupName,
|
|
234
|
+
Parameters.workspaceName,
|
|
235
|
+
Parameters.storageInsightName
|
|
236
|
+
],
|
|
237
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
238
|
+
mediaType: "json",
|
|
239
|
+
serializer
|
|
240
|
+
};
|
|
241
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
242
|
+
path:
|
|
243
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}",
|
|
244
|
+
httpMethod: "GET",
|
|
245
|
+
responses: {
|
|
246
|
+
200: {
|
|
247
|
+
bodyMapper: Mappers.StorageInsight
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
queryParameters: [Parameters.apiVersion],
|
|
251
|
+
urlParameters: [
|
|
252
|
+
Parameters.$host,
|
|
253
|
+
Parameters.subscriptionId,
|
|
254
|
+
Parameters.resourceGroupName,
|
|
255
|
+
Parameters.workspaceName,
|
|
256
|
+
Parameters.storageInsightName
|
|
257
|
+
],
|
|
258
|
+
headerParameters: [Parameters.accept],
|
|
259
|
+
serializer
|
|
260
|
+
};
|
|
261
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
262
|
+
path:
|
|
263
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}",
|
|
264
|
+
httpMethod: "DELETE",
|
|
265
|
+
responses: { 200: {}, 204: {} },
|
|
266
|
+
queryParameters: [Parameters.apiVersion],
|
|
267
|
+
urlParameters: [
|
|
268
|
+
Parameters.$host,
|
|
269
|
+
Parameters.subscriptionId,
|
|
270
|
+
Parameters.resourceGroupName,
|
|
271
|
+
Parameters.workspaceName,
|
|
272
|
+
Parameters.storageInsightName
|
|
273
|
+
],
|
|
274
|
+
serializer
|
|
275
|
+
};
|
|
276
|
+
const listByWorkspaceOperationSpec: coreClient.OperationSpec = {
|
|
277
|
+
path:
|
|
278
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs",
|
|
279
|
+
httpMethod: "GET",
|
|
280
|
+
responses: {
|
|
281
|
+
200: {
|
|
282
|
+
bodyMapper: Mappers.StorageInsightListResult
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
queryParameters: [Parameters.apiVersion],
|
|
286
|
+
urlParameters: [
|
|
287
|
+
Parameters.$host,
|
|
288
|
+
Parameters.subscriptionId,
|
|
289
|
+
Parameters.resourceGroupName,
|
|
290
|
+
Parameters.workspaceName
|
|
291
|
+
],
|
|
292
|
+
headerParameters: [Parameters.accept],
|
|
293
|
+
serializer
|
|
294
|
+
};
|
|
295
|
+
const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {
|
|
296
|
+
path: "{nextLink}",
|
|
297
|
+
httpMethod: "GET",
|
|
298
|
+
responses: {
|
|
299
|
+
200: {
|
|
300
|
+
bodyMapper: Mappers.StorageInsightListResult
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
queryParameters: [Parameters.apiVersion],
|
|
304
|
+
urlParameters: [
|
|
305
|
+
Parameters.$host,
|
|
306
|
+
Parameters.subscriptionId,
|
|
307
|
+
Parameters.resourceGroupName,
|
|
308
|
+
Parameters.workspaceName,
|
|
309
|
+
Parameters.nextLink
|
|
310
|
+
],
|
|
311
|
+
headerParameters: [Parameters.accept],
|
|
312
|
+
serializer
|
|
313
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Usages } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { OperationalInsightsManagementClientContext } from "../operationalInsightsManagementClientContext";
|
|
15
|
+
import {
|
|
16
|
+
UsageMetric,
|
|
17
|
+
UsagesListOptionalParams,
|
|
18
|
+
UsagesListResponse
|
|
19
|
+
} from "../models";
|
|
20
|
+
|
|
21
|
+
/// <reference lib="esnext.asynciterable" />
|
|
22
|
+
/** Class containing Usages operations. */
|
|
23
|
+
export class UsagesImpl implements Usages {
|
|
24
|
+
private readonly client: OperationalInsightsManagementClientContext;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Initialize a new instance of the class Usages class.
|
|
28
|
+
* @param client Reference to the service client
|
|
29
|
+
*/
|
|
30
|
+
constructor(client: OperationalInsightsManagementClientContext) {
|
|
31
|
+
this.client = client;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Gets a list of usage metrics for a workspace.
|
|
36
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
37
|
+
* @param workspaceName The name of the workspace.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
public list(
|
|
41
|
+
resourceGroupName: string,
|
|
42
|
+
workspaceName: string,
|
|
43
|
+
options?: UsagesListOptionalParams
|
|
44
|
+
): PagedAsyncIterableIterator<UsageMetric> {
|
|
45
|
+
const iter = this.listPagingAll(resourceGroupName, workspaceName, options);
|
|
46
|
+
return {
|
|
47
|
+
next() {
|
|
48
|
+
return iter.next();
|
|
49
|
+
},
|
|
50
|
+
[Symbol.asyncIterator]() {
|
|
51
|
+
return this;
|
|
52
|
+
},
|
|
53
|
+
byPage: () => {
|
|
54
|
+
return this.listPagingPage(resourceGroupName, workspaceName, options);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
private async *listPagingPage(
|
|
60
|
+
resourceGroupName: string,
|
|
61
|
+
workspaceName: string,
|
|
62
|
+
options?: UsagesListOptionalParams
|
|
63
|
+
): AsyncIterableIterator<UsageMetric[]> {
|
|
64
|
+
let result = await this._list(resourceGroupName, workspaceName, options);
|
|
65
|
+
yield result.value || [];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
private async *listPagingAll(
|
|
69
|
+
resourceGroupName: string,
|
|
70
|
+
workspaceName: string,
|
|
71
|
+
options?: UsagesListOptionalParams
|
|
72
|
+
): AsyncIterableIterator<UsageMetric> {
|
|
73
|
+
for await (const page of this.listPagingPage(
|
|
74
|
+
resourceGroupName,
|
|
75
|
+
workspaceName,
|
|
76
|
+
options
|
|
77
|
+
)) {
|
|
78
|
+
yield* page;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Gets a list of usage metrics for a workspace.
|
|
84
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
85
|
+
* @param workspaceName The name of the workspace.
|
|
86
|
+
* @param options The options parameters.
|
|
87
|
+
*/
|
|
88
|
+
private _list(
|
|
89
|
+
resourceGroupName: string,
|
|
90
|
+
workspaceName: string,
|
|
91
|
+
options?: UsagesListOptionalParams
|
|
92
|
+
): Promise<UsagesListResponse> {
|
|
93
|
+
return this.client.sendOperationRequest(
|
|
94
|
+
{ resourceGroupName, workspaceName, options },
|
|
95
|
+
listOperationSpec
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
// Operation Specifications
|
|
100
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
101
|
+
|
|
102
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
103
|
+
path:
|
|
104
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/usages",
|
|
105
|
+
httpMethod: "GET",
|
|
106
|
+
responses: {
|
|
107
|
+
200: {
|
|
108
|
+
bodyMapper: Mappers.WorkspaceListUsagesResult
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
queryParameters: [Parameters.apiVersion],
|
|
112
|
+
urlParameters: [
|
|
113
|
+
Parameters.$host,
|
|
114
|
+
Parameters.subscriptionId,
|
|
115
|
+
Parameters.resourceGroupName,
|
|
116
|
+
Parameters.workspaceName
|
|
117
|
+
],
|
|
118
|
+
headerParameters: [Parameters.accept],
|
|
119
|
+
serializer
|
|
120
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
|
|
9
|
+
import { WorkspacePurge } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
import { OperationalInsightsManagementClientContext } from "../operationalInsightsManagementClientContext";
|
|
14
|
+
import {
|
|
15
|
+
WorkspacePurgeBody,
|
|
16
|
+
WorkspacePurgePurgeOptionalParams,
|
|
17
|
+
WorkspacePurgePurgeResponse,
|
|
18
|
+
WorkspacePurgeGetPurgeStatusOptionalParams,
|
|
19
|
+
WorkspacePurgeGetPurgeStatusResponse
|
|
20
|
+
} from "../models";
|
|
21
|
+
|
|
22
|
+
/** Class containing WorkspacePurge operations. */
|
|
23
|
+
export class WorkspacePurgeImpl implements WorkspacePurge {
|
|
24
|
+
private readonly client: OperationalInsightsManagementClientContext;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Initialize a new instance of the class WorkspacePurge class.
|
|
28
|
+
* @param client Reference to the service client
|
|
29
|
+
*/
|
|
30
|
+
constructor(client: OperationalInsightsManagementClientContext) {
|
|
31
|
+
this.client = client;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Purges data in an Log Analytics workspace by a set of user-defined filters.
|
|
36
|
+
*
|
|
37
|
+
* In order to manage system resources, purge requests are throttled at 50 requests per hour. You
|
|
38
|
+
* should batch the execution of purge requests by sending a single command whose predicate includes
|
|
39
|
+
* all user identities that require purging. Use the in operator to specify multiple identities. You
|
|
40
|
+
* should run the query prior to using for a purge request to verify that the results are expected.
|
|
41
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
42
|
+
* @param workspaceName The name of the workspace.
|
|
43
|
+
* @param body Describes the body of a request to purge data in a single table of an Log Analytics
|
|
44
|
+
* Workspace
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
purge(
|
|
48
|
+
resourceGroupName: string,
|
|
49
|
+
workspaceName: string,
|
|
50
|
+
body: WorkspacePurgeBody,
|
|
51
|
+
options?: WorkspacePurgePurgeOptionalParams
|
|
52
|
+
): Promise<WorkspacePurgePurgeResponse> {
|
|
53
|
+
return this.client.sendOperationRequest(
|
|
54
|
+
{ resourceGroupName, workspaceName, body, options },
|
|
55
|
+
purgeOperationSpec
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Gets status of an ongoing purge operation.
|
|
61
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
62
|
+
* @param workspaceName The name of the workspace.
|
|
63
|
+
* @param purgeId In a purge status request, this is the Id of the operation the status of which is
|
|
64
|
+
* returned.
|
|
65
|
+
* @param options The options parameters.
|
|
66
|
+
*/
|
|
67
|
+
getPurgeStatus(
|
|
68
|
+
resourceGroupName: string,
|
|
69
|
+
workspaceName: string,
|
|
70
|
+
purgeId: string,
|
|
71
|
+
options?: WorkspacePurgeGetPurgeStatusOptionalParams
|
|
72
|
+
): Promise<WorkspacePurgeGetPurgeStatusResponse> {
|
|
73
|
+
return this.client.sendOperationRequest(
|
|
74
|
+
{ resourceGroupName, workspaceName, purgeId, options },
|
|
75
|
+
getPurgeStatusOperationSpec
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
// Operation Specifications
|
|
80
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
81
|
+
|
|
82
|
+
const purgeOperationSpec: coreClient.OperationSpec = {
|
|
83
|
+
path:
|
|
84
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/purge",
|
|
85
|
+
httpMethod: "POST",
|
|
86
|
+
responses: {
|
|
87
|
+
202: {
|
|
88
|
+
bodyMapper: Mappers.WorkspacePurgeResponse,
|
|
89
|
+
headersMapper: Mappers.WorkspacePurgePurgeHeaders
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
requestBody: Parameters.body,
|
|
93
|
+
queryParameters: [Parameters.apiVersion],
|
|
94
|
+
urlParameters: [
|
|
95
|
+
Parameters.$host,
|
|
96
|
+
Parameters.subscriptionId,
|
|
97
|
+
Parameters.resourceGroupName,
|
|
98
|
+
Parameters.workspaceName
|
|
99
|
+
],
|
|
100
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
101
|
+
mediaType: "json",
|
|
102
|
+
serializer
|
|
103
|
+
};
|
|
104
|
+
const getPurgeStatusOperationSpec: coreClient.OperationSpec = {
|
|
105
|
+
path:
|
|
106
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/operations/{purgeId}",
|
|
107
|
+
httpMethod: "GET",
|
|
108
|
+
responses: {
|
|
109
|
+
200: {
|
|
110
|
+
bodyMapper: Mappers.WorkspacePurgeStatusResponse
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
queryParameters: [Parameters.apiVersion],
|
|
114
|
+
urlParameters: [
|
|
115
|
+
Parameters.$host,
|
|
116
|
+
Parameters.subscriptionId,
|
|
117
|
+
Parameters.resourceGroupName,
|
|
118
|
+
Parameters.workspaceName,
|
|
119
|
+
Parameters.purgeId
|
|
120
|
+
],
|
|
121
|
+
headerParameters: [Parameters.accept],
|
|
122
|
+
serializer
|
|
123
|
+
};
|