@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
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
PatchSchedulesDeleteOptionalParams,
|
|
25
25
|
PatchSchedulesGetOptionalParams,
|
|
26
26
|
PatchSchedulesGetResponse,
|
|
27
|
-
PatchSchedulesListByRedisResourceNextResponse
|
|
27
|
+
PatchSchedulesListByRedisResourceNextResponse,
|
|
28
28
|
} from "../models";
|
|
29
29
|
|
|
30
30
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -49,12 +49,12 @@ export class PatchSchedulesImpl implements PatchSchedules {
|
|
|
49
49
|
public listByRedisResource(
|
|
50
50
|
resourceGroupName: string,
|
|
51
51
|
cacheName: string,
|
|
52
|
-
options?: PatchSchedulesListByRedisResourceOptionalParams
|
|
52
|
+
options?: PatchSchedulesListByRedisResourceOptionalParams,
|
|
53
53
|
): PagedAsyncIterableIterator<RedisPatchSchedule> {
|
|
54
54
|
const iter = this.listByRedisResourcePagingAll(
|
|
55
55
|
resourceGroupName,
|
|
56
56
|
cacheName,
|
|
57
|
-
options
|
|
57
|
+
options,
|
|
58
58
|
);
|
|
59
59
|
return {
|
|
60
60
|
next() {
|
|
@@ -71,9 +71,9 @@ export class PatchSchedulesImpl implements PatchSchedules {
|
|
|
71
71
|
resourceGroupName,
|
|
72
72
|
cacheName,
|
|
73
73
|
options,
|
|
74
|
-
settings
|
|
74
|
+
settings,
|
|
75
75
|
);
|
|
76
|
-
}
|
|
76
|
+
},
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -81,7 +81,7 @@ export class PatchSchedulesImpl implements PatchSchedules {
|
|
|
81
81
|
resourceGroupName: string,
|
|
82
82
|
cacheName: string,
|
|
83
83
|
options?: PatchSchedulesListByRedisResourceOptionalParams,
|
|
84
|
-
settings?: PageSettings
|
|
84
|
+
settings?: PageSettings,
|
|
85
85
|
): AsyncIterableIterator<RedisPatchSchedule[]> {
|
|
86
86
|
let result: PatchSchedulesListByRedisResourceResponse;
|
|
87
87
|
let continuationToken = settings?.continuationToken;
|
|
@@ -89,7 +89,7 @@ export class PatchSchedulesImpl implements PatchSchedules {
|
|
|
89
89
|
result = await this._listByRedisResource(
|
|
90
90
|
resourceGroupName,
|
|
91
91
|
cacheName,
|
|
92
|
-
options
|
|
92
|
+
options,
|
|
93
93
|
);
|
|
94
94
|
let page = result.value || [];
|
|
95
95
|
continuationToken = result.nextLink;
|
|
@@ -101,7 +101,7 @@ export class PatchSchedulesImpl implements PatchSchedules {
|
|
|
101
101
|
resourceGroupName,
|
|
102
102
|
cacheName,
|
|
103
103
|
continuationToken,
|
|
104
|
-
options
|
|
104
|
+
options,
|
|
105
105
|
);
|
|
106
106
|
continuationToken = result.nextLink;
|
|
107
107
|
let page = result.value || [];
|
|
@@ -113,12 +113,12 @@ export class PatchSchedulesImpl implements PatchSchedules {
|
|
|
113
113
|
private async *listByRedisResourcePagingAll(
|
|
114
114
|
resourceGroupName: string,
|
|
115
115
|
cacheName: string,
|
|
116
|
-
options?: PatchSchedulesListByRedisResourceOptionalParams
|
|
116
|
+
options?: PatchSchedulesListByRedisResourceOptionalParams,
|
|
117
117
|
): AsyncIterableIterator<RedisPatchSchedule> {
|
|
118
118
|
for await (const page of this.listByRedisResourcePagingPage(
|
|
119
119
|
resourceGroupName,
|
|
120
120
|
cacheName,
|
|
121
|
-
options
|
|
121
|
+
options,
|
|
122
122
|
)) {
|
|
123
123
|
yield* page;
|
|
124
124
|
}
|
|
@@ -133,11 +133,11 @@ export class PatchSchedulesImpl implements PatchSchedules {
|
|
|
133
133
|
private _listByRedisResource(
|
|
134
134
|
resourceGroupName: string,
|
|
135
135
|
cacheName: string,
|
|
136
|
-
options?: PatchSchedulesListByRedisResourceOptionalParams
|
|
136
|
+
options?: PatchSchedulesListByRedisResourceOptionalParams,
|
|
137
137
|
): Promise<PatchSchedulesListByRedisResourceResponse> {
|
|
138
138
|
return this.client.sendOperationRequest(
|
|
139
139
|
{ resourceGroupName, cacheName, options },
|
|
140
|
-
listByRedisResourceOperationSpec
|
|
140
|
+
listByRedisResourceOperationSpec,
|
|
141
141
|
);
|
|
142
142
|
}
|
|
143
143
|
|
|
@@ -154,11 +154,11 @@ export class PatchSchedulesImpl implements PatchSchedules {
|
|
|
154
154
|
name: string,
|
|
155
155
|
defaultParam: DefaultName,
|
|
156
156
|
parameters: RedisPatchSchedule,
|
|
157
|
-
options?: PatchSchedulesCreateOrUpdateOptionalParams
|
|
157
|
+
options?: PatchSchedulesCreateOrUpdateOptionalParams,
|
|
158
158
|
): Promise<PatchSchedulesCreateOrUpdateResponse> {
|
|
159
159
|
return this.client.sendOperationRequest(
|
|
160
160
|
{ resourceGroupName, name, defaultParam, parameters, options },
|
|
161
|
-
createOrUpdateOperationSpec
|
|
161
|
+
createOrUpdateOperationSpec,
|
|
162
162
|
);
|
|
163
163
|
}
|
|
164
164
|
|
|
@@ -173,11 +173,11 @@ export class PatchSchedulesImpl implements PatchSchedules {
|
|
|
173
173
|
resourceGroupName: string,
|
|
174
174
|
name: string,
|
|
175
175
|
defaultParam: DefaultName,
|
|
176
|
-
options?: PatchSchedulesDeleteOptionalParams
|
|
176
|
+
options?: PatchSchedulesDeleteOptionalParams,
|
|
177
177
|
): Promise<void> {
|
|
178
178
|
return this.client.sendOperationRequest(
|
|
179
179
|
{ resourceGroupName, name, defaultParam, options },
|
|
180
|
-
deleteOperationSpec
|
|
180
|
+
deleteOperationSpec,
|
|
181
181
|
);
|
|
182
182
|
}
|
|
183
183
|
|
|
@@ -192,11 +192,11 @@ export class PatchSchedulesImpl implements PatchSchedules {
|
|
|
192
192
|
resourceGroupName: string,
|
|
193
193
|
name: string,
|
|
194
194
|
defaultParam: DefaultName,
|
|
195
|
-
options?: PatchSchedulesGetOptionalParams
|
|
195
|
+
options?: PatchSchedulesGetOptionalParams,
|
|
196
196
|
): Promise<PatchSchedulesGetResponse> {
|
|
197
197
|
return this.client.sendOperationRequest(
|
|
198
198
|
{ resourceGroupName, name, defaultParam, options },
|
|
199
|
-
getOperationSpec
|
|
199
|
+
getOperationSpec,
|
|
200
200
|
);
|
|
201
201
|
}
|
|
202
202
|
|
|
@@ -211,11 +211,11 @@ export class PatchSchedulesImpl implements PatchSchedules {
|
|
|
211
211
|
resourceGroupName: string,
|
|
212
212
|
cacheName: string,
|
|
213
213
|
nextLink: string,
|
|
214
|
-
options?: PatchSchedulesListByRedisResourceNextOptionalParams
|
|
214
|
+
options?: PatchSchedulesListByRedisResourceNextOptionalParams,
|
|
215
215
|
): Promise<PatchSchedulesListByRedisResourceNextResponse> {
|
|
216
216
|
return this.client.sendOperationRequest(
|
|
217
217
|
{ resourceGroupName, cacheName, nextLink, options },
|
|
218
|
-
listByRedisResourceNextOperationSpec
|
|
218
|
+
listByRedisResourceNextOperationSpec,
|
|
219
219
|
);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
@@ -223,41 +223,39 @@ export class PatchSchedulesImpl implements PatchSchedules {
|
|
|
223
223
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
224
224
|
|
|
225
225
|
const listByRedisResourceOperationSpec: coreClient.OperationSpec = {
|
|
226
|
-
path:
|
|
227
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/patchSchedules",
|
|
226
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/patchSchedules",
|
|
228
227
|
httpMethod: "GET",
|
|
229
228
|
responses: {
|
|
230
229
|
200: {
|
|
231
|
-
bodyMapper: Mappers.RedisPatchScheduleListResult
|
|
230
|
+
bodyMapper: Mappers.RedisPatchScheduleListResult,
|
|
232
231
|
},
|
|
233
232
|
default: {
|
|
234
|
-
bodyMapper: Mappers.ErrorResponse
|
|
235
|
-
}
|
|
233
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
234
|
+
},
|
|
236
235
|
},
|
|
237
236
|
queryParameters: [Parameters.apiVersion],
|
|
238
237
|
urlParameters: [
|
|
239
238
|
Parameters.$host,
|
|
240
239
|
Parameters.subscriptionId,
|
|
241
240
|
Parameters.resourceGroupName,
|
|
242
|
-
Parameters.cacheName
|
|
241
|
+
Parameters.cacheName,
|
|
243
242
|
],
|
|
244
243
|
headerParameters: [Parameters.accept],
|
|
245
|
-
serializer
|
|
244
|
+
serializer,
|
|
246
245
|
};
|
|
247
246
|
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
248
|
-
path:
|
|
249
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/patchSchedules/{default}",
|
|
247
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/patchSchedules/{default}",
|
|
250
248
|
httpMethod: "PUT",
|
|
251
249
|
responses: {
|
|
252
250
|
200: {
|
|
253
|
-
bodyMapper: Mappers.RedisPatchSchedule
|
|
251
|
+
bodyMapper: Mappers.RedisPatchSchedule,
|
|
254
252
|
},
|
|
255
253
|
201: {
|
|
256
|
-
bodyMapper: Mappers.RedisPatchSchedule
|
|
254
|
+
bodyMapper: Mappers.RedisPatchSchedule,
|
|
257
255
|
},
|
|
258
256
|
default: {
|
|
259
|
-
bodyMapper: Mappers.ErrorResponse
|
|
260
|
-
}
|
|
257
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
258
|
+
},
|
|
261
259
|
},
|
|
262
260
|
requestBody: Parameters.parameters8,
|
|
263
261
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -266,22 +264,21 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
|
266
264
|
Parameters.subscriptionId,
|
|
267
265
|
Parameters.resourceGroupName,
|
|
268
266
|
Parameters.name,
|
|
269
|
-
Parameters.defaultParam
|
|
267
|
+
Parameters.defaultParam,
|
|
270
268
|
],
|
|
271
269
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
272
270
|
mediaType: "json",
|
|
273
|
-
serializer
|
|
271
|
+
serializer,
|
|
274
272
|
};
|
|
275
273
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
276
|
-
path:
|
|
277
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/patchSchedules/{default}",
|
|
274
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/patchSchedules/{default}",
|
|
278
275
|
httpMethod: "DELETE",
|
|
279
276
|
responses: {
|
|
280
277
|
200: {},
|
|
281
278
|
204: {},
|
|
282
279
|
default: {
|
|
283
|
-
bodyMapper: Mappers.ErrorResponse
|
|
284
|
-
}
|
|
280
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
281
|
+
},
|
|
285
282
|
},
|
|
286
283
|
queryParameters: [Parameters.apiVersion],
|
|
287
284
|
urlParameters: [
|
|
@@ -289,22 +286,21 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
289
286
|
Parameters.subscriptionId,
|
|
290
287
|
Parameters.resourceGroupName,
|
|
291
288
|
Parameters.name,
|
|
292
|
-
Parameters.defaultParam
|
|
289
|
+
Parameters.defaultParam,
|
|
293
290
|
],
|
|
294
291
|
headerParameters: [Parameters.accept],
|
|
295
|
-
serializer
|
|
292
|
+
serializer,
|
|
296
293
|
};
|
|
297
294
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
298
|
-
path:
|
|
299
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/patchSchedules/{default}",
|
|
295
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/patchSchedules/{default}",
|
|
300
296
|
httpMethod: "GET",
|
|
301
297
|
responses: {
|
|
302
298
|
200: {
|
|
303
|
-
bodyMapper: Mappers.RedisPatchSchedule
|
|
299
|
+
bodyMapper: Mappers.RedisPatchSchedule,
|
|
304
300
|
},
|
|
305
301
|
default: {
|
|
306
|
-
bodyMapper: Mappers.ErrorResponse
|
|
307
|
-
}
|
|
302
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
303
|
+
},
|
|
308
304
|
},
|
|
309
305
|
queryParameters: [Parameters.apiVersion],
|
|
310
306
|
urlParameters: [
|
|
@@ -312,29 +308,29 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
312
308
|
Parameters.subscriptionId,
|
|
313
309
|
Parameters.resourceGroupName,
|
|
314
310
|
Parameters.name,
|
|
315
|
-
Parameters.defaultParam
|
|
311
|
+
Parameters.defaultParam,
|
|
316
312
|
],
|
|
317
313
|
headerParameters: [Parameters.accept],
|
|
318
|
-
serializer
|
|
314
|
+
serializer,
|
|
319
315
|
};
|
|
320
316
|
const listByRedisResourceNextOperationSpec: coreClient.OperationSpec = {
|
|
321
317
|
path: "{nextLink}",
|
|
322
318
|
httpMethod: "GET",
|
|
323
319
|
responses: {
|
|
324
320
|
200: {
|
|
325
|
-
bodyMapper: Mappers.RedisPatchScheduleListResult
|
|
321
|
+
bodyMapper: Mappers.RedisPatchScheduleListResult,
|
|
326
322
|
},
|
|
327
323
|
default: {
|
|
328
|
-
bodyMapper: Mappers.ErrorResponse
|
|
329
|
-
}
|
|
324
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
325
|
+
},
|
|
330
326
|
},
|
|
331
327
|
urlParameters: [
|
|
332
328
|
Parameters.$host,
|
|
333
329
|
Parameters.nextLink,
|
|
334
330
|
Parameters.subscriptionId,
|
|
335
331
|
Parameters.resourceGroupName,
|
|
336
|
-
Parameters.cacheName
|
|
332
|
+
Parameters.cacheName,
|
|
337
333
|
],
|
|
338
334
|
headerParameters: [Parameters.accept],
|
|
339
|
-
serializer
|
|
335
|
+
serializer,
|
|
340
336
|
};
|
|
@@ -15,7 +15,7 @@ import { RedisManagementClient } from "../redisManagementClient";
|
|
|
15
15
|
import {
|
|
16
16
|
SimplePollerLike,
|
|
17
17
|
OperationState,
|
|
18
|
-
createHttpPoller
|
|
18
|
+
createHttpPoller,
|
|
19
19
|
} from "@azure/core-lro";
|
|
20
20
|
import { createLroSpec } from "../lroImpl";
|
|
21
21
|
import {
|
|
@@ -26,13 +26,14 @@ import {
|
|
|
26
26
|
PrivateEndpointConnectionsGetResponse,
|
|
27
27
|
PrivateEndpointConnectionsPutOptionalParams,
|
|
28
28
|
PrivateEndpointConnectionsPutResponse,
|
|
29
|
-
PrivateEndpointConnectionsDeleteOptionalParams
|
|
29
|
+
PrivateEndpointConnectionsDeleteOptionalParams,
|
|
30
30
|
} from "../models";
|
|
31
31
|
|
|
32
32
|
/// <reference lib="esnext.asynciterable" />
|
|
33
33
|
/** Class containing PrivateEndpointConnections operations. */
|
|
34
34
|
export class PrivateEndpointConnectionsImpl
|
|
35
|
-
implements PrivateEndpointConnections
|
|
35
|
+
implements PrivateEndpointConnections
|
|
36
|
+
{
|
|
36
37
|
private readonly client: RedisManagementClient;
|
|
37
38
|
|
|
38
39
|
/**
|
|
@@ -52,7 +53,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
52
53
|
public list(
|
|
53
54
|
resourceGroupName: string,
|
|
54
55
|
cacheName: string,
|
|
55
|
-
options?: PrivateEndpointConnectionsListOptionalParams
|
|
56
|
+
options?: PrivateEndpointConnectionsListOptionalParams,
|
|
56
57
|
): PagedAsyncIterableIterator<PrivateEndpointConnection> {
|
|
57
58
|
const iter = this.listPagingAll(resourceGroupName, cacheName, options);
|
|
58
59
|
return {
|
|
@@ -70,9 +71,9 @@ export class PrivateEndpointConnectionsImpl
|
|
|
70
71
|
resourceGroupName,
|
|
71
72
|
cacheName,
|
|
72
73
|
options,
|
|
73
|
-
settings
|
|
74
|
+
settings,
|
|
74
75
|
);
|
|
75
|
-
}
|
|
76
|
+
},
|
|
76
77
|
};
|
|
77
78
|
}
|
|
78
79
|
|
|
@@ -80,7 +81,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
80
81
|
resourceGroupName: string,
|
|
81
82
|
cacheName: string,
|
|
82
83
|
options?: PrivateEndpointConnectionsListOptionalParams,
|
|
83
|
-
_settings?: PageSettings
|
|
84
|
+
_settings?: PageSettings,
|
|
84
85
|
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
|
85
86
|
let result: PrivateEndpointConnectionsListResponse;
|
|
86
87
|
result = await this._list(resourceGroupName, cacheName, options);
|
|
@@ -90,12 +91,12 @@ export class PrivateEndpointConnectionsImpl
|
|
|
90
91
|
private async *listPagingAll(
|
|
91
92
|
resourceGroupName: string,
|
|
92
93
|
cacheName: string,
|
|
93
|
-
options?: PrivateEndpointConnectionsListOptionalParams
|
|
94
|
+
options?: PrivateEndpointConnectionsListOptionalParams,
|
|
94
95
|
): AsyncIterableIterator<PrivateEndpointConnection> {
|
|
95
96
|
for await (const page of this.listPagingPage(
|
|
96
97
|
resourceGroupName,
|
|
97
98
|
cacheName,
|
|
98
|
-
options
|
|
99
|
+
options,
|
|
99
100
|
)) {
|
|
100
101
|
yield* page;
|
|
101
102
|
}
|
|
@@ -110,11 +111,11 @@ export class PrivateEndpointConnectionsImpl
|
|
|
110
111
|
private _list(
|
|
111
112
|
resourceGroupName: string,
|
|
112
113
|
cacheName: string,
|
|
113
|
-
options?: PrivateEndpointConnectionsListOptionalParams
|
|
114
|
+
options?: PrivateEndpointConnectionsListOptionalParams,
|
|
114
115
|
): Promise<PrivateEndpointConnectionsListResponse> {
|
|
115
116
|
return this.client.sendOperationRequest(
|
|
116
117
|
{ resourceGroupName, cacheName, options },
|
|
117
|
-
listOperationSpec
|
|
118
|
+
listOperationSpec,
|
|
118
119
|
);
|
|
119
120
|
}
|
|
120
121
|
|
|
@@ -130,11 +131,11 @@ export class PrivateEndpointConnectionsImpl
|
|
|
130
131
|
resourceGroupName: string,
|
|
131
132
|
cacheName: string,
|
|
132
133
|
privateEndpointConnectionName: string,
|
|
133
|
-
options?: PrivateEndpointConnectionsGetOptionalParams
|
|
134
|
+
options?: PrivateEndpointConnectionsGetOptionalParams,
|
|
134
135
|
): Promise<PrivateEndpointConnectionsGetResponse> {
|
|
135
136
|
return this.client.sendOperationRequest(
|
|
136
137
|
{ resourceGroupName, cacheName, privateEndpointConnectionName, options },
|
|
137
|
-
getOperationSpec
|
|
138
|
+
getOperationSpec,
|
|
138
139
|
);
|
|
139
140
|
}
|
|
140
141
|
|
|
@@ -152,7 +153,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
152
153
|
cacheName: string,
|
|
153
154
|
privateEndpointConnectionName: string,
|
|
154
155
|
properties: PrivateEndpointConnection,
|
|
155
|
-
options?: PrivateEndpointConnectionsPutOptionalParams
|
|
156
|
+
options?: PrivateEndpointConnectionsPutOptionalParams,
|
|
156
157
|
): Promise<
|
|
157
158
|
SimplePollerLike<
|
|
158
159
|
OperationState<PrivateEndpointConnectionsPutResponse>,
|
|
@@ -161,21 +162,20 @@ export class PrivateEndpointConnectionsImpl
|
|
|
161
162
|
> {
|
|
162
163
|
const directSendOperation = async (
|
|
163
164
|
args: coreClient.OperationArguments,
|
|
164
|
-
spec: coreClient.OperationSpec
|
|
165
|
+
spec: coreClient.OperationSpec,
|
|
165
166
|
): Promise<PrivateEndpointConnectionsPutResponse> => {
|
|
166
167
|
return this.client.sendOperationRequest(args, spec);
|
|
167
168
|
};
|
|
168
169
|
const sendOperationFn = async (
|
|
169
170
|
args: coreClient.OperationArguments,
|
|
170
|
-
spec: coreClient.OperationSpec
|
|
171
|
+
spec: coreClient.OperationSpec,
|
|
171
172
|
) => {
|
|
172
|
-
let currentRawResponse:
|
|
173
|
-
|
|
174
|
-
| undefined = undefined;
|
|
173
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
174
|
+
undefined;
|
|
175
175
|
const providedCallback = args.options?.onResponse;
|
|
176
176
|
const callback: coreClient.RawResponseCallback = (
|
|
177
177
|
rawResponse: coreClient.FullOperationResponse,
|
|
178
|
-
flatResponse: unknown
|
|
178
|
+
flatResponse: unknown,
|
|
179
179
|
) => {
|
|
180
180
|
currentRawResponse = rawResponse;
|
|
181
181
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -184,8 +184,8 @@ export class PrivateEndpointConnectionsImpl
|
|
|
184
184
|
...args,
|
|
185
185
|
options: {
|
|
186
186
|
...args.options,
|
|
187
|
-
onResponse: callback
|
|
188
|
-
}
|
|
187
|
+
onResponse: callback,
|
|
188
|
+
},
|
|
189
189
|
};
|
|
190
190
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
191
191
|
return {
|
|
@@ -193,8 +193,8 @@ export class PrivateEndpointConnectionsImpl
|
|
|
193
193
|
rawResponse: {
|
|
194
194
|
statusCode: currentRawResponse!.status,
|
|
195
195
|
body: currentRawResponse!.parsedBody,
|
|
196
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
197
|
-
}
|
|
196
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
197
|
+
},
|
|
198
198
|
};
|
|
199
199
|
};
|
|
200
200
|
|
|
@@ -205,16 +205,16 @@ export class PrivateEndpointConnectionsImpl
|
|
|
205
205
|
cacheName,
|
|
206
206
|
privateEndpointConnectionName,
|
|
207
207
|
properties,
|
|
208
|
-
options
|
|
208
|
+
options,
|
|
209
209
|
},
|
|
210
|
-
spec: putOperationSpec
|
|
210
|
+
spec: putOperationSpec,
|
|
211
211
|
});
|
|
212
212
|
const poller = await createHttpPoller<
|
|
213
213
|
PrivateEndpointConnectionsPutResponse,
|
|
214
214
|
OperationState<PrivateEndpointConnectionsPutResponse>
|
|
215
215
|
>(lro, {
|
|
216
216
|
restoreFrom: options?.resumeFrom,
|
|
217
|
-
intervalInMs: options?.updateIntervalInMs
|
|
217
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
218
218
|
});
|
|
219
219
|
await poller.poll();
|
|
220
220
|
return poller;
|
|
@@ -234,14 +234,14 @@ export class PrivateEndpointConnectionsImpl
|
|
|
234
234
|
cacheName: string,
|
|
235
235
|
privateEndpointConnectionName: string,
|
|
236
236
|
properties: PrivateEndpointConnection,
|
|
237
|
-
options?: PrivateEndpointConnectionsPutOptionalParams
|
|
237
|
+
options?: PrivateEndpointConnectionsPutOptionalParams,
|
|
238
238
|
): Promise<PrivateEndpointConnectionsPutResponse> {
|
|
239
239
|
const poller = await this.beginPut(
|
|
240
240
|
resourceGroupName,
|
|
241
241
|
cacheName,
|
|
242
242
|
privateEndpointConnectionName,
|
|
243
243
|
properties,
|
|
244
|
-
options
|
|
244
|
+
options,
|
|
245
245
|
);
|
|
246
246
|
return poller.pollUntilDone();
|
|
247
247
|
}
|
|
@@ -258,11 +258,11 @@ export class PrivateEndpointConnectionsImpl
|
|
|
258
258
|
resourceGroupName: string,
|
|
259
259
|
cacheName: string,
|
|
260
260
|
privateEndpointConnectionName: string,
|
|
261
|
-
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
261
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams,
|
|
262
262
|
): Promise<void> {
|
|
263
263
|
return this.client.sendOperationRequest(
|
|
264
264
|
{ resourceGroupName, cacheName, privateEndpointConnectionName, options },
|
|
265
|
-
deleteOperationSpec
|
|
265
|
+
deleteOperationSpec,
|
|
266
266
|
);
|
|
267
267
|
}
|
|
268
268
|
}
|
|
@@ -270,38 +270,36 @@ export class PrivateEndpointConnectionsImpl
|
|
|
270
270
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
271
271
|
|
|
272
272
|
const listOperationSpec: coreClient.OperationSpec = {
|
|
273
|
-
path:
|
|
274
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections",
|
|
273
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections",
|
|
275
274
|
httpMethod: "GET",
|
|
276
275
|
responses: {
|
|
277
276
|
200: {
|
|
278
|
-
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
277
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResult,
|
|
279
278
|
},
|
|
280
279
|
default: {
|
|
281
|
-
bodyMapper: Mappers.ErrorResponse
|
|
282
|
-
}
|
|
280
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
281
|
+
},
|
|
283
282
|
},
|
|
284
283
|
queryParameters: [Parameters.apiVersion],
|
|
285
284
|
urlParameters: [
|
|
286
285
|
Parameters.$host,
|
|
287
286
|
Parameters.subscriptionId,
|
|
288
287
|
Parameters.resourceGroupName,
|
|
289
|
-
Parameters.cacheName
|
|
288
|
+
Parameters.cacheName,
|
|
290
289
|
],
|
|
291
290
|
headerParameters: [Parameters.accept],
|
|
292
|
-
serializer
|
|
291
|
+
serializer,
|
|
293
292
|
};
|
|
294
293
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
295
|
-
path:
|
|
296
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
294
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
297
295
|
httpMethod: "GET",
|
|
298
296
|
responses: {
|
|
299
297
|
200: {
|
|
300
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
298
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
301
299
|
},
|
|
302
300
|
default: {
|
|
303
|
-
bodyMapper: Mappers.ErrorResponse
|
|
304
|
-
}
|
|
301
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
302
|
+
},
|
|
305
303
|
},
|
|
306
304
|
queryParameters: [Parameters.apiVersion],
|
|
307
305
|
urlParameters: [
|
|
@@ -309,31 +307,30 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
309
307
|
Parameters.subscriptionId,
|
|
310
308
|
Parameters.resourceGroupName,
|
|
311
309
|
Parameters.cacheName,
|
|
312
|
-
Parameters.privateEndpointConnectionName
|
|
310
|
+
Parameters.privateEndpointConnectionName,
|
|
313
311
|
],
|
|
314
312
|
headerParameters: [Parameters.accept],
|
|
315
|
-
serializer
|
|
313
|
+
serializer,
|
|
316
314
|
};
|
|
317
315
|
const putOperationSpec: coreClient.OperationSpec = {
|
|
318
|
-
path:
|
|
319
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
316
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
320
317
|
httpMethod: "PUT",
|
|
321
318
|
responses: {
|
|
322
319
|
200: {
|
|
323
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
320
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
324
321
|
},
|
|
325
322
|
201: {
|
|
326
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
323
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
327
324
|
},
|
|
328
325
|
202: {
|
|
329
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
326
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
330
327
|
},
|
|
331
328
|
204: {
|
|
332
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
329
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
333
330
|
},
|
|
334
331
|
default: {
|
|
335
|
-
bodyMapper: Mappers.ErrorResponse
|
|
336
|
-
}
|
|
332
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
333
|
+
},
|
|
337
334
|
},
|
|
338
335
|
requestBody: Parameters.properties,
|
|
339
336
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -342,22 +339,21 @@ const putOperationSpec: coreClient.OperationSpec = {
|
|
|
342
339
|
Parameters.subscriptionId,
|
|
343
340
|
Parameters.resourceGroupName,
|
|
344
341
|
Parameters.cacheName,
|
|
345
|
-
Parameters.privateEndpointConnectionName
|
|
342
|
+
Parameters.privateEndpointConnectionName,
|
|
346
343
|
],
|
|
347
344
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
348
345
|
mediaType: "json",
|
|
349
|
-
serializer
|
|
346
|
+
serializer,
|
|
350
347
|
};
|
|
351
348
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
352
|
-
path:
|
|
353
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
349
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
354
350
|
httpMethod: "DELETE",
|
|
355
351
|
responses: {
|
|
356
352
|
200: {},
|
|
357
353
|
204: {},
|
|
358
354
|
default: {
|
|
359
|
-
bodyMapper: Mappers.ErrorResponse
|
|
360
|
-
}
|
|
355
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
356
|
+
},
|
|
361
357
|
},
|
|
362
358
|
queryParameters: [Parameters.apiVersion],
|
|
363
359
|
urlParameters: [
|
|
@@ -365,8 +361,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
365
361
|
Parameters.subscriptionId,
|
|
366
362
|
Parameters.resourceGroupName,
|
|
367
363
|
Parameters.cacheName,
|
|
368
|
-
Parameters.privateEndpointConnectionName
|
|
364
|
+
Parameters.privateEndpointConnectionName,
|
|
369
365
|
],
|
|
370
366
|
headerParameters: [Parameters.accept],
|
|
371
|
-
serializer
|
|
367
|
+
serializer,
|
|
372
368
|
};
|