@azure/arm-rediscache 8.0.0 → 8.1.0
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 +21 -10
- package/LICENSE +1 -1
- package/dist/index.js +1195 -1218
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/accessPolicyAssignmentCreateUpdateSample.js +3 -3
- package/dist-esm/samples-dev/accessPolicyAssignmentCreateUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/accessPolicyAssignmentDeleteSample.js +1 -1
- package/dist-esm/samples-dev/accessPolicyAssignmentGetSample.js +1 -1
- package/dist-esm/samples-dev/accessPolicyAssignmentListSample.js +5 -10
- package/dist-esm/samples-dev/accessPolicyAssignmentListSample.js.map +1 -1
- package/dist-esm/samples-dev/accessPolicyCreateUpdateSample.js +2 -2
- package/dist-esm/samples-dev/accessPolicyCreateUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/accessPolicyDeleteSample.js +1 -1
- package/dist-esm/samples-dev/accessPolicyGetSample.js +1 -1
- package/dist-esm/samples-dev/accessPolicyListSample.js +5 -10
- package/dist-esm/samples-dev/accessPolicyListSample.js.map +1 -1
- package/dist-esm/samples-dev/asyncOperationStatusGetSample.js +1 -1
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +3 -3
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/firewallRulesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/firewallRulesGetSample.js +1 -1
- package/dist-esm/samples-dev/firewallRulesListSample.js +5 -10
- package/dist-esm/samples-dev/firewallRulesListSample.js.map +1 -1
- package/dist-esm/samples-dev/linkedServerCreateSample.js +3 -3
- package/dist-esm/samples-dev/linkedServerCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/linkedServerDeleteSample.js +1 -1
- package/dist-esm/samples-dev/linkedServerGetSample.js +1 -1
- package/dist-esm/samples-dev/linkedServerListSample.js +5 -10
- package/dist-esm/samples-dev/linkedServerListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +5 -10
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/patchSchedulesCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/patchSchedulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/patchSchedulesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/patchSchedulesGetSample.js +1 -1
- package/dist-esm/samples-dev/patchSchedulesListByRedisResourceSample.js +5 -10
- package/dist-esm/samples-dev/patchSchedulesListByRedisResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +5 -10
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +4 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByRedisCacheSample.js +5 -10
- package/dist-esm/samples-dev/privateLinkResourcesListByRedisCacheSample.js.map +1 -1
- package/dist-esm/samples-dev/redisCheckNameAvailabilitySample.js +3 -3
- package/dist-esm/samples-dev/redisCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/redisCreateSample.js +7 -7
- package/dist-esm/samples-dev/redisCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/redisDeleteSample.js +1 -1
- package/dist-esm/samples-dev/redisExportDataSample.js +3 -3
- package/dist-esm/samples-dev/redisExportDataSample.js.map +1 -1
- package/dist-esm/samples-dev/redisFlushCacheSample.js +1 -1
- package/dist-esm/samples-dev/redisForceRebootSample.js +3 -3
- package/dist-esm/samples-dev/redisForceRebootSample.js.map +1 -1
- package/dist-esm/samples-dev/redisGetSample.js +1 -1
- package/dist-esm/samples-dev/redisImportDataSample.js +3 -3
- package/dist-esm/samples-dev/redisImportDataSample.js.map +1 -1
- package/dist-esm/samples-dev/redisListByResourceGroupSample.js +5 -10
- package/dist-esm/samples-dev/redisListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/redisListBySubscriptionSample.js +5 -10
- package/dist-esm/samples-dev/redisListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/redisListKeysSample.js +1 -1
- package/dist-esm/samples-dev/redisListUpgradeNotificationsSample.js +5 -10
- package/dist-esm/samples-dev/redisListUpgradeNotificationsSample.js.map +1 -1
- package/dist-esm/samples-dev/redisRegenerateKeySample.js +2 -2
- package/dist-esm/samples-dev/redisRegenerateKeySample.js.map +1 -1
- package/dist-esm/samples-dev/redisUpdateSample.js +3 -3
- package/dist-esm/samples-dev/redisUpdateSample.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +15 -5
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +700 -667
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +75 -75
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/accessPolicy.d.ts.map +1 -1
- package/dist-esm/src/operations/accessPolicy.js +41 -46
- package/dist-esm/src/operations/accessPolicy.js.map +1 -1
- package/dist-esm/src/operations/accessPolicyAssignment.d.ts.map +1 -1
- package/dist-esm/src/operations/accessPolicyAssignment.js +42 -47
- package/dist-esm/src/operations/accessPolicyAssignment.js.map +1 -1
- package/dist-esm/src/operations/asyncOperationStatus.js +5 -5
- package/dist-esm/src/operations/asyncOperationStatus.js.map +1 -1
- package/dist-esm/src/operations/firewallRules.js +29 -34
- package/dist-esm/src/operations/firewallRules.js.map +1 -1
- package/dist-esm/src/operations/linkedServer.d.ts.map +1 -1
- package/dist-esm/src/operations/linkedServer.js +40 -45
- package/dist-esm/src/operations/linkedServer.js.map +1 -1
- package/dist-esm/src/operations/operations.js +12 -17
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/patchSchedules.js +29 -34
- package/dist-esm/src/operations/patchSchedules.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +32 -37
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +9 -14
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/redis.d.ts.map +1 -1
- package/dist-esm/src/operations/redis.js +125 -140
- package/dist-esm/src/operations/redis.js.map +1 -1
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/src/redisManagementClient.d.ts.map +1 -1
- package/dist-esm/src/redisManagementClient.js +9 -9
- package/dist-esm/src/redisManagementClient.js.map +1 -1
- package/dist-esm/test/redis_examples.d.ts.map +1 -1
- package/dist-esm/test/redis_examples.js +47 -51
- package/dist-esm/test/redis_examples.js.map +1 -1
- package/package.json +19 -25
- package/review/arm-rediscache.api.md +5 -0
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +47 -28
- package/src/models/mappers.ts +819 -783
- package/src/models/parameters.ts +79 -77
- package/src/operations/accessPolicy.ts +75 -81
- package/src/operations/accessPolicyAssignment.ts +76 -82
- package/src/operations/asyncOperationStatus.ts +9 -10
- package/src/operations/firewallRules.ts +47 -51
- package/src/operations/linkedServer.ts +73 -79
- package/src/operations/operations.ts +16 -16
- package/src/operations/patchSchedules.ts +49 -53
- package/src/operations/privateEndpointConnections.ts +57 -61
- package/src/operations/privateLinkResources.ts +17 -18
- package/src/operations/redis.ts +228 -247
- package/src/operationsInterfaces/accessPolicy.ts +7 -7
- package/src/operationsInterfaces/accessPolicyAssignment.ts +7 -7
- package/src/operationsInterfaces/asyncOperationStatus.ts +2 -2
- package/src/operationsInterfaces/firewallRules.ts +5 -5
- package/src/operationsInterfaces/linkedServer.ts +7 -7
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/patchSchedules.ts +5 -5
- package/src/operationsInterfaces/privateEndpointConnections.ts +6 -6
- package/src/operationsInterfaces/privateLinkResources.ts +2 -2
- package/src/operationsInterfaces/redis.ts +21 -21
- package/src/pagingHelper.ts +1 -1
- package/src/redisManagementClient.ts +18 -17
- package/types/arm-rediscache.d.ts +15 -5
- package/types/tsdoc-metadata.json +1 -1
- package/rollup.config.js +0 -122
|
@@ -16,7 +16,7 @@ import { RedisManagementClient } from "../redisManagementClient";
|
|
|
16
16
|
import {
|
|
17
17
|
SimplePollerLike,
|
|
18
18
|
OperationState,
|
|
19
|
-
createHttpPoller
|
|
19
|
+
createHttpPoller,
|
|
20
20
|
} from "@azure/core-lro";
|
|
21
21
|
import { createLroSpec } from "../lroImpl";
|
|
22
22
|
import {
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
AccessPolicyAssignmentDeleteOptionalParams,
|
|
30
30
|
AccessPolicyAssignmentGetOptionalParams,
|
|
31
31
|
AccessPolicyAssignmentGetResponse,
|
|
32
|
-
AccessPolicyAssignmentListNextResponse
|
|
32
|
+
AccessPolicyAssignmentListNextResponse,
|
|
33
33
|
} from "../models";
|
|
34
34
|
|
|
35
35
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -54,7 +54,7 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
54
54
|
public list(
|
|
55
55
|
resourceGroupName: string,
|
|
56
56
|
cacheName: string,
|
|
57
|
-
options?: AccessPolicyAssignmentListOptionalParams
|
|
57
|
+
options?: AccessPolicyAssignmentListOptionalParams,
|
|
58
58
|
): PagedAsyncIterableIterator<RedisCacheAccessPolicyAssignment> {
|
|
59
59
|
const iter = this.listPagingAll(resourceGroupName, cacheName, options);
|
|
60
60
|
return {
|
|
@@ -72,9 +72,9 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
72
72
|
resourceGroupName,
|
|
73
73
|
cacheName,
|
|
74
74
|
options,
|
|
75
|
-
settings
|
|
75
|
+
settings,
|
|
76
76
|
);
|
|
77
|
-
}
|
|
77
|
+
},
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -82,7 +82,7 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
82
82
|
resourceGroupName: string,
|
|
83
83
|
cacheName: string,
|
|
84
84
|
options?: AccessPolicyAssignmentListOptionalParams,
|
|
85
|
-
settings?: PageSettings
|
|
85
|
+
settings?: PageSettings,
|
|
86
86
|
): AsyncIterableIterator<RedisCacheAccessPolicyAssignment[]> {
|
|
87
87
|
let result: AccessPolicyAssignmentListResponse;
|
|
88
88
|
let continuationToken = settings?.continuationToken;
|
|
@@ -98,7 +98,7 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
98
98
|
resourceGroupName,
|
|
99
99
|
cacheName,
|
|
100
100
|
continuationToken,
|
|
101
|
-
options
|
|
101
|
+
options,
|
|
102
102
|
);
|
|
103
103
|
continuationToken = result.nextLink;
|
|
104
104
|
let page = result.value || [];
|
|
@@ -110,12 +110,12 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
110
110
|
private async *listPagingAll(
|
|
111
111
|
resourceGroupName: string,
|
|
112
112
|
cacheName: string,
|
|
113
|
-
options?: AccessPolicyAssignmentListOptionalParams
|
|
113
|
+
options?: AccessPolicyAssignmentListOptionalParams,
|
|
114
114
|
): AsyncIterableIterator<RedisCacheAccessPolicyAssignment> {
|
|
115
115
|
for await (const page of this.listPagingPage(
|
|
116
116
|
resourceGroupName,
|
|
117
117
|
cacheName,
|
|
118
|
-
options
|
|
118
|
+
options,
|
|
119
119
|
)) {
|
|
120
120
|
yield* page;
|
|
121
121
|
}
|
|
@@ -134,7 +134,7 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
134
134
|
cacheName: string,
|
|
135
135
|
accessPolicyAssignmentName: string,
|
|
136
136
|
parameters: RedisCacheAccessPolicyAssignment,
|
|
137
|
-
options?: AccessPolicyAssignmentCreateUpdateOptionalParams
|
|
137
|
+
options?: AccessPolicyAssignmentCreateUpdateOptionalParams,
|
|
138
138
|
): Promise<
|
|
139
139
|
SimplePollerLike<
|
|
140
140
|
OperationState<AccessPolicyAssignmentCreateUpdateResponse>,
|
|
@@ -143,21 +143,20 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
143
143
|
> {
|
|
144
144
|
const directSendOperation = async (
|
|
145
145
|
args: coreClient.OperationArguments,
|
|
146
|
-
spec: coreClient.OperationSpec
|
|
146
|
+
spec: coreClient.OperationSpec,
|
|
147
147
|
): Promise<AccessPolicyAssignmentCreateUpdateResponse> => {
|
|
148
148
|
return this.client.sendOperationRequest(args, spec);
|
|
149
149
|
};
|
|
150
150
|
const sendOperationFn = async (
|
|
151
151
|
args: coreClient.OperationArguments,
|
|
152
|
-
spec: coreClient.OperationSpec
|
|
152
|
+
spec: coreClient.OperationSpec,
|
|
153
153
|
) => {
|
|
154
|
-
let currentRawResponse:
|
|
155
|
-
|
|
156
|
-
| undefined = undefined;
|
|
154
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
155
|
+
undefined;
|
|
157
156
|
const providedCallback = args.options?.onResponse;
|
|
158
157
|
const callback: coreClient.RawResponseCallback = (
|
|
159
158
|
rawResponse: coreClient.FullOperationResponse,
|
|
160
|
-
flatResponse: unknown
|
|
159
|
+
flatResponse: unknown,
|
|
161
160
|
) => {
|
|
162
161
|
currentRawResponse = rawResponse;
|
|
163
162
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -166,8 +165,8 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
166
165
|
...args,
|
|
167
166
|
options: {
|
|
168
167
|
...args.options,
|
|
169
|
-
onResponse: callback
|
|
170
|
-
}
|
|
168
|
+
onResponse: callback,
|
|
169
|
+
},
|
|
171
170
|
};
|
|
172
171
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
173
172
|
return {
|
|
@@ -175,8 +174,8 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
175
174
|
rawResponse: {
|
|
176
175
|
statusCode: currentRawResponse!.status,
|
|
177
176
|
body: currentRawResponse!.parsedBody,
|
|
178
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
179
|
-
}
|
|
177
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
178
|
+
},
|
|
180
179
|
};
|
|
181
180
|
};
|
|
182
181
|
|
|
@@ -187,16 +186,16 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
187
186
|
cacheName,
|
|
188
187
|
accessPolicyAssignmentName,
|
|
189
188
|
parameters,
|
|
190
|
-
options
|
|
189
|
+
options,
|
|
191
190
|
},
|
|
192
|
-
spec: createUpdateOperationSpec
|
|
191
|
+
spec: createUpdateOperationSpec,
|
|
193
192
|
});
|
|
194
193
|
const poller = await createHttpPoller<
|
|
195
194
|
AccessPolicyAssignmentCreateUpdateResponse,
|
|
196
195
|
OperationState<AccessPolicyAssignmentCreateUpdateResponse>
|
|
197
196
|
>(lro, {
|
|
198
197
|
restoreFrom: options?.resumeFrom,
|
|
199
|
-
intervalInMs: options?.updateIntervalInMs
|
|
198
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
200
199
|
});
|
|
201
200
|
await poller.poll();
|
|
202
201
|
return poller;
|
|
@@ -215,14 +214,14 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
215
214
|
cacheName: string,
|
|
216
215
|
accessPolicyAssignmentName: string,
|
|
217
216
|
parameters: RedisCacheAccessPolicyAssignment,
|
|
218
|
-
options?: AccessPolicyAssignmentCreateUpdateOptionalParams
|
|
217
|
+
options?: AccessPolicyAssignmentCreateUpdateOptionalParams,
|
|
219
218
|
): Promise<AccessPolicyAssignmentCreateUpdateResponse> {
|
|
220
219
|
const poller = await this.beginCreateUpdate(
|
|
221
220
|
resourceGroupName,
|
|
222
221
|
cacheName,
|
|
223
222
|
accessPolicyAssignmentName,
|
|
224
223
|
parameters,
|
|
225
|
-
options
|
|
224
|
+
options,
|
|
226
225
|
);
|
|
227
226
|
return poller.pollUntilDone();
|
|
228
227
|
}
|
|
@@ -238,25 +237,24 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
238
237
|
resourceGroupName: string,
|
|
239
238
|
cacheName: string,
|
|
240
239
|
accessPolicyAssignmentName: string,
|
|
241
|
-
options?: AccessPolicyAssignmentDeleteOptionalParams
|
|
240
|
+
options?: AccessPolicyAssignmentDeleteOptionalParams,
|
|
242
241
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
243
242
|
const directSendOperation = async (
|
|
244
243
|
args: coreClient.OperationArguments,
|
|
245
|
-
spec: coreClient.OperationSpec
|
|
244
|
+
spec: coreClient.OperationSpec,
|
|
246
245
|
): Promise<void> => {
|
|
247
246
|
return this.client.sendOperationRequest(args, spec);
|
|
248
247
|
};
|
|
249
248
|
const sendOperationFn = async (
|
|
250
249
|
args: coreClient.OperationArguments,
|
|
251
|
-
spec: coreClient.OperationSpec
|
|
250
|
+
spec: coreClient.OperationSpec,
|
|
252
251
|
) => {
|
|
253
|
-
let currentRawResponse:
|
|
254
|
-
|
|
255
|
-
| undefined = undefined;
|
|
252
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
253
|
+
undefined;
|
|
256
254
|
const providedCallback = args.options?.onResponse;
|
|
257
255
|
const callback: coreClient.RawResponseCallback = (
|
|
258
256
|
rawResponse: coreClient.FullOperationResponse,
|
|
259
|
-
flatResponse: unknown
|
|
257
|
+
flatResponse: unknown,
|
|
260
258
|
) => {
|
|
261
259
|
currentRawResponse = rawResponse;
|
|
262
260
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -265,8 +263,8 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
265
263
|
...args,
|
|
266
264
|
options: {
|
|
267
265
|
...args.options,
|
|
268
|
-
onResponse: callback
|
|
269
|
-
}
|
|
266
|
+
onResponse: callback,
|
|
267
|
+
},
|
|
270
268
|
};
|
|
271
269
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
272
270
|
return {
|
|
@@ -274,8 +272,8 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
274
272
|
rawResponse: {
|
|
275
273
|
statusCode: currentRawResponse!.status,
|
|
276
274
|
body: currentRawResponse!.parsedBody,
|
|
277
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
278
|
-
}
|
|
275
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
276
|
+
},
|
|
279
277
|
};
|
|
280
278
|
};
|
|
281
279
|
|
|
@@ -285,14 +283,14 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
285
283
|
resourceGroupName,
|
|
286
284
|
cacheName,
|
|
287
285
|
accessPolicyAssignmentName,
|
|
288
|
-
options
|
|
286
|
+
options,
|
|
289
287
|
},
|
|
290
|
-
spec: deleteOperationSpec
|
|
288
|
+
spec: deleteOperationSpec,
|
|
291
289
|
});
|
|
292
290
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
293
291
|
restoreFrom: options?.resumeFrom,
|
|
294
292
|
intervalInMs: options?.updateIntervalInMs,
|
|
295
|
-
resourceLocationConfig: "location"
|
|
293
|
+
resourceLocationConfig: "location",
|
|
296
294
|
});
|
|
297
295
|
await poller.poll();
|
|
298
296
|
return poller;
|
|
@@ -309,13 +307,13 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
309
307
|
resourceGroupName: string,
|
|
310
308
|
cacheName: string,
|
|
311
309
|
accessPolicyAssignmentName: string,
|
|
312
|
-
options?: AccessPolicyAssignmentDeleteOptionalParams
|
|
310
|
+
options?: AccessPolicyAssignmentDeleteOptionalParams,
|
|
313
311
|
): Promise<void> {
|
|
314
312
|
const poller = await this.beginDelete(
|
|
315
313
|
resourceGroupName,
|
|
316
314
|
cacheName,
|
|
317
315
|
accessPolicyAssignmentName,
|
|
318
|
-
options
|
|
316
|
+
options,
|
|
319
317
|
);
|
|
320
318
|
return poller.pollUntilDone();
|
|
321
319
|
}
|
|
@@ -331,11 +329,11 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
331
329
|
resourceGroupName: string,
|
|
332
330
|
cacheName: string,
|
|
333
331
|
accessPolicyAssignmentName: string,
|
|
334
|
-
options?: AccessPolicyAssignmentGetOptionalParams
|
|
332
|
+
options?: AccessPolicyAssignmentGetOptionalParams,
|
|
335
333
|
): Promise<AccessPolicyAssignmentGetResponse> {
|
|
336
334
|
return this.client.sendOperationRequest(
|
|
337
335
|
{ resourceGroupName, cacheName, accessPolicyAssignmentName, options },
|
|
338
|
-
getOperationSpec
|
|
336
|
+
getOperationSpec,
|
|
339
337
|
);
|
|
340
338
|
}
|
|
341
339
|
|
|
@@ -348,11 +346,11 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
348
346
|
private _list(
|
|
349
347
|
resourceGroupName: string,
|
|
350
348
|
cacheName: string,
|
|
351
|
-
options?: AccessPolicyAssignmentListOptionalParams
|
|
349
|
+
options?: AccessPolicyAssignmentListOptionalParams,
|
|
352
350
|
): Promise<AccessPolicyAssignmentListResponse> {
|
|
353
351
|
return this.client.sendOperationRequest(
|
|
354
352
|
{ resourceGroupName, cacheName, options },
|
|
355
|
-
listOperationSpec
|
|
353
|
+
listOperationSpec,
|
|
356
354
|
);
|
|
357
355
|
}
|
|
358
356
|
|
|
@@ -367,11 +365,11 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
367
365
|
resourceGroupName: string,
|
|
368
366
|
cacheName: string,
|
|
369
367
|
nextLink: string,
|
|
370
|
-
options?: AccessPolicyAssignmentListNextOptionalParams
|
|
368
|
+
options?: AccessPolicyAssignmentListNextOptionalParams,
|
|
371
369
|
): Promise<AccessPolicyAssignmentListNextResponse> {
|
|
372
370
|
return this.client.sendOperationRequest(
|
|
373
371
|
{ resourceGroupName, cacheName, nextLink, options },
|
|
374
|
-
listNextOperationSpec
|
|
372
|
+
listNextOperationSpec,
|
|
375
373
|
);
|
|
376
374
|
}
|
|
377
375
|
}
|
|
@@ -379,25 +377,24 @@ export class AccessPolicyAssignmentImpl implements AccessPolicyAssignment {
|
|
|
379
377
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
380
378
|
|
|
381
379
|
const createUpdateOperationSpec: coreClient.OperationSpec = {
|
|
382
|
-
path:
|
|
383
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicyAssignments/{accessPolicyAssignmentName}",
|
|
380
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicyAssignments/{accessPolicyAssignmentName}",
|
|
384
381
|
httpMethod: "PUT",
|
|
385
382
|
responses: {
|
|
386
383
|
200: {
|
|
387
|
-
bodyMapper: Mappers.RedisCacheAccessPolicyAssignment
|
|
384
|
+
bodyMapper: Mappers.RedisCacheAccessPolicyAssignment,
|
|
388
385
|
},
|
|
389
386
|
201: {
|
|
390
|
-
bodyMapper: Mappers.RedisCacheAccessPolicyAssignment
|
|
387
|
+
bodyMapper: Mappers.RedisCacheAccessPolicyAssignment,
|
|
391
388
|
},
|
|
392
389
|
202: {
|
|
393
|
-
bodyMapper: Mappers.RedisCacheAccessPolicyAssignment
|
|
390
|
+
bodyMapper: Mappers.RedisCacheAccessPolicyAssignment,
|
|
394
391
|
},
|
|
395
392
|
204: {
|
|
396
|
-
bodyMapper: Mappers.RedisCacheAccessPolicyAssignment
|
|
393
|
+
bodyMapper: Mappers.RedisCacheAccessPolicyAssignment,
|
|
397
394
|
},
|
|
398
395
|
default: {
|
|
399
|
-
bodyMapper: Mappers.ErrorResponse
|
|
400
|
-
}
|
|
396
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
397
|
+
},
|
|
401
398
|
},
|
|
402
399
|
requestBody: Parameters.parameters11,
|
|
403
400
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -406,15 +403,14 @@ const createUpdateOperationSpec: coreClient.OperationSpec = {
|
|
|
406
403
|
Parameters.subscriptionId,
|
|
407
404
|
Parameters.resourceGroupName,
|
|
408
405
|
Parameters.cacheName,
|
|
409
|
-
Parameters.accessPolicyAssignmentName
|
|
406
|
+
Parameters.accessPolicyAssignmentName,
|
|
410
407
|
],
|
|
411
408
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
412
409
|
mediaType: "json",
|
|
413
|
-
serializer
|
|
410
|
+
serializer,
|
|
414
411
|
};
|
|
415
412
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
416
|
-
path:
|
|
417
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicyAssignments/{accessPolicyAssignmentName}",
|
|
413
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicyAssignments/{accessPolicyAssignmentName}",
|
|
418
414
|
httpMethod: "DELETE",
|
|
419
415
|
responses: {
|
|
420
416
|
200: {},
|
|
@@ -422,8 +418,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
422
418
|
202: {},
|
|
423
419
|
204: {},
|
|
424
420
|
default: {
|
|
425
|
-
bodyMapper: Mappers.ErrorResponse
|
|
426
|
-
}
|
|
421
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
422
|
+
},
|
|
427
423
|
},
|
|
428
424
|
queryParameters: [Parameters.apiVersion],
|
|
429
425
|
urlParameters: [
|
|
@@ -431,22 +427,21 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
431
427
|
Parameters.subscriptionId,
|
|
432
428
|
Parameters.resourceGroupName,
|
|
433
429
|
Parameters.cacheName,
|
|
434
|
-
Parameters.accessPolicyAssignmentName
|
|
430
|
+
Parameters.accessPolicyAssignmentName,
|
|
435
431
|
],
|
|
436
432
|
headerParameters: [Parameters.accept],
|
|
437
|
-
serializer
|
|
433
|
+
serializer,
|
|
438
434
|
};
|
|
439
435
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
440
|
-
path:
|
|
441
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicyAssignments/{accessPolicyAssignmentName}",
|
|
436
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicyAssignments/{accessPolicyAssignmentName}",
|
|
442
437
|
httpMethod: "GET",
|
|
443
438
|
responses: {
|
|
444
439
|
200: {
|
|
445
|
-
bodyMapper: Mappers.RedisCacheAccessPolicyAssignment
|
|
440
|
+
bodyMapper: Mappers.RedisCacheAccessPolicyAssignment,
|
|
446
441
|
},
|
|
447
442
|
default: {
|
|
448
|
-
bodyMapper: Mappers.ErrorResponse
|
|
449
|
-
}
|
|
443
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
444
|
+
},
|
|
450
445
|
},
|
|
451
446
|
queryParameters: [Parameters.apiVersion],
|
|
452
447
|
urlParameters: [
|
|
@@ -454,51 +449,50 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
454
449
|
Parameters.subscriptionId,
|
|
455
450
|
Parameters.resourceGroupName,
|
|
456
451
|
Parameters.cacheName,
|
|
457
|
-
Parameters.accessPolicyAssignmentName
|
|
452
|
+
Parameters.accessPolicyAssignmentName,
|
|
458
453
|
],
|
|
459
454
|
headerParameters: [Parameters.accept],
|
|
460
|
-
serializer
|
|
455
|
+
serializer,
|
|
461
456
|
};
|
|
462
457
|
const listOperationSpec: coreClient.OperationSpec = {
|
|
463
|
-
path:
|
|
464
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicyAssignments",
|
|
458
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicyAssignments",
|
|
465
459
|
httpMethod: "GET",
|
|
466
460
|
responses: {
|
|
467
461
|
200: {
|
|
468
|
-
bodyMapper: Mappers.RedisCacheAccessPolicyAssignmentList
|
|
462
|
+
bodyMapper: Mappers.RedisCacheAccessPolicyAssignmentList,
|
|
469
463
|
},
|
|
470
464
|
default: {
|
|
471
|
-
bodyMapper: Mappers.ErrorResponse
|
|
472
|
-
}
|
|
465
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
466
|
+
},
|
|
473
467
|
},
|
|
474
468
|
queryParameters: [Parameters.apiVersion],
|
|
475
469
|
urlParameters: [
|
|
476
470
|
Parameters.$host,
|
|
477
471
|
Parameters.subscriptionId,
|
|
478
472
|
Parameters.resourceGroupName,
|
|
479
|
-
Parameters.cacheName
|
|
473
|
+
Parameters.cacheName,
|
|
480
474
|
],
|
|
481
475
|
headerParameters: [Parameters.accept],
|
|
482
|
-
serializer
|
|
476
|
+
serializer,
|
|
483
477
|
};
|
|
484
478
|
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
485
479
|
path: "{nextLink}",
|
|
486
480
|
httpMethod: "GET",
|
|
487
481
|
responses: {
|
|
488
482
|
200: {
|
|
489
|
-
bodyMapper: Mappers.RedisCacheAccessPolicyAssignmentList
|
|
483
|
+
bodyMapper: Mappers.RedisCacheAccessPolicyAssignmentList,
|
|
490
484
|
},
|
|
491
485
|
default: {
|
|
492
|
-
bodyMapper: Mappers.ErrorResponse
|
|
493
|
-
}
|
|
486
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
487
|
+
},
|
|
494
488
|
},
|
|
495
489
|
urlParameters: [
|
|
496
490
|
Parameters.$host,
|
|
497
491
|
Parameters.nextLink,
|
|
498
492
|
Parameters.subscriptionId,
|
|
499
493
|
Parameters.resourceGroupName,
|
|
500
|
-
Parameters.cacheName
|
|
494
|
+
Parameters.cacheName,
|
|
501
495
|
],
|
|
502
496
|
headerParameters: [Parameters.accept],
|
|
503
|
-
serializer
|
|
497
|
+
serializer,
|
|
504
498
|
};
|
|
@@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters";
|
|
|
13
13
|
import { RedisManagementClient } from "../redisManagementClient";
|
|
14
14
|
import {
|
|
15
15
|
AsyncOperationStatusGetOptionalParams,
|
|
16
|
-
AsyncOperationStatusGetResponse
|
|
16
|
+
AsyncOperationStatusGetResponse,
|
|
17
17
|
} from "../models";
|
|
18
18
|
|
|
19
19
|
/** Class containing AsyncOperationStatus operations. */
|
|
@@ -37,11 +37,11 @@ export class AsyncOperationStatusImpl implements AsyncOperationStatus {
|
|
|
37
37
|
get(
|
|
38
38
|
location: string,
|
|
39
39
|
operationId: string,
|
|
40
|
-
options?: AsyncOperationStatusGetOptionalParams
|
|
40
|
+
options?: AsyncOperationStatusGetOptionalParams,
|
|
41
41
|
): Promise<AsyncOperationStatusGetResponse> {
|
|
42
42
|
return this.client.sendOperationRequest(
|
|
43
43
|
{ location, operationId, options },
|
|
44
|
-
getOperationSpec
|
|
44
|
+
getOperationSpec,
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -49,24 +49,23 @@ export class AsyncOperationStatusImpl implements AsyncOperationStatus {
|
|
|
49
49
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
50
50
|
|
|
51
51
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
52
|
-
path:
|
|
53
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/asyncOperations/{operationId}",
|
|
52
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/asyncOperations/{operationId}",
|
|
54
53
|
httpMethod: "GET",
|
|
55
54
|
responses: {
|
|
56
55
|
200: {
|
|
57
|
-
bodyMapper: Mappers.OperationStatus
|
|
56
|
+
bodyMapper: Mappers.OperationStatus,
|
|
58
57
|
},
|
|
59
58
|
default: {
|
|
60
|
-
bodyMapper: Mappers.ErrorResponse
|
|
61
|
-
}
|
|
59
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
60
|
+
},
|
|
62
61
|
},
|
|
63
62
|
queryParameters: [Parameters.apiVersion],
|
|
64
63
|
urlParameters: [
|
|
65
64
|
Parameters.$host,
|
|
66
65
|
Parameters.subscriptionId,
|
|
67
66
|
Parameters.location,
|
|
68
|
-
Parameters.operationId
|
|
67
|
+
Parameters.operationId,
|
|
69
68
|
],
|
|
70
69
|
headerParameters: [Parameters.accept],
|
|
71
|
-
serializer
|
|
70
|
+
serializer,
|
|
72
71
|
};
|