@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,1509 @@
1
+ import * as coreAuth from '@azure/core-auth';
2
+ import * as coreClient from '@azure/core-client';
3
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
+ import { PollerLike } from '@azure/core-lro';
5
+ import { PollOperationState } from '@azure/core-lro';
6
+
7
+ /** Parameters body to pass for resource name availability check. */
8
+ export declare interface CheckNameAvailabilityParameters {
9
+ /** Resource name. */
10
+ name: string;
11
+ /** Resource type. The only legal value of this property for checking redis cache name availability is 'Microsoft.Cache/redis'. */
12
+ type: string;
13
+ }
14
+
15
+ /** Defines values for DayOfWeek. */
16
+ export declare type DayOfWeek = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday" | "Everyday" | "Weekend";
17
+
18
+ /**
19
+ * Defines values for DefaultName. \
20
+ * {@link KnownDefaultName} can be used interchangeably with DefaultName,
21
+ * this enum contains the known values that the service supports.
22
+ * ### Known values supported by the service
23
+ * **default**
24
+ */
25
+ export declare type DefaultName = string;
26
+
27
+ /** The resource management error additional info. */
28
+ export declare interface ErrorAdditionalInfo {
29
+ /**
30
+ * The additional info type.
31
+ * NOTE: This property will not be serialized. It can only be populated by the server.
32
+ */
33
+ readonly type?: string;
34
+ /**
35
+ * The additional info.
36
+ * NOTE: This property will not be serialized. It can only be populated by the server.
37
+ */
38
+ readonly info?: Record<string, unknown>;
39
+ }
40
+
41
+ /** The error detail. */
42
+ export declare interface ErrorDetail {
43
+ /**
44
+ * The error code.
45
+ * NOTE: This property will not be serialized. It can only be populated by the server.
46
+ */
47
+ readonly code?: string;
48
+ /**
49
+ * The error message.
50
+ * NOTE: This property will not be serialized. It can only be populated by the server.
51
+ */
52
+ readonly message?: string;
53
+ /**
54
+ * The error target.
55
+ * NOTE: This property will not be serialized. It can only be populated by the server.
56
+ */
57
+ readonly target?: string;
58
+ /**
59
+ * The error details.
60
+ * NOTE: This property will not be serialized. It can only be populated by the server.
61
+ */
62
+ readonly details?: ErrorDetail[];
63
+ /**
64
+ * The error additional info.
65
+ * NOTE: This property will not be serialized. It can only be populated by the server.
66
+ */
67
+ readonly additionalInfo?: ErrorAdditionalInfo[];
68
+ }
69
+
70
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
71
+ export declare interface ErrorResponse {
72
+ /** The error object. */
73
+ error?: ErrorDetail;
74
+ }
75
+
76
+ /** Parameters for Redis export operation. */
77
+ export declare interface ExportRDBParameters {
78
+ /** File format. */
79
+ format?: string;
80
+ /** Prefix to use for exported files. */
81
+ prefix: string;
82
+ /** Container name to export to. */
83
+ container: string;
84
+ }
85
+
86
+ /** Interface representing a FirewallRules. */
87
+ export declare interface FirewallRules {
88
+ /**
89
+ * Gets all firewall rules in the specified redis cache.
90
+ * @param resourceGroupName The name of the resource group.
91
+ * @param cacheName The name of the Redis cache.
92
+ * @param options The options parameters.
93
+ */
94
+ list(resourceGroupName: string, cacheName: string, options?: FirewallRulesListOptionalParams): PagedAsyncIterableIterator<RedisFirewallRule>;
95
+ /**
96
+ * Create or update a redis cache firewall rule
97
+ * @param resourceGroupName The name of the resource group.
98
+ * @param cacheName The name of the Redis cache.
99
+ * @param ruleName The name of the firewall rule.
100
+ * @param parameters Parameters supplied to the create or update redis firewall rule operation.
101
+ * @param options The options parameters.
102
+ */
103
+ createOrUpdate(resourceGroupName: string, cacheName: string, ruleName: string, parameters: RedisFirewallRule, options?: FirewallRulesCreateOrUpdateOptionalParams): Promise<FirewallRulesCreateOrUpdateResponse>;
104
+ /**
105
+ * Gets a single firewall rule in a specified redis cache.
106
+ * @param resourceGroupName The name of the resource group.
107
+ * @param cacheName The name of the Redis cache.
108
+ * @param ruleName The name of the firewall rule.
109
+ * @param options The options parameters.
110
+ */
111
+ get(resourceGroupName: string, cacheName: string, ruleName: string, options?: FirewallRulesGetOptionalParams): Promise<FirewallRulesGetResponse>;
112
+ /**
113
+ * Deletes a single firewall rule in a specified redis cache.
114
+ * @param resourceGroupName The name of the resource group.
115
+ * @param cacheName The name of the Redis cache.
116
+ * @param ruleName The name of the firewall rule.
117
+ * @param options The options parameters.
118
+ */
119
+ delete(resourceGroupName: string, cacheName: string, ruleName: string, options?: FirewallRulesDeleteOptionalParams): Promise<void>;
120
+ }
121
+
122
+ /** Optional parameters. */
123
+ export declare interface FirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
124
+ }
125
+
126
+ /** Contains response data for the createOrUpdate operation. */
127
+ export declare type FirewallRulesCreateOrUpdateResponse = RedisFirewallRule;
128
+
129
+ /** Optional parameters. */
130
+ export declare interface FirewallRulesDeleteOptionalParams extends coreClient.OperationOptions {
131
+ }
132
+
133
+ /** Optional parameters. */
134
+ export declare interface FirewallRulesGetOptionalParams extends coreClient.OperationOptions {
135
+ }
136
+
137
+ /** Contains response data for the get operation. */
138
+ export declare type FirewallRulesGetResponse = RedisFirewallRule;
139
+
140
+ /** Optional parameters. */
141
+ export declare interface FirewallRulesListNextOptionalParams extends coreClient.OperationOptions {
142
+ }
143
+
144
+ /** Contains response data for the listNext operation. */
145
+ export declare type FirewallRulesListNextResponse = RedisFirewallRuleListResult;
146
+
147
+ /** Optional parameters. */
148
+ export declare interface FirewallRulesListOptionalParams extends coreClient.OperationOptions {
149
+ }
150
+
151
+ /** Contains response data for the list operation. */
152
+ export declare type FirewallRulesListResponse = RedisFirewallRuleListResult;
153
+
154
+ /** Parameters for Redis import operation. */
155
+ export declare interface ImportRDBParameters {
156
+ /** File format. */
157
+ format?: string;
158
+ /** files to import. */
159
+ files: string[];
160
+ }
161
+
162
+ /** Known values of {@link DefaultName} that the service accepts. */
163
+ export declare enum KnownDefaultName {
164
+ Default = "default"
165
+ }
166
+
167
+ /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
168
+ export declare enum KnownPrivateEndpointConnectionProvisioningState {
169
+ Succeeded = "Succeeded",
170
+ Creating = "Creating",
171
+ Deleting = "Deleting",
172
+ Failed = "Failed"
173
+ }
174
+
175
+ /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
176
+ export declare enum KnownPrivateEndpointServiceConnectionStatus {
177
+ Pending = "Pending",
178
+ Approved = "Approved",
179
+ Rejected = "Rejected"
180
+ }
181
+
182
+ /** Known values of {@link ProvisioningState} that the service accepts. */
183
+ export declare enum KnownProvisioningState {
184
+ Creating = "Creating",
185
+ Deleting = "Deleting",
186
+ Disabled = "Disabled",
187
+ Failed = "Failed",
188
+ Linking = "Linking",
189
+ Provisioning = "Provisioning",
190
+ RecoveringScaleFailure = "RecoveringScaleFailure",
191
+ Scaling = "Scaling",
192
+ Succeeded = "Succeeded",
193
+ Unlinking = "Unlinking",
194
+ Unprovisioning = "Unprovisioning",
195
+ Updating = "Updating"
196
+ }
197
+
198
+ /** Known values of {@link PublicNetworkAccess} that the service accepts. */
199
+ export declare enum KnownPublicNetworkAccess {
200
+ Enabled = "Enabled",
201
+ Disabled = "Disabled"
202
+ }
203
+
204
+ /** Known values of {@link RebootType} that the service accepts. */
205
+ export declare enum KnownRebootType {
206
+ PrimaryNode = "PrimaryNode",
207
+ SecondaryNode = "SecondaryNode",
208
+ AllNodes = "AllNodes"
209
+ }
210
+
211
+ /** Known values of {@link SkuFamily} that the service accepts. */
212
+ export declare enum KnownSkuFamily {
213
+ C = "C",
214
+ P = "P"
215
+ }
216
+
217
+ /** Known values of {@link SkuName} that the service accepts. */
218
+ export declare enum KnownSkuName {
219
+ Basic = "Basic",
220
+ Standard = "Standard",
221
+ Premium = "Premium"
222
+ }
223
+
224
+ /** Known values of {@link TlsVersion} that the service accepts. */
225
+ export declare enum KnownTlsVersion {
226
+ One0 = "1.0",
227
+ One1 = "1.1",
228
+ One2 = "1.2"
229
+ }
230
+
231
+ /** Interface representing a LinkedServer. */
232
+ export declare interface LinkedServer {
233
+ /**
234
+ * Gets the list of linked servers associated with this redis cache (requires Premium SKU).
235
+ * @param resourceGroupName The name of the resource group.
236
+ * @param name The name of the redis cache.
237
+ * @param options The options parameters.
238
+ */
239
+ list(resourceGroupName: string, name: string, options?: LinkedServerListOptionalParams): PagedAsyncIterableIterator<RedisLinkedServerWithProperties>;
240
+ /**
241
+ * Adds a linked server to the Redis cache (requires Premium SKU).
242
+ * @param resourceGroupName The name of the resource group.
243
+ * @param name The name of the Redis cache.
244
+ * @param linkedServerName The name of the linked server that is being added to the Redis cache.
245
+ * @param parameters Parameters supplied to the Create Linked server operation.
246
+ * @param options The options parameters.
247
+ */
248
+ beginCreate(resourceGroupName: string, name: string, linkedServerName: string, parameters: RedisLinkedServerCreateParameters, options?: LinkedServerCreateOptionalParams): Promise<PollerLike<PollOperationState<LinkedServerCreateResponse>, LinkedServerCreateResponse>>;
249
+ /**
250
+ * Adds a linked server to the Redis cache (requires Premium SKU).
251
+ * @param resourceGroupName The name of the resource group.
252
+ * @param name The name of the Redis cache.
253
+ * @param linkedServerName The name of the linked server that is being added to the Redis cache.
254
+ * @param parameters Parameters supplied to the Create Linked server operation.
255
+ * @param options The options parameters.
256
+ */
257
+ beginCreateAndWait(resourceGroupName: string, name: string, linkedServerName: string, parameters: RedisLinkedServerCreateParameters, options?: LinkedServerCreateOptionalParams): Promise<LinkedServerCreateResponse>;
258
+ /**
259
+ * Deletes the linked server from a redis cache (requires Premium SKU).
260
+ * @param resourceGroupName The name of the resource group.
261
+ * @param name The name of the redis cache.
262
+ * @param linkedServerName The name of the linked server that is being added to the Redis cache.
263
+ * @param options The options parameters.
264
+ */
265
+ delete(resourceGroupName: string, name: string, linkedServerName: string, options?: LinkedServerDeleteOptionalParams): Promise<void>;
266
+ /**
267
+ * Gets the detailed information about a linked server of a redis cache (requires Premium SKU).
268
+ * @param resourceGroupName The name of the resource group.
269
+ * @param name The name of the redis cache.
270
+ * @param linkedServerName The name of the linked server.
271
+ * @param options The options parameters.
272
+ */
273
+ get(resourceGroupName: string, name: string, linkedServerName: string, options?: LinkedServerGetOptionalParams): Promise<LinkedServerGetResponse>;
274
+ }
275
+
276
+ /** Optional parameters. */
277
+ export declare interface LinkedServerCreateOptionalParams extends coreClient.OperationOptions {
278
+ /** Delay to wait until next poll, in milliseconds. */
279
+ updateIntervalInMs?: number;
280
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
281
+ resumeFrom?: string;
282
+ }
283
+
284
+ /** Contains response data for the create operation. */
285
+ export declare type LinkedServerCreateResponse = RedisLinkedServerWithProperties;
286
+
287
+ /** Optional parameters. */
288
+ export declare interface LinkedServerDeleteOptionalParams extends coreClient.OperationOptions {
289
+ }
290
+
291
+ /** Optional parameters. */
292
+ export declare interface LinkedServerGetOptionalParams extends coreClient.OperationOptions {
293
+ }
294
+
295
+ /** Contains response data for the get operation. */
296
+ export declare type LinkedServerGetResponse = RedisLinkedServerWithProperties;
297
+
298
+ /** Optional parameters. */
299
+ export declare interface LinkedServerListNextOptionalParams extends coreClient.OperationOptions {
300
+ }
301
+
302
+ /** Contains response data for the listNext operation. */
303
+ export declare type LinkedServerListNextResponse = RedisLinkedServerWithPropertiesList;
304
+
305
+ /** Optional parameters. */
306
+ export declare interface LinkedServerListOptionalParams extends coreClient.OperationOptions {
307
+ }
308
+
309
+ /** Contains response data for the list operation. */
310
+ export declare type LinkedServerListResponse = RedisLinkedServerWithPropertiesList;
311
+
312
+ /** The response of listUpgradeNotifications. */
313
+ export declare interface NotificationListResponse {
314
+ /** List of all notifications. */
315
+ value?: UpgradeNotification[];
316
+ /**
317
+ * Link for next set of notifications.
318
+ * NOTE: This property will not be serialized. It can only be populated by the server.
319
+ */
320
+ readonly nextLink?: string;
321
+ }
322
+
323
+ /** REST API operation */
324
+ export declare interface Operation {
325
+ /** Operation name: {provider}/{resource}/{operation} */
326
+ name?: string;
327
+ /** The object that describes the operation. */
328
+ display?: OperationDisplay;
329
+ }
330
+
331
+ /** The object that describes the operation. */
332
+ export declare interface OperationDisplay {
333
+ /** Friendly name of the resource provider */
334
+ provider?: string;
335
+ /** Operation type: read, write, delete, listKeys/action, etc. */
336
+ operation?: string;
337
+ /** Resource type on which the operation is performed. */
338
+ resource?: string;
339
+ /** Friendly name of the operation */
340
+ description?: string;
341
+ }
342
+
343
+ /** Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results. */
344
+ export declare interface OperationListResult {
345
+ /** List of operations supported by the resource provider. */
346
+ value?: Operation[];
347
+ /**
348
+ * URL to get the next set of operation list results if there are any.
349
+ * NOTE: This property will not be serialized. It can only be populated by the server.
350
+ */
351
+ readonly nextLink?: string;
352
+ }
353
+
354
+ /** Interface representing a Operations. */
355
+ export declare interface Operations {
356
+ /**
357
+ * Lists all of the available REST API operations of the Microsoft.Cache provider.
358
+ * @param options The options parameters.
359
+ */
360
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
361
+ }
362
+
363
+ /** Optional parameters. */
364
+ export declare interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
365
+ }
366
+
367
+ /** Contains response data for the listNext operation. */
368
+ export declare type OperationsListNextResponse = OperationListResult;
369
+
370
+ /** Optional parameters. */
371
+ export declare interface OperationsListOptionalParams extends coreClient.OperationOptions {
372
+ }
373
+
374
+ /** Contains response data for the list operation. */
375
+ export declare type OperationsListResponse = OperationListResult;
376
+
377
+ /** Interface representing a PatchSchedules. */
378
+ export declare interface PatchSchedules {
379
+ /**
380
+ * Gets all patch schedules in the specified redis cache (there is only one).
381
+ * @param resourceGroupName The name of the resource group.
382
+ * @param cacheName The name of the Redis cache.
383
+ * @param options The options parameters.
384
+ */
385
+ listByRedisResource(resourceGroupName: string, cacheName: string, options?: PatchSchedulesListByRedisResourceOptionalParams): PagedAsyncIterableIterator<RedisPatchSchedule>;
386
+ /**
387
+ * Create or replace the patching schedule for Redis cache.
388
+ * @param resourceGroupName The name of the resource group.
389
+ * @param name The name of the Redis cache.
390
+ * @param parameters Parameters to set the patching schedule for Redis cache.
391
+ * @param defaultParam Default string modeled as parameter for auto generation to work correctly.
392
+ * @param options The options parameters.
393
+ */
394
+ createOrUpdate(resourceGroupName: string, name: string, parameters: RedisPatchSchedule, defaultParam: DefaultName, options?: PatchSchedulesCreateOrUpdateOptionalParams): Promise<PatchSchedulesCreateOrUpdateResponse>;
395
+ /**
396
+ * Deletes the patching schedule of a redis cache.
397
+ * @param resourceGroupName The name of the resource group.
398
+ * @param name The name of the redis cache.
399
+ * @param defaultParam Default string modeled as parameter for auto generation to work correctly.
400
+ * @param options The options parameters.
401
+ */
402
+ delete(resourceGroupName: string, name: string, defaultParam: DefaultName, options?: PatchSchedulesDeleteOptionalParams): Promise<void>;
403
+ /**
404
+ * Gets the patching schedule of a redis cache.
405
+ * @param resourceGroupName The name of the resource group.
406
+ * @param name The name of the redis cache.
407
+ * @param defaultParam Default string modeled as parameter for auto generation to work correctly.
408
+ * @param options The options parameters.
409
+ */
410
+ get(resourceGroupName: string, name: string, defaultParam: DefaultName, options?: PatchSchedulesGetOptionalParams): Promise<PatchSchedulesGetResponse>;
411
+ }
412
+
413
+ /** Optional parameters. */
414
+ export declare interface PatchSchedulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
415
+ }
416
+
417
+ /** Contains response data for the createOrUpdate operation. */
418
+ export declare type PatchSchedulesCreateOrUpdateResponse = RedisPatchSchedule;
419
+
420
+ /** Optional parameters. */
421
+ export declare interface PatchSchedulesDeleteOptionalParams extends coreClient.OperationOptions {
422
+ }
423
+
424
+ /** Optional parameters. */
425
+ export declare interface PatchSchedulesGetOptionalParams extends coreClient.OperationOptions {
426
+ }
427
+
428
+ /** Contains response data for the get operation. */
429
+ export declare type PatchSchedulesGetResponse = RedisPatchSchedule;
430
+
431
+ /** Optional parameters. */
432
+ export declare interface PatchSchedulesListByRedisResourceNextOptionalParams extends coreClient.OperationOptions {
433
+ }
434
+
435
+ /** Contains response data for the listByRedisResourceNext operation. */
436
+ export declare type PatchSchedulesListByRedisResourceNextResponse = RedisPatchScheduleListResult;
437
+
438
+ /** Optional parameters. */
439
+ export declare interface PatchSchedulesListByRedisResourceOptionalParams extends coreClient.OperationOptions {
440
+ }
441
+
442
+ /** Contains response data for the listByRedisResource operation. */
443
+ export declare type PatchSchedulesListByRedisResourceResponse = RedisPatchScheduleListResult;
444
+
445
+ /** The Private Endpoint resource. */
446
+ export declare interface PrivateEndpoint {
447
+ /**
448
+ * The ARM identifier for Private Endpoint
449
+ * NOTE: This property will not be serialized. It can only be populated by the server.
450
+ */
451
+ readonly id?: string;
452
+ }
453
+
454
+ /** The Private Endpoint Connection resource. */
455
+ export declare type PrivateEndpointConnection = Resource & {
456
+ /** The resource of private end point. */
457
+ privateEndpoint?: PrivateEndpoint;
458
+ /** A collection of information about the state of the connection between service consumer and provider. */
459
+ privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
460
+ /**
461
+ * The provisioning state of the private endpoint connection resource.
462
+ * NOTE: This property will not be serialized. It can only be populated by the server.
463
+ */
464
+ readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
465
+ };
466
+
467
+ /** List of private endpoint connection associated with the specified storage account */
468
+ export declare interface PrivateEndpointConnectionListResult {
469
+ /** Array of private endpoint connections */
470
+ value?: PrivateEndpointConnection[];
471
+ }
472
+
473
+ /**
474
+ * Defines values for PrivateEndpointConnectionProvisioningState. \
475
+ * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState,
476
+ * this enum contains the known values that the service supports.
477
+ * ### Known values supported by the service
478
+ * **Succeeded** \
479
+ * **Creating** \
480
+ * **Deleting** \
481
+ * **Failed**
482
+ */
483
+ export declare type PrivateEndpointConnectionProvisioningState = string;
484
+
485
+ /** Interface representing a PrivateEndpointConnections. */
486
+ export declare interface PrivateEndpointConnections {
487
+ /**
488
+ * List all the private endpoint connections associated with the redis cache.
489
+ * @param resourceGroupName The name of the resource group.
490
+ * @param cacheName The name of the Redis cache.
491
+ * @param options The options parameters.
492
+ */
493
+ list(resourceGroupName: string, cacheName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator<PrivateEndpointConnection>;
494
+ /**
495
+ * Gets the specified private endpoint connection associated with the redis cache.
496
+ * @param resourceGroupName The name of the resource group.
497
+ * @param cacheName The name of the Redis cache.
498
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
499
+ * Azure resource
500
+ * @param options The options parameters.
501
+ */
502
+ get(resourceGroupName: string, cacheName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise<PrivateEndpointConnectionsGetResponse>;
503
+ /**
504
+ * Update the state of specified private endpoint connection associated with the redis cache.
505
+ * @param resourceGroupName The name of the resource group.
506
+ * @param cacheName The name of the Redis cache.
507
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
508
+ * Azure resource
509
+ * @param properties The private endpoint connection properties.
510
+ * @param options The options parameters.
511
+ */
512
+ beginPut(resourceGroupName: string, cacheName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsPutOptionalParams): Promise<PollerLike<PollOperationState<PrivateEndpointConnectionsPutResponse>, PrivateEndpointConnectionsPutResponse>>;
513
+ /**
514
+ * Update the state of specified private endpoint connection associated with the redis cache.
515
+ * @param resourceGroupName The name of the resource group.
516
+ * @param cacheName The name of the Redis cache.
517
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
518
+ * Azure resource
519
+ * @param properties The private endpoint connection properties.
520
+ * @param options The options parameters.
521
+ */
522
+ beginPutAndWait(resourceGroupName: string, cacheName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsPutOptionalParams): Promise<PrivateEndpointConnectionsPutResponse>;
523
+ /**
524
+ * Deletes the specified private endpoint connection associated with the redis cache.
525
+ * @param resourceGroupName The name of the resource group.
526
+ * @param cacheName The name of the Redis cache.
527
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
528
+ * Azure resource
529
+ * @param options The options parameters.
530
+ */
531
+ delete(resourceGroupName: string, cacheName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<void>;
532
+ }
533
+
534
+ /** Optional parameters. */
535
+ export declare interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions {
536
+ }
537
+
538
+ /** Optional parameters. */
539
+ export declare interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {
540
+ }
541
+
542
+ /** Contains response data for the get operation. */
543
+ export declare type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection;
544
+
545
+ /** Optional parameters. */
546
+ export declare interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions {
547
+ }
548
+
549
+ /** Contains response data for the list operation. */
550
+ export declare type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult;
551
+
552
+ /** Optional parameters. */
553
+ export declare interface PrivateEndpointConnectionsPutOptionalParams extends coreClient.OperationOptions {
554
+ /** Delay to wait until next poll, in milliseconds. */
555
+ updateIntervalInMs?: number;
556
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
557
+ resumeFrom?: string;
558
+ }
559
+
560
+ /** Contains response data for the put operation. */
561
+ export declare type PrivateEndpointConnectionsPutResponse = PrivateEndpointConnection;
562
+
563
+ /**
564
+ * Defines values for PrivateEndpointServiceConnectionStatus. \
565
+ * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus,
566
+ * this enum contains the known values that the service supports.
567
+ * ### Known values supported by the service
568
+ * **Pending** \
569
+ * **Approved** \
570
+ * **Rejected**
571
+ */
572
+ export declare type PrivateEndpointServiceConnectionStatus = string;
573
+
574
+ /** A private link resource */
575
+ export declare type PrivateLinkResource = Resource & {
576
+ /**
577
+ * The private link resource group id.
578
+ * NOTE: This property will not be serialized. It can only be populated by the server.
579
+ */
580
+ readonly groupId?: string;
581
+ /**
582
+ * The private link resource required member names.
583
+ * NOTE: This property will not be serialized. It can only be populated by the server.
584
+ */
585
+ readonly requiredMembers?: string[];
586
+ /** The private link resource Private link DNS zone name. */
587
+ requiredZoneNames?: string[];
588
+ };
589
+
590
+ /** A list of private link resources */
591
+ export declare interface PrivateLinkResourceListResult {
592
+ /** Array of private link resources */
593
+ value?: PrivateLinkResource[];
594
+ }
595
+
596
+ /** Interface representing a PrivateLinkResources. */
597
+ export declare interface PrivateLinkResources {
598
+ /**
599
+ * Gets the private link resources that need to be created for a redis cache.
600
+ * @param resourceGroupName The name of the resource group.
601
+ * @param cacheName The name of the Redis cache.
602
+ * @param options The options parameters.
603
+ */
604
+ listByRedisCache(resourceGroupName: string, cacheName: string, options?: PrivateLinkResourcesListByRedisCacheOptionalParams): PagedAsyncIterableIterator<PrivateLinkResource>;
605
+ }
606
+
607
+ /** Optional parameters. */
608
+ export declare interface PrivateLinkResourcesListByRedisCacheOptionalParams extends coreClient.OperationOptions {
609
+ }
610
+
611
+ /** Contains response data for the listByRedisCache operation. */
612
+ export declare type PrivateLinkResourcesListByRedisCacheResponse = PrivateLinkResourceListResult;
613
+
614
+ /** A collection of information about the state of the connection between service consumer and provider. */
615
+ export declare interface PrivateLinkServiceConnectionState {
616
+ /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */
617
+ status?: PrivateEndpointServiceConnectionStatus;
618
+ /** The reason for approval/rejection of the connection. */
619
+ description?: string;
620
+ /** A message indicating if changes on the service provider require any updates on the consumer. */
621
+ actionsRequired?: string;
622
+ }
623
+
624
+ /**
625
+ * Defines values for ProvisioningState. \
626
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
627
+ * this enum contains the known values that the service supports.
628
+ * ### Known values supported by the service
629
+ * **Creating** \
630
+ * **Deleting** \
631
+ * **Disabled** \
632
+ * **Failed** \
633
+ * **Linking** \
634
+ * **Provisioning** \
635
+ * **RecoveringScaleFailure** \
636
+ * **Scaling** \
637
+ * **Succeeded** \
638
+ * **Unlinking** \
639
+ * **Unprovisioning** \
640
+ * **Updating**
641
+ */
642
+ export declare type ProvisioningState = string;
643
+
644
+ /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
645
+ export declare type ProxyResource = Resource & {};
646
+
647
+ /**
648
+ * Defines values for PublicNetworkAccess. \
649
+ * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess,
650
+ * this enum contains the known values that the service supports.
651
+ * ### Known values supported by the service
652
+ * **Enabled** \
653
+ * **Disabled**
654
+ */
655
+ export declare type PublicNetworkAccess = string;
656
+
657
+ /**
658
+ * Defines values for RebootType. \
659
+ * {@link KnownRebootType} can be used interchangeably with RebootType,
660
+ * this enum contains the known values that the service supports.
661
+ * ### Known values supported by the service
662
+ * **PrimaryNode** \
663
+ * **SecondaryNode** \
664
+ * **AllNodes**
665
+ */
666
+ export declare type RebootType = string;
667
+
668
+ /** Interface representing a Redis. */
669
+ export declare interface Redis {
670
+ /**
671
+ * Gets any upgrade notifications for a Redis cache.
672
+ * @param resourceGroupName The name of the resource group.
673
+ * @param name The name of the Redis cache.
674
+ * @param history how many minutes in past to look for upgrade notifications
675
+ * @param options The options parameters.
676
+ */
677
+ listUpgradeNotifications(resourceGroupName: string, name: string, history: number, options?: RedisListUpgradeNotificationsOptionalParams): PagedAsyncIterableIterator<UpgradeNotification>;
678
+ /**
679
+ * Lists all Redis caches in a resource group.
680
+ * @param resourceGroupName The name of the resource group.
681
+ * @param options The options parameters.
682
+ */
683
+ listByResourceGroup(resourceGroupName: string, options?: RedisListByResourceGroupOptionalParams): PagedAsyncIterableIterator<RedisResource>;
684
+ /**
685
+ * Gets all Redis caches in the specified subscription.
686
+ * @param options The options parameters.
687
+ */
688
+ listBySubscription(options?: RedisListBySubscriptionOptionalParams): PagedAsyncIterableIterator<RedisResource>;
689
+ /**
690
+ * Checks that the redis cache name is valid and is not already in use.
691
+ * @param parameters Parameters supplied to the CheckNameAvailability Redis operation. The only
692
+ * supported resource type is 'Microsoft.Cache/redis'
693
+ * @param options The options parameters.
694
+ */
695
+ checkNameAvailability(parameters: CheckNameAvailabilityParameters, options?: RedisCheckNameAvailabilityOptionalParams): Promise<void>;
696
+ /**
697
+ * Create or replace (overwrite/recreate, with potential downtime) an existing Redis cache.
698
+ * @param resourceGroupName The name of the resource group.
699
+ * @param name The name of the Redis cache.
700
+ * @param parameters Parameters supplied to the Create Redis operation.
701
+ * @param options The options parameters.
702
+ */
703
+ beginCreate(resourceGroupName: string, name: string, parameters: RedisCreateParameters, options?: RedisCreateOptionalParams): Promise<PollerLike<PollOperationState<RedisCreateResponse>, RedisCreateResponse>>;
704
+ /**
705
+ * Create or replace (overwrite/recreate, with potential downtime) an existing Redis cache.
706
+ * @param resourceGroupName The name of the resource group.
707
+ * @param name The name of the Redis cache.
708
+ * @param parameters Parameters supplied to the Create Redis operation.
709
+ * @param options The options parameters.
710
+ */
711
+ beginCreateAndWait(resourceGroupName: string, name: string, parameters: RedisCreateParameters, options?: RedisCreateOptionalParams): Promise<RedisCreateResponse>;
712
+ /**
713
+ * Update an existing Redis cache.
714
+ * @param resourceGroupName The name of the resource group.
715
+ * @param name The name of the Redis cache.
716
+ * @param parameters Parameters supplied to the Update Redis operation.
717
+ * @param options The options parameters.
718
+ */
719
+ update(resourceGroupName: string, name: string, parameters: RedisUpdateParameters, options?: RedisUpdateOptionalParams): Promise<RedisUpdateResponse>;
720
+ /**
721
+ * Deletes a Redis cache.
722
+ * @param resourceGroupName The name of the resource group.
723
+ * @param name The name of the Redis cache.
724
+ * @param options The options parameters.
725
+ */
726
+ beginDelete(resourceGroupName: string, name: string, options?: RedisDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
727
+ /**
728
+ * Deletes a Redis cache.
729
+ * @param resourceGroupName The name of the resource group.
730
+ * @param name The name of the Redis cache.
731
+ * @param options The options parameters.
732
+ */
733
+ beginDeleteAndWait(resourceGroupName: string, name: string, options?: RedisDeleteOptionalParams): Promise<void>;
734
+ /**
735
+ * Gets a Redis cache (resource description).
736
+ * @param resourceGroupName The name of the resource group.
737
+ * @param name The name of the Redis cache.
738
+ * @param options The options parameters.
739
+ */
740
+ get(resourceGroupName: string, name: string, options?: RedisGetOptionalParams): Promise<RedisGetResponse>;
741
+ /**
742
+ * Retrieve a Redis cache's access keys. This operation requires write permission to the cache
743
+ * resource.
744
+ * @param resourceGroupName The name of the resource group.
745
+ * @param name The name of the Redis cache.
746
+ * @param options The options parameters.
747
+ */
748
+ listKeys(resourceGroupName: string, name: string, options?: RedisListKeysOptionalParams): Promise<RedisListKeysResponse>;
749
+ /**
750
+ * Regenerate Redis cache's access keys. This operation requires write permission to the cache
751
+ * resource.
752
+ * @param resourceGroupName The name of the resource group.
753
+ * @param name The name of the Redis cache.
754
+ * @param parameters Specifies which key to regenerate.
755
+ * @param options The options parameters.
756
+ */
757
+ regenerateKey(resourceGroupName: string, name: string, parameters: RedisRegenerateKeyParameters, options?: RedisRegenerateKeyOptionalParams): Promise<RedisRegenerateKeyResponse>;
758
+ /**
759
+ * Reboot specified Redis node(s). This operation requires write permission to the cache resource.
760
+ * There can be potential data loss.
761
+ * @param resourceGroupName The name of the resource group.
762
+ * @param name The name of the Redis cache.
763
+ * @param parameters Specifies which Redis node(s) to reboot.
764
+ * @param options The options parameters.
765
+ */
766
+ forceReboot(resourceGroupName: string, name: string, parameters: RedisRebootParameters, options?: RedisForceRebootOptionalParams): Promise<RedisForceRebootOperationResponse>;
767
+ /**
768
+ * Import data into Redis cache.
769
+ * @param resourceGroupName The name of the resource group.
770
+ * @param name The name of the Redis cache.
771
+ * @param parameters Parameters for Redis import operation.
772
+ * @param options The options parameters.
773
+ */
774
+ beginImportData(resourceGroupName: string, name: string, parameters: ImportRDBParameters, options?: RedisImportDataOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
775
+ /**
776
+ * Import data into Redis cache.
777
+ * @param resourceGroupName The name of the resource group.
778
+ * @param name The name of the Redis cache.
779
+ * @param parameters Parameters for Redis import operation.
780
+ * @param options The options parameters.
781
+ */
782
+ beginImportDataAndWait(resourceGroupName: string, name: string, parameters: ImportRDBParameters, options?: RedisImportDataOptionalParams): Promise<void>;
783
+ /**
784
+ * Export data from the redis cache to blobs in a container.
785
+ * @param resourceGroupName The name of the resource group.
786
+ * @param name The name of the Redis cache.
787
+ * @param parameters Parameters for Redis export operation.
788
+ * @param options The options parameters.
789
+ */
790
+ beginExportData(resourceGroupName: string, name: string, parameters: ExportRDBParameters, options?: RedisExportDataOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
791
+ /**
792
+ * Export data from the redis cache to blobs in a container.
793
+ * @param resourceGroupName The name of the resource group.
794
+ * @param name The name of the Redis cache.
795
+ * @param parameters Parameters for Redis export operation.
796
+ * @param options The options parameters.
797
+ */
798
+ beginExportDataAndWait(resourceGroupName: string, name: string, parameters: ExportRDBParameters, options?: RedisExportDataOptionalParams): Promise<void>;
799
+ }
800
+
801
+ /** Redis cache access keys. */
802
+ export declare interface RedisAccessKeys {
803
+ /**
804
+ * The current primary key that clients can use to authenticate with Redis cache.
805
+ * NOTE: This property will not be serialized. It can only be populated by the server.
806
+ */
807
+ readonly primaryKey?: string;
808
+ /**
809
+ * The current secondary key that clients can use to authenticate with Redis cache.
810
+ * NOTE: This property will not be serialized. It can only be populated by the server.
811
+ */
812
+ readonly secondaryKey?: string;
813
+ }
814
+
815
+ /** Optional parameters. */
816
+ export declare interface RedisCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {
817
+ }
818
+
819
+ /** Create/Update/Get common properties of the redis cache. */
820
+ export declare interface RedisCommonProperties {
821
+ /** All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc. */
822
+ redisConfiguration?: RedisCommonPropertiesRedisConfiguration;
823
+ /** Redis version. Only major version will be used in PUT/PATCH request with current valid values: (4, 6) */
824
+ redisVersion?: string;
825
+ /** Specifies whether the non-ssl Redis server port (6379) is enabled. */
826
+ enableNonSslPort?: boolean;
827
+ /** The number of replicas to be created per primary. */
828
+ replicasPerMaster?: number;
829
+ /** The number of replicas to be created per primary. */
830
+ replicasPerPrimary?: number;
831
+ /** A dictionary of tenant settings */
832
+ tenantSettings?: {
833
+ [propertyName: string]: string;
834
+ };
835
+ /** The number of shards to be created on a Premium Cluster Cache. */
836
+ shardCount?: number;
837
+ /** Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2') */
838
+ minimumTlsVersion?: TlsVersion;
839
+ /** Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */
840
+ publicNetworkAccess?: PublicNetworkAccess;
841
+ }
842
+
843
+ /** All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc. */
844
+ export declare interface RedisCommonPropertiesRedisConfiguration {
845
+ /** Describes unknown properties. The value of an unknown property can be of "any" type. */
846
+ [property: string]: any;
847
+ /** Specifies whether the rdb backup is enabled */
848
+ rdbBackupEnabled?: string;
849
+ /** Specifies the frequency for creating rdb backup */
850
+ rdbBackupFrequency?: string;
851
+ /** Specifies the maximum number of snapshots for rdb backup */
852
+ rdbBackupMaxSnapshotCount?: string;
853
+ /** The storage account connection string for storing rdb file */
854
+ rdbStorageConnectionString?: string;
855
+ /** First storage account connection string */
856
+ aofStorageConnectionString0?: string;
857
+ /** Second storage account connection string */
858
+ aofStorageConnectionString1?: string;
859
+ /** Value in megabytes reserved for fragmentation per shard */
860
+ maxfragmentationmemoryReserved?: string;
861
+ /** The eviction strategy used when your data won't fit within its memory limit. */
862
+ maxmemoryPolicy?: string;
863
+ /** Value in megabytes reserved for non-cache usage per shard e.g. failover. */
864
+ maxmemoryReserved?: string;
865
+ /** Value in megabytes reserved for non-cache usage per shard e.g. failover. */
866
+ maxmemoryDelta?: string;
867
+ /**
868
+ * The max clients config
869
+ * NOTE: This property will not be serialized. It can only be populated by the server.
870
+ */
871
+ readonly maxclients?: string;
872
+ }
873
+
874
+ /** Optional parameters. */
875
+ export declare interface RedisCreateOptionalParams extends coreClient.OperationOptions {
876
+ /** Delay to wait until next poll, in milliseconds. */
877
+ updateIntervalInMs?: number;
878
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
879
+ resumeFrom?: string;
880
+ }
881
+
882
+ /** Parameters supplied to the Create Redis operation. */
883
+ export declare interface RedisCreateParameters {
884
+ /** A list of availability zones denoting where the resource needs to come from. */
885
+ zones?: string[];
886
+ /** The geo-location where the resource lives */
887
+ location: string;
888
+ /** Resource tags. */
889
+ tags?: {
890
+ [propertyName: string]: string;
891
+ };
892
+ /** All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc. */
893
+ redisConfiguration?: RedisCommonPropertiesRedisConfiguration;
894
+ /** Redis version. Only major version will be used in PUT/PATCH request with current valid values: (4, 6) */
895
+ redisVersion?: string;
896
+ /** Specifies whether the non-ssl Redis server port (6379) is enabled. */
897
+ enableNonSslPort?: boolean;
898
+ /** The number of replicas to be created per primary. */
899
+ replicasPerMaster?: number;
900
+ /** The number of replicas to be created per primary. */
901
+ replicasPerPrimary?: number;
902
+ /** A dictionary of tenant settings */
903
+ tenantSettings?: {
904
+ [propertyName: string]: string;
905
+ };
906
+ /** The number of shards to be created on a Premium Cluster Cache. */
907
+ shardCount?: number;
908
+ /** Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2') */
909
+ minimumTlsVersion?: TlsVersion;
910
+ /** Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */
911
+ publicNetworkAccess?: PublicNetworkAccess;
912
+ /** The SKU of the Redis cache to deploy. */
913
+ sku: Sku;
914
+ /** The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1 */
915
+ subnetId?: string;
916
+ /** Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual Network. */
917
+ staticIP?: string;
918
+ }
919
+
920
+ /** Properties supplied to Create Redis operation. */
921
+ export declare type RedisCreateProperties = RedisCommonProperties & {
922
+ /** The SKU of the Redis cache to deploy. */
923
+ sku: Sku;
924
+ /** The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1 */
925
+ subnetId?: string;
926
+ /** Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual Network. */
927
+ staticIP?: string;
928
+ };
929
+
930
+ /** Contains response data for the create operation. */
931
+ export declare type RedisCreateResponse = RedisResource;
932
+
933
+ /** Optional parameters. */
934
+ export declare interface RedisDeleteOptionalParams extends coreClient.OperationOptions {
935
+ /** Delay to wait until next poll, in milliseconds. */
936
+ updateIntervalInMs?: number;
937
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
938
+ resumeFrom?: string;
939
+ }
940
+
941
+ /** Optional parameters. */
942
+ export declare interface RedisExportDataOptionalParams extends coreClient.OperationOptions {
943
+ /** Delay to wait until next poll, in milliseconds. */
944
+ updateIntervalInMs?: number;
945
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
946
+ resumeFrom?: string;
947
+ }
948
+
949
+ /** A firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted to connect */
950
+ export declare type RedisFirewallRule = ProxyResource & {
951
+ /** lowest IP address included in the range */
952
+ startIP: string;
953
+ /** highest IP address included in the range */
954
+ endIP: string;
955
+ };
956
+
957
+ /** Parameters required for creating a firewall rule on redis cache. (Note, you can just use the FirewallRule type instead now.) */
958
+ export declare type RedisFirewallRuleCreateParameters = RedisFirewallRule & {};
959
+
960
+ /** The response of list firewall rules Redis operation. */
961
+ export declare interface RedisFirewallRuleListResult {
962
+ /** Results of the list firewall rules operation. */
963
+ value?: RedisFirewallRule[];
964
+ /**
965
+ * Link for next page of results.
966
+ * NOTE: This property will not be serialized. It can only be populated by the server.
967
+ */
968
+ readonly nextLink?: string;
969
+ }
970
+
971
+ /** Contains response data for the forceReboot operation. */
972
+ export declare type RedisForceRebootOperationResponse = RedisForceRebootResponse;
973
+
974
+ /** Optional parameters. */
975
+ export declare interface RedisForceRebootOptionalParams extends coreClient.OperationOptions {
976
+ }
977
+
978
+ /** Response to force reboot for Redis cache. */
979
+ export declare interface RedisForceRebootResponse {
980
+ /**
981
+ * Status message
982
+ * NOTE: This property will not be serialized. It can only be populated by the server.
983
+ */
984
+ readonly message?: string;
985
+ }
986
+
987
+ /** Optional parameters. */
988
+ export declare interface RedisGetOptionalParams extends coreClient.OperationOptions {
989
+ }
990
+
991
+ /** Contains response data for the get operation. */
992
+ export declare type RedisGetResponse = RedisResource;
993
+
994
+ /** Optional parameters. */
995
+ export declare interface RedisImportDataOptionalParams extends coreClient.OperationOptions {
996
+ /** Delay to wait until next poll, in milliseconds. */
997
+ updateIntervalInMs?: number;
998
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
999
+ resumeFrom?: string;
1000
+ }
1001
+
1002
+ /** Details of single instance of redis. */
1003
+ export declare interface RedisInstanceDetails {
1004
+ /**
1005
+ * Redis instance SSL port.
1006
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1007
+ */
1008
+ readonly sslPort?: number;
1009
+ /**
1010
+ * If enableNonSslPort is true, provides Redis instance Non-SSL port.
1011
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1012
+ */
1013
+ readonly nonSslPort?: number;
1014
+ /**
1015
+ * If the Cache uses availability zones, specifies availability zone where this instance is located.
1016
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1017
+ */
1018
+ readonly zone?: string;
1019
+ /**
1020
+ * If clustering is enabled, the Shard ID of Redis Instance
1021
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1022
+ */
1023
+ readonly shardId?: number;
1024
+ /**
1025
+ * Specifies whether the instance is a primary node.
1026
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1027
+ */
1028
+ readonly isMaster?: boolean;
1029
+ /**
1030
+ * Specifies whether the instance is a primary node.
1031
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1032
+ */
1033
+ readonly isPrimary?: boolean;
1034
+ }
1035
+
1036
+ /** Defines values for RedisKeyType. */
1037
+ export declare type RedisKeyType = "Primary" | "Secondary";
1038
+
1039
+ /** Linked server Id */
1040
+ export declare interface RedisLinkedServer {
1041
+ /**
1042
+ * Linked server Id.
1043
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1044
+ */
1045
+ readonly id?: string;
1046
+ }
1047
+
1048
+ /** Parameter required for creating a linked server to redis cache. */
1049
+ export declare interface RedisLinkedServerCreateParameters {
1050
+ /** Fully qualified resourceId of the linked redis cache. */
1051
+ linkedRedisCacheId: string;
1052
+ /** Location of the linked redis cache. */
1053
+ linkedRedisCacheLocation: string;
1054
+ /** Role of the linked server. */
1055
+ serverRole: ReplicationRole;
1056
+ }
1057
+
1058
+ /** Create properties for a linked server */
1059
+ export declare interface RedisLinkedServerCreateProperties {
1060
+ /** Fully qualified resourceId of the linked redis cache. */
1061
+ linkedRedisCacheId: string;
1062
+ /** Location of the linked redis cache. */
1063
+ linkedRedisCacheLocation: string;
1064
+ /** Role of the linked server. */
1065
+ serverRole: ReplicationRole;
1066
+ }
1067
+
1068
+ /** Properties of a linked server to be returned in get/put response */
1069
+ export declare type RedisLinkedServerProperties = RedisLinkedServerCreateProperties & {
1070
+ /**
1071
+ * Terminal state of the link between primary and secondary redis cache.
1072
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1073
+ */
1074
+ readonly provisioningState?: string;
1075
+ };
1076
+
1077
+ /** Response to put/get linked server (with properties) for Redis cache. */
1078
+ export declare type RedisLinkedServerWithProperties = ProxyResource & {
1079
+ /** Fully qualified resourceId of the linked redis cache. */
1080
+ linkedRedisCacheId?: string;
1081
+ /** Location of the linked redis cache. */
1082
+ linkedRedisCacheLocation?: string;
1083
+ /** Role of the linked server. */
1084
+ serverRole?: ReplicationRole;
1085
+ /**
1086
+ * Terminal state of the link between primary and secondary redis cache.
1087
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1088
+ */
1089
+ readonly provisioningState?: string;
1090
+ };
1091
+
1092
+ /** List of linked servers (with properties) of a Redis cache. */
1093
+ export declare interface RedisLinkedServerWithPropertiesList {
1094
+ /** List of linked servers (with properties) of a Redis cache. */
1095
+ value?: RedisLinkedServerWithProperties[];
1096
+ /**
1097
+ * Link for next set.
1098
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1099
+ */
1100
+ readonly nextLink?: string;
1101
+ }
1102
+
1103
+ /** Optional parameters. */
1104
+ export declare interface RedisListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
1105
+ }
1106
+
1107
+ /** Contains response data for the listByResourceGroupNext operation. */
1108
+ export declare type RedisListByResourceGroupNextResponse = RedisListResult;
1109
+
1110
+ /** Optional parameters. */
1111
+ export declare interface RedisListByResourceGroupOptionalParams extends coreClient.OperationOptions {
1112
+ }
1113
+
1114
+ /** Contains response data for the listByResourceGroup operation. */
1115
+ export declare type RedisListByResourceGroupResponse = RedisListResult;
1116
+
1117
+ /** Optional parameters. */
1118
+ export declare interface RedisListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
1119
+ }
1120
+
1121
+ /** Contains response data for the listBySubscriptionNext operation. */
1122
+ export declare type RedisListBySubscriptionNextResponse = RedisListResult;
1123
+
1124
+ /** Optional parameters. */
1125
+ export declare interface RedisListBySubscriptionOptionalParams extends coreClient.OperationOptions {
1126
+ }
1127
+
1128
+ /** Contains response data for the listBySubscription operation. */
1129
+ export declare type RedisListBySubscriptionResponse = RedisListResult;
1130
+
1131
+ /** Optional parameters. */
1132
+ export declare interface RedisListKeysOptionalParams extends coreClient.OperationOptions {
1133
+ }
1134
+
1135
+ /** Contains response data for the listKeys operation. */
1136
+ export declare type RedisListKeysResponse = RedisAccessKeys;
1137
+
1138
+ /** The response of list Redis operation. */
1139
+ export declare interface RedisListResult {
1140
+ /** List of Redis cache instances. */
1141
+ value?: RedisResource[];
1142
+ /**
1143
+ * Link for next page of results.
1144
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1145
+ */
1146
+ readonly nextLink?: string;
1147
+ }
1148
+
1149
+ /** Optional parameters. */
1150
+ export declare interface RedisListUpgradeNotificationsNextOptionalParams extends coreClient.OperationOptions {
1151
+ }
1152
+
1153
+ /** Contains response data for the listUpgradeNotificationsNext operation. */
1154
+ export declare type RedisListUpgradeNotificationsNextResponse = NotificationListResponse;
1155
+
1156
+ /** Optional parameters. */
1157
+ export declare interface RedisListUpgradeNotificationsOptionalParams extends coreClient.OperationOptions {
1158
+ }
1159
+
1160
+ /** Contains response data for the listUpgradeNotifications operation. */
1161
+ export declare type RedisListUpgradeNotificationsResponse = NotificationListResponse;
1162
+
1163
+ export declare class RedisManagementClient extends RedisManagementClientContext {
1164
+ /**
1165
+ * Initializes a new instance of the RedisManagementClient class.
1166
+ * @param credentials Subscription credentials which uniquely identify client subscription.
1167
+ * @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure
1168
+ * subscription. The subscription ID forms part of the URI for every service call.
1169
+ * @param options The parameter options
1170
+ */
1171
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: RedisManagementClientOptionalParams);
1172
+ operations: Operations;
1173
+ redis: Redis;
1174
+ firewallRules: FirewallRules;
1175
+ patchSchedules: PatchSchedules;
1176
+ linkedServer: LinkedServer;
1177
+ privateEndpointConnections: PrivateEndpointConnections;
1178
+ privateLinkResources: PrivateLinkResources;
1179
+ }
1180
+
1181
+ export declare class RedisManagementClientContext extends coreClient.ServiceClient {
1182
+ $host: string;
1183
+ apiVersion: string;
1184
+ subscriptionId: string;
1185
+ /**
1186
+ * Initializes a new instance of the RedisManagementClientContext class.
1187
+ * @param credentials Subscription credentials which uniquely identify client subscription.
1188
+ * @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure
1189
+ * subscription. The subscription ID forms part of the URI for every service call.
1190
+ * @param options The parameter options
1191
+ */
1192
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: RedisManagementClientOptionalParams);
1193
+ }
1194
+
1195
+ /** Optional parameters. */
1196
+ export declare interface RedisManagementClientOptionalParams extends coreClient.ServiceClientOptions {
1197
+ /** server parameter */
1198
+ $host?: string;
1199
+ /** Api Version */
1200
+ apiVersion?: string;
1201
+ /** Overrides client endpoint. */
1202
+ endpoint?: string;
1203
+ }
1204
+
1205
+ /** Response to put/get patch schedules for Redis cache. */
1206
+ export declare type RedisPatchSchedule = ProxyResource & {
1207
+ /** List of patch schedules for a Redis cache. */
1208
+ scheduleEntries: ScheduleEntry[];
1209
+ };
1210
+
1211
+ /** The response of list patch schedules Redis operation. */
1212
+ export declare interface RedisPatchScheduleListResult {
1213
+ /** Results of the list patch schedules operation. */
1214
+ value?: RedisPatchSchedule[];
1215
+ /**
1216
+ * Link for next page of results.
1217
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1218
+ */
1219
+ readonly nextLink?: string;
1220
+ }
1221
+
1222
+ /** Properties of the redis cache. */
1223
+ export declare type RedisProperties = RedisCreateProperties & {
1224
+ /**
1225
+ * Redis instance provisioning status.
1226
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1227
+ */
1228
+ readonly provisioningState?: ProvisioningState;
1229
+ /**
1230
+ * Redis host name.
1231
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1232
+ */
1233
+ readonly hostName?: string;
1234
+ /**
1235
+ * Redis non-SSL port.
1236
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1237
+ */
1238
+ readonly port?: number;
1239
+ /**
1240
+ * Redis SSL port.
1241
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1242
+ */
1243
+ readonly sslPort?: number;
1244
+ /**
1245
+ * The keys of the Redis cache - not set if this object is not the response to Create or Update redis cache
1246
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1247
+ */
1248
+ readonly accessKeys?: RedisAccessKeys;
1249
+ /**
1250
+ * List of the linked servers associated with the cache
1251
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1252
+ */
1253
+ readonly linkedServers?: RedisLinkedServer[];
1254
+ /**
1255
+ * List of the Redis instances associated with the cache
1256
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1257
+ */
1258
+ readonly instances?: RedisInstanceDetails[];
1259
+ /**
1260
+ * List of private endpoint connection associated with the specified redis cache
1261
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1262
+ */
1263
+ readonly privateEndpointConnections?: PrivateEndpointConnection[];
1264
+ };
1265
+
1266
+ /** Specifies which Redis node(s) to reboot. */
1267
+ export declare interface RedisRebootParameters {
1268
+ /** Which Redis node(s) to reboot. Depending on this value data loss is possible. */
1269
+ rebootType?: RebootType;
1270
+ /** If clustering is enabled, the ID of the shard to be rebooted. */
1271
+ shardId?: number;
1272
+ /** A list of redis instances to reboot, specified by per-instance SSL ports or non-SSL ports. */
1273
+ ports?: number[];
1274
+ }
1275
+
1276
+ /** Optional parameters. */
1277
+ export declare interface RedisRegenerateKeyOptionalParams extends coreClient.OperationOptions {
1278
+ }
1279
+
1280
+ /** Specifies which Redis access keys to reset. */
1281
+ export declare interface RedisRegenerateKeyParameters {
1282
+ /** The Redis access key to regenerate. */
1283
+ keyType: RedisKeyType;
1284
+ }
1285
+
1286
+ /** Contains response data for the regenerateKey operation. */
1287
+ export declare type RedisRegenerateKeyResponse = RedisAccessKeys;
1288
+
1289
+ /** A single Redis item in List or Get Operation. */
1290
+ export declare type RedisResource = TrackedResource & {
1291
+ /** A list of availability zones denoting where the resource needs to come from. */
1292
+ zones?: string[];
1293
+ /** All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc. */
1294
+ redisConfiguration?: RedisCommonPropertiesRedisConfiguration;
1295
+ /** Redis version. Only major version will be used in PUT/PATCH request with current valid values: (4, 6) */
1296
+ redisVersion?: string;
1297
+ /** Specifies whether the non-ssl Redis server port (6379) is enabled. */
1298
+ enableNonSslPort?: boolean;
1299
+ /** The number of replicas to be created per primary. */
1300
+ replicasPerMaster?: number;
1301
+ /** The number of replicas to be created per primary. */
1302
+ replicasPerPrimary?: number;
1303
+ /** A dictionary of tenant settings */
1304
+ tenantSettings?: {
1305
+ [propertyName: string]: string;
1306
+ };
1307
+ /** The number of shards to be created on a Premium Cluster Cache. */
1308
+ shardCount?: number;
1309
+ /** Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2') */
1310
+ minimumTlsVersion?: TlsVersion;
1311
+ /** Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */
1312
+ publicNetworkAccess?: PublicNetworkAccess;
1313
+ /** The SKU of the Redis cache to deploy. */
1314
+ sku: Sku;
1315
+ /** The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1 */
1316
+ subnetId?: string;
1317
+ /** Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual Network. */
1318
+ staticIP?: string;
1319
+ /**
1320
+ * Redis instance provisioning status.
1321
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1322
+ */
1323
+ readonly provisioningState?: ProvisioningState;
1324
+ /**
1325
+ * Redis host name.
1326
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1327
+ */
1328
+ readonly hostName?: string;
1329
+ /**
1330
+ * Redis non-SSL port.
1331
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1332
+ */
1333
+ readonly port?: number;
1334
+ /**
1335
+ * Redis SSL port.
1336
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1337
+ */
1338
+ readonly sslPort?: number;
1339
+ /**
1340
+ * The keys of the Redis cache - not set if this object is not the response to Create or Update redis cache
1341
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1342
+ */
1343
+ readonly accessKeys?: RedisAccessKeys;
1344
+ /**
1345
+ * List of the linked servers associated with the cache
1346
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1347
+ */
1348
+ readonly linkedServers?: RedisLinkedServer[];
1349
+ /**
1350
+ * List of the Redis instances associated with the cache
1351
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1352
+ */
1353
+ readonly instances?: RedisInstanceDetails[];
1354
+ /**
1355
+ * List of private endpoint connection associated with the specified redis cache
1356
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1357
+ */
1358
+ readonly privateEndpointConnections?: PrivateEndpointConnection[];
1359
+ };
1360
+
1361
+ /** Optional parameters. */
1362
+ export declare interface RedisUpdateOptionalParams extends coreClient.OperationOptions {
1363
+ }
1364
+
1365
+ /** Parameters supplied to the Update Redis operation. */
1366
+ export declare interface RedisUpdateParameters {
1367
+ /** Resource tags. */
1368
+ tags?: {
1369
+ [propertyName: string]: string;
1370
+ };
1371
+ /** All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc. */
1372
+ redisConfiguration?: RedisCommonPropertiesRedisConfiguration;
1373
+ /** Redis version. Only major version will be used in PUT/PATCH request with current valid values: (4, 6) */
1374
+ redisVersion?: string;
1375
+ /** Specifies whether the non-ssl Redis server port (6379) is enabled. */
1376
+ enableNonSslPort?: boolean;
1377
+ /** The number of replicas to be created per primary. */
1378
+ replicasPerMaster?: number;
1379
+ /** The number of replicas to be created per primary. */
1380
+ replicasPerPrimary?: number;
1381
+ /** A dictionary of tenant settings */
1382
+ tenantSettings?: {
1383
+ [propertyName: string]: string;
1384
+ };
1385
+ /** The number of shards to be created on a Premium Cluster Cache. */
1386
+ shardCount?: number;
1387
+ /** Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2') */
1388
+ minimumTlsVersion?: TlsVersion;
1389
+ /** Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */
1390
+ publicNetworkAccess?: PublicNetworkAccess;
1391
+ /** The SKU of the Redis cache to deploy. */
1392
+ sku?: Sku;
1393
+ }
1394
+
1395
+ /** Patchable properties of the redis cache. */
1396
+ export declare type RedisUpdateProperties = RedisCommonProperties & {
1397
+ /** The SKU of the Redis cache to deploy. */
1398
+ sku?: Sku;
1399
+ };
1400
+
1401
+ /** Contains response data for the update operation. */
1402
+ export declare type RedisUpdateResponse = RedisResource;
1403
+
1404
+ /** Defines values for ReplicationRole. */
1405
+ export declare type ReplicationRole = "Primary" | "Secondary";
1406
+
1407
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
1408
+ export declare interface Resource {
1409
+ /**
1410
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
1411
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1412
+ */
1413
+ readonly id?: string;
1414
+ /**
1415
+ * The name of the resource
1416
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1417
+ */
1418
+ readonly name?: string;
1419
+ /**
1420
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
1421
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1422
+ */
1423
+ readonly type?: string;
1424
+ }
1425
+
1426
+ /** Patch schedule entry for a Premium Redis Cache. */
1427
+ export declare interface ScheduleEntry {
1428
+ /** Day of the week when a cache can be patched. */
1429
+ dayOfWeek: DayOfWeek;
1430
+ /** Start hour after which cache patching can start. */
1431
+ startHourUtc: number;
1432
+ /** ISO8601 timespan specifying how much time cache patching can take. */
1433
+ maintenanceWindow?: string;
1434
+ }
1435
+
1436
+ /** SKU parameters supplied to the create Redis operation. */
1437
+ export declare interface Sku {
1438
+ /** The type of Redis cache to deploy. Valid values: (Basic, Standard, Premium) */
1439
+ name: SkuName;
1440
+ /** The SKU family to use. Valid values: (C, P). (C = Basic/Standard, P = Premium). */
1441
+ family: SkuFamily;
1442
+ /** The size of the Redis cache to deploy. Valid values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium) family (1, 2, 3, 4). */
1443
+ capacity: number;
1444
+ }
1445
+
1446
+ /**
1447
+ * Defines values for SkuFamily. \
1448
+ * {@link KnownSkuFamily} can be used interchangeably with SkuFamily,
1449
+ * this enum contains the known values that the service supports.
1450
+ * ### Known values supported by the service
1451
+ * **C** \
1452
+ * **P**
1453
+ */
1454
+ export declare type SkuFamily = string;
1455
+
1456
+ /**
1457
+ * Defines values for SkuName. \
1458
+ * {@link KnownSkuName} can be used interchangeably with SkuName,
1459
+ * this enum contains the known values that the service supports.
1460
+ * ### Known values supported by the service
1461
+ * **Basic** \
1462
+ * **Standard** \
1463
+ * **Premium**
1464
+ */
1465
+ export declare type SkuName = string;
1466
+
1467
+ /**
1468
+ * Defines values for TlsVersion. \
1469
+ * {@link KnownTlsVersion} can be used interchangeably with TlsVersion,
1470
+ * this enum contains the known values that the service supports.
1471
+ * ### Known values supported by the service
1472
+ * **1.0** \
1473
+ * **1.1** \
1474
+ * **1.2**
1475
+ */
1476
+ export declare type TlsVersion = string;
1477
+
1478
+ /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
1479
+ export declare type TrackedResource = Resource & {
1480
+ /** Resource tags. */
1481
+ tags?: {
1482
+ [propertyName: string]: string;
1483
+ };
1484
+ /** The geo-location where the resource lives */
1485
+ location: string;
1486
+ };
1487
+
1488
+ /** Properties of upgrade notification. */
1489
+ export declare interface UpgradeNotification {
1490
+ /**
1491
+ * Name of upgrade notification.
1492
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1493
+ */
1494
+ readonly name?: string;
1495
+ /**
1496
+ * Timestamp when upgrade notification occurred.
1497
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1498
+ */
1499
+ readonly timestamp?: Date;
1500
+ /**
1501
+ * Details about this upgrade notification
1502
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1503
+ */
1504
+ readonly upsellNotification?: {
1505
+ [propertyName: string]: string;
1506
+ };
1507
+ }
1508
+
1509
+ export { }