@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,180 @@
|
|
|
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 { DeletedWorkspaces } 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
|
+
Workspace,
|
|
17
|
+
DeletedWorkspacesListOptionalParams,
|
|
18
|
+
DeletedWorkspacesListByResourceGroupOptionalParams,
|
|
19
|
+
DeletedWorkspacesListResponse,
|
|
20
|
+
DeletedWorkspacesListByResourceGroupResponse
|
|
21
|
+
} from "../models";
|
|
22
|
+
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing DeletedWorkspaces operations. */
|
|
25
|
+
export class DeletedWorkspacesImpl implements DeletedWorkspaces {
|
|
26
|
+
private readonly client: OperationalInsightsManagementClientContext;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Initialize a new instance of the class DeletedWorkspaces class.
|
|
30
|
+
* @param client Reference to the service client
|
|
31
|
+
*/
|
|
32
|
+
constructor(client: OperationalInsightsManagementClientContext) {
|
|
33
|
+
this.client = client;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Gets recently deleted workspaces in a subscription, available for recovery.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
public list(
|
|
41
|
+
options?: DeletedWorkspacesListOptionalParams
|
|
42
|
+
): PagedAsyncIterableIterator<Workspace> {
|
|
43
|
+
const iter = this.listPagingAll(options);
|
|
44
|
+
return {
|
|
45
|
+
next() {
|
|
46
|
+
return iter.next();
|
|
47
|
+
},
|
|
48
|
+
[Symbol.asyncIterator]() {
|
|
49
|
+
return this;
|
|
50
|
+
},
|
|
51
|
+
byPage: () => {
|
|
52
|
+
return this.listPagingPage(options);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
private async *listPagingPage(
|
|
58
|
+
options?: DeletedWorkspacesListOptionalParams
|
|
59
|
+
): AsyncIterableIterator<Workspace[]> {
|
|
60
|
+
let result = await this._list(options);
|
|
61
|
+
yield result.value || [];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
private async *listPagingAll(
|
|
65
|
+
options?: DeletedWorkspacesListOptionalParams
|
|
66
|
+
): AsyncIterableIterator<Workspace> {
|
|
67
|
+
for await (const page of this.listPagingPage(options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Gets recently deleted workspaces in a resource group, available for recovery.
|
|
74
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
75
|
+
* @param options The options parameters.
|
|
76
|
+
*/
|
|
77
|
+
public listByResourceGroup(
|
|
78
|
+
resourceGroupName: string,
|
|
79
|
+
options?: DeletedWorkspacesListByResourceGroupOptionalParams
|
|
80
|
+
): PagedAsyncIterableIterator<Workspace> {
|
|
81
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
82
|
+
return {
|
|
83
|
+
next() {
|
|
84
|
+
return iter.next();
|
|
85
|
+
},
|
|
86
|
+
[Symbol.asyncIterator]() {
|
|
87
|
+
return this;
|
|
88
|
+
},
|
|
89
|
+
byPage: () => {
|
|
90
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
private async *listByResourceGroupPagingPage(
|
|
96
|
+
resourceGroupName: string,
|
|
97
|
+
options?: DeletedWorkspacesListByResourceGroupOptionalParams
|
|
98
|
+
): AsyncIterableIterator<Workspace[]> {
|
|
99
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
100
|
+
yield result.value || [];
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
private async *listByResourceGroupPagingAll(
|
|
104
|
+
resourceGroupName: string,
|
|
105
|
+
options?: DeletedWorkspacesListByResourceGroupOptionalParams
|
|
106
|
+
): AsyncIterableIterator<Workspace> {
|
|
107
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
108
|
+
resourceGroupName,
|
|
109
|
+
options
|
|
110
|
+
)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Gets recently deleted workspaces in a subscription, available for recovery.
|
|
117
|
+
* @param options The options parameters.
|
|
118
|
+
*/
|
|
119
|
+
private _list(
|
|
120
|
+
options?: DeletedWorkspacesListOptionalParams
|
|
121
|
+
): Promise<DeletedWorkspacesListResponse> {
|
|
122
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Gets recently deleted workspaces in a resource group, available for recovery.
|
|
127
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
128
|
+
* @param options The options parameters.
|
|
129
|
+
*/
|
|
130
|
+
private _listByResourceGroup(
|
|
131
|
+
resourceGroupName: string,
|
|
132
|
+
options?: DeletedWorkspacesListByResourceGroupOptionalParams
|
|
133
|
+
): Promise<DeletedWorkspacesListByResourceGroupResponse> {
|
|
134
|
+
return this.client.sendOperationRequest(
|
|
135
|
+
{ resourceGroupName, options },
|
|
136
|
+
listByResourceGroupOperationSpec
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
// Operation Specifications
|
|
141
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
142
|
+
|
|
143
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
144
|
+
path:
|
|
145
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/deletedWorkspaces",
|
|
146
|
+
httpMethod: "GET",
|
|
147
|
+
responses: {
|
|
148
|
+
200: {
|
|
149
|
+
bodyMapper: Mappers.WorkspaceListResult
|
|
150
|
+
},
|
|
151
|
+
default: {
|
|
152
|
+
bodyMapper: Mappers.ErrorResponse
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
queryParameters: [Parameters.apiVersion2],
|
|
156
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
157
|
+
headerParameters: [Parameters.accept],
|
|
158
|
+
serializer
|
|
159
|
+
};
|
|
160
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
161
|
+
path:
|
|
162
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/deletedWorkspaces",
|
|
163
|
+
httpMethod: "GET",
|
|
164
|
+
responses: {
|
|
165
|
+
200: {
|
|
166
|
+
bodyMapper: Mappers.WorkspaceListResult
|
|
167
|
+
},
|
|
168
|
+
default: {
|
|
169
|
+
bodyMapper: Mappers.ErrorResponse
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
queryParameters: [Parameters.apiVersion2],
|
|
173
|
+
urlParameters: [
|
|
174
|
+
Parameters.$host,
|
|
175
|
+
Parameters.subscriptionId,
|
|
176
|
+
Parameters.resourceGroupName
|
|
177
|
+
],
|
|
178
|
+
headerParameters: [Parameters.accept],
|
|
179
|
+
serializer
|
|
180
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { Gateways } 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 { GatewaysDeleteOptionalParams } from "../models";
|
|
15
|
+
|
|
16
|
+
/** Class containing Gateways operations. */
|
|
17
|
+
export class GatewaysImpl implements Gateways {
|
|
18
|
+
private readonly client: OperationalInsightsManagementClientContext;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Initialize a new instance of the class Gateways class.
|
|
22
|
+
* @param client Reference to the service client
|
|
23
|
+
*/
|
|
24
|
+
constructor(client: OperationalInsightsManagementClientContext) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Delete a Log Analytics gateway.
|
|
30
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
31
|
+
* @param workspaceName The name of the workspace.
|
|
32
|
+
* @param gatewayId The Log Analytics gateway Id.
|
|
33
|
+
* @param options The options parameters.
|
|
34
|
+
*/
|
|
35
|
+
delete(
|
|
36
|
+
resourceGroupName: string,
|
|
37
|
+
workspaceName: string,
|
|
38
|
+
gatewayId: string,
|
|
39
|
+
options?: GatewaysDeleteOptionalParams
|
|
40
|
+
): Promise<void> {
|
|
41
|
+
return this.client.sendOperationRequest(
|
|
42
|
+
{ resourceGroupName, workspaceName, gatewayId, options },
|
|
43
|
+
deleteOperationSpec
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
// Operation Specifications
|
|
48
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
49
|
+
|
|
50
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
51
|
+
path:
|
|
52
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/gateways/{gatewayId}",
|
|
53
|
+
httpMethod: "DELETE",
|
|
54
|
+
responses: { 200: {} },
|
|
55
|
+
queryParameters: [Parameters.apiVersion],
|
|
56
|
+
urlParameters: [
|
|
57
|
+
Parameters.$host,
|
|
58
|
+
Parameters.subscriptionId,
|
|
59
|
+
Parameters.resourceGroupName,
|
|
60
|
+
Parameters.workspaceName,
|
|
61
|
+
Parameters.gatewayId
|
|
62
|
+
],
|
|
63
|
+
serializer
|
|
64
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
export * from "./dataExports";
|
|
10
|
+
export * from "./dataSources";
|
|
11
|
+
export * from "./intelligencePacks";
|
|
12
|
+
export * from "./linkedServices";
|
|
13
|
+
export * from "./linkedStorageAccounts";
|
|
14
|
+
export * from "./managementGroups";
|
|
15
|
+
export * from "./operationStatuses";
|
|
16
|
+
export * from "./sharedKeysOperations";
|
|
17
|
+
export * from "./usages";
|
|
18
|
+
export * from "./storageInsightConfigs";
|
|
19
|
+
export * from "./savedSearches";
|
|
20
|
+
export * from "./availableServiceTiers";
|
|
21
|
+
export * from "./gateways";
|
|
22
|
+
export * from "./schema";
|
|
23
|
+
export * from "./workspacePurge";
|
|
24
|
+
export * from "./operations";
|
|
25
|
+
export * from "./clusters";
|
|
26
|
+
export * from "./workspaces";
|
|
27
|
+
export * from "./deletedWorkspaces";
|
|
@@ -0,0 +1,147 @@
|
|
|
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 { IntelligencePacks } 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
|
+
IntelligencePacksDisableOptionalParams,
|
|
16
|
+
IntelligencePacksEnableOptionalParams,
|
|
17
|
+
IntelligencePacksListOptionalParams,
|
|
18
|
+
IntelligencePacksListResponse
|
|
19
|
+
} from "../models";
|
|
20
|
+
|
|
21
|
+
/** Class containing IntelligencePacks operations. */
|
|
22
|
+
export class IntelligencePacksImpl implements IntelligencePacks {
|
|
23
|
+
private readonly client: OperationalInsightsManagementClientContext;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Initialize a new instance of the class IntelligencePacks class.
|
|
27
|
+
* @param client Reference to the service client
|
|
28
|
+
*/
|
|
29
|
+
constructor(client: OperationalInsightsManagementClientContext) {
|
|
30
|
+
this.client = client;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Disables an intelligence pack for a given workspace.
|
|
35
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
36
|
+
* @param workspaceName The name of the workspace.
|
|
37
|
+
* @param intelligencePackName The name of the intelligence pack to be disabled.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
disable(
|
|
41
|
+
resourceGroupName: string,
|
|
42
|
+
workspaceName: string,
|
|
43
|
+
intelligencePackName: string,
|
|
44
|
+
options?: IntelligencePacksDisableOptionalParams
|
|
45
|
+
): Promise<void> {
|
|
46
|
+
return this.client.sendOperationRequest(
|
|
47
|
+
{ resourceGroupName, workspaceName, intelligencePackName, options },
|
|
48
|
+
disableOperationSpec
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Enables an intelligence pack for a given workspace.
|
|
54
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
55
|
+
* @param workspaceName The name of the workspace.
|
|
56
|
+
* @param intelligencePackName The name of the intelligence pack to be enabled.
|
|
57
|
+
* @param options The options parameters.
|
|
58
|
+
*/
|
|
59
|
+
enable(
|
|
60
|
+
resourceGroupName: string,
|
|
61
|
+
workspaceName: string,
|
|
62
|
+
intelligencePackName: string,
|
|
63
|
+
options?: IntelligencePacksEnableOptionalParams
|
|
64
|
+
): Promise<void> {
|
|
65
|
+
return this.client.sendOperationRequest(
|
|
66
|
+
{ resourceGroupName, workspaceName, intelligencePackName, options },
|
|
67
|
+
enableOperationSpec
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Lists all the intelligence packs possible and whether they are enabled or disabled for a given
|
|
73
|
+
* workspace.
|
|
74
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
75
|
+
* @param workspaceName The name of the workspace.
|
|
76
|
+
* @param options The options parameters.
|
|
77
|
+
*/
|
|
78
|
+
list(
|
|
79
|
+
resourceGroupName: string,
|
|
80
|
+
workspaceName: string,
|
|
81
|
+
options?: IntelligencePacksListOptionalParams
|
|
82
|
+
): Promise<IntelligencePacksListResponse> {
|
|
83
|
+
return this.client.sendOperationRequest(
|
|
84
|
+
{ resourceGroupName, workspaceName, options },
|
|
85
|
+
listOperationSpec
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
// Operation Specifications
|
|
90
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
91
|
+
|
|
92
|
+
const disableOperationSpec: coreClient.OperationSpec = {
|
|
93
|
+
path:
|
|
94
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Disable",
|
|
95
|
+
httpMethod: "POST",
|
|
96
|
+
responses: { 200: {} },
|
|
97
|
+
queryParameters: [Parameters.apiVersion],
|
|
98
|
+
urlParameters: [
|
|
99
|
+
Parameters.$host,
|
|
100
|
+
Parameters.subscriptionId,
|
|
101
|
+
Parameters.resourceGroupName,
|
|
102
|
+
Parameters.workspaceName,
|
|
103
|
+
Parameters.intelligencePackName
|
|
104
|
+
],
|
|
105
|
+
serializer
|
|
106
|
+
};
|
|
107
|
+
const enableOperationSpec: coreClient.OperationSpec = {
|
|
108
|
+
path:
|
|
109
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Enable",
|
|
110
|
+
httpMethod: "POST",
|
|
111
|
+
responses: { 200: {} },
|
|
112
|
+
queryParameters: [Parameters.apiVersion],
|
|
113
|
+
urlParameters: [
|
|
114
|
+
Parameters.$host,
|
|
115
|
+
Parameters.subscriptionId,
|
|
116
|
+
Parameters.resourceGroupName,
|
|
117
|
+
Parameters.workspaceName,
|
|
118
|
+
Parameters.intelligencePackName
|
|
119
|
+
],
|
|
120
|
+
serializer
|
|
121
|
+
};
|
|
122
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
123
|
+
path:
|
|
124
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks",
|
|
125
|
+
httpMethod: "GET",
|
|
126
|
+
responses: {
|
|
127
|
+
200: {
|
|
128
|
+
bodyMapper: {
|
|
129
|
+
type: {
|
|
130
|
+
name: "Sequence",
|
|
131
|
+
element: {
|
|
132
|
+
type: { name: "Composite", className: "IntelligencePack" }
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
queryParameters: [Parameters.apiVersion],
|
|
139
|
+
urlParameters: [
|
|
140
|
+
Parameters.$host,
|
|
141
|
+
Parameters.subscriptionId,
|
|
142
|
+
Parameters.resourceGroupName,
|
|
143
|
+
Parameters.workspaceName
|
|
144
|
+
],
|
|
145
|
+
headerParameters: [Parameters.accept],
|
|
146
|
+
serializer
|
|
147
|
+
};
|