@azure/arm-hanaonazure 2.2.0 → 4.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 +11 -0
- package/LICENSE +21 -0
- package/LICENSE.txt +1 -1
- package/README.md +72 -72
- package/dist/index.js +1333 -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/hanaManagementClient.d.ts +21 -0
- package/dist-esm/src/hanaManagementClient.d.ts.map +1 -0
- package/dist-esm/src/hanaManagementClient.js +54 -0
- package/dist-esm/src/hanaManagementClient.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 +260 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +19 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +15 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +330 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +14 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +116 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +11 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +90 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/providerInstances.d.ts +88 -0
- package/dist-esm/src/operations/providerInstances.d.ts.map +1 -0
- package/dist-esm/src/operations/providerInstances.js +344 -0
- package/dist-esm/src/operations/providerInstances.js.map +1 -0
- package/dist-esm/src/operations/sapMonitors.d.ts +81 -0
- package/dist-esm/src/operations/sapMonitors.d.ts.map +1 -0
- package/dist-esm/src/operations/sapMonitors.js +346 -0
- package/dist-esm/src/operations/sapMonitors.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -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/src/operationsInterfaces/providerInstances.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/providerInstances.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/providerInstances.js +9 -0
- package/dist-esm/src/operationsInterfaces/providerInstances.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sapMonitors.d.ts +59 -0
- package/dist-esm/src/operationsInterfaces/sapMonitors.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sapMonitors.js +9 -0
- package/dist-esm/src/operationsInterfaces/sapMonitors.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 +65 -31
- package/review/arm-hanaonazure.api.md +260 -0
- package/rollup.config.js +181 -30
- package/src/hanaManagementClient.ts +75 -34
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +227 -638
- package/src/models/mappers.ts +138 -367
- package/src/models/parameters.ts +84 -30
- package/src/operations/index.ts +4 -6
- package/src/operations/operations.ts +66 -42
- package/src/operations/providerInstances.ts +477 -0
- package/src/operations/sapMonitors.ts +332 -256
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/providerInstances.ts +115 -0
- package/src/operationsInterfaces/sapMonitors.ts +113 -0
- package/tsconfig.json +4 -4
- package/types/arm-hanaonazure.d.ts +444 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-hanaonazure.js +0 -1702
- package/dist/arm-hanaonazure.js.map +0 -1
- package/dist/arm-hanaonazure.min.js +0 -1
- package/dist/arm-hanaonazure.min.js.map +0 -1
- package/esm/hanaManagementClient.d.ts +0 -21
- package/esm/hanaManagementClient.d.ts.map +0 -1
- package/esm/hanaManagementClient.js +0 -36
- package/esm/hanaManagementClient.js.map +0 -1
- package/esm/hanaManagementClientContext.d.ts +0 -17
- package/esm/hanaManagementClientContext.d.ts.map +0 -1
- package/esm/hanaManagementClientContext.js +0 -57
- package/esm/hanaManagementClientContext.js.map +0 -1
- package/esm/models/hanaInstancesMappers.d.ts +0 -2
- package/esm/models/hanaInstancesMappers.d.ts.map +0 -1
- package/esm/models/hanaInstancesMappers.js +0 -9
- package/esm/models/hanaInstancesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -661
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -21
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -556
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -9
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -81
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/sapMonitorsMappers.d.ts +0 -2
- package/esm/models/sapMonitorsMappers.d.ts.map +0 -1
- package/esm/models/sapMonitorsMappers.js +0 -9
- package/esm/models/sapMonitorsMappers.js.map +0 -1
- package/esm/operations/hanaInstances.d.ts +0 -244
- package/esm/operations/hanaInstances.d.ts.map +0 -1
- package/esm/operations/hanaInstances.js +0 -514
- package/esm/operations/hanaInstances.js.map +0 -1
- package/esm/operations/index.d.ts +0 -4
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -13
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/sapMonitors.d.ts +0 -138
- package/esm/operations/sapMonitors.d.ts.map +0 -1
- package/esm/operations/sapMonitors.js +0 -260
- package/esm/operations/sapMonitors.js.map +0 -1
- package/src/hanaManagementClientContext.ts +0 -63
- package/src/models/hanaInstancesMappers.ts +0 -25
- package/src/models/operationsMappers.ts +0 -14
- package/src/models/sapMonitorsMappers.ts +0 -23
- package/src/operations/hanaInstances.ts +0 -718
|
@@ -0,0 +1,346 @@
|
|
|
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 SapMonitors operations. */
|
|
16
|
+
export class SapMonitorsImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class SapMonitors class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Gets a list of SAP monitors in the specified subscription. The operations returns various properties
|
|
26
|
+
* of each SAP monitor.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
list(options) {
|
|
30
|
+
const iter = this.listPagingAll(options);
|
|
31
|
+
return {
|
|
32
|
+
next() {
|
|
33
|
+
return iter.next();
|
|
34
|
+
},
|
|
35
|
+
[Symbol.asyncIterator]() {
|
|
36
|
+
return this;
|
|
37
|
+
},
|
|
38
|
+
byPage: () => {
|
|
39
|
+
return this.listPagingPage(options);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
listPagingPage(options) {
|
|
44
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
45
|
+
let result = yield __await(this._list(options));
|
|
46
|
+
yield yield __await(result.value || []);
|
|
47
|
+
let continuationToken = result.nextLink;
|
|
48
|
+
while (continuationToken) {
|
|
49
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
yield yield __await(result.value || []);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
listPagingAll(options) {
|
|
56
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
57
|
+
var e_1, _a;
|
|
58
|
+
try {
|
|
59
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
60
|
+
const page = _c.value;
|
|
61
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
65
|
+
finally {
|
|
66
|
+
try {
|
|
67
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
68
|
+
}
|
|
69
|
+
finally { if (e_1) throw e_1.error; }
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Gets a list of SAP monitors in the specified subscription. The operations returns various properties
|
|
75
|
+
* of each SAP monitor.
|
|
76
|
+
* @param options The options parameters.
|
|
77
|
+
*/
|
|
78
|
+
_list(options) {
|
|
79
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Gets properties of a SAP monitor for the specified subscription, resource group, and resource name.
|
|
83
|
+
* @param resourceGroupName Name of the resource group.
|
|
84
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
85
|
+
* @param options The options parameters.
|
|
86
|
+
*/
|
|
87
|
+
get(resourceGroupName, sapMonitorName, options) {
|
|
88
|
+
return this.client.sendOperationRequest({ resourceGroupName, sapMonitorName, options }, getOperationSpec);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Creates a SAP monitor for the specified subscription, resource group, and resource name.
|
|
92
|
+
* @param resourceGroupName Name of the resource group.
|
|
93
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
94
|
+
* @param sapMonitorParameter Request body representing a SAP Monitor
|
|
95
|
+
* @param options The options parameters.
|
|
96
|
+
*/
|
|
97
|
+
beginCreate(resourceGroupName, sapMonitorName, sapMonitorParameter, options) {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
return this.client.sendOperationRequest(args, spec);
|
|
101
|
+
});
|
|
102
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
var _a;
|
|
104
|
+
let currentRawResponse = undefined;
|
|
105
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
106
|
+
const callback = (rawResponse, flatResponse) => {
|
|
107
|
+
currentRawResponse = rawResponse;
|
|
108
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
109
|
+
};
|
|
110
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
111
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
112
|
+
return {
|
|
113
|
+
flatResponse,
|
|
114
|
+
rawResponse: {
|
|
115
|
+
statusCode: currentRawResponse.status,
|
|
116
|
+
body: currentRawResponse.parsedBody,
|
|
117
|
+
headers: currentRawResponse.headers.toJSON()
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
});
|
|
121
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sapMonitorName, sapMonitorParameter, options }, createOperationSpec);
|
|
122
|
+
return new LroEngine(lro, {
|
|
123
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
124
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Creates a SAP monitor for the specified subscription, resource group, and resource name.
|
|
130
|
+
* @param resourceGroupName Name of the resource group.
|
|
131
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
132
|
+
* @param sapMonitorParameter Request body representing a SAP Monitor
|
|
133
|
+
* @param options The options parameters.
|
|
134
|
+
*/
|
|
135
|
+
beginCreateAndWait(resourceGroupName, sapMonitorName, sapMonitorParameter, options) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
const poller = yield this.beginCreate(resourceGroupName, sapMonitorName, sapMonitorParameter, options);
|
|
138
|
+
return poller.pollUntilDone();
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Deletes a SAP monitor with the specified subscription, resource group, and monitor name.
|
|
143
|
+
* @param resourceGroupName Name of the resource group.
|
|
144
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
145
|
+
* @param options The options parameters.
|
|
146
|
+
*/
|
|
147
|
+
beginDelete(resourceGroupName, sapMonitorName, options) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
return this.client.sendOperationRequest(args, spec);
|
|
151
|
+
});
|
|
152
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
var _a;
|
|
154
|
+
let currentRawResponse = undefined;
|
|
155
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
156
|
+
const callback = (rawResponse, flatResponse) => {
|
|
157
|
+
currentRawResponse = rawResponse;
|
|
158
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
159
|
+
};
|
|
160
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
161
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
162
|
+
return {
|
|
163
|
+
flatResponse,
|
|
164
|
+
rawResponse: {
|
|
165
|
+
statusCode: currentRawResponse.status,
|
|
166
|
+
body: currentRawResponse.parsedBody,
|
|
167
|
+
headers: currentRawResponse.headers.toJSON()
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
});
|
|
171
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sapMonitorName, options }, deleteOperationSpec);
|
|
172
|
+
return new LroEngine(lro, {
|
|
173
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
174
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Deletes a SAP monitor with the specified subscription, resource group, and monitor name.
|
|
180
|
+
* @param resourceGroupName Name of the resource group.
|
|
181
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
182
|
+
* @param options The options parameters.
|
|
183
|
+
*/
|
|
184
|
+
beginDeleteAndWait(resourceGroupName, sapMonitorName, options) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
const poller = yield this.beginDelete(resourceGroupName, sapMonitorName, options);
|
|
187
|
+
return poller.pollUntilDone();
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Patches the Tags field of a SAP monitor for the specified subscription, resource group, and monitor
|
|
192
|
+
* name.
|
|
193
|
+
* @param resourceGroupName Name of the resource group.
|
|
194
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
195
|
+
* @param tagsParameter Request body that only contains the new Tags field
|
|
196
|
+
* @param options The options parameters.
|
|
197
|
+
*/
|
|
198
|
+
update(resourceGroupName, sapMonitorName, tagsParameter, options) {
|
|
199
|
+
return this.client.sendOperationRequest({ resourceGroupName, sapMonitorName, tagsParameter, options }, updateOperationSpec);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* ListNext
|
|
203
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
204
|
+
* @param options The options parameters.
|
|
205
|
+
*/
|
|
206
|
+
_listNext(nextLink, options) {
|
|
207
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
// Operation Specifications
|
|
211
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
212
|
+
const listOperationSpec = {
|
|
213
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.HanaOnAzure/sapMonitors",
|
|
214
|
+
httpMethod: "GET",
|
|
215
|
+
responses: {
|
|
216
|
+
200: {
|
|
217
|
+
bodyMapper: Mappers.SapMonitorListResult
|
|
218
|
+
},
|
|
219
|
+
default: {
|
|
220
|
+
bodyMapper: Mappers.ErrorResponse
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
queryParameters: [Parameters.apiVersion],
|
|
224
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
225
|
+
headerParameters: [Parameters.accept],
|
|
226
|
+
serializer
|
|
227
|
+
};
|
|
228
|
+
const getOperationSpec = {
|
|
229
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}",
|
|
230
|
+
httpMethod: "GET",
|
|
231
|
+
responses: {
|
|
232
|
+
200: {
|
|
233
|
+
bodyMapper: Mappers.SapMonitor
|
|
234
|
+
},
|
|
235
|
+
default: {
|
|
236
|
+
bodyMapper: Mappers.ErrorResponse
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
queryParameters: [Parameters.apiVersion],
|
|
240
|
+
urlParameters: [
|
|
241
|
+
Parameters.$host,
|
|
242
|
+
Parameters.subscriptionId,
|
|
243
|
+
Parameters.resourceGroupName,
|
|
244
|
+
Parameters.sapMonitorName
|
|
245
|
+
],
|
|
246
|
+
headerParameters: [Parameters.accept],
|
|
247
|
+
serializer
|
|
248
|
+
};
|
|
249
|
+
const createOperationSpec = {
|
|
250
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}",
|
|
251
|
+
httpMethod: "PUT",
|
|
252
|
+
responses: {
|
|
253
|
+
200: {
|
|
254
|
+
bodyMapper: Mappers.SapMonitor
|
|
255
|
+
},
|
|
256
|
+
201: {
|
|
257
|
+
bodyMapper: Mappers.SapMonitor
|
|
258
|
+
},
|
|
259
|
+
202: {
|
|
260
|
+
bodyMapper: Mappers.SapMonitor
|
|
261
|
+
},
|
|
262
|
+
204: {
|
|
263
|
+
bodyMapper: Mappers.SapMonitor
|
|
264
|
+
},
|
|
265
|
+
default: {
|
|
266
|
+
bodyMapper: Mappers.ErrorResponse
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
requestBody: Parameters.sapMonitorParameter,
|
|
270
|
+
queryParameters: [Parameters.apiVersion],
|
|
271
|
+
urlParameters: [
|
|
272
|
+
Parameters.$host,
|
|
273
|
+
Parameters.subscriptionId,
|
|
274
|
+
Parameters.resourceGroupName,
|
|
275
|
+
Parameters.sapMonitorName
|
|
276
|
+
],
|
|
277
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
278
|
+
mediaType: "json",
|
|
279
|
+
serializer
|
|
280
|
+
};
|
|
281
|
+
const deleteOperationSpec = {
|
|
282
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}",
|
|
283
|
+
httpMethod: "DELETE",
|
|
284
|
+
responses: {
|
|
285
|
+
200: {},
|
|
286
|
+
201: {},
|
|
287
|
+
202: {},
|
|
288
|
+
204: {},
|
|
289
|
+
default: {
|
|
290
|
+
bodyMapper: Mappers.ErrorResponse
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
queryParameters: [Parameters.apiVersion],
|
|
294
|
+
urlParameters: [
|
|
295
|
+
Parameters.$host,
|
|
296
|
+
Parameters.subscriptionId,
|
|
297
|
+
Parameters.resourceGroupName,
|
|
298
|
+
Parameters.sapMonitorName
|
|
299
|
+
],
|
|
300
|
+
headerParameters: [Parameters.accept],
|
|
301
|
+
serializer
|
|
302
|
+
};
|
|
303
|
+
const updateOperationSpec = {
|
|
304
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}",
|
|
305
|
+
httpMethod: "PATCH",
|
|
306
|
+
responses: {
|
|
307
|
+
200: {
|
|
308
|
+
bodyMapper: Mappers.SapMonitor
|
|
309
|
+
},
|
|
310
|
+
default: {
|
|
311
|
+
bodyMapper: Mappers.ErrorResponse
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
requestBody: Parameters.tagsParameter,
|
|
315
|
+
queryParameters: [Parameters.apiVersion],
|
|
316
|
+
urlParameters: [
|
|
317
|
+
Parameters.$host,
|
|
318
|
+
Parameters.subscriptionId,
|
|
319
|
+
Parameters.resourceGroupName,
|
|
320
|
+
Parameters.sapMonitorName
|
|
321
|
+
],
|
|
322
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
323
|
+
mediaType: "json",
|
|
324
|
+
serializer
|
|
325
|
+
};
|
|
326
|
+
const listNextOperationSpec = {
|
|
327
|
+
path: "{nextLink}",
|
|
328
|
+
httpMethod: "GET",
|
|
329
|
+
responses: {
|
|
330
|
+
200: {
|
|
331
|
+
bodyMapper: Mappers.SapMonitorListResult
|
|
332
|
+
},
|
|
333
|
+
default: {
|
|
334
|
+
bodyMapper: Mappers.ErrorResponse
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
queryParameters: [Parameters.apiVersion],
|
|
338
|
+
urlParameters: [
|
|
339
|
+
Parameters.$host,
|
|
340
|
+
Parameters.subscriptionId,
|
|
341
|
+
Parameters.nextLink
|
|
342
|
+
],
|
|
343
|
+
headerParameters: [Parameters.accept],
|
|
344
|
+
serializer
|
|
345
|
+
};
|
|
346
|
+
//# sourceMappingURL=sapMonitors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sapMonitors.js","sourceRoot":"","sources":["../../../src/operations/sapMonitors.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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C5B,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,iIAAiI;IACnI,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,aAAa;IACrC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;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,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;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/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 "./sapMonitors";
|
|
10
|
+
export * from "./providerInstances";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operation, OperationsListOptionalParams } from "../models";
|
|
3
|
+
/** Interface representing a Operations. */
|
|
4
|
+
export interface Operations {
|
|
5
|
+
/**
|
|
6
|
+
* Gets a list of SAP HANA management operations.
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAGpE,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 {};
|
|
9
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
3
|
+
import { ProviderInstance, ProviderInstancesListOptionalParams, ProviderInstancesGetOptionalParams, ProviderInstancesGetResponse, ProviderInstancesCreateOptionalParams, ProviderInstancesCreateResponse, ProviderInstancesDeleteOptionalParams } from "../models";
|
|
4
|
+
/** Interface representing a ProviderInstances. */
|
|
5
|
+
export interface ProviderInstances {
|
|
6
|
+
/**
|
|
7
|
+
* Gets a list of provider instances in the specified SAP monitor. The operations returns various
|
|
8
|
+
* properties of each provider instances.
|
|
9
|
+
* @param resourceGroupName Name of the resource group.
|
|
10
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
11
|
+
* @param options The options parameters.
|
|
12
|
+
*/
|
|
13
|
+
list(resourceGroupName: string, sapMonitorName: string, options?: ProviderInstancesListOptionalParams): PagedAsyncIterableIterator<ProviderInstance>;
|
|
14
|
+
/**
|
|
15
|
+
* Gets properties of a provider instance for the specified subscription, resource group, SapMonitor
|
|
16
|
+
* name, and resource name.
|
|
17
|
+
* @param resourceGroupName Name of the resource group.
|
|
18
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
19
|
+
* @param providerInstanceName Name of the provider instance.
|
|
20
|
+
* @param options The options parameters.
|
|
21
|
+
*/
|
|
22
|
+
get(resourceGroupName: string, sapMonitorName: string, providerInstanceName: string, options?: ProviderInstancesGetOptionalParams): Promise<ProviderInstancesGetResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Creates a provider instance for the specified subscription, resource group, SapMonitor name, and
|
|
25
|
+
* resource name.
|
|
26
|
+
* @param resourceGroupName Name of the resource group.
|
|
27
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
28
|
+
* @param providerInstanceName Name of the provider instance.
|
|
29
|
+
* @param providerInstanceParameter Request body representing a provider instance
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
beginCreate(resourceGroupName: string, sapMonitorName: string, providerInstanceName: string, providerInstanceParameter: ProviderInstance, options?: ProviderInstancesCreateOptionalParams): Promise<PollerLike<PollOperationState<ProviderInstancesCreateResponse>, ProviderInstancesCreateResponse>>;
|
|
33
|
+
/**
|
|
34
|
+
* Creates a provider instance for the specified subscription, resource group, SapMonitor name, and
|
|
35
|
+
* resource name.
|
|
36
|
+
* @param resourceGroupName Name of the resource group.
|
|
37
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
38
|
+
* @param providerInstanceName Name of the provider instance.
|
|
39
|
+
* @param providerInstanceParameter Request body representing a provider instance
|
|
40
|
+
* @param options The options parameters.
|
|
41
|
+
*/
|
|
42
|
+
beginCreateAndWait(resourceGroupName: string, sapMonitorName: string, providerInstanceName: string, providerInstanceParameter: ProviderInstance, options?: ProviderInstancesCreateOptionalParams): Promise<ProviderInstancesCreateResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* Deletes a provider instance for the specified subscription, resource group, SapMonitor name, and
|
|
45
|
+
* resource name.
|
|
46
|
+
* @param resourceGroupName Name of the resource group.
|
|
47
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
48
|
+
* @param providerInstanceName Name of the provider instance.
|
|
49
|
+
* @param options The options parameters.
|
|
50
|
+
*/
|
|
51
|
+
beginDelete(resourceGroupName: string, sapMonitorName: string, providerInstanceName: string, options?: ProviderInstancesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
52
|
+
/**
|
|
53
|
+
* Deletes a provider instance for the specified subscription, resource group, SapMonitor name, and
|
|
54
|
+
* resource name.
|
|
55
|
+
* @param resourceGroupName Name of the resource group.
|
|
56
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
57
|
+
* @param providerInstanceName Name of the provider instance.
|
|
58
|
+
* @param options The options parameters.
|
|
59
|
+
*/
|
|
60
|
+
beginDeleteAndWait(resourceGroupName: string, sapMonitorName: string, providerInstanceName: string, options?: ProviderInstancesDeleteOptionalParams): Promise<void>;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=providerInstances.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providerInstances.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/providerInstances.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,gBAAgB,EAChB,mCAAmC,EACnC,kCAAkC,EAClC,4BAA4B,EAC5B,qCAAqC,EACrC,+BAA+B,EAC/B,qCAAqC,EACtC,MAAM,WAAW,CAAC;AAGnB,kDAAkD;AAClD,MAAM,WAAW,iBAAiB;IAChC;;;;;;OAMG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,0BAA0B,CAAC,gBAAgB,CAAC,CAAC;IAChD;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,4BAA4B,CAAC,CAAC;IACzC;;;;;;;;OAQG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,oBAAoB,EAAE,MAAM,EAC5B,yBAAyB,EAAE,gBAAgB,EAC3C,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,+BAA+B,CAAC,EACnD,+BAA+B,CAChC,CACF,CAAC;IACF;;;;;;;;OAQG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,oBAAoB,EAAE,MAAM,EAC5B,yBAAyB,EAAE,gBAAgB,EAC3C,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAC5C;;;;;;;OAOG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvD;;;;;;;OAOG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 {};
|
|
9
|
+
//# sourceMappingURL=providerInstances.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providerInstances.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/providerInstances.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
3
|
+
import { SapMonitor, SapMonitorsListOptionalParams, SapMonitorsGetOptionalParams, SapMonitorsGetResponse, SapMonitorsCreateOptionalParams, SapMonitorsCreateResponse, SapMonitorsDeleteOptionalParams, Tags, SapMonitorsUpdateOptionalParams, SapMonitorsUpdateResponse } from "../models";
|
|
4
|
+
/** Interface representing a SapMonitors. */
|
|
5
|
+
export interface SapMonitors {
|
|
6
|
+
/**
|
|
7
|
+
* Gets a list of SAP monitors in the specified subscription. The operations returns various properties
|
|
8
|
+
* of each SAP monitor.
|
|
9
|
+
* @param options The options parameters.
|
|
10
|
+
*/
|
|
11
|
+
list(options?: SapMonitorsListOptionalParams): PagedAsyncIterableIterator<SapMonitor>;
|
|
12
|
+
/**
|
|
13
|
+
* Gets properties of a SAP monitor for the specified subscription, resource group, and resource name.
|
|
14
|
+
* @param resourceGroupName Name of the resource group.
|
|
15
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
get(resourceGroupName: string, sapMonitorName: string, options?: SapMonitorsGetOptionalParams): Promise<SapMonitorsGetResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Creates a SAP monitor for the specified subscription, resource group, and resource name.
|
|
21
|
+
* @param resourceGroupName Name of the resource group.
|
|
22
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
23
|
+
* @param sapMonitorParameter Request body representing a SAP Monitor
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
beginCreate(resourceGroupName: string, sapMonitorName: string, sapMonitorParameter: SapMonitor, options?: SapMonitorsCreateOptionalParams): Promise<PollerLike<PollOperationState<SapMonitorsCreateResponse>, SapMonitorsCreateResponse>>;
|
|
27
|
+
/**
|
|
28
|
+
* Creates a SAP monitor for the specified subscription, resource group, and resource name.
|
|
29
|
+
* @param resourceGroupName Name of the resource group.
|
|
30
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
31
|
+
* @param sapMonitorParameter Request body representing a SAP Monitor
|
|
32
|
+
* @param options The options parameters.
|
|
33
|
+
*/
|
|
34
|
+
beginCreateAndWait(resourceGroupName: string, sapMonitorName: string, sapMonitorParameter: SapMonitor, options?: SapMonitorsCreateOptionalParams): Promise<SapMonitorsCreateResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Deletes a SAP monitor with the specified subscription, resource group, and monitor name.
|
|
37
|
+
* @param resourceGroupName Name of the resource group.
|
|
38
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
beginDelete(resourceGroupName: string, sapMonitorName: string, options?: SapMonitorsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
42
|
+
/**
|
|
43
|
+
* Deletes a SAP monitor with the specified subscription, resource group, and monitor name.
|
|
44
|
+
* @param resourceGroupName Name of the resource group.
|
|
45
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
46
|
+
* @param options The options parameters.
|
|
47
|
+
*/
|
|
48
|
+
beginDeleteAndWait(resourceGroupName: string, sapMonitorName: string, options?: SapMonitorsDeleteOptionalParams): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Patches the Tags field of a SAP monitor for the specified subscription, resource group, and monitor
|
|
51
|
+
* name.
|
|
52
|
+
* @param resourceGroupName Name of the resource group.
|
|
53
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
54
|
+
* @param tagsParameter Request body that only contains the new Tags field
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
update(resourceGroupName: string, sapMonitorName: string, tagsParameter: Tags, options?: SapMonitorsUpdateOptionalParams): Promise<SapMonitorsUpdateResponse>;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=sapMonitors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sapMonitors.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/sapMonitors.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,UAAU,EACV,6BAA6B,EAC7B,4BAA4B,EAC5B,sBAAsB,EACtB,+BAA+B,EAC/B,yBAAyB,EACzB,+BAA+B,EAC/B,IAAI,EACJ,+BAA+B,EAC/B,yBAAyB,EAC1B,MAAM,WAAW,CAAC;AAGnB,4CAA4C;AAC5C,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,6BAA6B,GACtC,0BAA0B,CAAC,UAAU,CAAC,CAAC;IAC1C;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnC;;;;;;OAMG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,mBAAmB,EAAE,UAAU,EAC/B,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,yBAAyB,CAAC,EAC7C,yBAAyB,CAC1B,CACF,CAAC;IACF;;;;;;OAMG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,mBAAmB,EAAE,UAAU,EAC/B,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtC;;;;;OAKG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvD;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,IAAI,EACnB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;CACvC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 {};
|
|
9
|
+
//# sourceMappingURL=sapMonitors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sapMonitors.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/sapMonitors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { __awaiter } from "tslib";
|
|
9
|
+
import { record } from "@azure-tools/test-recorder";
|
|
10
|
+
const recorderEnvSetup = {
|
|
11
|
+
replaceableVariables: {
|
|
12
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
13
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
14
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
15
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
16
|
+
},
|
|
17
|
+
customizationsOnRecordings: [
|
|
18
|
+
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
|
19
|
+
],
|
|
20
|
+
queryParametersToSkip: []
|
|
21
|
+
};
|
|
22
|
+
describe("My test", () => {
|
|
23
|
+
let recorder;
|
|
24
|
+
beforeEach(function () {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
recorder = record(this, recorderEnvSetup);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
afterEach(function () {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
yield recorder.stop();
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
it("sample test", function () {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
console.log("Hi, I'm a test!");
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=sampleTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAEL,MAAM,EAGP,MAAM,4BAA4B,CAAC;AAGpC,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE,sCAAsC;QACvD,eAAe,EAAE,uBAAuB;KACzC;IACD,0BAA0B,EAAE;QAC1B,CAAC,SAAc,EAAO,EAAE,CACtB,SAAS,CAAC,OAAO,CACf,yBAAyB,EACzB,+BAA+B,CAChC;KACJ;IACD,qBAAqB,EAAE,EAAE;CAC1B,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QAC5C,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|