@azure/arm-dashboard 1.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 +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +1372 -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/samples-dev/grafanaCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/grafanaCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/grafanaCreateSample.js +38 -0
- package/dist-esm/samples-dev/grafanaCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/grafanaDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/grafanaDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/grafanaDeleteSample.js +31 -0
- package/dist-esm/samples-dev/grafanaDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/grafanaGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/grafanaGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/grafanaGetSample.js +31 -0
- package/dist-esm/samples-dev/grafanaGetSample.js.map +1 -0
- package/dist-esm/samples-dev/grafanaListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/grafanaListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/grafanaListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/grafanaListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/grafanaListSample.d.ts +2 -0
- package/dist-esm/samples-dev/grafanaListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/grafanaListSample.js +43 -0
- package/dist-esm/samples-dev/grafanaListSample.js.map +1 -0
- package/dist-esm/samples-dev/grafanaUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/grafanaUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/grafanaUpdateSample.js +34 -0
- package/dist-esm/samples-dev/grafanaUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/src/dashboardManagementClient.d.ts +20 -0
- package/dist-esm/src/dashboardManagementClient.d.ts.map +1 -0
- package/dist-esm/src/dashboardManagementClient.js +71 -0
- package/dist-esm/src/dashboardManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -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 +414 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +66 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +16 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +485 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +12 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +108 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/grafana.d.ts +101 -0
- package/dist-esm/src/operations/grafana.d.ts.map +1 -0
- package/dist-esm/src/operations/grafana.js +458 -0
- package/dist-esm/src/operations/grafana.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +3 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +10 -0
- package/dist-esm/src/operations/index.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/operationsInterfaces/grafana.d.ts +65 -0
- package/dist-esm/src/operationsInterfaces/grafana.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/grafana.js +9 -0
- package/dist-esm/src/operationsInterfaces/grafana.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +10 -0
- package/dist-esm/src/operationsInterfaces/index.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/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 +118 -0
- package/review/arm-dashboard.api.md +355 -0
- package/rollup.config.js +122 -0
- package/src/dashboardManagementClient.ts +103 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +467 -0
- package/src/models/mappers.ts +500 -0
- package/src/models/parameters.ts +126 -0
- package/src/operations/grafana.ts +595 -0
- package/src/operations/index.ts +10 -0
- package/src/operations/operations.ts +137 -0
- package/src/operationsInterfaces/grafana.ts +120 -0
- package/src/operationsInterfaces/index.ts +10 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/tsconfig.json +33 -0
- package/types/arm-dashboard.d.ts +556 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Grafana } from "../operationsInterfaces";
|
|
3
|
+
import { DashboardManagementClient } from "../dashboardManagementClient";
|
|
4
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
5
|
+
import { ManagedGrafana, GrafanaListOptionalParams, GrafanaListByResourceGroupOptionalParams, GrafanaGetOptionalParams, GrafanaGetResponse, GrafanaCreateOptionalParams, GrafanaCreateResponse, ManagedGrafanaUpdateParameters, GrafanaUpdateOptionalParams, GrafanaUpdateResponse, GrafanaDeleteOptionalParams } from "../models";
|
|
6
|
+
/** Class containing Grafana operations. */
|
|
7
|
+
export declare class GrafanaImpl implements Grafana {
|
|
8
|
+
private readonly client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class Grafana class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client: DashboardManagementClient);
|
|
14
|
+
/**
|
|
15
|
+
* List all resources of workspaces for Grafana under the specified subscription.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
list(options?: GrafanaListOptionalParams): PagedAsyncIterableIterator<ManagedGrafana>;
|
|
19
|
+
private listPagingPage;
|
|
20
|
+
private listPagingAll;
|
|
21
|
+
/**
|
|
22
|
+
* List all resources of workspaces for Grafana under the specified resource group.
|
|
23
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
listByResourceGroup(resourceGroupName: string, options?: GrafanaListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ManagedGrafana>;
|
|
27
|
+
private listByResourceGroupPagingPage;
|
|
28
|
+
private listByResourceGroupPagingAll;
|
|
29
|
+
/**
|
|
30
|
+
* List all resources of workspaces for Grafana under the specified subscription.
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
private _list;
|
|
34
|
+
/**
|
|
35
|
+
* List all resources of workspaces for Grafana under the specified resource group.
|
|
36
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
private _listByResourceGroup;
|
|
40
|
+
/**
|
|
41
|
+
* Get the properties of a specific workspace for Grafana resource.
|
|
42
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
43
|
+
* @param workspaceName The workspace name of Azure Managed Grafana.
|
|
44
|
+
* @param options The options parameters.
|
|
45
|
+
*/
|
|
46
|
+
get(resourceGroupName: string, workspaceName: string, options?: GrafanaGetOptionalParams): Promise<GrafanaGetResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Create or update a workspace for Grafana resource. This API is idempotent, so user can either create
|
|
49
|
+
* a new grafana or update an existing grafana.
|
|
50
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
51
|
+
* @param workspaceName The workspace name of Azure Managed Grafana.
|
|
52
|
+
* @param requestBodyParameters The grafana resource type.
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
beginCreate(resourceGroupName: string, workspaceName: string, requestBodyParameters: ManagedGrafana, options?: GrafanaCreateOptionalParams): Promise<PollerLike<PollOperationState<GrafanaCreateResponse>, GrafanaCreateResponse>>;
|
|
56
|
+
/**
|
|
57
|
+
* Create or update a workspace for Grafana resource. This API is idempotent, so user can either create
|
|
58
|
+
* a new grafana or update an existing grafana.
|
|
59
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
60
|
+
* @param workspaceName The workspace name of Azure Managed Grafana.
|
|
61
|
+
* @param requestBodyParameters The grafana resource type.
|
|
62
|
+
* @param options The options parameters.
|
|
63
|
+
*/
|
|
64
|
+
beginCreateAndWait(resourceGroupName: string, workspaceName: string, requestBodyParameters: ManagedGrafana, options?: GrafanaCreateOptionalParams): Promise<GrafanaCreateResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Update a workspace for Grafana resource.
|
|
67
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
68
|
+
* @param workspaceName The workspace name of Azure Managed Grafana.
|
|
69
|
+
* @param requestBodyParameters The parameters for a PATCH request to a grafana resource.
|
|
70
|
+
* @param options The options parameters.
|
|
71
|
+
*/
|
|
72
|
+
update(resourceGroupName: string, workspaceName: string, requestBodyParameters: ManagedGrafanaUpdateParameters, options?: GrafanaUpdateOptionalParams): Promise<GrafanaUpdateResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* Delete a workspace for Grafana resource.
|
|
75
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
76
|
+
* @param workspaceName The workspace name of Azure Managed Grafana.
|
|
77
|
+
* @param options The options parameters.
|
|
78
|
+
*/
|
|
79
|
+
beginDelete(resourceGroupName: string, workspaceName: string, options?: GrafanaDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
80
|
+
/**
|
|
81
|
+
* Delete a workspace for Grafana resource.
|
|
82
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
83
|
+
* @param workspaceName The workspace name of Azure Managed Grafana.
|
|
84
|
+
* @param options The options parameters.
|
|
85
|
+
*/
|
|
86
|
+
beginDeleteAndWait(resourceGroupName: string, workspaceName: string, options?: GrafanaDeleteOptionalParams): Promise<void>;
|
|
87
|
+
/**
|
|
88
|
+
* ListNext
|
|
89
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
90
|
+
* @param options The options parameters.
|
|
91
|
+
*/
|
|
92
|
+
private _listNext;
|
|
93
|
+
/**
|
|
94
|
+
* ListByResourceGroupNext
|
|
95
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
96
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
97
|
+
* @param options The options parameters.
|
|
98
|
+
*/
|
|
99
|
+
private _listByResourceGroupNext;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=grafana.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grafana.d.ts","sourceRoot":"","sources":["../../../src/operations/grafana.ts"],"names":[],"mappings":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,qBAAqB,CAAC,EAAE,qBAAqB,CAAC,CAC7E;IAsDD;;;;;;;OAOG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,qBAAqB,EAAE,cAAc,EACrC,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC;IAUjC;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,qBAAqB,EAAE,8BAA8B,EACrD,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC;IAOjC;;;;;OAKG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAsDtD;;;;;OAKG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,IAAI,CAAC;IAShB;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAUjB;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;CAUjC"}
|
|
@@ -0,0 +1,458 @@
|
|
|
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, __awaiter } 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
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing Grafana operations. */
|
|
16
|
+
export class GrafanaImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class Grafana class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* List all resources of workspaces for Grafana under the specified subscription.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
list(options) {
|
|
29
|
+
const iter = this.listPagingAll(options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: () => {
|
|
38
|
+
return this.listPagingPage(options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
listPagingPage(options) {
|
|
43
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
44
|
+
let result = yield __await(this._list(options));
|
|
45
|
+
yield yield __await(result.value || []);
|
|
46
|
+
let continuationToken = result.nextLink;
|
|
47
|
+
while (continuationToken) {
|
|
48
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
49
|
+
continuationToken = result.nextLink;
|
|
50
|
+
yield yield __await(result.value || []);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
listPagingAll(options) {
|
|
55
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
56
|
+
var e_1, _a;
|
|
57
|
+
try {
|
|
58
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
59
|
+
const page = _c.value;
|
|
60
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
+
finally {
|
|
65
|
+
try {
|
|
66
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
67
|
+
}
|
|
68
|
+
finally { if (e_1) throw e_1.error; }
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* List all resources of workspaces for Grafana under the specified resource group.
|
|
74
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
75
|
+
* @param options The options parameters.
|
|
76
|
+
*/
|
|
77
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
78
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
79
|
+
return {
|
|
80
|
+
next() {
|
|
81
|
+
return iter.next();
|
|
82
|
+
},
|
|
83
|
+
[Symbol.asyncIterator]() {
|
|
84
|
+
return this;
|
|
85
|
+
},
|
|
86
|
+
byPage: () => {
|
|
87
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
92
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
93
|
+
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
94
|
+
yield yield __await(result.value || []);
|
|
95
|
+
let continuationToken = result.nextLink;
|
|
96
|
+
while (continuationToken) {
|
|
97
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
yield yield __await(result.value || []);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
104
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
105
|
+
var e_2, _a;
|
|
106
|
+
try {
|
|
107
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
108
|
+
const page = _c.value;
|
|
109
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
113
|
+
finally {
|
|
114
|
+
try {
|
|
115
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
116
|
+
}
|
|
117
|
+
finally { if (e_2) throw e_2.error; }
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* List all resources of workspaces for Grafana under the specified subscription.
|
|
123
|
+
* @param options The options parameters.
|
|
124
|
+
*/
|
|
125
|
+
_list(options) {
|
|
126
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* List all resources of workspaces for Grafana under the specified resource group.
|
|
130
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
131
|
+
* @param options The options parameters.
|
|
132
|
+
*/
|
|
133
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
134
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Get the properties of a specific workspace for Grafana resource.
|
|
138
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
139
|
+
* @param workspaceName The workspace name of Azure Managed Grafana.
|
|
140
|
+
* @param options The options parameters.
|
|
141
|
+
*/
|
|
142
|
+
get(resourceGroupName, workspaceName, options) {
|
|
143
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Create or update a workspace for Grafana resource. This API is idempotent, so user can either create
|
|
147
|
+
* a new grafana or update an existing grafana.
|
|
148
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
149
|
+
* @param workspaceName The workspace name of Azure Managed Grafana.
|
|
150
|
+
* @param requestBodyParameters The grafana resource type.
|
|
151
|
+
* @param options The options parameters.
|
|
152
|
+
*/
|
|
153
|
+
beginCreate(resourceGroupName, workspaceName, requestBodyParameters, options) {
|
|
154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
return this.client.sendOperationRequest(args, spec);
|
|
157
|
+
});
|
|
158
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
var _a;
|
|
160
|
+
let currentRawResponse = undefined;
|
|
161
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
162
|
+
const callback = (rawResponse, flatResponse) => {
|
|
163
|
+
currentRawResponse = rawResponse;
|
|
164
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
165
|
+
};
|
|
166
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
167
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
168
|
+
return {
|
|
169
|
+
flatResponse,
|
|
170
|
+
rawResponse: {
|
|
171
|
+
statusCode: currentRawResponse.status,
|
|
172
|
+
body: currentRawResponse.parsedBody,
|
|
173
|
+
headers: currentRawResponse.headers.toJSON()
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
});
|
|
177
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, requestBodyParameters, options }, createOperationSpec);
|
|
178
|
+
const poller = new LroEngine(lro, {
|
|
179
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
180
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
181
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
182
|
+
});
|
|
183
|
+
yield poller.poll();
|
|
184
|
+
return poller;
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Create or update a workspace for Grafana resource. This API is idempotent, so user can either create
|
|
189
|
+
* a new grafana or update an existing grafana.
|
|
190
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
191
|
+
* @param workspaceName The workspace name of Azure Managed Grafana.
|
|
192
|
+
* @param requestBodyParameters The grafana resource type.
|
|
193
|
+
* @param options The options parameters.
|
|
194
|
+
*/
|
|
195
|
+
beginCreateAndWait(resourceGroupName, workspaceName, requestBodyParameters, options) {
|
|
196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
197
|
+
const poller = yield this.beginCreate(resourceGroupName, workspaceName, requestBodyParameters, options);
|
|
198
|
+
return poller.pollUntilDone();
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Update a workspace for Grafana resource.
|
|
203
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
204
|
+
* @param workspaceName The workspace name of Azure Managed Grafana.
|
|
205
|
+
* @param requestBodyParameters The parameters for a PATCH request to a grafana resource.
|
|
206
|
+
* @param options The options parameters.
|
|
207
|
+
*/
|
|
208
|
+
update(resourceGroupName, workspaceName, requestBodyParameters, options) {
|
|
209
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, requestBodyParameters, options }, updateOperationSpec);
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Delete a workspace for Grafana resource.
|
|
213
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
214
|
+
* @param workspaceName The workspace name of Azure Managed Grafana.
|
|
215
|
+
* @param options The options parameters.
|
|
216
|
+
*/
|
|
217
|
+
beginDelete(resourceGroupName, workspaceName, options) {
|
|
218
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
219
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
220
|
+
return this.client.sendOperationRequest(args, spec);
|
|
221
|
+
});
|
|
222
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
223
|
+
var _a;
|
|
224
|
+
let currentRawResponse = undefined;
|
|
225
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
226
|
+
const callback = (rawResponse, flatResponse) => {
|
|
227
|
+
currentRawResponse = rawResponse;
|
|
228
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
229
|
+
};
|
|
230
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
231
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
232
|
+
return {
|
|
233
|
+
flatResponse,
|
|
234
|
+
rawResponse: {
|
|
235
|
+
statusCode: currentRawResponse.status,
|
|
236
|
+
body: currentRawResponse.parsedBody,
|
|
237
|
+
headers: currentRawResponse.headers.toJSON()
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
});
|
|
241
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, options }, deleteOperationSpec);
|
|
242
|
+
const poller = new LroEngine(lro, {
|
|
243
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
244
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
245
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
246
|
+
});
|
|
247
|
+
yield poller.poll();
|
|
248
|
+
return poller;
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Delete a workspace for Grafana resource.
|
|
253
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
254
|
+
* @param workspaceName The workspace name of Azure Managed Grafana.
|
|
255
|
+
* @param options The options parameters.
|
|
256
|
+
*/
|
|
257
|
+
beginDeleteAndWait(resourceGroupName, workspaceName, options) {
|
|
258
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
259
|
+
const poller = yield this.beginDelete(resourceGroupName, workspaceName, options);
|
|
260
|
+
return poller.pollUntilDone();
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* ListNext
|
|
265
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
266
|
+
* @param options The options parameters.
|
|
267
|
+
*/
|
|
268
|
+
_listNext(nextLink, options) {
|
|
269
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* ListByResourceGroupNext
|
|
273
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
274
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
275
|
+
* @param options The options parameters.
|
|
276
|
+
*/
|
|
277
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
278
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
// Operation Specifications
|
|
282
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
283
|
+
const listOperationSpec = {
|
|
284
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Dashboard/grafana",
|
|
285
|
+
httpMethod: "GET",
|
|
286
|
+
responses: {
|
|
287
|
+
200: {
|
|
288
|
+
bodyMapper: Mappers.ManagedGrafanaListResponse
|
|
289
|
+
},
|
|
290
|
+
default: {
|
|
291
|
+
bodyMapper: Mappers.ErrorResponse
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
queryParameters: [Parameters.apiVersion],
|
|
295
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
296
|
+
headerParameters: [Parameters.accept],
|
|
297
|
+
serializer
|
|
298
|
+
};
|
|
299
|
+
const listByResourceGroupOperationSpec = {
|
|
300
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana",
|
|
301
|
+
httpMethod: "GET",
|
|
302
|
+
responses: {
|
|
303
|
+
200: {
|
|
304
|
+
bodyMapper: Mappers.ManagedGrafanaListResponse
|
|
305
|
+
},
|
|
306
|
+
default: {
|
|
307
|
+
bodyMapper: Mappers.ErrorResponse
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
queryParameters: [Parameters.apiVersion],
|
|
311
|
+
urlParameters: [
|
|
312
|
+
Parameters.$host,
|
|
313
|
+
Parameters.subscriptionId,
|
|
314
|
+
Parameters.resourceGroupName
|
|
315
|
+
],
|
|
316
|
+
headerParameters: [Parameters.accept],
|
|
317
|
+
serializer
|
|
318
|
+
};
|
|
319
|
+
const getOperationSpec = {
|
|
320
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}",
|
|
321
|
+
httpMethod: "GET",
|
|
322
|
+
responses: {
|
|
323
|
+
200: {
|
|
324
|
+
bodyMapper: Mappers.ManagedGrafana
|
|
325
|
+
},
|
|
326
|
+
default: {
|
|
327
|
+
bodyMapper: Mappers.ErrorResponse
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
queryParameters: [Parameters.apiVersion],
|
|
331
|
+
urlParameters: [
|
|
332
|
+
Parameters.$host,
|
|
333
|
+
Parameters.subscriptionId,
|
|
334
|
+
Parameters.resourceGroupName,
|
|
335
|
+
Parameters.workspaceName
|
|
336
|
+
],
|
|
337
|
+
headerParameters: [Parameters.accept],
|
|
338
|
+
serializer
|
|
339
|
+
};
|
|
340
|
+
const createOperationSpec = {
|
|
341
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}",
|
|
342
|
+
httpMethod: "PUT",
|
|
343
|
+
responses: {
|
|
344
|
+
200: {
|
|
345
|
+
bodyMapper: Mappers.ManagedGrafana
|
|
346
|
+
},
|
|
347
|
+
201: {
|
|
348
|
+
bodyMapper: Mappers.ManagedGrafana
|
|
349
|
+
},
|
|
350
|
+
202: {
|
|
351
|
+
bodyMapper: Mappers.ManagedGrafana
|
|
352
|
+
},
|
|
353
|
+
204: {
|
|
354
|
+
bodyMapper: Mappers.ManagedGrafana
|
|
355
|
+
},
|
|
356
|
+
default: {
|
|
357
|
+
bodyMapper: Mappers.ErrorResponse
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
requestBody: Parameters.requestBodyParameters,
|
|
361
|
+
queryParameters: [Parameters.apiVersion],
|
|
362
|
+
urlParameters: [
|
|
363
|
+
Parameters.$host,
|
|
364
|
+
Parameters.subscriptionId,
|
|
365
|
+
Parameters.resourceGroupName,
|
|
366
|
+
Parameters.workspaceName
|
|
367
|
+
],
|
|
368
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
369
|
+
mediaType: "json",
|
|
370
|
+
serializer
|
|
371
|
+
};
|
|
372
|
+
const updateOperationSpec = {
|
|
373
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}",
|
|
374
|
+
httpMethod: "PATCH",
|
|
375
|
+
responses: {
|
|
376
|
+
200: {
|
|
377
|
+
bodyMapper: Mappers.ManagedGrafana
|
|
378
|
+
},
|
|
379
|
+
default: {
|
|
380
|
+
bodyMapper: Mappers.ErrorResponse
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
requestBody: Parameters.requestBodyParameters1,
|
|
384
|
+
queryParameters: [Parameters.apiVersion],
|
|
385
|
+
urlParameters: [
|
|
386
|
+
Parameters.$host,
|
|
387
|
+
Parameters.subscriptionId,
|
|
388
|
+
Parameters.resourceGroupName,
|
|
389
|
+
Parameters.workspaceName
|
|
390
|
+
],
|
|
391
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
392
|
+
mediaType: "json",
|
|
393
|
+
serializer
|
|
394
|
+
};
|
|
395
|
+
const deleteOperationSpec = {
|
|
396
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}",
|
|
397
|
+
httpMethod: "DELETE",
|
|
398
|
+
responses: {
|
|
399
|
+
200: {},
|
|
400
|
+
201: {},
|
|
401
|
+
202: {},
|
|
402
|
+
204: {},
|
|
403
|
+
default: {
|
|
404
|
+
bodyMapper: Mappers.ErrorResponse
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
queryParameters: [Parameters.apiVersion],
|
|
408
|
+
urlParameters: [
|
|
409
|
+
Parameters.$host,
|
|
410
|
+
Parameters.subscriptionId,
|
|
411
|
+
Parameters.resourceGroupName,
|
|
412
|
+
Parameters.workspaceName
|
|
413
|
+
],
|
|
414
|
+
headerParameters: [Parameters.accept],
|
|
415
|
+
serializer
|
|
416
|
+
};
|
|
417
|
+
const listNextOperationSpec = {
|
|
418
|
+
path: "{nextLink}",
|
|
419
|
+
httpMethod: "GET",
|
|
420
|
+
responses: {
|
|
421
|
+
200: {
|
|
422
|
+
bodyMapper: Mappers.ManagedGrafanaListResponse
|
|
423
|
+
},
|
|
424
|
+
default: {
|
|
425
|
+
bodyMapper: Mappers.ErrorResponse
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
queryParameters: [Parameters.apiVersion],
|
|
429
|
+
urlParameters: [
|
|
430
|
+
Parameters.$host,
|
|
431
|
+
Parameters.nextLink,
|
|
432
|
+
Parameters.subscriptionId
|
|
433
|
+
],
|
|
434
|
+
headerParameters: [Parameters.accept],
|
|
435
|
+
serializer
|
|
436
|
+
};
|
|
437
|
+
const listByResourceGroupNextOperationSpec = {
|
|
438
|
+
path: "{nextLink}",
|
|
439
|
+
httpMethod: "GET",
|
|
440
|
+
responses: {
|
|
441
|
+
200: {
|
|
442
|
+
bodyMapper: Mappers.ManagedGrafanaListResponse
|
|
443
|
+
},
|
|
444
|
+
default: {
|
|
445
|
+
bodyMapper: Mappers.ErrorResponse
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
queryParameters: [Parameters.apiVersion],
|
|
449
|
+
urlParameters: [
|
|
450
|
+
Parameters.$host,
|
|
451
|
+
Parameters.nextLink,
|
|
452
|
+
Parameters.subscriptionId,
|
|
453
|
+
Parameters.resourceGroupName
|
|
454
|
+
],
|
|
455
|
+
headerParameters: [Parameters.accept],
|
|
456
|
+
serializer
|
|
457
|
+
};
|
|
458
|
+
//# sourceMappingURL=grafana.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grafana.js","sourceRoot":"","sources":["../../../src/operations/grafana.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,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAqBrC,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAmC;QAEnC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACtC,CAAC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;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,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,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,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
export * from "./operations";
|
|
9
|
+
export * from "./grafana";
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operations } from "../operationsInterfaces";
|
|
3
|
+
import { DashboardManagementClient } from "../dashboardManagementClient";
|
|
4
|
+
import { OperationResult, OperationsListOptionalParams } from "../models";
|
|
5
|
+
/** Class containing Operations operations. */
|
|
6
|
+
export declare class OperationsImpl implements Operations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Operations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: DashboardManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* List all available API operations provided by Microsoft.Dashboard.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<OperationResult>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* List all available API operations provided by Microsoft.Dashboard.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
/**
|
|
26
|
+
* ListNext
|
|
27
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
private _listNext;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EACL,eAAe,EAEf,4BAA4B,EAG7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IAEnD;;;OAGG;gBACS,MAAM,EAAE,yBAAyB;IAI7C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,eAAe,CAAC;YAe/B,cAAc;YAad,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|