@azure/arm-rediscache 30.0.0-alpha.20210928.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/LICENSE +21 -0
- package/LICENSE.txt +21 -0
- package/README.md +94 -0
- package/dist/index.js +4051 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1016 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +77 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +49 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +1580 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +27 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +198 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/firewallRules.d.ts +63 -0
- package/dist-esm/src/operations/firewallRules.d.ts.map +1 -0
- package/dist-esm/src/operations/firewallRules.js +238 -0
- package/dist-esm/src/operations/firewallRules.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +8 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +15 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/linkedServer.d.ts +73 -0
- package/dist-esm/src/operations/linkedServer.d.ts.map +1 -0
- package/dist-esm/src/operations/linkedServer.js +288 -0
- package/dist-esm/src/operations/linkedServer.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/patchSchedules.d.ts +63 -0
- package/dist-esm/src/operations/patchSchedules.d.ts.map +1 -0
- package/dist-esm/src/operations/patchSchedules.js +238 -0
- package/dist-esm/src/operations/patchSchedules.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +69 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +260 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +30 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +99 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/redis.d.ts +192 -0
- package/dist-esm/src/operations/redis.d.ts.map +1 -0
- package/dist-esm/src/operations/redis.js +840 -0
- package/dist-esm/src/operations/redis.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +15 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/linkedServer.d.ts +48 -0
- package/dist-esm/src/operationsInterfaces/linkedServer.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/linkedServer.js +9 -0
- package/dist-esm/src/operationsInterfaces/linkedServer.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/patchSchedules.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/patchSchedules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/patchSchedules.js +9 -0
- package/dist-esm/src/operationsInterfaces/patchSchedules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +52 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/redis.d.ts +136 -0
- package/dist-esm/src/operationsInterfaces/redis.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/redis.js +9 -0
- package/dist-esm/src/operationsInterfaces/redis.js.map +1 -0
- package/dist-esm/src/redisManagementClient.d.ts +22 -0
- package/dist-esm/src/redisManagementClient.d.ts.map +1 -0
- package/dist-esm/src/redisManagementClient.js +29 -0
- package/dist-esm/src/redisManagementClient.js.map +1 -0
- package/dist-esm/src/redisManagementClientContext.d.ts +17 -0
- package/dist-esm/src/redisManagementClientContext.d.ts.map +1 -0
- package/dist-esm/src/redisManagementClientContext.js +50 -0
- package/dist-esm/src/redisManagementClientContext.js.map +1 -0
- package/dist-esm/test/redis_examples.d.ts +2 -0
- package/dist-esm/test/redis_examples.d.ts.map +1 -0
- package/dist-esm/test/redis_examples.js +209 -0
- package/dist-esm/test/redis_examples.js.map +1 -0
- package/package.json +103 -0
- package/review/arm-rediscache.api.md +879 -0
- package/rollup.config.js +188 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1154 -0
- package/src/models/mappers.ts +1709 -0
- package/src/models/parameters.ts +240 -0
- package/src/operations/firewallRules.ts +314 -0
- package/src/operations/index.ts +15 -0
- package/src/operations/linkedServer.ts +397 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/patchSchedules.ts +327 -0
- package/src/operations/privateEndpointConnections.ts +353 -0
- package/src/operations/privateLinkResources.ts +135 -0
- package/src/operations/redis.ts +1152 -0
- package/src/operationsInterfaces/firewallRules.ts +75 -0
- package/src/operationsInterfaces/index.ts +15 -0
- package/src/operationsInterfaces/linkedServer.ts +97 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/patchSchedules.ts +76 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +100 -0
- package/src/operationsInterfaces/privateLinkResources.ts +29 -0
- package/src/operationsInterfaces/redis.ts +250 -0
- package/src/redisManagementClient.ts +61 -0
- package/src/redisManagementClientContext.ts +71 -0
- package/tsconfig.json +19 -0
- package/types/arm-rediscache.d.ts +1509 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,240 @@
|
|
|
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
|
+
|
|
9
|
+
import {
|
|
10
|
+
OperationParameter,
|
|
11
|
+
OperationURLParameter,
|
|
12
|
+
OperationQueryParameter
|
|
13
|
+
} from "@azure/core-client";
|
|
14
|
+
import {
|
|
15
|
+
CheckNameAvailabilityParameters as CheckNameAvailabilityParametersMapper,
|
|
16
|
+
RedisCreateParameters as RedisCreateParametersMapper,
|
|
17
|
+
RedisUpdateParameters as RedisUpdateParametersMapper,
|
|
18
|
+
RedisRegenerateKeyParameters as RedisRegenerateKeyParametersMapper,
|
|
19
|
+
RedisRebootParameters as RedisRebootParametersMapper,
|
|
20
|
+
ImportRDBParameters as ImportRDBParametersMapper,
|
|
21
|
+
ExportRDBParameters as ExportRDBParametersMapper,
|
|
22
|
+
RedisFirewallRule as RedisFirewallRuleMapper,
|
|
23
|
+
RedisPatchSchedule as RedisPatchScheduleMapper,
|
|
24
|
+
RedisLinkedServerCreateParameters as RedisLinkedServerCreateParametersMapper,
|
|
25
|
+
PrivateEndpointConnection as PrivateEndpointConnectionMapper
|
|
26
|
+
} from "../models/mappers";
|
|
27
|
+
|
|
28
|
+
export const accept: OperationParameter = {
|
|
29
|
+
parameterPath: "accept",
|
|
30
|
+
mapper: {
|
|
31
|
+
defaultValue: "application/json",
|
|
32
|
+
isConstant: true,
|
|
33
|
+
serializedName: "Accept",
|
|
34
|
+
type: {
|
|
35
|
+
name: "String"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const $host: OperationURLParameter = {
|
|
41
|
+
parameterPath: "$host",
|
|
42
|
+
mapper: {
|
|
43
|
+
serializedName: "$host",
|
|
44
|
+
required: true,
|
|
45
|
+
type: {
|
|
46
|
+
name: "String"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
skipEncoding: true
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const apiVersion: OperationQueryParameter = {
|
|
53
|
+
parameterPath: "apiVersion",
|
|
54
|
+
mapper: {
|
|
55
|
+
defaultValue: "2020-12-01",
|
|
56
|
+
isConstant: true,
|
|
57
|
+
serializedName: "api-version",
|
|
58
|
+
type: {
|
|
59
|
+
name: "String"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export const nextLink: OperationURLParameter = {
|
|
65
|
+
parameterPath: "nextLink",
|
|
66
|
+
mapper: {
|
|
67
|
+
serializedName: "nextLink",
|
|
68
|
+
required: true,
|
|
69
|
+
type: {
|
|
70
|
+
name: "String"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
skipEncoding: true
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export const contentType: OperationParameter = {
|
|
77
|
+
parameterPath: ["options", "contentType"],
|
|
78
|
+
mapper: {
|
|
79
|
+
defaultValue: "application/json",
|
|
80
|
+
isConstant: true,
|
|
81
|
+
serializedName: "Content-Type",
|
|
82
|
+
type: {
|
|
83
|
+
name: "String"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export const parameters: OperationParameter = {
|
|
89
|
+
parameterPath: "parameters",
|
|
90
|
+
mapper: CheckNameAvailabilityParametersMapper
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export const subscriptionId: OperationURLParameter = {
|
|
94
|
+
parameterPath: "subscriptionId",
|
|
95
|
+
mapper: {
|
|
96
|
+
serializedName: "subscriptionId",
|
|
97
|
+
required: true,
|
|
98
|
+
type: {
|
|
99
|
+
name: "String"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export const resourceGroupName: OperationURLParameter = {
|
|
105
|
+
parameterPath: "resourceGroupName",
|
|
106
|
+
mapper: {
|
|
107
|
+
serializedName: "resourceGroupName",
|
|
108
|
+
required: true,
|
|
109
|
+
type: {
|
|
110
|
+
name: "String"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export const name: OperationURLParameter = {
|
|
116
|
+
parameterPath: "name",
|
|
117
|
+
mapper: {
|
|
118
|
+
serializedName: "name",
|
|
119
|
+
required: true,
|
|
120
|
+
type: {
|
|
121
|
+
name: "String"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export const history: OperationQueryParameter = {
|
|
127
|
+
parameterPath: "history",
|
|
128
|
+
mapper: {
|
|
129
|
+
serializedName: "history",
|
|
130
|
+
required: true,
|
|
131
|
+
type: {
|
|
132
|
+
name: "Number"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
export const parameters1: OperationParameter = {
|
|
138
|
+
parameterPath: "parameters",
|
|
139
|
+
mapper: RedisCreateParametersMapper
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export const parameters2: OperationParameter = {
|
|
143
|
+
parameterPath: "parameters",
|
|
144
|
+
mapper: RedisUpdateParametersMapper
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export const parameters3: OperationParameter = {
|
|
148
|
+
parameterPath: "parameters",
|
|
149
|
+
mapper: RedisRegenerateKeyParametersMapper
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export const parameters4: OperationParameter = {
|
|
153
|
+
parameterPath: "parameters",
|
|
154
|
+
mapper: RedisRebootParametersMapper
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
export const parameters5: OperationParameter = {
|
|
158
|
+
parameterPath: "parameters",
|
|
159
|
+
mapper: ImportRDBParametersMapper
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
export const parameters6: OperationParameter = {
|
|
163
|
+
parameterPath: "parameters",
|
|
164
|
+
mapper: ExportRDBParametersMapper
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
export const cacheName: OperationURLParameter = {
|
|
168
|
+
parameterPath: "cacheName",
|
|
169
|
+
mapper: {
|
|
170
|
+
serializedName: "cacheName",
|
|
171
|
+
required: true,
|
|
172
|
+
type: {
|
|
173
|
+
name: "String"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
export const parameters7: OperationParameter = {
|
|
179
|
+
parameterPath: "parameters",
|
|
180
|
+
mapper: RedisFirewallRuleMapper
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
export const ruleName: OperationURLParameter = {
|
|
184
|
+
parameterPath: "ruleName",
|
|
185
|
+
mapper: {
|
|
186
|
+
serializedName: "ruleName",
|
|
187
|
+
required: true,
|
|
188
|
+
type: {
|
|
189
|
+
name: "String"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
export const parameters8: OperationParameter = {
|
|
195
|
+
parameterPath: "parameters",
|
|
196
|
+
mapper: RedisPatchScheduleMapper
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
export const defaultParam: OperationURLParameter = {
|
|
200
|
+
parameterPath: "defaultParam",
|
|
201
|
+
mapper: {
|
|
202
|
+
serializedName: "default",
|
|
203
|
+
required: true,
|
|
204
|
+
type: {
|
|
205
|
+
name: "String"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
export const parameters9: OperationParameter = {
|
|
211
|
+
parameterPath: "parameters",
|
|
212
|
+
mapper: RedisLinkedServerCreateParametersMapper
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
export const linkedServerName: OperationURLParameter = {
|
|
216
|
+
parameterPath: "linkedServerName",
|
|
217
|
+
mapper: {
|
|
218
|
+
serializedName: "linkedServerName",
|
|
219
|
+
required: true,
|
|
220
|
+
type: {
|
|
221
|
+
name: "String"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
export const privateEndpointConnectionName: OperationURLParameter = {
|
|
227
|
+
parameterPath: "privateEndpointConnectionName",
|
|
228
|
+
mapper: {
|
|
229
|
+
serializedName: "privateEndpointConnectionName",
|
|
230
|
+
required: true,
|
|
231
|
+
type: {
|
|
232
|
+
name: "String"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
export const properties: OperationParameter = {
|
|
238
|
+
parameterPath: "properties",
|
|
239
|
+
mapper: PrivateEndpointConnectionMapper
|
|
240
|
+
};
|
|
@@ -0,0 +1,314 @@
|
|
|
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
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { FirewallRules } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { RedisManagementClientContext } from "../redisManagementClientContext";
|
|
15
|
+
import {
|
|
16
|
+
RedisFirewallRule,
|
|
17
|
+
FirewallRulesListNextOptionalParams,
|
|
18
|
+
FirewallRulesListOptionalParams,
|
|
19
|
+
FirewallRulesListResponse,
|
|
20
|
+
FirewallRulesCreateOrUpdateOptionalParams,
|
|
21
|
+
FirewallRulesCreateOrUpdateResponse,
|
|
22
|
+
FirewallRulesGetOptionalParams,
|
|
23
|
+
FirewallRulesGetResponse,
|
|
24
|
+
FirewallRulesDeleteOptionalParams,
|
|
25
|
+
FirewallRulesListNextResponse
|
|
26
|
+
} from "../models";
|
|
27
|
+
|
|
28
|
+
/// <reference lib="esnext.asynciterable" />
|
|
29
|
+
/** Class containing FirewallRules operations. */
|
|
30
|
+
export class FirewallRulesImpl implements FirewallRules {
|
|
31
|
+
private readonly client: RedisManagementClientContext;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Initialize a new instance of the class FirewallRules class.
|
|
35
|
+
* @param client Reference to the service client
|
|
36
|
+
*/
|
|
37
|
+
constructor(client: RedisManagementClientContext) {
|
|
38
|
+
this.client = client;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Gets all firewall rules in the specified redis cache.
|
|
43
|
+
* @param resourceGroupName The name of the resource group.
|
|
44
|
+
* @param cacheName The name of the Redis cache.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
public list(
|
|
48
|
+
resourceGroupName: string,
|
|
49
|
+
cacheName: string,
|
|
50
|
+
options?: FirewallRulesListOptionalParams
|
|
51
|
+
): PagedAsyncIterableIterator<RedisFirewallRule> {
|
|
52
|
+
const iter = this.listPagingAll(resourceGroupName, cacheName, options);
|
|
53
|
+
return {
|
|
54
|
+
next() {
|
|
55
|
+
return iter.next();
|
|
56
|
+
},
|
|
57
|
+
[Symbol.asyncIterator]() {
|
|
58
|
+
return this;
|
|
59
|
+
},
|
|
60
|
+
byPage: () => {
|
|
61
|
+
return this.listPagingPage(resourceGroupName, cacheName, options);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
private async *listPagingPage(
|
|
67
|
+
resourceGroupName: string,
|
|
68
|
+
cacheName: string,
|
|
69
|
+
options?: FirewallRulesListOptionalParams
|
|
70
|
+
): AsyncIterableIterator<RedisFirewallRule[]> {
|
|
71
|
+
let result = await this._list(resourceGroupName, cacheName, options);
|
|
72
|
+
yield result.value || [];
|
|
73
|
+
let continuationToken = result.nextLink;
|
|
74
|
+
while (continuationToken) {
|
|
75
|
+
result = await this._listNext(
|
|
76
|
+
resourceGroupName,
|
|
77
|
+
cacheName,
|
|
78
|
+
continuationToken,
|
|
79
|
+
options
|
|
80
|
+
);
|
|
81
|
+
continuationToken = result.nextLink;
|
|
82
|
+
yield result.value || [];
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
private async *listPagingAll(
|
|
87
|
+
resourceGroupName: string,
|
|
88
|
+
cacheName: string,
|
|
89
|
+
options?: FirewallRulesListOptionalParams
|
|
90
|
+
): AsyncIterableIterator<RedisFirewallRule> {
|
|
91
|
+
for await (const page of this.listPagingPage(
|
|
92
|
+
resourceGroupName,
|
|
93
|
+
cacheName,
|
|
94
|
+
options
|
|
95
|
+
)) {
|
|
96
|
+
yield* page;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Gets all firewall rules in the specified redis cache.
|
|
102
|
+
* @param resourceGroupName The name of the resource group.
|
|
103
|
+
* @param cacheName The name of the Redis cache.
|
|
104
|
+
* @param options The options parameters.
|
|
105
|
+
*/
|
|
106
|
+
private _list(
|
|
107
|
+
resourceGroupName: string,
|
|
108
|
+
cacheName: string,
|
|
109
|
+
options?: FirewallRulesListOptionalParams
|
|
110
|
+
): Promise<FirewallRulesListResponse> {
|
|
111
|
+
return this.client.sendOperationRequest(
|
|
112
|
+
{ resourceGroupName, cacheName, options },
|
|
113
|
+
listOperationSpec
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Create or update a redis cache firewall rule
|
|
119
|
+
* @param resourceGroupName The name of the resource group.
|
|
120
|
+
* @param cacheName The name of the Redis cache.
|
|
121
|
+
* @param ruleName The name of the firewall rule.
|
|
122
|
+
* @param parameters Parameters supplied to the create or update redis firewall rule operation.
|
|
123
|
+
* @param options The options parameters.
|
|
124
|
+
*/
|
|
125
|
+
createOrUpdate(
|
|
126
|
+
resourceGroupName: string,
|
|
127
|
+
cacheName: string,
|
|
128
|
+
ruleName: string,
|
|
129
|
+
parameters: RedisFirewallRule,
|
|
130
|
+
options?: FirewallRulesCreateOrUpdateOptionalParams
|
|
131
|
+
): Promise<FirewallRulesCreateOrUpdateResponse> {
|
|
132
|
+
return this.client.sendOperationRequest(
|
|
133
|
+
{ resourceGroupName, cacheName, ruleName, parameters, options },
|
|
134
|
+
createOrUpdateOperationSpec
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Gets a single firewall rule in a specified redis cache.
|
|
140
|
+
* @param resourceGroupName The name of the resource group.
|
|
141
|
+
* @param cacheName The name of the Redis cache.
|
|
142
|
+
* @param ruleName The name of the firewall rule.
|
|
143
|
+
* @param options The options parameters.
|
|
144
|
+
*/
|
|
145
|
+
get(
|
|
146
|
+
resourceGroupName: string,
|
|
147
|
+
cacheName: string,
|
|
148
|
+
ruleName: string,
|
|
149
|
+
options?: FirewallRulesGetOptionalParams
|
|
150
|
+
): Promise<FirewallRulesGetResponse> {
|
|
151
|
+
return this.client.sendOperationRequest(
|
|
152
|
+
{ resourceGroupName, cacheName, ruleName, options },
|
|
153
|
+
getOperationSpec
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Deletes a single firewall rule in a specified redis cache.
|
|
159
|
+
* @param resourceGroupName The name of the resource group.
|
|
160
|
+
* @param cacheName The name of the Redis cache.
|
|
161
|
+
* @param ruleName The name of the firewall rule.
|
|
162
|
+
* @param options The options parameters.
|
|
163
|
+
*/
|
|
164
|
+
delete(
|
|
165
|
+
resourceGroupName: string,
|
|
166
|
+
cacheName: string,
|
|
167
|
+
ruleName: string,
|
|
168
|
+
options?: FirewallRulesDeleteOptionalParams
|
|
169
|
+
): Promise<void> {
|
|
170
|
+
return this.client.sendOperationRequest(
|
|
171
|
+
{ resourceGroupName, cacheName, ruleName, options },
|
|
172
|
+
deleteOperationSpec
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* ListNext
|
|
178
|
+
* @param resourceGroupName The name of the resource group.
|
|
179
|
+
* @param cacheName The name of the Redis cache.
|
|
180
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
181
|
+
* @param options The options parameters.
|
|
182
|
+
*/
|
|
183
|
+
private _listNext(
|
|
184
|
+
resourceGroupName: string,
|
|
185
|
+
cacheName: string,
|
|
186
|
+
nextLink: string,
|
|
187
|
+
options?: FirewallRulesListNextOptionalParams
|
|
188
|
+
): Promise<FirewallRulesListNextResponse> {
|
|
189
|
+
return this.client.sendOperationRequest(
|
|
190
|
+
{ resourceGroupName, cacheName, nextLink, options },
|
|
191
|
+
listNextOperationSpec
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
// Operation Specifications
|
|
196
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
197
|
+
|
|
198
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
199
|
+
path:
|
|
200
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/firewallRules",
|
|
201
|
+
httpMethod: "GET",
|
|
202
|
+
responses: {
|
|
203
|
+
200: {
|
|
204
|
+
bodyMapper: Mappers.RedisFirewallRuleListResult
|
|
205
|
+
},
|
|
206
|
+
default: {
|
|
207
|
+
bodyMapper: Mappers.ErrorResponse
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
queryParameters: [Parameters.apiVersion],
|
|
211
|
+
urlParameters: [
|
|
212
|
+
Parameters.$host,
|
|
213
|
+
Parameters.subscriptionId,
|
|
214
|
+
Parameters.resourceGroupName,
|
|
215
|
+
Parameters.cacheName
|
|
216
|
+
],
|
|
217
|
+
headerParameters: [Parameters.accept],
|
|
218
|
+
serializer
|
|
219
|
+
};
|
|
220
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
221
|
+
path:
|
|
222
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/firewallRules/{ruleName}",
|
|
223
|
+
httpMethod: "PUT",
|
|
224
|
+
responses: {
|
|
225
|
+
200: {
|
|
226
|
+
bodyMapper: Mappers.RedisFirewallRule
|
|
227
|
+
},
|
|
228
|
+
201: {
|
|
229
|
+
bodyMapper: Mappers.RedisFirewallRule
|
|
230
|
+
},
|
|
231
|
+
default: {
|
|
232
|
+
bodyMapper: Mappers.ErrorResponse
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
requestBody: Parameters.parameters7,
|
|
236
|
+
queryParameters: [Parameters.apiVersion],
|
|
237
|
+
urlParameters: [
|
|
238
|
+
Parameters.$host,
|
|
239
|
+
Parameters.subscriptionId,
|
|
240
|
+
Parameters.resourceGroupName,
|
|
241
|
+
Parameters.cacheName,
|
|
242
|
+
Parameters.ruleName
|
|
243
|
+
],
|
|
244
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
245
|
+
mediaType: "json",
|
|
246
|
+
serializer
|
|
247
|
+
};
|
|
248
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
249
|
+
path:
|
|
250
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/firewallRules/{ruleName}",
|
|
251
|
+
httpMethod: "GET",
|
|
252
|
+
responses: {
|
|
253
|
+
200: {
|
|
254
|
+
bodyMapper: Mappers.RedisFirewallRule
|
|
255
|
+
},
|
|
256
|
+
default: {
|
|
257
|
+
bodyMapper: Mappers.ErrorResponse
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
queryParameters: [Parameters.apiVersion],
|
|
261
|
+
urlParameters: [
|
|
262
|
+
Parameters.$host,
|
|
263
|
+
Parameters.subscriptionId,
|
|
264
|
+
Parameters.resourceGroupName,
|
|
265
|
+
Parameters.cacheName,
|
|
266
|
+
Parameters.ruleName
|
|
267
|
+
],
|
|
268
|
+
headerParameters: [Parameters.accept],
|
|
269
|
+
serializer
|
|
270
|
+
};
|
|
271
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
272
|
+
path:
|
|
273
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/firewallRules/{ruleName}",
|
|
274
|
+
httpMethod: "DELETE",
|
|
275
|
+
responses: {
|
|
276
|
+
200: {},
|
|
277
|
+
204: {},
|
|
278
|
+
default: {
|
|
279
|
+
bodyMapper: Mappers.ErrorResponse
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
queryParameters: [Parameters.apiVersion],
|
|
283
|
+
urlParameters: [
|
|
284
|
+
Parameters.$host,
|
|
285
|
+
Parameters.subscriptionId,
|
|
286
|
+
Parameters.resourceGroupName,
|
|
287
|
+
Parameters.cacheName,
|
|
288
|
+
Parameters.ruleName
|
|
289
|
+
],
|
|
290
|
+
headerParameters: [Parameters.accept],
|
|
291
|
+
serializer
|
|
292
|
+
};
|
|
293
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
294
|
+
path: "{nextLink}",
|
|
295
|
+
httpMethod: "GET",
|
|
296
|
+
responses: {
|
|
297
|
+
200: {
|
|
298
|
+
bodyMapper: Mappers.RedisFirewallRuleListResult
|
|
299
|
+
},
|
|
300
|
+
default: {
|
|
301
|
+
bodyMapper: Mappers.ErrorResponse
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
queryParameters: [Parameters.apiVersion],
|
|
305
|
+
urlParameters: [
|
|
306
|
+
Parameters.$host,
|
|
307
|
+
Parameters.nextLink,
|
|
308
|
+
Parameters.subscriptionId,
|
|
309
|
+
Parameters.resourceGroupName,
|
|
310
|
+
Parameters.cacheName
|
|
311
|
+
],
|
|
312
|
+
headerParameters: [Parameters.accept],
|
|
313
|
+
serializer
|
|
314
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
|
|
9
|
+
export * from "./operations";
|
|
10
|
+
export * from "./redis";
|
|
11
|
+
export * from "./firewallRules";
|
|
12
|
+
export * from "./patchSchedules";
|
|
13
|
+
export * from "./linkedServer";
|
|
14
|
+
export * from "./privateEndpointConnections";
|
|
15
|
+
export * from "./privateLinkResources";
|