@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
package/dist/index.js
ADDED
|
@@ -0,0 +1,1333 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
|
+
var coreLro = require('@azure/core-lro');
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright (c) Microsoft Corporation.
|
|
11
|
+
* Licensed under the MIT License.
|
|
12
|
+
*
|
|
13
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
|
+
*/
|
|
16
|
+
(function (KnownHanaProvisioningStatesEnum) {
|
|
17
|
+
KnownHanaProvisioningStatesEnum["Accepted"] = "Accepted";
|
|
18
|
+
KnownHanaProvisioningStatesEnum["Creating"] = "Creating";
|
|
19
|
+
KnownHanaProvisioningStatesEnum["Updating"] = "Updating";
|
|
20
|
+
KnownHanaProvisioningStatesEnum["Failed"] = "Failed";
|
|
21
|
+
KnownHanaProvisioningStatesEnum["Succeeded"] = "Succeeded";
|
|
22
|
+
KnownHanaProvisioningStatesEnum["Deleting"] = "Deleting";
|
|
23
|
+
KnownHanaProvisioningStatesEnum["Migrating"] = "Migrating";
|
|
24
|
+
})(exports.KnownHanaProvisioningStatesEnum || (exports.KnownHanaProvisioningStatesEnum = {}));
|
|
25
|
+
|
|
26
|
+
/*
|
|
27
|
+
* Copyright (c) Microsoft Corporation.
|
|
28
|
+
* Licensed under the MIT License.
|
|
29
|
+
*
|
|
30
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
31
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
32
|
+
*/
|
|
33
|
+
const OperationList = {
|
|
34
|
+
type: {
|
|
35
|
+
name: "Composite",
|
|
36
|
+
className: "OperationList",
|
|
37
|
+
modelProperties: {
|
|
38
|
+
value: {
|
|
39
|
+
serializedName: "value",
|
|
40
|
+
type: {
|
|
41
|
+
name: "Sequence",
|
|
42
|
+
element: {
|
|
43
|
+
type: {
|
|
44
|
+
name: "Composite",
|
|
45
|
+
className: "Operation"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const Operation = {
|
|
54
|
+
type: {
|
|
55
|
+
name: "Composite",
|
|
56
|
+
className: "Operation",
|
|
57
|
+
modelProperties: {
|
|
58
|
+
name: {
|
|
59
|
+
serializedName: "name",
|
|
60
|
+
readOnly: true,
|
|
61
|
+
type: {
|
|
62
|
+
name: "String"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
display: {
|
|
66
|
+
serializedName: "display",
|
|
67
|
+
type: {
|
|
68
|
+
name: "Composite",
|
|
69
|
+
className: "Display"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const Display = {
|
|
76
|
+
type: {
|
|
77
|
+
name: "Composite",
|
|
78
|
+
className: "Display",
|
|
79
|
+
modelProperties: {
|
|
80
|
+
provider: {
|
|
81
|
+
serializedName: "provider",
|
|
82
|
+
readOnly: true,
|
|
83
|
+
type: {
|
|
84
|
+
name: "String"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
resource: {
|
|
88
|
+
serializedName: "resource",
|
|
89
|
+
readOnly: true,
|
|
90
|
+
type: {
|
|
91
|
+
name: "String"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
operation: {
|
|
95
|
+
serializedName: "operation",
|
|
96
|
+
readOnly: true,
|
|
97
|
+
type: {
|
|
98
|
+
name: "String"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
description: {
|
|
102
|
+
serializedName: "description",
|
|
103
|
+
readOnly: true,
|
|
104
|
+
type: {
|
|
105
|
+
name: "String"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
origin: {
|
|
109
|
+
serializedName: "origin",
|
|
110
|
+
readOnly: true,
|
|
111
|
+
type: {
|
|
112
|
+
name: "String"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
const ErrorResponse = {
|
|
119
|
+
type: {
|
|
120
|
+
name: "Composite",
|
|
121
|
+
className: "ErrorResponse",
|
|
122
|
+
modelProperties: {
|
|
123
|
+
error: {
|
|
124
|
+
serializedName: "error",
|
|
125
|
+
type: {
|
|
126
|
+
name: "Composite",
|
|
127
|
+
className: "ErrorResponseError"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
const ErrorResponseError = {
|
|
134
|
+
type: {
|
|
135
|
+
name: "Composite",
|
|
136
|
+
className: "ErrorResponseError",
|
|
137
|
+
modelProperties: {
|
|
138
|
+
code: {
|
|
139
|
+
serializedName: "code",
|
|
140
|
+
readOnly: true,
|
|
141
|
+
type: {
|
|
142
|
+
name: "String"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
message: {
|
|
146
|
+
serializedName: "message",
|
|
147
|
+
readOnly: true,
|
|
148
|
+
type: {
|
|
149
|
+
name: "String"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
const SapMonitorListResult = {
|
|
156
|
+
type: {
|
|
157
|
+
name: "Composite",
|
|
158
|
+
className: "SapMonitorListResult",
|
|
159
|
+
modelProperties: {
|
|
160
|
+
value: {
|
|
161
|
+
serializedName: "value",
|
|
162
|
+
type: {
|
|
163
|
+
name: "Sequence",
|
|
164
|
+
element: {
|
|
165
|
+
type: {
|
|
166
|
+
name: "Composite",
|
|
167
|
+
className: "SapMonitor"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
nextLink: {
|
|
173
|
+
serializedName: "nextLink",
|
|
174
|
+
type: {
|
|
175
|
+
name: "String"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
const Resource = {
|
|
182
|
+
type: {
|
|
183
|
+
name: "Composite",
|
|
184
|
+
className: "Resource",
|
|
185
|
+
modelProperties: {
|
|
186
|
+
id: {
|
|
187
|
+
serializedName: "id",
|
|
188
|
+
readOnly: true,
|
|
189
|
+
type: {
|
|
190
|
+
name: "String"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
name: {
|
|
194
|
+
serializedName: "name",
|
|
195
|
+
readOnly: true,
|
|
196
|
+
type: {
|
|
197
|
+
name: "String"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
type: {
|
|
201
|
+
serializedName: "type",
|
|
202
|
+
readOnly: true,
|
|
203
|
+
type: {
|
|
204
|
+
name: "String"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
const Tags = {
|
|
211
|
+
type: {
|
|
212
|
+
name: "Composite",
|
|
213
|
+
className: "Tags",
|
|
214
|
+
modelProperties: {
|
|
215
|
+
tags: {
|
|
216
|
+
serializedName: "tags",
|
|
217
|
+
type: {
|
|
218
|
+
name: "Dictionary",
|
|
219
|
+
value: { type: { name: "String" } }
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
const ProviderInstanceListResult = {
|
|
226
|
+
type: {
|
|
227
|
+
name: "Composite",
|
|
228
|
+
className: "ProviderInstanceListResult",
|
|
229
|
+
modelProperties: {
|
|
230
|
+
value: {
|
|
231
|
+
serializedName: "value",
|
|
232
|
+
type: {
|
|
233
|
+
name: "Sequence",
|
|
234
|
+
element: {
|
|
235
|
+
type: {
|
|
236
|
+
name: "Composite",
|
|
237
|
+
className: "ProviderInstance"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
nextLink: {
|
|
243
|
+
serializedName: "nextLink",
|
|
244
|
+
type: {
|
|
245
|
+
name: "String"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
const TrackedResource = {
|
|
252
|
+
type: {
|
|
253
|
+
name: "Composite",
|
|
254
|
+
className: "TrackedResource",
|
|
255
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
256
|
+
serializedName: "tags",
|
|
257
|
+
type: {
|
|
258
|
+
name: "Dictionary",
|
|
259
|
+
value: { type: { name: "String" } }
|
|
260
|
+
}
|
|
261
|
+
}, location: {
|
|
262
|
+
serializedName: "location",
|
|
263
|
+
required: true,
|
|
264
|
+
type: {
|
|
265
|
+
name: "String"
|
|
266
|
+
}
|
|
267
|
+
} })
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
const ProxyResource = {
|
|
271
|
+
type: {
|
|
272
|
+
name: "Composite",
|
|
273
|
+
className: "ProxyResource",
|
|
274
|
+
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
const SapMonitor = {
|
|
278
|
+
type: {
|
|
279
|
+
name: "Composite",
|
|
280
|
+
className: "SapMonitor",
|
|
281
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { provisioningState: {
|
|
282
|
+
serializedName: "properties.provisioningState",
|
|
283
|
+
readOnly: true,
|
|
284
|
+
type: {
|
|
285
|
+
name: "String"
|
|
286
|
+
}
|
|
287
|
+
}, managedResourceGroupName: {
|
|
288
|
+
serializedName: "properties.managedResourceGroupName",
|
|
289
|
+
readOnly: true,
|
|
290
|
+
type: {
|
|
291
|
+
name: "String"
|
|
292
|
+
}
|
|
293
|
+
}, logAnalyticsWorkspaceArmId: {
|
|
294
|
+
serializedName: "properties.logAnalyticsWorkspaceArmId",
|
|
295
|
+
type: {
|
|
296
|
+
name: "String"
|
|
297
|
+
}
|
|
298
|
+
}, enableCustomerAnalytics: {
|
|
299
|
+
serializedName: "properties.enableCustomerAnalytics",
|
|
300
|
+
type: {
|
|
301
|
+
name: "Boolean"
|
|
302
|
+
}
|
|
303
|
+
}, logAnalyticsWorkspaceId: {
|
|
304
|
+
serializedName: "properties.logAnalyticsWorkspaceId",
|
|
305
|
+
type: {
|
|
306
|
+
name: "String"
|
|
307
|
+
}
|
|
308
|
+
}, logAnalyticsWorkspaceSharedKey: {
|
|
309
|
+
serializedName: "properties.logAnalyticsWorkspaceSharedKey",
|
|
310
|
+
type: {
|
|
311
|
+
name: "String"
|
|
312
|
+
}
|
|
313
|
+
}, sapMonitorCollectorVersion: {
|
|
314
|
+
serializedName: "properties.sapMonitorCollectorVersion",
|
|
315
|
+
readOnly: true,
|
|
316
|
+
type: {
|
|
317
|
+
name: "String"
|
|
318
|
+
}
|
|
319
|
+
}, monitorSubnet: {
|
|
320
|
+
serializedName: "properties.monitorSubnet",
|
|
321
|
+
type: {
|
|
322
|
+
name: "String"
|
|
323
|
+
}
|
|
324
|
+
} })
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
const ProviderInstance = {
|
|
328
|
+
type: {
|
|
329
|
+
name: "Composite",
|
|
330
|
+
className: "ProviderInstance",
|
|
331
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { typePropertiesType: {
|
|
332
|
+
serializedName: "properties.type",
|
|
333
|
+
type: {
|
|
334
|
+
name: "String"
|
|
335
|
+
}
|
|
336
|
+
}, properties: {
|
|
337
|
+
serializedName: "properties.properties",
|
|
338
|
+
type: {
|
|
339
|
+
name: "String"
|
|
340
|
+
}
|
|
341
|
+
}, metadata: {
|
|
342
|
+
serializedName: "properties.metadata",
|
|
343
|
+
type: {
|
|
344
|
+
name: "String"
|
|
345
|
+
}
|
|
346
|
+
}, provisioningState: {
|
|
347
|
+
serializedName: "properties.provisioningState",
|
|
348
|
+
readOnly: true,
|
|
349
|
+
type: {
|
|
350
|
+
name: "String"
|
|
351
|
+
}
|
|
352
|
+
} })
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
357
|
+
__proto__: null,
|
|
358
|
+
OperationList: OperationList,
|
|
359
|
+
Operation: Operation,
|
|
360
|
+
Display: Display,
|
|
361
|
+
ErrorResponse: ErrorResponse,
|
|
362
|
+
ErrorResponseError: ErrorResponseError,
|
|
363
|
+
SapMonitorListResult: SapMonitorListResult,
|
|
364
|
+
Resource: Resource,
|
|
365
|
+
Tags: Tags,
|
|
366
|
+
ProviderInstanceListResult: ProviderInstanceListResult,
|
|
367
|
+
TrackedResource: TrackedResource,
|
|
368
|
+
ProxyResource: ProxyResource,
|
|
369
|
+
SapMonitor: SapMonitor,
|
|
370
|
+
ProviderInstance: ProviderInstance
|
|
371
|
+
});
|
|
372
|
+
|
|
373
|
+
/*
|
|
374
|
+
* Copyright (c) Microsoft Corporation.
|
|
375
|
+
* Licensed under the MIT License.
|
|
376
|
+
*
|
|
377
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
378
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
379
|
+
*/
|
|
380
|
+
const accept = {
|
|
381
|
+
parameterPath: "accept",
|
|
382
|
+
mapper: {
|
|
383
|
+
defaultValue: "application/json",
|
|
384
|
+
isConstant: true,
|
|
385
|
+
serializedName: "Accept",
|
|
386
|
+
type: {
|
|
387
|
+
name: "String"
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
const $host = {
|
|
392
|
+
parameterPath: "$host",
|
|
393
|
+
mapper: {
|
|
394
|
+
serializedName: "$host",
|
|
395
|
+
required: true,
|
|
396
|
+
type: {
|
|
397
|
+
name: "String"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
skipEncoding: true
|
|
401
|
+
};
|
|
402
|
+
const apiVersion = {
|
|
403
|
+
parameterPath: "apiVersion",
|
|
404
|
+
mapper: {
|
|
405
|
+
defaultValue: "2020-02-07-preview",
|
|
406
|
+
isConstant: true,
|
|
407
|
+
serializedName: "api-version",
|
|
408
|
+
type: {
|
|
409
|
+
name: "String"
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
const subscriptionId = {
|
|
414
|
+
parameterPath: "subscriptionId",
|
|
415
|
+
mapper: {
|
|
416
|
+
serializedName: "subscriptionId",
|
|
417
|
+
required: true,
|
|
418
|
+
type: {
|
|
419
|
+
name: "String"
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
const resourceGroupName = {
|
|
424
|
+
parameterPath: "resourceGroupName",
|
|
425
|
+
mapper: {
|
|
426
|
+
serializedName: "resourceGroupName",
|
|
427
|
+
required: true,
|
|
428
|
+
type: {
|
|
429
|
+
name: "String"
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
};
|
|
433
|
+
const sapMonitorName = {
|
|
434
|
+
parameterPath: "sapMonitorName",
|
|
435
|
+
mapper: {
|
|
436
|
+
serializedName: "sapMonitorName",
|
|
437
|
+
required: true,
|
|
438
|
+
type: {
|
|
439
|
+
name: "String"
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
const contentType = {
|
|
444
|
+
parameterPath: ["options", "contentType"],
|
|
445
|
+
mapper: {
|
|
446
|
+
defaultValue: "application/json",
|
|
447
|
+
isConstant: true,
|
|
448
|
+
serializedName: "Content-Type",
|
|
449
|
+
type: {
|
|
450
|
+
name: "String"
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
const sapMonitorParameter = {
|
|
455
|
+
parameterPath: "sapMonitorParameter",
|
|
456
|
+
mapper: SapMonitor
|
|
457
|
+
};
|
|
458
|
+
const tagsParameter = {
|
|
459
|
+
parameterPath: "tagsParameter",
|
|
460
|
+
mapper: Tags
|
|
461
|
+
};
|
|
462
|
+
const nextLink = {
|
|
463
|
+
parameterPath: "nextLink",
|
|
464
|
+
mapper: {
|
|
465
|
+
serializedName: "nextLink",
|
|
466
|
+
required: true,
|
|
467
|
+
type: {
|
|
468
|
+
name: "String"
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
skipEncoding: true
|
|
472
|
+
};
|
|
473
|
+
const providerInstanceName = {
|
|
474
|
+
parameterPath: "providerInstanceName",
|
|
475
|
+
mapper: {
|
|
476
|
+
serializedName: "providerInstanceName",
|
|
477
|
+
required: true,
|
|
478
|
+
type: {
|
|
479
|
+
name: "String"
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
const providerInstanceParameter = {
|
|
484
|
+
parameterPath: "providerInstanceParameter",
|
|
485
|
+
mapper: ProviderInstance
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
/*
|
|
489
|
+
* Copyright (c) Microsoft Corporation.
|
|
490
|
+
* Licensed under the MIT License.
|
|
491
|
+
*
|
|
492
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
493
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
494
|
+
*/
|
|
495
|
+
/// <reference lib="esnext.asynciterable" />
|
|
496
|
+
/** Class containing Operations operations. */
|
|
497
|
+
class OperationsImpl {
|
|
498
|
+
/**
|
|
499
|
+
* Initialize a new instance of the class Operations class.
|
|
500
|
+
* @param client Reference to the service client
|
|
501
|
+
*/
|
|
502
|
+
constructor(client) {
|
|
503
|
+
this.client = client;
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Gets a list of SAP HANA management operations.
|
|
507
|
+
* @param options The options parameters.
|
|
508
|
+
*/
|
|
509
|
+
list(options) {
|
|
510
|
+
const iter = this.listPagingAll(options);
|
|
511
|
+
return {
|
|
512
|
+
next() {
|
|
513
|
+
return iter.next();
|
|
514
|
+
},
|
|
515
|
+
[Symbol.asyncIterator]() {
|
|
516
|
+
return this;
|
|
517
|
+
},
|
|
518
|
+
byPage: () => {
|
|
519
|
+
return this.listPagingPage(options);
|
|
520
|
+
}
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
listPagingPage(options) {
|
|
524
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
525
|
+
let result = yield tslib.__await(this._list(options));
|
|
526
|
+
yield yield tslib.__await(result.value || []);
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
listPagingAll(options) {
|
|
530
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
531
|
+
var e_1, _a;
|
|
532
|
+
try {
|
|
533
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
534
|
+
const page = _c.value;
|
|
535
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
539
|
+
finally {
|
|
540
|
+
try {
|
|
541
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
542
|
+
}
|
|
543
|
+
finally { if (e_1) throw e_1.error; }
|
|
544
|
+
}
|
|
545
|
+
});
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* Gets a list of SAP HANA management operations.
|
|
549
|
+
* @param options The options parameters.
|
|
550
|
+
*/
|
|
551
|
+
_list(options) {
|
|
552
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
// Operation Specifications
|
|
556
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
557
|
+
const listOperationSpec = {
|
|
558
|
+
path: "/providers/Microsoft.HanaOnAzure/operations",
|
|
559
|
+
httpMethod: "GET",
|
|
560
|
+
responses: {
|
|
561
|
+
200: {
|
|
562
|
+
bodyMapper: OperationList
|
|
563
|
+
},
|
|
564
|
+
default: {
|
|
565
|
+
bodyMapper: ErrorResponse
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
queryParameters: [apiVersion],
|
|
569
|
+
urlParameters: [$host],
|
|
570
|
+
headerParameters: [accept],
|
|
571
|
+
serializer
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
/*
|
|
575
|
+
* Copyright (c) Microsoft Corporation.
|
|
576
|
+
* Licensed under the MIT License.
|
|
577
|
+
*
|
|
578
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
579
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
580
|
+
*/
|
|
581
|
+
class LroImpl {
|
|
582
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
583
|
+
this.sendOperationFn = sendOperationFn;
|
|
584
|
+
this.args = args;
|
|
585
|
+
this.spec = spec;
|
|
586
|
+
this.requestPath = requestPath;
|
|
587
|
+
this.requestMethod = requestMethod;
|
|
588
|
+
}
|
|
589
|
+
sendInitialRequest() {
|
|
590
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
591
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
sendPollRequest(path) {
|
|
595
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
596
|
+
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
597
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
/*
|
|
603
|
+
* Copyright (c) Microsoft Corporation.
|
|
604
|
+
* Licensed under the MIT License.
|
|
605
|
+
*
|
|
606
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
607
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
608
|
+
*/
|
|
609
|
+
/// <reference lib="esnext.asynciterable" />
|
|
610
|
+
/** Class containing SapMonitors operations. */
|
|
611
|
+
class SapMonitorsImpl {
|
|
612
|
+
/**
|
|
613
|
+
* Initialize a new instance of the class SapMonitors class.
|
|
614
|
+
* @param client Reference to the service client
|
|
615
|
+
*/
|
|
616
|
+
constructor(client) {
|
|
617
|
+
this.client = client;
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* Gets a list of SAP monitors in the specified subscription. The operations returns various properties
|
|
621
|
+
* of each SAP monitor.
|
|
622
|
+
* @param options The options parameters.
|
|
623
|
+
*/
|
|
624
|
+
list(options) {
|
|
625
|
+
const iter = this.listPagingAll(options);
|
|
626
|
+
return {
|
|
627
|
+
next() {
|
|
628
|
+
return iter.next();
|
|
629
|
+
},
|
|
630
|
+
[Symbol.asyncIterator]() {
|
|
631
|
+
return this;
|
|
632
|
+
},
|
|
633
|
+
byPage: () => {
|
|
634
|
+
return this.listPagingPage(options);
|
|
635
|
+
}
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
listPagingPage(options) {
|
|
639
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
640
|
+
let result = yield tslib.__await(this._list(options));
|
|
641
|
+
yield yield tslib.__await(result.value || []);
|
|
642
|
+
let continuationToken = result.nextLink;
|
|
643
|
+
while (continuationToken) {
|
|
644
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
645
|
+
continuationToken = result.nextLink;
|
|
646
|
+
yield yield tslib.__await(result.value || []);
|
|
647
|
+
}
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
listPagingAll(options) {
|
|
651
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
652
|
+
var e_1, _a;
|
|
653
|
+
try {
|
|
654
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
655
|
+
const page = _c.value;
|
|
656
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
660
|
+
finally {
|
|
661
|
+
try {
|
|
662
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
663
|
+
}
|
|
664
|
+
finally { if (e_1) throw e_1.error; }
|
|
665
|
+
}
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* Gets a list of SAP monitors in the specified subscription. The operations returns various properties
|
|
670
|
+
* of each SAP monitor.
|
|
671
|
+
* @param options The options parameters.
|
|
672
|
+
*/
|
|
673
|
+
_list(options) {
|
|
674
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* Gets properties of a SAP monitor for the specified subscription, resource group, and resource name.
|
|
678
|
+
* @param resourceGroupName Name of the resource group.
|
|
679
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
680
|
+
* @param options The options parameters.
|
|
681
|
+
*/
|
|
682
|
+
get(resourceGroupName, sapMonitorName, options) {
|
|
683
|
+
return this.client.sendOperationRequest({ resourceGroupName, sapMonitorName, options }, getOperationSpec);
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* Creates a SAP monitor for the specified subscription, resource group, and resource name.
|
|
687
|
+
* @param resourceGroupName Name of the resource group.
|
|
688
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
689
|
+
* @param sapMonitorParameter Request body representing a SAP Monitor
|
|
690
|
+
* @param options The options parameters.
|
|
691
|
+
*/
|
|
692
|
+
beginCreate(resourceGroupName, sapMonitorName, sapMonitorParameter, options) {
|
|
693
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
694
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
695
|
+
return this.client.sendOperationRequest(args, spec);
|
|
696
|
+
});
|
|
697
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
698
|
+
var _a;
|
|
699
|
+
let currentRawResponse = undefined;
|
|
700
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
701
|
+
const callback = (rawResponse, flatResponse) => {
|
|
702
|
+
currentRawResponse = rawResponse;
|
|
703
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
704
|
+
};
|
|
705
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
706
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
707
|
+
return {
|
|
708
|
+
flatResponse,
|
|
709
|
+
rawResponse: {
|
|
710
|
+
statusCode: currentRawResponse.status,
|
|
711
|
+
body: currentRawResponse.parsedBody,
|
|
712
|
+
headers: currentRawResponse.headers.toJSON()
|
|
713
|
+
}
|
|
714
|
+
};
|
|
715
|
+
});
|
|
716
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sapMonitorName, sapMonitorParameter, options }, createOperationSpec);
|
|
717
|
+
return new coreLro.LroEngine(lro, {
|
|
718
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
719
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
720
|
+
});
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* Creates a SAP monitor for the specified subscription, resource group, and resource name.
|
|
725
|
+
* @param resourceGroupName Name of the resource group.
|
|
726
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
727
|
+
* @param sapMonitorParameter Request body representing a SAP Monitor
|
|
728
|
+
* @param options The options parameters.
|
|
729
|
+
*/
|
|
730
|
+
beginCreateAndWait(resourceGroupName, sapMonitorName, sapMonitorParameter, options) {
|
|
731
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
732
|
+
const poller = yield this.beginCreate(resourceGroupName, sapMonitorName, sapMonitorParameter, options);
|
|
733
|
+
return poller.pollUntilDone();
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* Deletes a SAP monitor with the specified subscription, resource group, and monitor name.
|
|
738
|
+
* @param resourceGroupName Name of the resource group.
|
|
739
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
740
|
+
* @param options The options parameters.
|
|
741
|
+
*/
|
|
742
|
+
beginDelete(resourceGroupName, sapMonitorName, options) {
|
|
743
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
744
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
745
|
+
return this.client.sendOperationRequest(args, spec);
|
|
746
|
+
});
|
|
747
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
748
|
+
var _a;
|
|
749
|
+
let currentRawResponse = undefined;
|
|
750
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
751
|
+
const callback = (rawResponse, flatResponse) => {
|
|
752
|
+
currentRawResponse = rawResponse;
|
|
753
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
754
|
+
};
|
|
755
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
756
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
757
|
+
return {
|
|
758
|
+
flatResponse,
|
|
759
|
+
rawResponse: {
|
|
760
|
+
statusCode: currentRawResponse.status,
|
|
761
|
+
body: currentRawResponse.parsedBody,
|
|
762
|
+
headers: currentRawResponse.headers.toJSON()
|
|
763
|
+
}
|
|
764
|
+
};
|
|
765
|
+
});
|
|
766
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sapMonitorName, options }, deleteOperationSpec);
|
|
767
|
+
return new coreLro.LroEngine(lro, {
|
|
768
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
769
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
770
|
+
});
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* Deletes a SAP monitor with the specified subscription, resource group, and monitor name.
|
|
775
|
+
* @param resourceGroupName Name of the resource group.
|
|
776
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
777
|
+
* @param options The options parameters.
|
|
778
|
+
*/
|
|
779
|
+
beginDeleteAndWait(resourceGroupName, sapMonitorName, options) {
|
|
780
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
781
|
+
const poller = yield this.beginDelete(resourceGroupName, sapMonitorName, options);
|
|
782
|
+
return poller.pollUntilDone();
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* Patches the Tags field of a SAP monitor for the specified subscription, resource group, and monitor
|
|
787
|
+
* name.
|
|
788
|
+
* @param resourceGroupName Name of the resource group.
|
|
789
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
790
|
+
* @param tagsParameter Request body that only contains the new Tags field
|
|
791
|
+
* @param options The options parameters.
|
|
792
|
+
*/
|
|
793
|
+
update(resourceGroupName, sapMonitorName, tagsParameter, options) {
|
|
794
|
+
return this.client.sendOperationRequest({ resourceGroupName, sapMonitorName, tagsParameter, options }, updateOperationSpec);
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* ListNext
|
|
798
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
799
|
+
* @param options The options parameters.
|
|
800
|
+
*/
|
|
801
|
+
_listNext(nextLink, options) {
|
|
802
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
// Operation Specifications
|
|
806
|
+
const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
807
|
+
const listOperationSpec$1 = {
|
|
808
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.HanaOnAzure/sapMonitors",
|
|
809
|
+
httpMethod: "GET",
|
|
810
|
+
responses: {
|
|
811
|
+
200: {
|
|
812
|
+
bodyMapper: SapMonitorListResult
|
|
813
|
+
},
|
|
814
|
+
default: {
|
|
815
|
+
bodyMapper: ErrorResponse
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
queryParameters: [apiVersion],
|
|
819
|
+
urlParameters: [$host, subscriptionId],
|
|
820
|
+
headerParameters: [accept],
|
|
821
|
+
serializer: serializer$1
|
|
822
|
+
};
|
|
823
|
+
const getOperationSpec = {
|
|
824
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}",
|
|
825
|
+
httpMethod: "GET",
|
|
826
|
+
responses: {
|
|
827
|
+
200: {
|
|
828
|
+
bodyMapper: SapMonitor
|
|
829
|
+
},
|
|
830
|
+
default: {
|
|
831
|
+
bodyMapper: ErrorResponse
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
queryParameters: [apiVersion],
|
|
835
|
+
urlParameters: [
|
|
836
|
+
$host,
|
|
837
|
+
subscriptionId,
|
|
838
|
+
resourceGroupName,
|
|
839
|
+
sapMonitorName
|
|
840
|
+
],
|
|
841
|
+
headerParameters: [accept],
|
|
842
|
+
serializer: serializer$1
|
|
843
|
+
};
|
|
844
|
+
const createOperationSpec = {
|
|
845
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}",
|
|
846
|
+
httpMethod: "PUT",
|
|
847
|
+
responses: {
|
|
848
|
+
200: {
|
|
849
|
+
bodyMapper: SapMonitor
|
|
850
|
+
},
|
|
851
|
+
201: {
|
|
852
|
+
bodyMapper: SapMonitor
|
|
853
|
+
},
|
|
854
|
+
202: {
|
|
855
|
+
bodyMapper: SapMonitor
|
|
856
|
+
},
|
|
857
|
+
204: {
|
|
858
|
+
bodyMapper: SapMonitor
|
|
859
|
+
},
|
|
860
|
+
default: {
|
|
861
|
+
bodyMapper: ErrorResponse
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
requestBody: sapMonitorParameter,
|
|
865
|
+
queryParameters: [apiVersion],
|
|
866
|
+
urlParameters: [
|
|
867
|
+
$host,
|
|
868
|
+
subscriptionId,
|
|
869
|
+
resourceGroupName,
|
|
870
|
+
sapMonitorName
|
|
871
|
+
],
|
|
872
|
+
headerParameters: [accept, contentType],
|
|
873
|
+
mediaType: "json",
|
|
874
|
+
serializer: serializer$1
|
|
875
|
+
};
|
|
876
|
+
const deleteOperationSpec = {
|
|
877
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}",
|
|
878
|
+
httpMethod: "DELETE",
|
|
879
|
+
responses: {
|
|
880
|
+
200: {},
|
|
881
|
+
201: {},
|
|
882
|
+
202: {},
|
|
883
|
+
204: {},
|
|
884
|
+
default: {
|
|
885
|
+
bodyMapper: ErrorResponse
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
queryParameters: [apiVersion],
|
|
889
|
+
urlParameters: [
|
|
890
|
+
$host,
|
|
891
|
+
subscriptionId,
|
|
892
|
+
resourceGroupName,
|
|
893
|
+
sapMonitorName
|
|
894
|
+
],
|
|
895
|
+
headerParameters: [accept],
|
|
896
|
+
serializer: serializer$1
|
|
897
|
+
};
|
|
898
|
+
const updateOperationSpec = {
|
|
899
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}",
|
|
900
|
+
httpMethod: "PATCH",
|
|
901
|
+
responses: {
|
|
902
|
+
200: {
|
|
903
|
+
bodyMapper: SapMonitor
|
|
904
|
+
},
|
|
905
|
+
default: {
|
|
906
|
+
bodyMapper: ErrorResponse
|
|
907
|
+
}
|
|
908
|
+
},
|
|
909
|
+
requestBody: tagsParameter,
|
|
910
|
+
queryParameters: [apiVersion],
|
|
911
|
+
urlParameters: [
|
|
912
|
+
$host,
|
|
913
|
+
subscriptionId,
|
|
914
|
+
resourceGroupName,
|
|
915
|
+
sapMonitorName
|
|
916
|
+
],
|
|
917
|
+
headerParameters: [accept, contentType],
|
|
918
|
+
mediaType: "json",
|
|
919
|
+
serializer: serializer$1
|
|
920
|
+
};
|
|
921
|
+
const listNextOperationSpec = {
|
|
922
|
+
path: "{nextLink}",
|
|
923
|
+
httpMethod: "GET",
|
|
924
|
+
responses: {
|
|
925
|
+
200: {
|
|
926
|
+
bodyMapper: SapMonitorListResult
|
|
927
|
+
},
|
|
928
|
+
default: {
|
|
929
|
+
bodyMapper: ErrorResponse
|
|
930
|
+
}
|
|
931
|
+
},
|
|
932
|
+
queryParameters: [apiVersion],
|
|
933
|
+
urlParameters: [
|
|
934
|
+
$host,
|
|
935
|
+
subscriptionId,
|
|
936
|
+
nextLink
|
|
937
|
+
],
|
|
938
|
+
headerParameters: [accept],
|
|
939
|
+
serializer: serializer$1
|
|
940
|
+
};
|
|
941
|
+
|
|
942
|
+
/*
|
|
943
|
+
* Copyright (c) Microsoft Corporation.
|
|
944
|
+
* Licensed under the MIT License.
|
|
945
|
+
*
|
|
946
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
947
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
948
|
+
*/
|
|
949
|
+
/// <reference lib="esnext.asynciterable" />
|
|
950
|
+
/** Class containing ProviderInstances operations. */
|
|
951
|
+
class ProviderInstancesImpl {
|
|
952
|
+
/**
|
|
953
|
+
* Initialize a new instance of the class ProviderInstances class.
|
|
954
|
+
* @param client Reference to the service client
|
|
955
|
+
*/
|
|
956
|
+
constructor(client) {
|
|
957
|
+
this.client = client;
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* Gets a list of provider instances in the specified SAP monitor. The operations returns various
|
|
961
|
+
* properties of each provider instances.
|
|
962
|
+
* @param resourceGroupName Name of the resource group.
|
|
963
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
964
|
+
* @param options The options parameters.
|
|
965
|
+
*/
|
|
966
|
+
list(resourceGroupName, sapMonitorName, options) {
|
|
967
|
+
const iter = this.listPagingAll(resourceGroupName, sapMonitorName, options);
|
|
968
|
+
return {
|
|
969
|
+
next() {
|
|
970
|
+
return iter.next();
|
|
971
|
+
},
|
|
972
|
+
[Symbol.asyncIterator]() {
|
|
973
|
+
return this;
|
|
974
|
+
},
|
|
975
|
+
byPage: () => {
|
|
976
|
+
return this.listPagingPage(resourceGroupName, sapMonitorName, options);
|
|
977
|
+
}
|
|
978
|
+
};
|
|
979
|
+
}
|
|
980
|
+
listPagingPage(resourceGroupName, sapMonitorName, options) {
|
|
981
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
982
|
+
let result = yield tslib.__await(this._list(resourceGroupName, sapMonitorName, options));
|
|
983
|
+
yield yield tslib.__await(result.value || []);
|
|
984
|
+
let continuationToken = result.nextLink;
|
|
985
|
+
while (continuationToken) {
|
|
986
|
+
result = yield tslib.__await(this._listNext(resourceGroupName, sapMonitorName, continuationToken, options));
|
|
987
|
+
continuationToken = result.nextLink;
|
|
988
|
+
yield yield tslib.__await(result.value || []);
|
|
989
|
+
}
|
|
990
|
+
});
|
|
991
|
+
}
|
|
992
|
+
listPagingAll(resourceGroupName, sapMonitorName, options) {
|
|
993
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
994
|
+
var e_1, _a;
|
|
995
|
+
try {
|
|
996
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, sapMonitorName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
997
|
+
const page = _c.value;
|
|
998
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1002
|
+
finally {
|
|
1003
|
+
try {
|
|
1004
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1005
|
+
}
|
|
1006
|
+
finally { if (e_1) throw e_1.error; }
|
|
1007
|
+
}
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* Gets a list of provider instances in the specified SAP monitor. The operations returns various
|
|
1012
|
+
* properties of each provider instances.
|
|
1013
|
+
* @param resourceGroupName Name of the resource group.
|
|
1014
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
1015
|
+
* @param options The options parameters.
|
|
1016
|
+
*/
|
|
1017
|
+
_list(resourceGroupName, sapMonitorName, options) {
|
|
1018
|
+
return this.client.sendOperationRequest({ resourceGroupName, sapMonitorName, options }, listOperationSpec$2);
|
|
1019
|
+
}
|
|
1020
|
+
/**
|
|
1021
|
+
* Gets properties of a provider instance for the specified subscription, resource group, SapMonitor
|
|
1022
|
+
* name, and resource name.
|
|
1023
|
+
* @param resourceGroupName Name of the resource group.
|
|
1024
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
1025
|
+
* @param providerInstanceName Name of the provider instance.
|
|
1026
|
+
* @param options The options parameters.
|
|
1027
|
+
*/
|
|
1028
|
+
get(resourceGroupName, sapMonitorName, providerInstanceName, options) {
|
|
1029
|
+
return this.client.sendOperationRequest({ resourceGroupName, sapMonitorName, providerInstanceName, options }, getOperationSpec$1);
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* Creates a provider instance for the specified subscription, resource group, SapMonitor name, and
|
|
1033
|
+
* resource name.
|
|
1034
|
+
* @param resourceGroupName Name of the resource group.
|
|
1035
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
1036
|
+
* @param providerInstanceName Name of the provider instance.
|
|
1037
|
+
* @param providerInstanceParameter Request body representing a provider instance
|
|
1038
|
+
* @param options The options parameters.
|
|
1039
|
+
*/
|
|
1040
|
+
beginCreate(resourceGroupName, sapMonitorName, providerInstanceName, providerInstanceParameter, options) {
|
|
1041
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1042
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1043
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1044
|
+
});
|
|
1045
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1046
|
+
var _a;
|
|
1047
|
+
let currentRawResponse = undefined;
|
|
1048
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1049
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1050
|
+
currentRawResponse = rawResponse;
|
|
1051
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1052
|
+
};
|
|
1053
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1054
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1055
|
+
return {
|
|
1056
|
+
flatResponse,
|
|
1057
|
+
rawResponse: {
|
|
1058
|
+
statusCode: currentRawResponse.status,
|
|
1059
|
+
body: currentRawResponse.parsedBody,
|
|
1060
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1061
|
+
}
|
|
1062
|
+
};
|
|
1063
|
+
});
|
|
1064
|
+
const lro = new LroImpl(sendOperation, {
|
|
1065
|
+
resourceGroupName,
|
|
1066
|
+
sapMonitorName,
|
|
1067
|
+
providerInstanceName,
|
|
1068
|
+
providerInstanceParameter,
|
|
1069
|
+
options
|
|
1070
|
+
}, createOperationSpec$1);
|
|
1071
|
+
return new coreLro.LroEngine(lro, {
|
|
1072
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1073
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1074
|
+
});
|
|
1075
|
+
});
|
|
1076
|
+
}
|
|
1077
|
+
/**
|
|
1078
|
+
* Creates a provider instance for the specified subscription, resource group, SapMonitor name, and
|
|
1079
|
+
* resource name.
|
|
1080
|
+
* @param resourceGroupName Name of the resource group.
|
|
1081
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
1082
|
+
* @param providerInstanceName Name of the provider instance.
|
|
1083
|
+
* @param providerInstanceParameter Request body representing a provider instance
|
|
1084
|
+
* @param options The options parameters.
|
|
1085
|
+
*/
|
|
1086
|
+
beginCreateAndWait(resourceGroupName, sapMonitorName, providerInstanceName, providerInstanceParameter, options) {
|
|
1087
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1088
|
+
const poller = yield this.beginCreate(resourceGroupName, sapMonitorName, providerInstanceName, providerInstanceParameter, options);
|
|
1089
|
+
return poller.pollUntilDone();
|
|
1090
|
+
});
|
|
1091
|
+
}
|
|
1092
|
+
/**
|
|
1093
|
+
* Deletes a provider instance for the specified subscription, resource group, SapMonitor name, and
|
|
1094
|
+
* resource name.
|
|
1095
|
+
* @param resourceGroupName Name of the resource group.
|
|
1096
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
1097
|
+
* @param providerInstanceName Name of the provider instance.
|
|
1098
|
+
* @param options The options parameters.
|
|
1099
|
+
*/
|
|
1100
|
+
beginDelete(resourceGroupName, sapMonitorName, providerInstanceName, options) {
|
|
1101
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1102
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1103
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1104
|
+
});
|
|
1105
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1106
|
+
var _a;
|
|
1107
|
+
let currentRawResponse = undefined;
|
|
1108
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1109
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1110
|
+
currentRawResponse = rawResponse;
|
|
1111
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1112
|
+
};
|
|
1113
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1114
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1115
|
+
return {
|
|
1116
|
+
flatResponse,
|
|
1117
|
+
rawResponse: {
|
|
1118
|
+
statusCode: currentRawResponse.status,
|
|
1119
|
+
body: currentRawResponse.parsedBody,
|
|
1120
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1121
|
+
}
|
|
1122
|
+
};
|
|
1123
|
+
});
|
|
1124
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, sapMonitorName, providerInstanceName, options }, deleteOperationSpec$1);
|
|
1125
|
+
return new coreLro.LroEngine(lro, {
|
|
1126
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1127
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1128
|
+
});
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* Deletes a provider instance for the specified subscription, resource group, SapMonitor name, and
|
|
1133
|
+
* resource name.
|
|
1134
|
+
* @param resourceGroupName Name of the resource group.
|
|
1135
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
1136
|
+
* @param providerInstanceName Name of the provider instance.
|
|
1137
|
+
* @param options The options parameters.
|
|
1138
|
+
*/
|
|
1139
|
+
beginDeleteAndWait(resourceGroupName, sapMonitorName, providerInstanceName, options) {
|
|
1140
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1141
|
+
const poller = yield this.beginDelete(resourceGroupName, sapMonitorName, providerInstanceName, options);
|
|
1142
|
+
return poller.pollUntilDone();
|
|
1143
|
+
});
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* ListNext
|
|
1147
|
+
* @param resourceGroupName Name of the resource group.
|
|
1148
|
+
* @param sapMonitorName Name of the SAP monitor resource.
|
|
1149
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1150
|
+
* @param options The options parameters.
|
|
1151
|
+
*/
|
|
1152
|
+
_listNext(resourceGroupName, sapMonitorName, nextLink, options) {
|
|
1153
|
+
return this.client.sendOperationRequest({ resourceGroupName, sapMonitorName, nextLink, options }, listNextOperationSpec$1);
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
// Operation Specifications
|
|
1157
|
+
const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1158
|
+
const listOperationSpec$2 = {
|
|
1159
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}/providerInstances",
|
|
1160
|
+
httpMethod: "GET",
|
|
1161
|
+
responses: {
|
|
1162
|
+
200: {
|
|
1163
|
+
bodyMapper: ProviderInstanceListResult
|
|
1164
|
+
},
|
|
1165
|
+
default: {
|
|
1166
|
+
bodyMapper: ErrorResponse
|
|
1167
|
+
}
|
|
1168
|
+
},
|
|
1169
|
+
queryParameters: [apiVersion],
|
|
1170
|
+
urlParameters: [
|
|
1171
|
+
$host,
|
|
1172
|
+
subscriptionId,
|
|
1173
|
+
resourceGroupName,
|
|
1174
|
+
sapMonitorName
|
|
1175
|
+
],
|
|
1176
|
+
headerParameters: [accept],
|
|
1177
|
+
serializer: serializer$2
|
|
1178
|
+
};
|
|
1179
|
+
const getOperationSpec$1 = {
|
|
1180
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}/providerInstances/{providerInstanceName}",
|
|
1181
|
+
httpMethod: "GET",
|
|
1182
|
+
responses: {
|
|
1183
|
+
200: {
|
|
1184
|
+
bodyMapper: ProviderInstance
|
|
1185
|
+
},
|
|
1186
|
+
default: {
|
|
1187
|
+
bodyMapper: ErrorResponse
|
|
1188
|
+
}
|
|
1189
|
+
},
|
|
1190
|
+
queryParameters: [apiVersion],
|
|
1191
|
+
urlParameters: [
|
|
1192
|
+
$host,
|
|
1193
|
+
subscriptionId,
|
|
1194
|
+
resourceGroupName,
|
|
1195
|
+
sapMonitorName,
|
|
1196
|
+
providerInstanceName
|
|
1197
|
+
],
|
|
1198
|
+
headerParameters: [accept],
|
|
1199
|
+
serializer: serializer$2
|
|
1200
|
+
};
|
|
1201
|
+
const createOperationSpec$1 = {
|
|
1202
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}/providerInstances/{providerInstanceName}",
|
|
1203
|
+
httpMethod: "PUT",
|
|
1204
|
+
responses: {
|
|
1205
|
+
200: {
|
|
1206
|
+
bodyMapper: ProviderInstance
|
|
1207
|
+
},
|
|
1208
|
+
201: {
|
|
1209
|
+
bodyMapper: ProviderInstance
|
|
1210
|
+
},
|
|
1211
|
+
202: {
|
|
1212
|
+
bodyMapper: ProviderInstance
|
|
1213
|
+
},
|
|
1214
|
+
204: {
|
|
1215
|
+
bodyMapper: ProviderInstance
|
|
1216
|
+
},
|
|
1217
|
+
default: {
|
|
1218
|
+
bodyMapper: ErrorResponse
|
|
1219
|
+
}
|
|
1220
|
+
},
|
|
1221
|
+
requestBody: providerInstanceParameter,
|
|
1222
|
+
queryParameters: [apiVersion],
|
|
1223
|
+
urlParameters: [
|
|
1224
|
+
$host,
|
|
1225
|
+
subscriptionId,
|
|
1226
|
+
resourceGroupName,
|
|
1227
|
+
sapMonitorName,
|
|
1228
|
+
providerInstanceName
|
|
1229
|
+
],
|
|
1230
|
+
headerParameters: [accept, contentType],
|
|
1231
|
+
mediaType: "json",
|
|
1232
|
+
serializer: serializer$2
|
|
1233
|
+
};
|
|
1234
|
+
const deleteOperationSpec$1 = {
|
|
1235
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}/providerInstances/{providerInstanceName}",
|
|
1236
|
+
httpMethod: "DELETE",
|
|
1237
|
+
responses: {
|
|
1238
|
+
200: {},
|
|
1239
|
+
201: {},
|
|
1240
|
+
202: {},
|
|
1241
|
+
204: {},
|
|
1242
|
+
default: {
|
|
1243
|
+
bodyMapper: ErrorResponse
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
queryParameters: [apiVersion],
|
|
1247
|
+
urlParameters: [
|
|
1248
|
+
$host,
|
|
1249
|
+
subscriptionId,
|
|
1250
|
+
resourceGroupName,
|
|
1251
|
+
sapMonitorName,
|
|
1252
|
+
providerInstanceName
|
|
1253
|
+
],
|
|
1254
|
+
headerParameters: [accept],
|
|
1255
|
+
serializer: serializer$2
|
|
1256
|
+
};
|
|
1257
|
+
const listNextOperationSpec$1 = {
|
|
1258
|
+
path: "{nextLink}",
|
|
1259
|
+
httpMethod: "GET",
|
|
1260
|
+
responses: {
|
|
1261
|
+
200: {
|
|
1262
|
+
bodyMapper: ProviderInstanceListResult
|
|
1263
|
+
},
|
|
1264
|
+
default: {
|
|
1265
|
+
bodyMapper: ErrorResponse
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1268
|
+
queryParameters: [apiVersion],
|
|
1269
|
+
urlParameters: [
|
|
1270
|
+
$host,
|
|
1271
|
+
subscriptionId,
|
|
1272
|
+
resourceGroupName,
|
|
1273
|
+
sapMonitorName,
|
|
1274
|
+
nextLink
|
|
1275
|
+
],
|
|
1276
|
+
headerParameters: [accept],
|
|
1277
|
+
serializer: serializer$2
|
|
1278
|
+
};
|
|
1279
|
+
|
|
1280
|
+
/*
|
|
1281
|
+
* Copyright (c) Microsoft Corporation.
|
|
1282
|
+
* Licensed under the MIT License.
|
|
1283
|
+
*
|
|
1284
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1285
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1286
|
+
*/
|
|
1287
|
+
class HanaManagementClient extends coreClient.ServiceClient {
|
|
1288
|
+
/**
|
|
1289
|
+
* Initializes a new instance of the HanaManagementClient class.
|
|
1290
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
1291
|
+
* @param subscriptionId Subscription ID which uniquely identify Microsoft Azure subscription. The
|
|
1292
|
+
* subscription ID forms part of the URI for every service call.
|
|
1293
|
+
* @param options The parameter options
|
|
1294
|
+
*/
|
|
1295
|
+
constructor(credentials, subscriptionId, options) {
|
|
1296
|
+
if (credentials === undefined) {
|
|
1297
|
+
throw new Error("'credentials' cannot be null");
|
|
1298
|
+
}
|
|
1299
|
+
if (subscriptionId === undefined) {
|
|
1300
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
1301
|
+
}
|
|
1302
|
+
// Initializing default values for options
|
|
1303
|
+
if (!options) {
|
|
1304
|
+
options = {};
|
|
1305
|
+
}
|
|
1306
|
+
const defaults = {
|
|
1307
|
+
requestContentType: "application/json; charset=utf-8",
|
|
1308
|
+
credential: credentials
|
|
1309
|
+
};
|
|
1310
|
+
const packageDetails = `azsdk-js-arm-hanaonazure/4.0.0-beta.1`;
|
|
1311
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1312
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1313
|
+
: `${packageDetails}`;
|
|
1314
|
+
if (!options.credentialScopes) {
|
|
1315
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
1316
|
+
}
|
|
1317
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1318
|
+
userAgentPrefix
|
|
1319
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
1320
|
+
super(optionsWithDefaults);
|
|
1321
|
+
// Parameter assignments
|
|
1322
|
+
this.subscriptionId = subscriptionId;
|
|
1323
|
+
// Assigning values to Constant parameters
|
|
1324
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
1325
|
+
this.apiVersion = options.apiVersion || "2020-02-07-preview";
|
|
1326
|
+
this.operations = new OperationsImpl(this);
|
|
1327
|
+
this.sapMonitors = new SapMonitorsImpl(this);
|
|
1328
|
+
this.providerInstances = new ProviderInstancesImpl(this);
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
exports.HanaManagementClient = HanaManagementClient;
|
|
1333
|
+
//# sourceMappingURL=index.js.map
|