@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.
Files changed (133) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +21 -0
  4. package/README.md +94 -0
  5. package/dist/index.js +4051 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/src/index.d.ts +6 -0
  10. package/dist-esm/src/index.d.ts.map +1 -0
  11. package/dist-esm/src/index.js +13 -0
  12. package/dist-esm/src/index.js.map +1 -0
  13. package/dist-esm/src/lroImpl.d.ts +16 -0
  14. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  15. package/dist-esm/src/lroImpl.js +29 -0
  16. package/dist-esm/src/lroImpl.js.map +1 -0
  17. package/dist-esm/src/models/index.d.ts +1016 -0
  18. package/dist-esm/src/models/index.d.ts.map +1 -0
  19. package/dist-esm/src/models/index.js +77 -0
  20. package/dist-esm/src/models/index.js.map +1 -0
  21. package/dist-esm/src/models/mappers.d.ts +49 -0
  22. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  23. package/dist-esm/src/models/mappers.js +1580 -0
  24. package/dist-esm/src/models/mappers.js.map +1 -0
  25. package/dist-esm/src/models/parameters.d.ts +27 -0
  26. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  27. package/dist-esm/src/models/parameters.js +198 -0
  28. package/dist-esm/src/models/parameters.js.map +1 -0
  29. package/dist-esm/src/operations/firewallRules.d.ts +63 -0
  30. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -0
  31. package/dist-esm/src/operations/firewallRules.js +238 -0
  32. package/dist-esm/src/operations/firewallRules.js.map +1 -0
  33. package/dist-esm/src/operations/index.d.ts +8 -0
  34. package/dist-esm/src/operations/index.d.ts.map +1 -0
  35. package/dist-esm/src/operations/index.js +15 -0
  36. package/dist-esm/src/operations/index.js.map +1 -0
  37. package/dist-esm/src/operations/linkedServer.d.ts +73 -0
  38. package/dist-esm/src/operations/linkedServer.d.ts.map +1 -0
  39. package/dist-esm/src/operations/linkedServer.js +288 -0
  40. package/dist-esm/src/operations/linkedServer.js.map +1 -0
  41. package/dist-esm/src/operations/operations.d.ts +32 -0
  42. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  43. package/dist-esm/src/operations/operations.js +120 -0
  44. package/dist-esm/src/operations/operations.js.map +1 -0
  45. package/dist-esm/src/operations/patchSchedules.d.ts +63 -0
  46. package/dist-esm/src/operations/patchSchedules.d.ts.map +1 -0
  47. package/dist-esm/src/operations/patchSchedules.js +238 -0
  48. package/dist-esm/src/operations/patchSchedules.js.map +1 -0
  49. package/dist-esm/src/operations/privateEndpointConnections.d.ts +69 -0
  50. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  51. package/dist-esm/src/operations/privateEndpointConnections.js +260 -0
  52. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  53. package/dist-esm/src/operations/privateLinkResources.d.ts +30 -0
  54. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  55. package/dist-esm/src/operations/privateLinkResources.js +99 -0
  56. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  57. package/dist-esm/src/operations/redis.d.ts +192 -0
  58. package/dist-esm/src/operations/redis.d.ts.map +1 -0
  59. package/dist-esm/src/operations/redis.js +840 -0
  60. package/dist-esm/src/operations/redis.js.map +1 -0
  61. package/dist-esm/src/operationsInterfaces/firewallRules.d.ts +38 -0
  62. package/dist-esm/src/operationsInterfaces/firewallRules.d.ts.map +1 -0
  63. package/dist-esm/src/operationsInterfaces/firewallRules.js +9 -0
  64. package/dist-esm/src/operationsInterfaces/firewallRules.js.map +1 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
  66. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  67. package/dist-esm/src/operationsInterfaces/index.js +15 -0
  68. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  69. package/dist-esm/src/operationsInterfaces/linkedServer.d.ts +48 -0
  70. package/dist-esm/src/operationsInterfaces/linkedServer.d.ts.map +1 -0
  71. package/dist-esm/src/operationsInterfaces/linkedServer.js +9 -0
  72. package/dist-esm/src/operationsInterfaces/linkedServer.js.map +1 -0
  73. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  74. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  75. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  76. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  77. package/dist-esm/src/operationsInterfaces/patchSchedules.d.ts +38 -0
  78. package/dist-esm/src/operationsInterfaces/patchSchedules.d.ts.map +1 -0
  79. package/dist-esm/src/operationsInterfaces/patchSchedules.js +9 -0
  80. package/dist-esm/src/operationsInterfaces/patchSchedules.js.map +1 -0
  81. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +52 -0
  82. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  83. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  84. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  85. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +13 -0
  86. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  87. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  88. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  89. package/dist-esm/src/operationsInterfaces/redis.d.ts +136 -0
  90. package/dist-esm/src/operationsInterfaces/redis.d.ts.map +1 -0
  91. package/dist-esm/src/operationsInterfaces/redis.js +9 -0
  92. package/dist-esm/src/operationsInterfaces/redis.js.map +1 -0
  93. package/dist-esm/src/redisManagementClient.d.ts +22 -0
  94. package/dist-esm/src/redisManagementClient.d.ts.map +1 -0
  95. package/dist-esm/src/redisManagementClient.js +29 -0
  96. package/dist-esm/src/redisManagementClient.js.map +1 -0
  97. package/dist-esm/src/redisManagementClientContext.d.ts +17 -0
  98. package/dist-esm/src/redisManagementClientContext.d.ts.map +1 -0
  99. package/dist-esm/src/redisManagementClientContext.js +50 -0
  100. package/dist-esm/src/redisManagementClientContext.js.map +1 -0
  101. package/dist-esm/test/redis_examples.d.ts +2 -0
  102. package/dist-esm/test/redis_examples.d.ts.map +1 -0
  103. package/dist-esm/test/redis_examples.js +209 -0
  104. package/dist-esm/test/redis_examples.js.map +1 -0
  105. package/package.json +103 -0
  106. package/review/arm-rediscache.api.md +879 -0
  107. package/rollup.config.js +188 -0
  108. package/src/index.ts +13 -0
  109. package/src/lroImpl.ts +34 -0
  110. package/src/models/index.ts +1154 -0
  111. package/src/models/mappers.ts +1709 -0
  112. package/src/models/parameters.ts +240 -0
  113. package/src/operations/firewallRules.ts +314 -0
  114. package/src/operations/index.ts +15 -0
  115. package/src/operations/linkedServer.ts +397 -0
  116. package/src/operations/operations.ts +137 -0
  117. package/src/operations/patchSchedules.ts +327 -0
  118. package/src/operations/privateEndpointConnections.ts +353 -0
  119. package/src/operations/privateLinkResources.ts +135 -0
  120. package/src/operations/redis.ts +1152 -0
  121. package/src/operationsInterfaces/firewallRules.ts +75 -0
  122. package/src/operationsInterfaces/index.ts +15 -0
  123. package/src/operationsInterfaces/linkedServer.ts +97 -0
  124. package/src/operationsInterfaces/operations.ts +22 -0
  125. package/src/operationsInterfaces/patchSchedules.ts +76 -0
  126. package/src/operationsInterfaces/privateEndpointConnections.ts +100 -0
  127. package/src/operationsInterfaces/privateLinkResources.ts +29 -0
  128. package/src/operationsInterfaces/redis.ts +250 -0
  129. package/src/redisManagementClient.ts +61 -0
  130. package/src/redisManagementClientContext.ts +71 -0
  131. package/tsconfig.json +19 -0
  132. package/types/arm-rediscache.d.ts +1509 -0
  133. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,73 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { LinkedServer } from "../operationsInterfaces";
3
+ import { RedisManagementClientContext } from "../redisManagementClientContext";
4
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
5
+ import { RedisLinkedServerWithProperties, LinkedServerListOptionalParams, RedisLinkedServerCreateParameters, LinkedServerCreateOptionalParams, LinkedServerCreateResponse, LinkedServerDeleteOptionalParams, LinkedServerGetOptionalParams, LinkedServerGetResponse } from "../models";
6
+ /** Class containing LinkedServer operations. */
7
+ export declare class LinkedServerImpl implements LinkedServer {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class LinkedServer class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: RedisManagementClientContext);
14
+ /**
15
+ * Gets the list of linked servers associated with this redis cache (requires Premium SKU).
16
+ * @param resourceGroupName The name of the resource group.
17
+ * @param name The name of the redis cache.
18
+ * @param options The options parameters.
19
+ */
20
+ list(resourceGroupName: string, name: string, options?: LinkedServerListOptionalParams): PagedAsyncIterableIterator<RedisLinkedServerWithProperties>;
21
+ private listPagingPage;
22
+ private listPagingAll;
23
+ /**
24
+ * Adds a linked server to the Redis cache (requires Premium SKU).
25
+ * @param resourceGroupName The name of the resource group.
26
+ * @param name The name of the Redis cache.
27
+ * @param linkedServerName The name of the linked server that is being added to the Redis cache.
28
+ * @param parameters Parameters supplied to the Create Linked server operation.
29
+ * @param options The options parameters.
30
+ */
31
+ beginCreate(resourceGroupName: string, name: string, linkedServerName: string, parameters: RedisLinkedServerCreateParameters, options?: LinkedServerCreateOptionalParams): Promise<PollerLike<PollOperationState<LinkedServerCreateResponse>, LinkedServerCreateResponse>>;
32
+ /**
33
+ * Adds a linked server to the Redis cache (requires Premium SKU).
34
+ * @param resourceGroupName The name of the resource group.
35
+ * @param name The name of the Redis cache.
36
+ * @param linkedServerName The name of the linked server that is being added to the Redis cache.
37
+ * @param parameters Parameters supplied to the Create Linked server operation.
38
+ * @param options The options parameters.
39
+ */
40
+ beginCreateAndWait(resourceGroupName: string, name: string, linkedServerName: string, parameters: RedisLinkedServerCreateParameters, options?: LinkedServerCreateOptionalParams): Promise<LinkedServerCreateResponse>;
41
+ /**
42
+ * Deletes the linked server from a redis cache (requires Premium SKU).
43
+ * @param resourceGroupName The name of the resource group.
44
+ * @param name The name of the redis cache.
45
+ * @param linkedServerName The name of the linked server that is being added to the Redis cache.
46
+ * @param options The options parameters.
47
+ */
48
+ delete(resourceGroupName: string, name: string, linkedServerName: string, options?: LinkedServerDeleteOptionalParams): Promise<void>;
49
+ /**
50
+ * Gets the detailed information about a linked server of a redis cache (requires Premium SKU).
51
+ * @param resourceGroupName The name of the resource group.
52
+ * @param name The name of the redis cache.
53
+ * @param linkedServerName The name of the linked server.
54
+ * @param options The options parameters.
55
+ */
56
+ get(resourceGroupName: string, name: string, linkedServerName: string, options?: LinkedServerGetOptionalParams): Promise<LinkedServerGetResponse>;
57
+ /**
58
+ * Gets the list of linked servers associated with this redis cache (requires Premium SKU).
59
+ * @param resourceGroupName The name of the resource group.
60
+ * @param name The name of the redis cache.
61
+ * @param options The options parameters.
62
+ */
63
+ private _list;
64
+ /**
65
+ * ListNext
66
+ * @param resourceGroupName The name of the resource group.
67
+ * @param name The name of the redis cache.
68
+ * @param nextLink The nextLink from the previous successful call to the List method.
69
+ * @param options The options parameters.
70
+ */
71
+ private _listNext;
72
+ }
73
+ //# sourceMappingURL=linkedServer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedServer.d.ts","sourceRoot":"","sources":["../../../src/operations/linkedServer.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,+BAA+B,EAE/B,8BAA8B,EAC9B,iC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OAAO,CAAC,KAAK;IAWb;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAWlB"}
@@ -0,0 +1,288 @@
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 LinkedServer operations. */
16
+ export class LinkedServerImpl {
17
+ /**
18
+ * Initialize a new instance of the class LinkedServer class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * Gets the list of linked servers associated with this redis cache (requires Premium SKU).
26
+ * @param resourceGroupName The name of the resource group.
27
+ * @param name The name of the redis cache.
28
+ * @param options The options parameters.
29
+ */
30
+ list(resourceGroupName, name, options) {
31
+ const iter = this.listPagingAll(resourceGroupName, name, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listPagingPage(resourceGroupName, name, options);
41
+ }
42
+ };
43
+ }
44
+ listPagingPage(resourceGroupName, name, options) {
45
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
+ let result = yield __await(this._list(resourceGroupName, name, options));
47
+ yield yield __await(result.value || []);
48
+ let continuationToken = result.nextLink;
49
+ while (continuationToken) {
50
+ result = yield __await(this._listNext(resourceGroupName, name, continuationToken, options));
51
+ continuationToken = result.nextLink;
52
+ yield yield __await(result.value || []);
53
+ }
54
+ });
55
+ }
56
+ listPagingAll(resourceGroupName, name, options) {
57
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
58
+ var e_1, _a;
59
+ try {
60
+ for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, name, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
61
+ const page = _c.value;
62
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
63
+ }
64
+ }
65
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
66
+ finally {
67
+ try {
68
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
69
+ }
70
+ finally { if (e_1) throw e_1.error; }
71
+ }
72
+ });
73
+ }
74
+ /**
75
+ * Adds a linked server to the Redis cache (requires Premium SKU).
76
+ * @param resourceGroupName The name of the resource group.
77
+ * @param name The name of the Redis cache.
78
+ * @param linkedServerName The name of the linked server that is being added to the Redis cache.
79
+ * @param parameters Parameters supplied to the Create Linked server operation.
80
+ * @param options The options parameters.
81
+ */
82
+ beginCreate(resourceGroupName, name, linkedServerName, parameters, options) {
83
+ return __awaiter(this, void 0, void 0, function* () {
84
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
85
+ return this.client.sendOperationRequest(args, spec);
86
+ });
87
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
88
+ var _a;
89
+ let currentRawResponse = undefined;
90
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
91
+ const callback = (rawResponse, flatResponse) => {
92
+ currentRawResponse = rawResponse;
93
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
94
+ };
95
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
96
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
97
+ return {
98
+ flatResponse,
99
+ rawResponse: {
100
+ statusCode: currentRawResponse.status,
101
+ body: currentRawResponse.parsedBody,
102
+ headers: currentRawResponse.headers.toJSON()
103
+ }
104
+ };
105
+ });
106
+ const lro = new LroImpl(sendOperation, { resourceGroupName, name, linkedServerName, parameters, options }, createOperationSpec);
107
+ return new LroEngine(lro, {
108
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
109
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
110
+ });
111
+ });
112
+ }
113
+ /**
114
+ * Adds a linked server to the Redis cache (requires Premium SKU).
115
+ * @param resourceGroupName The name of the resource group.
116
+ * @param name The name of the Redis cache.
117
+ * @param linkedServerName The name of the linked server that is being added to the Redis cache.
118
+ * @param parameters Parameters supplied to the Create Linked server operation.
119
+ * @param options The options parameters.
120
+ */
121
+ beginCreateAndWait(resourceGroupName, name, linkedServerName, parameters, options) {
122
+ return __awaiter(this, void 0, void 0, function* () {
123
+ const poller = yield this.beginCreate(resourceGroupName, name, linkedServerName, parameters, options);
124
+ return poller.pollUntilDone();
125
+ });
126
+ }
127
+ /**
128
+ * Deletes the linked server from a redis cache (requires Premium SKU).
129
+ * @param resourceGroupName The name of the resource group.
130
+ * @param name The name of the redis cache.
131
+ * @param linkedServerName The name of the linked server that is being added to the Redis cache.
132
+ * @param options The options parameters.
133
+ */
134
+ delete(resourceGroupName, name, linkedServerName, options) {
135
+ return this.client.sendOperationRequest({ resourceGroupName, name, linkedServerName, options }, deleteOperationSpec);
136
+ }
137
+ /**
138
+ * Gets the detailed information about a linked server of a redis cache (requires Premium SKU).
139
+ * @param resourceGroupName The name of the resource group.
140
+ * @param name The name of the redis cache.
141
+ * @param linkedServerName The name of the linked server.
142
+ * @param options The options parameters.
143
+ */
144
+ get(resourceGroupName, name, linkedServerName, options) {
145
+ return this.client.sendOperationRequest({ resourceGroupName, name, linkedServerName, options }, getOperationSpec);
146
+ }
147
+ /**
148
+ * Gets the list of linked servers associated with this redis cache (requires Premium SKU).
149
+ * @param resourceGroupName The name of the resource group.
150
+ * @param name The name of the redis cache.
151
+ * @param options The options parameters.
152
+ */
153
+ _list(resourceGroupName, name, options) {
154
+ return this.client.sendOperationRequest({ resourceGroupName, name, options }, listOperationSpec);
155
+ }
156
+ /**
157
+ * ListNext
158
+ * @param resourceGroupName The name of the resource group.
159
+ * @param name The name of the redis cache.
160
+ * @param nextLink The nextLink from the previous successful call to the List method.
161
+ * @param options The options parameters.
162
+ */
163
+ _listNext(resourceGroupName, name, nextLink, options) {
164
+ return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, listNextOperationSpec);
165
+ }
166
+ }
167
+ // Operation Specifications
168
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
169
+ const createOperationSpec = {
170
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/linkedServers/{linkedServerName}",
171
+ httpMethod: "PUT",
172
+ responses: {
173
+ 200: {
174
+ bodyMapper: Mappers.RedisLinkedServerWithProperties
175
+ },
176
+ 201: {
177
+ bodyMapper: Mappers.RedisLinkedServerWithProperties
178
+ },
179
+ 202: {
180
+ bodyMapper: Mappers.RedisLinkedServerWithProperties
181
+ },
182
+ 204: {
183
+ bodyMapper: Mappers.RedisLinkedServerWithProperties
184
+ },
185
+ default: {
186
+ bodyMapper: Mappers.ErrorResponse
187
+ }
188
+ },
189
+ requestBody: Parameters.parameters9,
190
+ queryParameters: [Parameters.apiVersion],
191
+ urlParameters: [
192
+ Parameters.$host,
193
+ Parameters.subscriptionId,
194
+ Parameters.resourceGroupName,
195
+ Parameters.name,
196
+ Parameters.linkedServerName
197
+ ],
198
+ headerParameters: [Parameters.accept, Parameters.contentType],
199
+ mediaType: "json",
200
+ serializer
201
+ };
202
+ const deleteOperationSpec = {
203
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/linkedServers/{linkedServerName}",
204
+ httpMethod: "DELETE",
205
+ responses: {
206
+ 200: {},
207
+ 204: {},
208
+ default: {
209
+ bodyMapper: Mappers.ErrorResponse
210
+ }
211
+ },
212
+ queryParameters: [Parameters.apiVersion],
213
+ urlParameters: [
214
+ Parameters.$host,
215
+ Parameters.subscriptionId,
216
+ Parameters.resourceGroupName,
217
+ Parameters.name,
218
+ Parameters.linkedServerName
219
+ ],
220
+ headerParameters: [Parameters.accept],
221
+ serializer
222
+ };
223
+ const getOperationSpec = {
224
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/linkedServers/{linkedServerName}",
225
+ httpMethod: "GET",
226
+ responses: {
227
+ 200: {
228
+ bodyMapper: Mappers.RedisLinkedServerWithProperties
229
+ },
230
+ default: {
231
+ bodyMapper: Mappers.ErrorResponse
232
+ }
233
+ },
234
+ queryParameters: [Parameters.apiVersion],
235
+ urlParameters: [
236
+ Parameters.$host,
237
+ Parameters.subscriptionId,
238
+ Parameters.resourceGroupName,
239
+ Parameters.name,
240
+ Parameters.linkedServerName
241
+ ],
242
+ headerParameters: [Parameters.accept],
243
+ serializer
244
+ };
245
+ const listOperationSpec = {
246
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/linkedServers",
247
+ httpMethod: "GET",
248
+ responses: {
249
+ 200: {
250
+ bodyMapper: Mappers.RedisLinkedServerWithPropertiesList
251
+ },
252
+ default: {
253
+ bodyMapper: Mappers.ErrorResponse
254
+ }
255
+ },
256
+ queryParameters: [Parameters.apiVersion],
257
+ urlParameters: [
258
+ Parameters.$host,
259
+ Parameters.subscriptionId,
260
+ Parameters.resourceGroupName,
261
+ Parameters.name
262
+ ],
263
+ headerParameters: [Parameters.accept],
264
+ serializer
265
+ };
266
+ const listNextOperationSpec = {
267
+ path: "{nextLink}",
268
+ httpMethod: "GET",
269
+ responses: {
270
+ 200: {
271
+ bodyMapper: Mappers.RedisLinkedServerWithPropertiesList
272
+ },
273
+ default: {
274
+ bodyMapper: Mappers.ErrorResponse
275
+ }
276
+ },
277
+ queryParameters: [Parameters.apiVersion],
278
+ urlParameters: [
279
+ Parameters.$host,
280
+ Parameters.nextLink,
281
+ Parameters.subscriptionId,
282
+ Parameters.resourceGroupName,
283
+ Parameters.name
284
+ ],
285
+ headerParameters: [Parameters.accept],
286
+ serializer
287
+ };
288
+ //# sourceMappingURL=linkedServer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedServer.js","sourceRoot":"","sources":["../../../src/operations/linkedServer.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;AAerC,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,IAAY,EACZ,OAAwC;QAExC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAClE,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,cAAc,CAAC,iBAAiB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;YAC/D,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,IAAY,EACZ,OAAwC;;YAExC,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,IAAI,EAAE,OAAO,CAAC,CAA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cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,IAAI;QACf,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,yHAAyH;IAC3H,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;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;KAChB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;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,IAAI;KAChB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces";
3
+ import { RedisManagementClientContext } from "../redisManagementClientContext";
4
+ import { Operation, OperationsListOptionalParams } from "../models";
5
+ /** Class containing Operations operations. */
6
+ export declare class OperationsImpl implements Operations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Operations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: RedisManagementClientContext);
13
+ /**
14
+ * Lists all of the available REST API operations of the Microsoft.Cache provider.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Lists all of the available REST API operations of the Microsoft.Cache provider.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ /**
26
+ * ListNext
27
+ * @param nextLink The nextLink from the previous successful call to the List method.
28
+ * @param options The options parameters.
29
+ */
30
+ private _listNext;
31
+ }
32
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;IAEtD;;;OAGG;gBACS,MAAM,EAAE,4BAA4B;IAIhD;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAezB,cAAc;YAad,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,120 @@
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 Operations operations. */
14
+ export class OperationsImpl {
15
+ /**
16
+ * Initialize a new instance of the class Operations class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Lists all of the available REST API operations of the Microsoft.Cache provider.
24
+ * @param options The options parameters.
25
+ */
26
+ list(options) {
27
+ const iter = this.listPagingAll(options);
28
+ return {
29
+ next() {
30
+ return iter.next();
31
+ },
32
+ [Symbol.asyncIterator]() {
33
+ return this;
34
+ },
35
+ byPage: () => {
36
+ return this.listPagingPage(options);
37
+ }
38
+ };
39
+ }
40
+ listPagingPage(options) {
41
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
42
+ let result = yield __await(this._list(options));
43
+ yield yield __await(result.value || []);
44
+ let continuationToken = result.nextLink;
45
+ while (continuationToken) {
46
+ result = yield __await(this._listNext(continuationToken, options));
47
+ continuationToken = result.nextLink;
48
+ yield yield __await(result.value || []);
49
+ }
50
+ });
51
+ }
52
+ listPagingAll(options) {
53
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
54
+ var e_1, _a;
55
+ try {
56
+ for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
57
+ const page = _c.value;
58
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
59
+ }
60
+ }
61
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
62
+ finally {
63
+ try {
64
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
65
+ }
66
+ finally { if (e_1) throw e_1.error; }
67
+ }
68
+ });
69
+ }
70
+ /**
71
+ * Lists all of the available REST API operations of the Microsoft.Cache provider.
72
+ * @param options The options parameters.
73
+ */
74
+ _list(options) {
75
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
76
+ }
77
+ /**
78
+ * ListNext
79
+ * @param nextLink The nextLink from the previous successful call to the List method.
80
+ * @param options The options parameters.
81
+ */
82
+ _listNext(nextLink, options) {
83
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
84
+ }
85
+ }
86
+ // Operation Specifications
87
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
88
+ const listOperationSpec = {
89
+ path: "/providers/Microsoft.Cache/operations",
90
+ httpMethod: "GET",
91
+ responses: {
92
+ 200: {
93
+ bodyMapper: Mappers.OperationListResult
94
+ },
95
+ default: {
96
+ bodyMapper: Mappers.ErrorResponse
97
+ }
98
+ },
99
+ queryParameters: [Parameters.apiVersion],
100
+ urlParameters: [Parameters.$host],
101
+ headerParameters: [Parameters.accept],
102
+ serializer
103
+ };
104
+ const listNextOperationSpec = {
105
+ path: "{nextLink}",
106
+ httpMethod: "GET",
107
+ responses: {
108
+ 200: {
109
+ bodyMapper: Mappers.OperationListResult
110
+ },
111
+ default: {
112
+ bodyMapper: Mappers.ErrorResponse
113
+ }
114
+ },
115
+ queryParameters: [Parameters.apiVersion],
116
+ urlParameters: [Parameters.$host, Parameters.nextLink],
117
+ headerParameters: [Parameters.accept],
118
+ serializer
119
+ };
120
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.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;AAUnD,4CAA4C;AAC5C,8CAA8C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terator } from "@azure/core-paging";
2
+ import { PatchSchedules } from "../operationsInterfaces";
3
+ import { RedisManagementClientContext } from "../redisManagementClientContext";
4
+ import { RedisPatchSchedule, PatchSchedulesListByRedisResourceOptionalParams, DefaultName, PatchSchedulesCreateOrUpdateOptionalParams, PatchSchedulesCreateOrUpdateResponse, PatchSchedulesDeleteOptionalParams, PatchSchedulesGetOptionalParams, PatchSchedulesGetResponse } from "../models";
5
+ /** Class containing PatchSchedules operations. */
6
+ export declare class PatchSchedulesImpl implements PatchSchedules {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class PatchSchedules class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: RedisManagementClientContext);
13
+ /**
14
+ * Gets all patch schedules in the specified redis cache (there is only one).
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
+ listByRedisResource(resourceGroupName: string, cacheName: string, options?: PatchSchedulesListByRedisResourceOptionalParams): PagedAsyncIterableIterator<RedisPatchSchedule>;
20
+ private listByRedisResourcePagingPage;
21
+ private listByRedisResourcePagingAll;
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
+ private _listByRedisResource;
29
+ /**
30
+ * Create or replace the patching schedule for Redis cache.
31
+ * @param resourceGroupName The name of the resource group.
32
+ * @param name The name of the Redis cache.
33
+ * @param parameters Parameters to set the patching schedule for Redis cache.
34
+ * @param defaultParam Default string modeled as parameter for auto generation to work correctly.
35
+ * @param options The options parameters.
36
+ */
37
+ createOrUpdate(resourceGroupName: string, name: string, parameters: RedisPatchSchedule, defaultParam: DefaultName, options?: PatchSchedulesCreateOrUpdateOptionalParams): Promise<PatchSchedulesCreateOrUpdateResponse>;
38
+ /**
39
+ * Deletes the patching schedule of a redis cache.
40
+ * @param resourceGroupName The name of the resource group.
41
+ * @param name The name of the redis cache.
42
+ * @param defaultParam Default string modeled as parameter for auto generation to work correctly.
43
+ * @param options The options parameters.
44
+ */
45
+ delete(resourceGroupName: string, name: string, defaultParam: DefaultName, options?: PatchSchedulesDeleteOptionalParams): Promise<void>;
46
+ /**
47
+ * Gets the patching schedule of a redis cache.
48
+ * @param resourceGroupName The name of the resource group.
49
+ * @param name The name of the redis cache.
50
+ * @param defaultParam Default string modeled as parameter for auto generation to work correctly.
51
+ * @param options The options parameters.
52
+ */
53
+ get(resourceGroupName: string, name: string, defaultParam: DefaultName, options?: PatchSchedulesGetOptionalParams): Promise<PatchSchedulesGetResponse>;
54
+ /**
55
+ * ListByRedisResourceNext
56
+ * @param resourceGroupName The name of the resource group.
57
+ * @param cacheName The name of the Redis cache.
58
+ * @param nextLink The nextLink from the previous successful call to the ListByRedisResource method.
59
+ * @param options The options parameters.
60
+ */
61
+ private _listByRedisResourceNext;
62
+ }
63
+ //# sourceMappingURL=patchSchedules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patchSchedules.d.ts","sourceRoot":"","sources":["../../../src/operations/patchSchedules.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EACL,kBAAkB,EAElB,+CAA+C,EAE/C,WAAW,EACX,0CAA0C,EAC1C,oCAAoC,EACpC,kCAAkC,EAClC,+BAA+B,EAC/B,yBAAyB,EAE1B,MAAM,WAAW,CAAC;AAGnB,kDAAkD;AAClD,qBAAa,kBAAmB,YAAW,cAAc;IACvD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;IAEtD;;;OAGG;gBACS,MAAM,EAAE,4BAA4B;IAIhD;;;;;OAKG;IACI,mBAAmB,CACxB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,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