@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,238 @@
|
|
|
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 } 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
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing PatchSchedules operations. */
|
|
14
|
+
export class PatchSchedulesImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class PatchSchedules class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Gets all patch schedules in the specified redis cache (there is only one).
|
|
24
|
+
* @param resourceGroupName The name of the resource group.
|
|
25
|
+
* @param cacheName The name of the Redis cache.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
listByRedisResource(resourceGroupName, cacheName, options) {
|
|
29
|
+
const iter = this.listByRedisResourcePagingAll(resourceGroupName, cacheName, options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: () => {
|
|
38
|
+
return this.listByRedisResourcePagingPage(resourceGroupName, cacheName, options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
listByRedisResourcePagingPage(resourceGroupName, cacheName, options) {
|
|
43
|
+
return __asyncGenerator(this, arguments, function* listByRedisResourcePagingPage_1() {
|
|
44
|
+
let result = yield __await(this._listByRedisResource(resourceGroupName, cacheName, options));
|
|
45
|
+
yield yield __await(result.value || []);
|
|
46
|
+
let continuationToken = result.nextLink;
|
|
47
|
+
while (continuationToken) {
|
|
48
|
+
result = yield __await(this._listByRedisResourceNext(resourceGroupName, cacheName, continuationToken, options));
|
|
49
|
+
continuationToken = result.nextLink;
|
|
50
|
+
yield yield __await(result.value || []);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
listByRedisResourcePagingAll(resourceGroupName, cacheName, options) {
|
|
55
|
+
return __asyncGenerator(this, arguments, function* listByRedisResourcePagingAll_1() {
|
|
56
|
+
var e_1, _a;
|
|
57
|
+
try {
|
|
58
|
+
for (var _b = __asyncValues(this.listByRedisResourcePagingPage(resourceGroupName, cacheName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
59
|
+
const page = _c.value;
|
|
60
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
+
finally {
|
|
65
|
+
try {
|
|
66
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
67
|
+
}
|
|
68
|
+
finally { if (e_1) throw e_1.error; }
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Gets all patch schedules in the specified redis cache (there is only one).
|
|
74
|
+
* @param resourceGroupName The name of the resource group.
|
|
75
|
+
* @param cacheName The name of the Redis cache.
|
|
76
|
+
* @param options The options parameters.
|
|
77
|
+
*/
|
|
78
|
+
_listByRedisResource(resourceGroupName, cacheName, options) {
|
|
79
|
+
return this.client.sendOperationRequest({ resourceGroupName, cacheName, options }, listByRedisResourceOperationSpec);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Create or replace the patching schedule for Redis cache.
|
|
83
|
+
* @param resourceGroupName The name of the resource group.
|
|
84
|
+
* @param name The name of the Redis cache.
|
|
85
|
+
* @param parameters Parameters to set the patching schedule for Redis cache.
|
|
86
|
+
* @param defaultParam Default string modeled as parameter for auto generation to work correctly.
|
|
87
|
+
* @param options The options parameters.
|
|
88
|
+
*/
|
|
89
|
+
createOrUpdate(resourceGroupName, name, parameters, defaultParam, options) {
|
|
90
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, parameters, defaultParam, options }, createOrUpdateOperationSpec);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Deletes the patching schedule of a redis cache.
|
|
94
|
+
* @param resourceGroupName The name of the resource group.
|
|
95
|
+
* @param name The name of the redis cache.
|
|
96
|
+
* @param defaultParam Default string modeled as parameter for auto generation to work correctly.
|
|
97
|
+
* @param options The options parameters.
|
|
98
|
+
*/
|
|
99
|
+
delete(resourceGroupName, name, defaultParam, options) {
|
|
100
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, defaultParam, options }, deleteOperationSpec);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Gets the patching schedule of a redis cache.
|
|
104
|
+
* @param resourceGroupName The name of the resource group.
|
|
105
|
+
* @param name The name of the redis cache.
|
|
106
|
+
* @param defaultParam Default string modeled as parameter for auto generation to work correctly.
|
|
107
|
+
* @param options The options parameters.
|
|
108
|
+
*/
|
|
109
|
+
get(resourceGroupName, name, defaultParam, options) {
|
|
110
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, defaultParam, options }, getOperationSpec);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* ListByRedisResourceNext
|
|
114
|
+
* @param resourceGroupName The name of the resource group.
|
|
115
|
+
* @param cacheName The name of the Redis cache.
|
|
116
|
+
* @param nextLink The nextLink from the previous successful call to the ListByRedisResource method.
|
|
117
|
+
* @param options The options parameters.
|
|
118
|
+
*/
|
|
119
|
+
_listByRedisResourceNext(resourceGroupName, cacheName, nextLink, options) {
|
|
120
|
+
return this.client.sendOperationRequest({ resourceGroupName, cacheName, nextLink, options }, listByRedisResourceNextOperationSpec);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
// Operation Specifications
|
|
124
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
125
|
+
const listByRedisResourceOperationSpec = {
|
|
126
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/patchSchedules",
|
|
127
|
+
httpMethod: "GET",
|
|
128
|
+
responses: {
|
|
129
|
+
200: {
|
|
130
|
+
bodyMapper: Mappers.RedisPatchScheduleListResult
|
|
131
|
+
},
|
|
132
|
+
default: {
|
|
133
|
+
bodyMapper: Mappers.ErrorResponse
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
queryParameters: [Parameters.apiVersion],
|
|
137
|
+
urlParameters: [
|
|
138
|
+
Parameters.$host,
|
|
139
|
+
Parameters.subscriptionId,
|
|
140
|
+
Parameters.resourceGroupName,
|
|
141
|
+
Parameters.cacheName
|
|
142
|
+
],
|
|
143
|
+
headerParameters: [Parameters.accept],
|
|
144
|
+
serializer
|
|
145
|
+
};
|
|
146
|
+
const createOrUpdateOperationSpec = {
|
|
147
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/patchSchedules/{default}",
|
|
148
|
+
httpMethod: "PUT",
|
|
149
|
+
responses: {
|
|
150
|
+
200: {
|
|
151
|
+
bodyMapper: Mappers.RedisPatchSchedule
|
|
152
|
+
},
|
|
153
|
+
201: {
|
|
154
|
+
bodyMapper: Mappers.RedisPatchSchedule
|
|
155
|
+
},
|
|
156
|
+
default: {
|
|
157
|
+
bodyMapper: Mappers.ErrorResponse
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
requestBody: Parameters.parameters8,
|
|
161
|
+
queryParameters: [Parameters.apiVersion],
|
|
162
|
+
urlParameters: [
|
|
163
|
+
Parameters.$host,
|
|
164
|
+
Parameters.subscriptionId,
|
|
165
|
+
Parameters.resourceGroupName,
|
|
166
|
+
Parameters.name,
|
|
167
|
+
Parameters.defaultParam
|
|
168
|
+
],
|
|
169
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
170
|
+
mediaType: "json",
|
|
171
|
+
serializer
|
|
172
|
+
};
|
|
173
|
+
const deleteOperationSpec = {
|
|
174
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/patchSchedules/{default}",
|
|
175
|
+
httpMethod: "DELETE",
|
|
176
|
+
responses: {
|
|
177
|
+
200: {},
|
|
178
|
+
204: {},
|
|
179
|
+
default: {
|
|
180
|
+
bodyMapper: Mappers.ErrorResponse
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
queryParameters: [Parameters.apiVersion],
|
|
184
|
+
urlParameters: [
|
|
185
|
+
Parameters.$host,
|
|
186
|
+
Parameters.subscriptionId,
|
|
187
|
+
Parameters.resourceGroupName,
|
|
188
|
+
Parameters.name,
|
|
189
|
+
Parameters.defaultParam
|
|
190
|
+
],
|
|
191
|
+
headerParameters: [Parameters.accept],
|
|
192
|
+
serializer
|
|
193
|
+
};
|
|
194
|
+
const getOperationSpec = {
|
|
195
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/patchSchedules/{default}",
|
|
196
|
+
httpMethod: "GET",
|
|
197
|
+
responses: {
|
|
198
|
+
200: {
|
|
199
|
+
bodyMapper: Mappers.RedisPatchSchedule
|
|
200
|
+
},
|
|
201
|
+
default: {
|
|
202
|
+
bodyMapper: Mappers.ErrorResponse
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
queryParameters: [Parameters.apiVersion],
|
|
206
|
+
urlParameters: [
|
|
207
|
+
Parameters.$host,
|
|
208
|
+
Parameters.subscriptionId,
|
|
209
|
+
Parameters.resourceGroupName,
|
|
210
|
+
Parameters.name,
|
|
211
|
+
Parameters.defaultParam
|
|
212
|
+
],
|
|
213
|
+
headerParameters: [Parameters.accept],
|
|
214
|
+
serializer
|
|
215
|
+
};
|
|
216
|
+
const listByRedisResourceNextOperationSpec = {
|
|
217
|
+
path: "{nextLink}",
|
|
218
|
+
httpMethod: "GET",
|
|
219
|
+
responses: {
|
|
220
|
+
200: {
|
|
221
|
+
bodyMapper: Mappers.RedisPatchScheduleListResult
|
|
222
|
+
},
|
|
223
|
+
default: {
|
|
224
|
+
bodyMapper: Mappers.ErrorResponse
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
queryParameters: [Parameters.apiVersion],
|
|
228
|
+
urlParameters: [
|
|
229
|
+
Parameters.$host,
|
|
230
|
+
Parameters.nextLink,
|
|
231
|
+
Parameters.subscriptionId,
|
|
232
|
+
Parameters.resourceGroupName,
|
|
233
|
+
Parameters.cacheName
|
|
234
|
+
],
|
|
235
|
+
headerParameters: [Parameters.accept],
|
|
236
|
+
serializer
|
|
237
|
+
};
|
|
238
|
+
//# sourceMappingURL=patchSchedules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patchSchedules.js","sourceRoot":"","sources":["../../../src/operations/patchSchedules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAgBnD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,SAAiB,EACjB,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAC5C,iBAAiB,EACjB,SAAS,EACT,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,6BAA6B,CACvC,iBAAiB,EACjB,SAAS,EACT,OAAO,CACR,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,6BAA6B,CAC1C,iBAAyB,EACzB,SAAiB,EACjB,OAAyD;;YAEzD,IAAI,MAAM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AE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,IAAI;QACf,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { PrivateEndpointConnections } from "../operationsInterfaces";
|
|
3
|
+
import { RedisManagementClientContext } from "../redisManagementClientContext";
|
|
4
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
5
|
+
import { PrivateEndpointConnection, PrivateEndpointConnectionsListOptionalParams, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsPutOptionalParams, PrivateEndpointConnectionsPutResponse, PrivateEndpointConnectionsDeleteOptionalParams } from "../models";
|
|
6
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
7
|
+
export declare class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {
|
|
8
|
+
private readonly client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client: RedisManagementClientContext);
|
|
14
|
+
/**
|
|
15
|
+
* List all the private endpoint connections associated with the redis cache.
|
|
16
|
+
* @param resourceGroupName The name of the resource group.
|
|
17
|
+
* @param cacheName The name of the Redis cache.
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
list(resourceGroupName: string, cacheName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator<PrivateEndpointConnection>;
|
|
21
|
+
private listPagingPage;
|
|
22
|
+
private listPagingAll;
|
|
23
|
+
/**
|
|
24
|
+
* List all the private endpoint connections associated with the redis cache.
|
|
25
|
+
* @param resourceGroupName The name of the resource group.
|
|
26
|
+
* @param cacheName The name of the Redis cache.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
private _list;
|
|
30
|
+
/**
|
|
31
|
+
* Gets the specified private endpoint connection associated with the redis cache.
|
|
32
|
+
* @param resourceGroupName The name of the resource group.
|
|
33
|
+
* @param cacheName The name of the Redis cache.
|
|
34
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
35
|
+
* Azure resource
|
|
36
|
+
* @param options The options parameters.
|
|
37
|
+
*/
|
|
38
|
+
get(resourceGroupName: string, cacheName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise<PrivateEndpointConnectionsGetResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Update the state of specified private endpoint connection associated with the redis cache.
|
|
41
|
+
* @param resourceGroupName The name of the resource group.
|
|
42
|
+
* @param cacheName The name of the Redis cache.
|
|
43
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
44
|
+
* Azure resource
|
|
45
|
+
* @param properties The private endpoint connection properties.
|
|
46
|
+
* @param options The options parameters.
|
|
47
|
+
*/
|
|
48
|
+
beginPut(resourceGroupName: string, cacheName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsPutOptionalParams): Promise<PollerLike<PollOperationState<PrivateEndpointConnectionsPutResponse>, PrivateEndpointConnectionsPutResponse>>;
|
|
49
|
+
/**
|
|
50
|
+
* Update the state of specified private endpoint connection associated with the redis cache.
|
|
51
|
+
* @param resourceGroupName The name of the resource group.
|
|
52
|
+
* @param cacheName The name of the Redis cache.
|
|
53
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
54
|
+
* Azure resource
|
|
55
|
+
* @param properties The private endpoint connection properties.
|
|
56
|
+
* @param options The options parameters.
|
|
57
|
+
*/
|
|
58
|
+
beginPutAndWait(resourceGroupName: string, cacheName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsPutOptionalParams): Promise<PrivateEndpointConnectionsPutResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Deletes the specified private endpoint connection associated with the redis cache.
|
|
61
|
+
* @param resourceGroupName The name of the resource group.
|
|
62
|
+
* @param cacheName The name of the Redis cache.
|
|
63
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
64
|
+
* Azure resource
|
|
65
|
+
* @param options The options parameters.
|
|
66
|
+
*/
|
|
67
|
+
delete(resourceGroupName: string, cacheName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<void>;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=privateEndpointConnections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateEndpointConnections.d.ts","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"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B,EAAE,MAAM,EACrC,UAAU,EAAE,yBAAyB,EACrC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC;IAWjD;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,IAAI,CAAC;CAMjB"}
|
|
@@ -0,0 +1,260 @@
|
|
|
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 PrivateEndpointConnections operations. */
|
|
16
|
+
export class PrivateEndpointConnectionsImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* List all the private endpoint connections associated with the redis cache.
|
|
26
|
+
* @param resourceGroupName The name of the resource group.
|
|
27
|
+
* @param cacheName The name of the Redis cache.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
list(resourceGroupName, cacheName, options) {
|
|
31
|
+
const iter = this.listPagingAll(resourceGroupName, cacheName, options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: () => {
|
|
40
|
+
return this.listPagingPage(resourceGroupName, cacheName, options);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
listPagingPage(resourceGroupName, cacheName, options) {
|
|
45
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
46
|
+
let result = yield __await(this._list(resourceGroupName, cacheName, options));
|
|
47
|
+
yield yield __await(result.value || []);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
listPagingAll(resourceGroupName, cacheName, options) {
|
|
51
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
52
|
+
var e_1, _a;
|
|
53
|
+
try {
|
|
54
|
+
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, cacheName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
55
|
+
const page = _c.value;
|
|
56
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
60
|
+
finally {
|
|
61
|
+
try {
|
|
62
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
63
|
+
}
|
|
64
|
+
finally { if (e_1) throw e_1.error; }
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* List all the private endpoint connections associated with the redis cache.
|
|
70
|
+
* @param resourceGroupName The name of the resource group.
|
|
71
|
+
* @param cacheName The name of the Redis cache.
|
|
72
|
+
* @param options The options parameters.
|
|
73
|
+
*/
|
|
74
|
+
_list(resourceGroupName, cacheName, options) {
|
|
75
|
+
return this.client.sendOperationRequest({ resourceGroupName, cacheName, options }, listOperationSpec);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Gets the specified private endpoint connection associated with the redis cache.
|
|
79
|
+
* @param resourceGroupName The name of the resource group.
|
|
80
|
+
* @param cacheName The name of the Redis cache.
|
|
81
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
82
|
+
* Azure resource
|
|
83
|
+
* @param options The options parameters.
|
|
84
|
+
*/
|
|
85
|
+
get(resourceGroupName, cacheName, privateEndpointConnectionName, options) {
|
|
86
|
+
return this.client.sendOperationRequest({ resourceGroupName, cacheName, privateEndpointConnectionName, options }, getOperationSpec);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Update the state of specified private endpoint connection associated with the redis cache.
|
|
90
|
+
* @param resourceGroupName The name of the resource group.
|
|
91
|
+
* @param cacheName The name of the Redis cache.
|
|
92
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
93
|
+
* Azure resource
|
|
94
|
+
* @param properties The private endpoint connection properties.
|
|
95
|
+
* @param options The options parameters.
|
|
96
|
+
*/
|
|
97
|
+
beginPut(resourceGroupName, cacheName, privateEndpointConnectionName, properties, options) {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
return this.client.sendOperationRequest(args, spec);
|
|
101
|
+
});
|
|
102
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
var _a;
|
|
104
|
+
let currentRawResponse = undefined;
|
|
105
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
106
|
+
const callback = (rawResponse, flatResponse) => {
|
|
107
|
+
currentRawResponse = rawResponse;
|
|
108
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
109
|
+
};
|
|
110
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
111
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
112
|
+
return {
|
|
113
|
+
flatResponse,
|
|
114
|
+
rawResponse: {
|
|
115
|
+
statusCode: currentRawResponse.status,
|
|
116
|
+
body: currentRawResponse.parsedBody,
|
|
117
|
+
headers: currentRawResponse.headers.toJSON()
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
});
|
|
121
|
+
const lro = new LroImpl(sendOperation, {
|
|
122
|
+
resourceGroupName,
|
|
123
|
+
cacheName,
|
|
124
|
+
privateEndpointConnectionName,
|
|
125
|
+
properties,
|
|
126
|
+
options
|
|
127
|
+
}, putOperationSpec);
|
|
128
|
+
return new LroEngine(lro, {
|
|
129
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
130
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Update the state of specified private endpoint connection associated with the redis cache.
|
|
136
|
+
* @param resourceGroupName The name of the resource group.
|
|
137
|
+
* @param cacheName The name of the Redis cache.
|
|
138
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
139
|
+
* Azure resource
|
|
140
|
+
* @param properties The private endpoint connection properties.
|
|
141
|
+
* @param options The options parameters.
|
|
142
|
+
*/
|
|
143
|
+
beginPutAndWait(resourceGroupName, cacheName, privateEndpointConnectionName, properties, options) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
const poller = yield this.beginPut(resourceGroupName, cacheName, privateEndpointConnectionName, properties, options);
|
|
146
|
+
return poller.pollUntilDone();
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Deletes the specified private endpoint connection associated with the redis cache.
|
|
151
|
+
* @param resourceGroupName The name of the resource group.
|
|
152
|
+
* @param cacheName The name of the Redis cache.
|
|
153
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
154
|
+
* Azure resource
|
|
155
|
+
* @param options The options parameters.
|
|
156
|
+
*/
|
|
157
|
+
delete(resourceGroupName, cacheName, privateEndpointConnectionName, options) {
|
|
158
|
+
return this.client.sendOperationRequest({ resourceGroupName, cacheName, privateEndpointConnectionName, options }, deleteOperationSpec);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
// Operation Specifications
|
|
162
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
163
|
+
const listOperationSpec = {
|
|
164
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections",
|
|
165
|
+
httpMethod: "GET",
|
|
166
|
+
responses: {
|
|
167
|
+
200: {
|
|
168
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
169
|
+
},
|
|
170
|
+
default: {
|
|
171
|
+
bodyMapper: Mappers.ErrorResponse
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
queryParameters: [Parameters.apiVersion],
|
|
175
|
+
urlParameters: [
|
|
176
|
+
Parameters.$host,
|
|
177
|
+
Parameters.subscriptionId,
|
|
178
|
+
Parameters.resourceGroupName,
|
|
179
|
+
Parameters.cacheName
|
|
180
|
+
],
|
|
181
|
+
headerParameters: [Parameters.accept],
|
|
182
|
+
serializer
|
|
183
|
+
};
|
|
184
|
+
const getOperationSpec = {
|
|
185
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
186
|
+
httpMethod: "GET",
|
|
187
|
+
responses: {
|
|
188
|
+
200: {
|
|
189
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
190
|
+
},
|
|
191
|
+
default: {
|
|
192
|
+
bodyMapper: Mappers.ErrorResponse
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
queryParameters: [Parameters.apiVersion],
|
|
196
|
+
urlParameters: [
|
|
197
|
+
Parameters.$host,
|
|
198
|
+
Parameters.subscriptionId,
|
|
199
|
+
Parameters.resourceGroupName,
|
|
200
|
+
Parameters.cacheName,
|
|
201
|
+
Parameters.privateEndpointConnectionName
|
|
202
|
+
],
|
|
203
|
+
headerParameters: [Parameters.accept],
|
|
204
|
+
serializer
|
|
205
|
+
};
|
|
206
|
+
const putOperationSpec = {
|
|
207
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
208
|
+
httpMethod: "PUT",
|
|
209
|
+
responses: {
|
|
210
|
+
200: {
|
|
211
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
212
|
+
},
|
|
213
|
+
201: {
|
|
214
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
215
|
+
},
|
|
216
|
+
202: {
|
|
217
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
218
|
+
},
|
|
219
|
+
204: {
|
|
220
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
221
|
+
},
|
|
222
|
+
default: {
|
|
223
|
+
bodyMapper: Mappers.ErrorResponse
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
requestBody: Parameters.properties,
|
|
227
|
+
queryParameters: [Parameters.apiVersion],
|
|
228
|
+
urlParameters: [
|
|
229
|
+
Parameters.$host,
|
|
230
|
+
Parameters.subscriptionId,
|
|
231
|
+
Parameters.resourceGroupName,
|
|
232
|
+
Parameters.cacheName,
|
|
233
|
+
Parameters.privateEndpointConnectionName
|
|
234
|
+
],
|
|
235
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
236
|
+
mediaType: "json",
|
|
237
|
+
serializer
|
|
238
|
+
};
|
|
239
|
+
const deleteOperationSpec = {
|
|
240
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
241
|
+
httpMethod: "DELETE",
|
|
242
|
+
responses: {
|
|
243
|
+
200: {},
|
|
244
|
+
204: {},
|
|
245
|
+
default: {
|
|
246
|
+
bodyMapper: Mappers.ErrorResponse
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
queryParameters: [Parameters.apiVersion],
|
|
250
|
+
urlParameters: [
|
|
251
|
+
Parameters.$host,
|
|
252
|
+
Parameters.subscriptionId,
|
|
253
|
+
Parameters.resourceGroupName,
|
|
254
|
+
Parameters.cacheName,
|
|
255
|
+
Parameters.privateEndpointConnectionName
|
|
256
|
+
],
|
|
257
|
+
headerParameters: [Parameters.accept],
|
|
258
|
+
serializer
|
|
259
|
+
};
|
|
260
|
+
//# sourceMappingURL=privateEndpointConnections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAYrC,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,SAAiB,EACjB,OAAsD;QAEtD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QACv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,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,2KAA2K;IAC7K,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { PrivateLinkResources } from "../operationsInterfaces";
|
|
3
|
+
import { RedisManagementClientContext } from "../redisManagementClientContext";
|
|
4
|
+
import { PrivateLinkResource, PrivateLinkResourcesListByRedisCacheOptionalParams } from "../models";
|
|
5
|
+
/** Class containing PrivateLinkResources operations. */
|
|
6
|
+
export declare class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: RedisManagementClientContext);
|
|
13
|
+
/**
|
|
14
|
+
* Gets the private link resources that need to be created for a redis cache.
|
|
15
|
+
* @param resourceGroupName The name of the resource group.
|
|
16
|
+
* @param cacheName The name of the Redis cache.
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
listByRedisCache(resourceGroupName: string, cacheName: string, options?: PrivateLinkResourcesListByRedisCacheOptionalParams): PagedAsyncIterableIterator<PrivateLinkResource>;
|
|
20
|
+
private listByRedisCachePagingPage;
|
|
21
|
+
private listByRedisCachePagingAll;
|
|
22
|
+
/**
|
|
23
|
+
* Gets the private link resources that need to be created for a redis cache.
|
|
24
|
+
* @param resourceGroupName The name of the resource group.
|
|
25
|
+
* @param cacheName The name of the Redis cache.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
private _listByRedisCache;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=privateLinkResources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EACL,mBAAmB,EACnB,kDAAkD,EAEnD,MAAM,WAAW,CAAC;AAGnB,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;IAEtD;;;OAGG;gBACS,MAAM,EAAE,4BAA4B;IAIhD;;;;;OAKG;IACI,gBAAgB,CACrB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,kDAAkD,GAC3D,0BAA0B,CAAC,mBAAmB,CAAC;YAuBnC,0BAA0B;YAa1B,yBAAyB;IAcxC;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB;CAU1B"}
|