@azure/arm-rediscache 30.0.0-alpha.20210928.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 +14 -0
- package/LICENSE +21 -0
- package/LICENSE.txt +21 -0
- package/README.md +94 -0
- package/dist/index.js +4051 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1016 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +77 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +49 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +1580 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +27 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +198 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/firewallRules.d.ts +63 -0
- package/dist-esm/src/operations/firewallRules.d.ts.map +1 -0
- package/dist-esm/src/operations/firewallRules.js +238 -0
- package/dist-esm/src/operations/firewallRules.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +8 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +15 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/linkedServer.d.ts +73 -0
- package/dist-esm/src/operations/linkedServer.d.ts.map +1 -0
- package/dist-esm/src/operations/linkedServer.js +288 -0
- package/dist-esm/src/operations/linkedServer.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/patchSchedules.d.ts +63 -0
- package/dist-esm/src/operations/patchSchedules.d.ts.map +1 -0
- package/dist-esm/src/operations/patchSchedules.js +238 -0
- package/dist-esm/src/operations/patchSchedules.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +69 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +260 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +30 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +99 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/redis.d.ts +192 -0
- package/dist-esm/src/operations/redis.d.ts.map +1 -0
- package/dist-esm/src/operations/redis.js +840 -0
- package/dist-esm/src/operations/redis.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +15 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/linkedServer.d.ts +48 -0
- package/dist-esm/src/operationsInterfaces/linkedServer.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/linkedServer.js +9 -0
- package/dist-esm/src/operationsInterfaces/linkedServer.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/patchSchedules.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/patchSchedules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/patchSchedules.js +9 -0
- package/dist-esm/src/operationsInterfaces/patchSchedules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +52 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/redis.d.ts +136 -0
- package/dist-esm/src/operationsInterfaces/redis.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/redis.js +9 -0
- package/dist-esm/src/operationsInterfaces/redis.js.map +1 -0
- package/dist-esm/src/redisManagementClient.d.ts +22 -0
- package/dist-esm/src/redisManagementClient.d.ts.map +1 -0
- package/dist-esm/src/redisManagementClient.js +29 -0
- package/dist-esm/src/redisManagementClient.js.map +1 -0
- package/dist-esm/src/redisManagementClientContext.d.ts +17 -0
- package/dist-esm/src/redisManagementClientContext.d.ts.map +1 -0
- package/dist-esm/src/redisManagementClientContext.js +50 -0
- package/dist-esm/src/redisManagementClientContext.js.map +1 -0
- package/dist-esm/test/redis_examples.d.ts +2 -0
- package/dist-esm/test/redis_examples.d.ts.map +1 -0
- package/dist-esm/test/redis_examples.js +209 -0
- package/dist-esm/test/redis_examples.js.map +1 -0
- package/package.json +103 -0
- package/review/arm-rediscache.api.md +879 -0
- package/rollup.config.js +188 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1154 -0
- package/src/models/mappers.ts +1709 -0
- package/src/models/parameters.ts +240 -0
- package/src/operations/firewallRules.ts +314 -0
- package/src/operations/index.ts +15 -0
- package/src/operations/linkedServer.ts +397 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/patchSchedules.ts +327 -0
- package/src/operations/privateEndpointConnections.ts +353 -0
- package/src/operations/privateLinkResources.ts +135 -0
- package/src/operations/redis.ts +1152 -0
- package/src/operationsInterfaces/firewallRules.ts +75 -0
- package/src/operationsInterfaces/index.ts +15 -0
- package/src/operationsInterfaces/linkedServer.ts +97 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/patchSchedules.ts +76 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +100 -0
- package/src/operationsInterfaces/privateLinkResources.ts +29 -0
- package/src/operationsInterfaces/redis.ts +250 -0
- package/src/redisManagementClient.ts +61 -0
- package/src/redisManagementClientContext.ts +71 -0
- package/tsconfig.json +19 -0
- package/types/arm-rediscache.d.ts +1509 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,840 @@
|
|
|
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 Redis operations. */
|
|
16
|
+
export class RedisImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class Redis class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Gets any upgrade notifications for a Redis cache.
|
|
26
|
+
* @param resourceGroupName The name of the resource group.
|
|
27
|
+
* @param name The name of the Redis cache.
|
|
28
|
+
* @param history how many minutes in past to look for upgrade notifications
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
listUpgradeNotifications(resourceGroupName, name, history, options) {
|
|
32
|
+
const iter = this.listUpgradeNotificationsPagingAll(resourceGroupName, name, history, options);
|
|
33
|
+
return {
|
|
34
|
+
next() {
|
|
35
|
+
return iter.next();
|
|
36
|
+
},
|
|
37
|
+
[Symbol.asyncIterator]() {
|
|
38
|
+
return this;
|
|
39
|
+
},
|
|
40
|
+
byPage: () => {
|
|
41
|
+
return this.listUpgradeNotificationsPagingPage(resourceGroupName, name, history, options);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
listUpgradeNotificationsPagingPage(resourceGroupName, name, history, options) {
|
|
46
|
+
return __asyncGenerator(this, arguments, function* listUpgradeNotificationsPagingPage_1() {
|
|
47
|
+
let result = yield __await(this._listUpgradeNotifications(resourceGroupName, name, history, options));
|
|
48
|
+
yield yield __await(result.value || []);
|
|
49
|
+
let continuationToken = result.nextLink;
|
|
50
|
+
while (continuationToken) {
|
|
51
|
+
result = yield __await(this._listUpgradeNotificationsNext(resourceGroupName, name, history, continuationToken, options));
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
yield yield __await(result.value || []);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
listUpgradeNotificationsPagingAll(resourceGroupName, name, history, options) {
|
|
58
|
+
return __asyncGenerator(this, arguments, function* listUpgradeNotificationsPagingAll_1() {
|
|
59
|
+
var e_1, _a;
|
|
60
|
+
try {
|
|
61
|
+
for (var _b = __asyncValues(this.listUpgradeNotificationsPagingPage(resourceGroupName, name, history, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
62
|
+
const page = _c.value;
|
|
63
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
67
|
+
finally {
|
|
68
|
+
try {
|
|
69
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
70
|
+
}
|
|
71
|
+
finally { if (e_1) throw e_1.error; }
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Lists all Redis caches in a resource group.
|
|
77
|
+
* @param resourceGroupName The name of the resource group.
|
|
78
|
+
* @param options The options parameters.
|
|
79
|
+
*/
|
|
80
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
81
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
82
|
+
return {
|
|
83
|
+
next() {
|
|
84
|
+
return iter.next();
|
|
85
|
+
},
|
|
86
|
+
[Symbol.asyncIterator]() {
|
|
87
|
+
return this;
|
|
88
|
+
},
|
|
89
|
+
byPage: () => {
|
|
90
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
95
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
96
|
+
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
97
|
+
yield yield __await(result.value || []);
|
|
98
|
+
let continuationToken = result.nextLink;
|
|
99
|
+
while (continuationToken) {
|
|
100
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
yield yield __await(result.value || []);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
107
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
108
|
+
var e_2, _a;
|
|
109
|
+
try {
|
|
110
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
111
|
+
const page = _c.value;
|
|
112
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
116
|
+
finally {
|
|
117
|
+
try {
|
|
118
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
119
|
+
}
|
|
120
|
+
finally { if (e_2) throw e_2.error; }
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Gets all Redis caches in the specified subscription.
|
|
126
|
+
* @param options The options parameters.
|
|
127
|
+
*/
|
|
128
|
+
listBySubscription(options) {
|
|
129
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
130
|
+
return {
|
|
131
|
+
next() {
|
|
132
|
+
return iter.next();
|
|
133
|
+
},
|
|
134
|
+
[Symbol.asyncIterator]() {
|
|
135
|
+
return this;
|
|
136
|
+
},
|
|
137
|
+
byPage: () => {
|
|
138
|
+
return this.listBySubscriptionPagingPage(options);
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
listBySubscriptionPagingPage(options) {
|
|
143
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
144
|
+
let result = yield __await(this._listBySubscription(options));
|
|
145
|
+
yield yield __await(result.value || []);
|
|
146
|
+
let continuationToken = result.nextLink;
|
|
147
|
+
while (continuationToken) {
|
|
148
|
+
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
|
|
149
|
+
continuationToken = result.nextLink;
|
|
150
|
+
yield yield __await(result.value || []);
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
listBySubscriptionPagingAll(options) {
|
|
155
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
156
|
+
var e_3, _a;
|
|
157
|
+
try {
|
|
158
|
+
for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
159
|
+
const page = _c.value;
|
|
160
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
164
|
+
finally {
|
|
165
|
+
try {
|
|
166
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
167
|
+
}
|
|
168
|
+
finally { if (e_3) throw e_3.error; }
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Checks that the redis cache name is valid and is not already in use.
|
|
174
|
+
* @param parameters Parameters supplied to the CheckNameAvailability Redis operation. The only
|
|
175
|
+
* supported resource type is 'Microsoft.Cache/redis'
|
|
176
|
+
* @param options The options parameters.
|
|
177
|
+
*/
|
|
178
|
+
checkNameAvailability(parameters, options) {
|
|
179
|
+
return this.client.sendOperationRequest({ parameters, options }, checkNameAvailabilityOperationSpec);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Gets any upgrade notifications for a Redis cache.
|
|
183
|
+
* @param resourceGroupName The name of the resource group.
|
|
184
|
+
* @param name The name of the Redis cache.
|
|
185
|
+
* @param history how many minutes in past to look for upgrade notifications
|
|
186
|
+
* @param options The options parameters.
|
|
187
|
+
*/
|
|
188
|
+
_listUpgradeNotifications(resourceGroupName, name, history, options) {
|
|
189
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, history, options }, listUpgradeNotificationsOperationSpec);
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Create or replace (overwrite/recreate, with potential downtime) an existing Redis cache.
|
|
193
|
+
* @param resourceGroupName The name of the resource group.
|
|
194
|
+
* @param name The name of the Redis cache.
|
|
195
|
+
* @param parameters Parameters supplied to the Create Redis operation.
|
|
196
|
+
* @param options The options parameters.
|
|
197
|
+
*/
|
|
198
|
+
beginCreate(resourceGroupName, name, parameters, options) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
201
|
+
return this.client.sendOperationRequest(args, spec);
|
|
202
|
+
});
|
|
203
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
204
|
+
var _a;
|
|
205
|
+
let currentRawResponse = undefined;
|
|
206
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
207
|
+
const callback = (rawResponse, flatResponse) => {
|
|
208
|
+
currentRawResponse = rawResponse;
|
|
209
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
210
|
+
};
|
|
211
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
212
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
213
|
+
return {
|
|
214
|
+
flatResponse,
|
|
215
|
+
rawResponse: {
|
|
216
|
+
statusCode: currentRawResponse.status,
|
|
217
|
+
body: currentRawResponse.parsedBody,
|
|
218
|
+
headers: currentRawResponse.headers.toJSON()
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
});
|
|
222
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, name, parameters, options }, createOperationSpec);
|
|
223
|
+
return new LroEngine(lro, {
|
|
224
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
225
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
226
|
+
});
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Create or replace (overwrite/recreate, with potential downtime) an existing Redis cache.
|
|
231
|
+
* @param resourceGroupName The name of the resource group.
|
|
232
|
+
* @param name The name of the Redis cache.
|
|
233
|
+
* @param parameters Parameters supplied to the Create Redis operation.
|
|
234
|
+
* @param options The options parameters.
|
|
235
|
+
*/
|
|
236
|
+
beginCreateAndWait(resourceGroupName, name, parameters, options) {
|
|
237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
238
|
+
const poller = yield this.beginCreate(resourceGroupName, name, parameters, options);
|
|
239
|
+
return poller.pollUntilDone();
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Update an existing Redis cache.
|
|
244
|
+
* @param resourceGroupName The name of the resource group.
|
|
245
|
+
* @param name The name of the Redis cache.
|
|
246
|
+
* @param parameters Parameters supplied to the Update Redis operation.
|
|
247
|
+
* @param options The options parameters.
|
|
248
|
+
*/
|
|
249
|
+
update(resourceGroupName, name, parameters, options) {
|
|
250
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, parameters, options }, updateOperationSpec);
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Deletes a Redis cache.
|
|
254
|
+
* @param resourceGroupName The name of the resource group.
|
|
255
|
+
* @param name The name of the Redis cache.
|
|
256
|
+
* @param options The options parameters.
|
|
257
|
+
*/
|
|
258
|
+
beginDelete(resourceGroupName, name, options) {
|
|
259
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
260
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
261
|
+
return this.client.sendOperationRequest(args, spec);
|
|
262
|
+
});
|
|
263
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
264
|
+
var _a;
|
|
265
|
+
let currentRawResponse = undefined;
|
|
266
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
267
|
+
const callback = (rawResponse, flatResponse) => {
|
|
268
|
+
currentRawResponse = rawResponse;
|
|
269
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
270
|
+
};
|
|
271
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
272
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
273
|
+
return {
|
|
274
|
+
flatResponse,
|
|
275
|
+
rawResponse: {
|
|
276
|
+
statusCode: currentRawResponse.status,
|
|
277
|
+
body: currentRawResponse.parsedBody,
|
|
278
|
+
headers: currentRawResponse.headers.toJSON()
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
});
|
|
282
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, name, options }, deleteOperationSpec);
|
|
283
|
+
return new LroEngine(lro, {
|
|
284
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
285
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
286
|
+
});
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Deletes a Redis cache.
|
|
291
|
+
* @param resourceGroupName The name of the resource group.
|
|
292
|
+
* @param name The name of the Redis cache.
|
|
293
|
+
* @param options The options parameters.
|
|
294
|
+
*/
|
|
295
|
+
beginDeleteAndWait(resourceGroupName, name, options) {
|
|
296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
297
|
+
const poller = yield this.beginDelete(resourceGroupName, name, options);
|
|
298
|
+
return poller.pollUntilDone();
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Gets a Redis cache (resource description).
|
|
303
|
+
* @param resourceGroupName The name of the resource group.
|
|
304
|
+
* @param name The name of the Redis cache.
|
|
305
|
+
* @param options The options parameters.
|
|
306
|
+
*/
|
|
307
|
+
get(resourceGroupName, name, options) {
|
|
308
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, options }, getOperationSpec);
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Lists all Redis caches in a resource group.
|
|
312
|
+
* @param resourceGroupName The name of the resource group.
|
|
313
|
+
* @param options The options parameters.
|
|
314
|
+
*/
|
|
315
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
316
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Gets all Redis caches in the specified subscription.
|
|
320
|
+
* @param options The options parameters.
|
|
321
|
+
*/
|
|
322
|
+
_listBySubscription(options) {
|
|
323
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Retrieve a Redis cache's access keys. This operation requires write permission to the cache
|
|
327
|
+
* resource.
|
|
328
|
+
* @param resourceGroupName The name of the resource group.
|
|
329
|
+
* @param name The name of the Redis cache.
|
|
330
|
+
* @param options The options parameters.
|
|
331
|
+
*/
|
|
332
|
+
listKeys(resourceGroupName, name, options) {
|
|
333
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, options }, listKeysOperationSpec);
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Regenerate Redis cache's access keys. This operation requires write permission to the cache
|
|
337
|
+
* resource.
|
|
338
|
+
* @param resourceGroupName The name of the resource group.
|
|
339
|
+
* @param name The name of the Redis cache.
|
|
340
|
+
* @param parameters Specifies which key to regenerate.
|
|
341
|
+
* @param options The options parameters.
|
|
342
|
+
*/
|
|
343
|
+
regenerateKey(resourceGroupName, name, parameters, options) {
|
|
344
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, parameters, options }, regenerateKeyOperationSpec);
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Reboot specified Redis node(s). This operation requires write permission to the cache resource.
|
|
348
|
+
* There can be potential data loss.
|
|
349
|
+
* @param resourceGroupName The name of the resource group.
|
|
350
|
+
* @param name The name of the Redis cache.
|
|
351
|
+
* @param parameters Specifies which Redis node(s) to reboot.
|
|
352
|
+
* @param options The options parameters.
|
|
353
|
+
*/
|
|
354
|
+
forceReboot(resourceGroupName, name, parameters, options) {
|
|
355
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, parameters, options }, forceRebootOperationSpec);
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Import data into Redis cache.
|
|
359
|
+
* @param resourceGroupName The name of the resource group.
|
|
360
|
+
* @param name The name of the Redis cache.
|
|
361
|
+
* @param parameters Parameters for Redis import operation.
|
|
362
|
+
* @param options The options parameters.
|
|
363
|
+
*/
|
|
364
|
+
beginImportData(resourceGroupName, name, parameters, options) {
|
|
365
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
366
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
367
|
+
return this.client.sendOperationRequest(args, spec);
|
|
368
|
+
});
|
|
369
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
370
|
+
var _a;
|
|
371
|
+
let currentRawResponse = undefined;
|
|
372
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
373
|
+
const callback = (rawResponse, flatResponse) => {
|
|
374
|
+
currentRawResponse = rawResponse;
|
|
375
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
376
|
+
};
|
|
377
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
378
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
379
|
+
return {
|
|
380
|
+
flatResponse,
|
|
381
|
+
rawResponse: {
|
|
382
|
+
statusCode: currentRawResponse.status,
|
|
383
|
+
body: currentRawResponse.parsedBody,
|
|
384
|
+
headers: currentRawResponse.headers.toJSON()
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
});
|
|
388
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, name, parameters, options }, importDataOperationSpec);
|
|
389
|
+
return new LroEngine(lro, {
|
|
390
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
391
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
392
|
+
});
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Import data into Redis cache.
|
|
397
|
+
* @param resourceGroupName The name of the resource group.
|
|
398
|
+
* @param name The name of the Redis cache.
|
|
399
|
+
* @param parameters Parameters for Redis import operation.
|
|
400
|
+
* @param options The options parameters.
|
|
401
|
+
*/
|
|
402
|
+
beginImportDataAndWait(resourceGroupName, name, parameters, options) {
|
|
403
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
404
|
+
const poller = yield this.beginImportData(resourceGroupName, name, parameters, options);
|
|
405
|
+
return poller.pollUntilDone();
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Export data from the redis cache to blobs in a container.
|
|
410
|
+
* @param resourceGroupName The name of the resource group.
|
|
411
|
+
* @param name The name of the Redis cache.
|
|
412
|
+
* @param parameters Parameters for Redis export operation.
|
|
413
|
+
* @param options The options parameters.
|
|
414
|
+
*/
|
|
415
|
+
beginExportData(resourceGroupName, name, parameters, options) {
|
|
416
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
417
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
418
|
+
return this.client.sendOperationRequest(args, spec);
|
|
419
|
+
});
|
|
420
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
421
|
+
var _a;
|
|
422
|
+
let currentRawResponse = undefined;
|
|
423
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
424
|
+
const callback = (rawResponse, flatResponse) => {
|
|
425
|
+
currentRawResponse = rawResponse;
|
|
426
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
427
|
+
};
|
|
428
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
429
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
430
|
+
return {
|
|
431
|
+
flatResponse,
|
|
432
|
+
rawResponse: {
|
|
433
|
+
statusCode: currentRawResponse.status,
|
|
434
|
+
body: currentRawResponse.parsedBody,
|
|
435
|
+
headers: currentRawResponse.headers.toJSON()
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
});
|
|
439
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, name, parameters, options }, exportDataOperationSpec);
|
|
440
|
+
return new LroEngine(lro, {
|
|
441
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
442
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
443
|
+
});
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Export data from the redis cache to blobs in a container.
|
|
448
|
+
* @param resourceGroupName The name of the resource group.
|
|
449
|
+
* @param name The name of the Redis cache.
|
|
450
|
+
* @param parameters Parameters for Redis export operation.
|
|
451
|
+
* @param options The options parameters.
|
|
452
|
+
*/
|
|
453
|
+
beginExportDataAndWait(resourceGroupName, name, parameters, options) {
|
|
454
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
455
|
+
const poller = yield this.beginExportData(resourceGroupName, name, parameters, options);
|
|
456
|
+
return poller.pollUntilDone();
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* ListUpgradeNotificationsNext
|
|
461
|
+
* @param resourceGroupName The name of the resource group.
|
|
462
|
+
* @param name The name of the Redis cache.
|
|
463
|
+
* @param history how many minutes in past to look for upgrade notifications
|
|
464
|
+
* @param nextLink The nextLink from the previous successful call to the ListUpgradeNotifications
|
|
465
|
+
* method.
|
|
466
|
+
* @param options The options parameters.
|
|
467
|
+
*/
|
|
468
|
+
_listUpgradeNotificationsNext(resourceGroupName, name, history, nextLink, options) {
|
|
469
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, history, nextLink, options }, listUpgradeNotificationsNextOperationSpec);
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* ListByResourceGroupNext
|
|
473
|
+
* @param resourceGroupName The name of the resource group.
|
|
474
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
475
|
+
* @param options The options parameters.
|
|
476
|
+
*/
|
|
477
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
478
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* ListBySubscriptionNext
|
|
482
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
483
|
+
* @param options The options parameters.
|
|
484
|
+
*/
|
|
485
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
486
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
// Operation Specifications
|
|
490
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
491
|
+
const checkNameAvailabilityOperationSpec = {
|
|
492
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/CheckNameAvailability",
|
|
493
|
+
httpMethod: "POST",
|
|
494
|
+
responses: {
|
|
495
|
+
200: {},
|
|
496
|
+
default: {
|
|
497
|
+
bodyMapper: Mappers.ErrorResponse
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
requestBody: Parameters.parameters,
|
|
501
|
+
queryParameters: [Parameters.apiVersion],
|
|
502
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
503
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
504
|
+
mediaType: "json",
|
|
505
|
+
serializer
|
|
506
|
+
};
|
|
507
|
+
const listUpgradeNotificationsOperationSpec = {
|
|
508
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/listUpgradeNotifications",
|
|
509
|
+
httpMethod: "GET",
|
|
510
|
+
responses: {
|
|
511
|
+
200: {
|
|
512
|
+
bodyMapper: Mappers.NotificationListResponse
|
|
513
|
+
},
|
|
514
|
+
default: {
|
|
515
|
+
bodyMapper: Mappers.ErrorResponse
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
queryParameters: [Parameters.apiVersion, Parameters.history],
|
|
519
|
+
urlParameters: [
|
|
520
|
+
Parameters.$host,
|
|
521
|
+
Parameters.subscriptionId,
|
|
522
|
+
Parameters.resourceGroupName,
|
|
523
|
+
Parameters.name
|
|
524
|
+
],
|
|
525
|
+
headerParameters: [Parameters.accept],
|
|
526
|
+
serializer
|
|
527
|
+
};
|
|
528
|
+
const createOperationSpec = {
|
|
529
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}",
|
|
530
|
+
httpMethod: "PUT",
|
|
531
|
+
responses: {
|
|
532
|
+
200: {
|
|
533
|
+
bodyMapper: Mappers.RedisResource
|
|
534
|
+
},
|
|
535
|
+
201: {
|
|
536
|
+
bodyMapper: Mappers.RedisResource
|
|
537
|
+
},
|
|
538
|
+
202: {
|
|
539
|
+
bodyMapper: Mappers.RedisResource
|
|
540
|
+
},
|
|
541
|
+
204: {
|
|
542
|
+
bodyMapper: Mappers.RedisResource
|
|
543
|
+
},
|
|
544
|
+
default: {
|
|
545
|
+
bodyMapper: Mappers.ErrorResponse
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
requestBody: Parameters.parameters1,
|
|
549
|
+
queryParameters: [Parameters.apiVersion],
|
|
550
|
+
urlParameters: [
|
|
551
|
+
Parameters.$host,
|
|
552
|
+
Parameters.subscriptionId,
|
|
553
|
+
Parameters.resourceGroupName,
|
|
554
|
+
Parameters.name
|
|
555
|
+
],
|
|
556
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
557
|
+
mediaType: "json",
|
|
558
|
+
serializer
|
|
559
|
+
};
|
|
560
|
+
const updateOperationSpec = {
|
|
561
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}",
|
|
562
|
+
httpMethod: "PATCH",
|
|
563
|
+
responses: {
|
|
564
|
+
200: {
|
|
565
|
+
bodyMapper: Mappers.RedisResource
|
|
566
|
+
},
|
|
567
|
+
default: {
|
|
568
|
+
bodyMapper: Mappers.ErrorResponse
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
requestBody: Parameters.parameters2,
|
|
572
|
+
queryParameters: [Parameters.apiVersion],
|
|
573
|
+
urlParameters: [
|
|
574
|
+
Parameters.$host,
|
|
575
|
+
Parameters.subscriptionId,
|
|
576
|
+
Parameters.resourceGroupName,
|
|
577
|
+
Parameters.name
|
|
578
|
+
],
|
|
579
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
580
|
+
mediaType: "json",
|
|
581
|
+
serializer
|
|
582
|
+
};
|
|
583
|
+
const deleteOperationSpec = {
|
|
584
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}",
|
|
585
|
+
httpMethod: "DELETE",
|
|
586
|
+
responses: {
|
|
587
|
+
200: {},
|
|
588
|
+
201: {},
|
|
589
|
+
202: {},
|
|
590
|
+
204: {},
|
|
591
|
+
default: {
|
|
592
|
+
bodyMapper: Mappers.ErrorResponse
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
queryParameters: [Parameters.apiVersion],
|
|
596
|
+
urlParameters: [
|
|
597
|
+
Parameters.$host,
|
|
598
|
+
Parameters.subscriptionId,
|
|
599
|
+
Parameters.resourceGroupName,
|
|
600
|
+
Parameters.name
|
|
601
|
+
],
|
|
602
|
+
headerParameters: [Parameters.accept],
|
|
603
|
+
serializer
|
|
604
|
+
};
|
|
605
|
+
const getOperationSpec = {
|
|
606
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}",
|
|
607
|
+
httpMethod: "GET",
|
|
608
|
+
responses: {
|
|
609
|
+
200: {
|
|
610
|
+
bodyMapper: Mappers.RedisResource
|
|
611
|
+
},
|
|
612
|
+
default: {
|
|
613
|
+
bodyMapper: Mappers.ErrorResponse
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
queryParameters: [Parameters.apiVersion],
|
|
617
|
+
urlParameters: [
|
|
618
|
+
Parameters.$host,
|
|
619
|
+
Parameters.subscriptionId,
|
|
620
|
+
Parameters.resourceGroupName,
|
|
621
|
+
Parameters.name
|
|
622
|
+
],
|
|
623
|
+
headerParameters: [Parameters.accept],
|
|
624
|
+
serializer
|
|
625
|
+
};
|
|
626
|
+
const listByResourceGroupOperationSpec = {
|
|
627
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis",
|
|
628
|
+
httpMethod: "GET",
|
|
629
|
+
responses: {
|
|
630
|
+
200: {
|
|
631
|
+
bodyMapper: Mappers.RedisListResult
|
|
632
|
+
},
|
|
633
|
+
default: {
|
|
634
|
+
bodyMapper: Mappers.ErrorResponse
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
queryParameters: [Parameters.apiVersion],
|
|
638
|
+
urlParameters: [
|
|
639
|
+
Parameters.$host,
|
|
640
|
+
Parameters.subscriptionId,
|
|
641
|
+
Parameters.resourceGroupName
|
|
642
|
+
],
|
|
643
|
+
headerParameters: [Parameters.accept],
|
|
644
|
+
serializer
|
|
645
|
+
};
|
|
646
|
+
const listBySubscriptionOperationSpec = {
|
|
647
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/redis",
|
|
648
|
+
httpMethod: "GET",
|
|
649
|
+
responses: {
|
|
650
|
+
200: {
|
|
651
|
+
bodyMapper: Mappers.RedisListResult
|
|
652
|
+
},
|
|
653
|
+
default: {
|
|
654
|
+
bodyMapper: Mappers.ErrorResponse
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
queryParameters: [Parameters.apiVersion],
|
|
658
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
659
|
+
headerParameters: [Parameters.accept],
|
|
660
|
+
serializer
|
|
661
|
+
};
|
|
662
|
+
const listKeysOperationSpec = {
|
|
663
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/listKeys",
|
|
664
|
+
httpMethod: "POST",
|
|
665
|
+
responses: {
|
|
666
|
+
200: {
|
|
667
|
+
bodyMapper: Mappers.RedisAccessKeys
|
|
668
|
+
},
|
|
669
|
+
default: {
|
|
670
|
+
bodyMapper: Mappers.ErrorResponse
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
queryParameters: [Parameters.apiVersion],
|
|
674
|
+
urlParameters: [
|
|
675
|
+
Parameters.$host,
|
|
676
|
+
Parameters.subscriptionId,
|
|
677
|
+
Parameters.resourceGroupName,
|
|
678
|
+
Parameters.name
|
|
679
|
+
],
|
|
680
|
+
headerParameters: [Parameters.accept],
|
|
681
|
+
serializer
|
|
682
|
+
};
|
|
683
|
+
const regenerateKeyOperationSpec = {
|
|
684
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/regenerateKey",
|
|
685
|
+
httpMethod: "POST",
|
|
686
|
+
responses: {
|
|
687
|
+
200: {
|
|
688
|
+
bodyMapper: Mappers.RedisAccessKeys
|
|
689
|
+
},
|
|
690
|
+
default: {
|
|
691
|
+
bodyMapper: Mappers.ErrorResponse
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
requestBody: Parameters.parameters3,
|
|
695
|
+
queryParameters: [Parameters.apiVersion],
|
|
696
|
+
urlParameters: [
|
|
697
|
+
Parameters.$host,
|
|
698
|
+
Parameters.subscriptionId,
|
|
699
|
+
Parameters.resourceGroupName,
|
|
700
|
+
Parameters.name
|
|
701
|
+
],
|
|
702
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
703
|
+
mediaType: "json",
|
|
704
|
+
serializer
|
|
705
|
+
};
|
|
706
|
+
const forceRebootOperationSpec = {
|
|
707
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/forceReboot",
|
|
708
|
+
httpMethod: "POST",
|
|
709
|
+
responses: {
|
|
710
|
+
200: {
|
|
711
|
+
bodyMapper: Mappers.RedisForceRebootResponse
|
|
712
|
+
},
|
|
713
|
+
default: {
|
|
714
|
+
bodyMapper: Mappers.ErrorResponse
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
requestBody: Parameters.parameters4,
|
|
718
|
+
queryParameters: [Parameters.apiVersion],
|
|
719
|
+
urlParameters: [
|
|
720
|
+
Parameters.$host,
|
|
721
|
+
Parameters.subscriptionId,
|
|
722
|
+
Parameters.resourceGroupName,
|
|
723
|
+
Parameters.name
|
|
724
|
+
],
|
|
725
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
726
|
+
mediaType: "json",
|
|
727
|
+
serializer
|
|
728
|
+
};
|
|
729
|
+
const importDataOperationSpec = {
|
|
730
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/import",
|
|
731
|
+
httpMethod: "POST",
|
|
732
|
+
responses: {
|
|
733
|
+
200: {},
|
|
734
|
+
201: {},
|
|
735
|
+
202: {},
|
|
736
|
+
204: {},
|
|
737
|
+
default: {
|
|
738
|
+
bodyMapper: Mappers.ErrorResponse
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
requestBody: Parameters.parameters5,
|
|
742
|
+
queryParameters: [Parameters.apiVersion],
|
|
743
|
+
urlParameters: [
|
|
744
|
+
Parameters.$host,
|
|
745
|
+
Parameters.subscriptionId,
|
|
746
|
+
Parameters.resourceGroupName,
|
|
747
|
+
Parameters.name
|
|
748
|
+
],
|
|
749
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
750
|
+
mediaType: "json",
|
|
751
|
+
serializer
|
|
752
|
+
};
|
|
753
|
+
const exportDataOperationSpec = {
|
|
754
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/export",
|
|
755
|
+
httpMethod: "POST",
|
|
756
|
+
responses: {
|
|
757
|
+
200: {},
|
|
758
|
+
201: {},
|
|
759
|
+
202: {},
|
|
760
|
+
204: {},
|
|
761
|
+
default: {
|
|
762
|
+
bodyMapper: Mappers.ErrorResponse
|
|
763
|
+
}
|
|
764
|
+
},
|
|
765
|
+
requestBody: Parameters.parameters6,
|
|
766
|
+
queryParameters: [Parameters.apiVersion],
|
|
767
|
+
urlParameters: [
|
|
768
|
+
Parameters.$host,
|
|
769
|
+
Parameters.subscriptionId,
|
|
770
|
+
Parameters.resourceGroupName,
|
|
771
|
+
Parameters.name
|
|
772
|
+
],
|
|
773
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
774
|
+
mediaType: "json",
|
|
775
|
+
serializer
|
|
776
|
+
};
|
|
777
|
+
const listUpgradeNotificationsNextOperationSpec = {
|
|
778
|
+
path: "{nextLink}",
|
|
779
|
+
httpMethod: "GET",
|
|
780
|
+
responses: {
|
|
781
|
+
200: {
|
|
782
|
+
bodyMapper: Mappers.NotificationListResponse
|
|
783
|
+
},
|
|
784
|
+
default: {
|
|
785
|
+
bodyMapper: Mappers.ErrorResponse
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
queryParameters: [Parameters.apiVersion, Parameters.history],
|
|
789
|
+
urlParameters: [
|
|
790
|
+
Parameters.$host,
|
|
791
|
+
Parameters.nextLink,
|
|
792
|
+
Parameters.subscriptionId,
|
|
793
|
+
Parameters.resourceGroupName,
|
|
794
|
+
Parameters.name
|
|
795
|
+
],
|
|
796
|
+
headerParameters: [Parameters.accept],
|
|
797
|
+
serializer
|
|
798
|
+
};
|
|
799
|
+
const listByResourceGroupNextOperationSpec = {
|
|
800
|
+
path: "{nextLink}",
|
|
801
|
+
httpMethod: "GET",
|
|
802
|
+
responses: {
|
|
803
|
+
200: {
|
|
804
|
+
bodyMapper: Mappers.RedisListResult
|
|
805
|
+
},
|
|
806
|
+
default: {
|
|
807
|
+
bodyMapper: Mappers.ErrorResponse
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
queryParameters: [Parameters.apiVersion],
|
|
811
|
+
urlParameters: [
|
|
812
|
+
Parameters.$host,
|
|
813
|
+
Parameters.nextLink,
|
|
814
|
+
Parameters.subscriptionId,
|
|
815
|
+
Parameters.resourceGroupName
|
|
816
|
+
],
|
|
817
|
+
headerParameters: [Parameters.accept],
|
|
818
|
+
serializer
|
|
819
|
+
};
|
|
820
|
+
const listBySubscriptionNextOperationSpec = {
|
|
821
|
+
path: "{nextLink}",
|
|
822
|
+
httpMethod: "GET",
|
|
823
|
+
responses: {
|
|
824
|
+
200: {
|
|
825
|
+
bodyMapper: Mappers.RedisListResult
|
|
826
|
+
},
|
|
827
|
+
default: {
|
|
828
|
+
bodyMapper: Mappers.ErrorResponse
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
queryParameters: [Parameters.apiVersion],
|
|
832
|
+
urlParameters: [
|
|
833
|
+
Parameters.$host,
|
|
834
|
+
Parameters.nextLink,
|
|
835
|
+
Parameters.subscriptionId
|
|
836
|
+
],
|
|
837
|
+
headerParameters: [Parameters.accept],
|
|
838
|
+
serializer
|
|
839
|
+
};
|
|
840
|
+
//# sourceMappingURL=redis.js.map
|