@azure/arm-redisenterprisecache 3.0.1-alpha.20240709.1 → 3.1.0-beta.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 (111) hide show
  1. package/CHANGELOG.md +28 -13
  2. package/README.md +1 -1
  3. package/dist/index.js +1028 -721
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/databasesCreateSample.js +11 -10
  8. package/dist-esm/samples-dev/databasesCreateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/databasesDeleteSample.js +1 -1
  10. package/dist-esm/samples-dev/databasesExportSample.js +3 -3
  11. package/dist-esm/samples-dev/databasesExportSample.js.map +1 -1
  12. package/dist-esm/samples-dev/databasesFlushSample.js +4 -4
  13. package/dist-esm/samples-dev/databasesFlushSample.js.map +1 -1
  14. package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.d.ts +2 -0
  15. package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.d.ts.map +1 -0
  16. package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.js +51 -0
  17. package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.js.map +1 -0
  18. package/dist-esm/samples-dev/databasesForceUnlinkSample.js +4 -4
  19. package/dist-esm/samples-dev/databasesForceUnlinkSample.js.map +1 -1
  20. package/dist-esm/samples-dev/databasesGetSample.js +1 -1
  21. package/dist-esm/samples-dev/databasesImportSample.js +4 -4
  22. package/dist-esm/samples-dev/databasesImportSample.js.map +1 -1
  23. package/dist-esm/samples-dev/databasesListByClusterSample.js +1 -1
  24. package/dist-esm/samples-dev/databasesListKeysSample.js +1 -1
  25. package/dist-esm/samples-dev/databasesRegenerateKeySample.js +2 -2
  26. package/dist-esm/samples-dev/databasesRegenerateKeySample.js.map +1 -1
  27. package/dist-esm/samples-dev/databasesUpdateSample.js +3 -3
  28. package/dist-esm/samples-dev/databasesUpdateSample.js.map +1 -1
  29. package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.d.ts +2 -0
  30. package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.d.ts.map +1 -0
  31. package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.js +39 -0
  32. package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.js.map +1 -0
  33. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  34. package/dist-esm/samples-dev/operationsStatusGetSample.js +1 -1
  35. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  36. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  37. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
  38. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +4 -4
  39. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
  40. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +1 -1
  41. package/dist-esm/samples-dev/redisEnterpriseCreateSample.js +8 -8
  42. package/dist-esm/samples-dev/redisEnterpriseCreateSample.js.map +1 -1
  43. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js +1 -1
  44. package/dist-esm/samples-dev/redisEnterpriseGetSample.js +1 -1
  45. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js +1 -1
  46. package/dist-esm/samples-dev/redisEnterpriseListSample.js +1 -1
  47. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js +3 -3
  48. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js.map +1 -1
  49. package/dist-esm/src/lroImpl.js +1 -1
  50. package/dist-esm/src/models/index.d.ts +72 -0
  51. package/dist-esm/src/models/index.d.ts.map +1 -1
  52. package/dist-esm/src/models/index.js +10 -0
  53. package/dist-esm/src/models/index.js.map +1 -1
  54. package/dist-esm/src/models/mappers.d.ts +3 -0
  55. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  56. package/dist-esm/src/models/mappers.js +481 -389
  57. package/dist-esm/src/models/mappers.js.map +1 -1
  58. package/dist-esm/src/models/parameters.d.ts +1 -0
  59. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  60. package/dist-esm/src/models/parameters.js +62 -52
  61. package/dist-esm/src/models/parameters.js.map +1 -1
  62. package/dist-esm/src/operations/databases.d.ts +78 -40
  63. package/dist-esm/src/operations/databases.d.ts.map +1 -1
  64. package/dist-esm/src/operations/databases.js +337 -145
  65. package/dist-esm/src/operations/databases.js.map +1 -1
  66. package/dist-esm/src/operations/operations.js +9 -9
  67. package/dist-esm/src/operations/operationsStatus.js +5 -5
  68. package/dist-esm/src/operations/operationsStatus.js.map +1 -1
  69. package/dist-esm/src/operations/privateEndpointConnections.d.ts +7 -7
  70. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  71. package/dist-esm/src/operations/privateEndpointConnections.js +42 -42
  72. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  73. package/dist-esm/src/operations/privateLinkResources.d.ts +2 -2
  74. package/dist-esm/src/operations/privateLinkResources.js +8 -8
  75. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  76. package/dist-esm/src/operations/redisEnterprise.d.ts +7 -7
  77. package/dist-esm/src/operations/redisEnterprise.d.ts.map +1 -1
  78. package/dist-esm/src/operations/redisEnterprise.js +66 -66
  79. package/dist-esm/src/operations/redisEnterprise.js.map +1 -1
  80. package/dist-esm/src/operationsInterfaces/databases.d.ts +76 -38
  81. package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -1
  82. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +6 -6
  83. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +1 -1
  84. package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts +7 -7
  85. package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +1 -1
  86. package/dist-esm/src/redisEnterpriseManagementClient.js +9 -9
  87. package/dist-esm/src/redisEnterpriseManagementClient.js.map +1 -1
  88. package/dist-esm/test/redisenterprisecache_test.spec.d.ts.map +1 -1
  89. package/dist-esm/test/redisenterprisecache_test.spec.js +0 -3
  90. package/dist-esm/test/redisenterprisecache_test.spec.js.map +1 -1
  91. package/package.json +6 -6
  92. package/review/arm-redisenterprisecache.api.md +54 -0
  93. package/src/lroImpl.ts +3 -3
  94. package/src/models/index.ts +105 -18
  95. package/src/models/mappers.ts +539 -437
  96. package/src/models/parameters.ts +65 -53
  97. package/src/operations/databases.ts +527 -272
  98. package/src/operations/operations.ts +16 -16
  99. package/src/operations/operationsStatus.ts +9 -10
  100. package/src/operations/privateEndpointConnections.ts +78 -83
  101. package/src/operations/privateLinkResources.ts +18 -19
  102. package/src/operations/redisEnterprise.ts +121 -130
  103. package/src/operationsInterfaces/databases.ts +132 -57
  104. package/src/operationsInterfaces/operations.ts +1 -1
  105. package/src/operationsInterfaces/operationsStatus.ts +2 -2
  106. package/src/operationsInterfaces/privateEndpointConnections.ts +13 -13
  107. package/src/operationsInterfaces/privateLinkResources.ts +3 -3
  108. package/src/operationsInterfaces/redisEnterprise.ts +17 -17
  109. package/src/pagingHelper.ts +1 -1
  110. package/src/redisEnterpriseManagementClient.ts +18 -17
  111. package/types/arm-redisenterprisecache.d.ts +170 -51
@@ -18,7 +18,7 @@ import {
18
18
  OperationsListNextOptionalParams,
19
19
  OperationsListOptionalParams,
20
20
  OperationsListResponse,
21
- OperationsListNextResponse
21
+ OperationsListNextResponse,
22
22
  } from "../models";
23
23
 
24
24
  /// <reference lib="esnext.asynciterable" />
@@ -39,7 +39,7 @@ export class OperationsImpl implements Operations {
39
39
  * @param options The options parameters.
40
40
  */
41
41
  public list(
42
- options?: OperationsListOptionalParams
42
+ options?: OperationsListOptionalParams,
43
43
  ): PagedAsyncIterableIterator<Operation> {
44
44
  const iter = this.listPagingAll(options);
45
45
  return {
@@ -54,13 +54,13 @@ export class OperationsImpl implements Operations {
54
54
  throw new Error("maxPageSize is not supported by this operation.");
55
55
  }
56
56
  return this.listPagingPage(options, settings);
57
- }
57
+ },
58
58
  };
59
59
  }
60
60
 
61
61
  private async *listPagingPage(
62
62
  options?: OperationsListOptionalParams,
63
- settings?: PageSettings
63
+ settings?: PageSettings,
64
64
  ): AsyncIterableIterator<Operation[]> {
65
65
  let result: OperationsListResponse;
66
66
  let continuationToken = settings?.continuationToken;
@@ -81,7 +81,7 @@ export class OperationsImpl implements Operations {
81
81
  }
82
82
 
83
83
  private async *listPagingAll(
84
- options?: OperationsListOptionalParams
84
+ options?: OperationsListOptionalParams,
85
85
  ): AsyncIterableIterator<Operation> {
86
86
  for await (const page of this.listPagingPage(options)) {
87
87
  yield* page;
@@ -93,7 +93,7 @@ export class OperationsImpl implements Operations {
93
93
  * @param options The options parameters.
94
94
  */
95
95
  private _list(
96
- options?: OperationsListOptionalParams
96
+ options?: OperationsListOptionalParams,
97
97
  ): Promise<OperationsListResponse> {
98
98
  return this.client.sendOperationRequest({ options }, listOperationSpec);
99
99
  }
@@ -105,11 +105,11 @@ export class OperationsImpl implements Operations {
105
105
  */
106
106
  private _listNext(
107
107
  nextLink: string,
108
- options?: OperationsListNextOptionalParams
108
+ options?: OperationsListNextOptionalParams,
109
109
  ): Promise<OperationsListNextResponse> {
110
110
  return this.client.sendOperationRequest(
111
111
  { nextLink, options },
112
- listNextOperationSpec
112
+ listNextOperationSpec,
113
113
  );
114
114
  }
115
115
  }
@@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = {
121
121
  httpMethod: "GET",
122
122
  responses: {
123
123
  200: {
124
- bodyMapper: Mappers.OperationListResult
124
+ bodyMapper: Mappers.OperationListResult,
125
125
  },
126
126
  default: {
127
- bodyMapper: Mappers.ErrorResponse
128
- }
127
+ bodyMapper: Mappers.ErrorResponse,
128
+ },
129
129
  },
130
130
  queryParameters: [Parameters.apiVersion],
131
131
  urlParameters: [Parameters.$host],
132
132
  headerParameters: [Parameters.accept],
133
- serializer
133
+ serializer,
134
134
  };
135
135
  const listNextOperationSpec: coreClient.OperationSpec = {
136
136
  path: "{nextLink}",
137
137
  httpMethod: "GET",
138
138
  responses: {
139
139
  200: {
140
- bodyMapper: Mappers.OperationListResult
140
+ bodyMapper: Mappers.OperationListResult,
141
141
  },
142
142
  default: {
143
- bodyMapper: Mappers.ErrorResponse
144
- }
143
+ bodyMapper: Mappers.ErrorResponse,
144
+ },
145
145
  },
146
146
  urlParameters: [Parameters.$host, Parameters.nextLink],
147
147
  headerParameters: [Parameters.accept],
148
- serializer
148
+ serializer,
149
149
  };
@@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters";
13
13
  import { RedisEnterpriseManagementClient } from "../redisEnterpriseManagementClient";
14
14
  import {
15
15
  OperationsStatusGetOptionalParams,
16
- OperationsStatusGetResponse
16
+ OperationsStatusGetResponse,
17
17
  } from "../models";
18
18
 
19
19
  /** Class containing OperationsStatus operations. */
@@ -37,11 +37,11 @@ export class OperationsStatusImpl implements OperationsStatus {
37
37
  get(
38
38
  location: string,
39
39
  operationId: string,
40
- options?: OperationsStatusGetOptionalParams
40
+ options?: OperationsStatusGetOptionalParams,
41
41
  ): Promise<OperationsStatusGetResponse> {
42
42
  return this.client.sendOperationRequest(
43
43
  { location, operationId, options },
44
- getOperationSpec
44
+ getOperationSpec,
45
45
  );
46
46
  }
47
47
  }
@@ -49,24 +49,23 @@ export class OperationsStatusImpl implements OperationsStatus {
49
49
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
50
50
 
51
51
  const getOperationSpec: coreClient.OperationSpec = {
52
- path:
53
- "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/operationsStatus/{operationId}",
52
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/operationsStatus/{operationId}",
54
53
  httpMethod: "GET",
55
54
  responses: {
56
55
  200: {
57
- bodyMapper: Mappers.OperationStatus
56
+ bodyMapper: Mappers.OperationStatus,
58
57
  },
59
58
  default: {
60
- bodyMapper: Mappers.ErrorResponse
61
- }
59
+ bodyMapper: Mappers.ErrorResponse,
60
+ },
62
61
  },
63
62
  queryParameters: [Parameters.apiVersion],
64
63
  urlParameters: [
65
64
  Parameters.$host,
66
65
  Parameters.location,
67
66
  Parameters.operationId,
68
- Parameters.subscriptionId
67
+ Parameters.subscriptionId,
69
68
  ],
70
69
  headerParameters: [Parameters.accept],
71
- serializer
70
+ serializer,
72
71
  };
@@ -15,7 +15,7 @@ import { RedisEnterpriseManagementClient } from "../redisEnterpriseManagementCli
15
15
  import {
16
16
  SimplePollerLike,
17
17
  OperationState,
18
- createHttpPoller
18
+ createHttpPoller,
19
19
  } from "@azure/core-lro";
20
20
  import { createLroSpec } from "../lroImpl";
21
21
  import {
@@ -26,13 +26,14 @@ import {
26
26
  PrivateEndpointConnectionsGetResponse,
27
27
  PrivateEndpointConnectionsPutOptionalParams,
28
28
  PrivateEndpointConnectionsPutResponse,
29
- PrivateEndpointConnectionsDeleteOptionalParams
29
+ PrivateEndpointConnectionsDeleteOptionalParams,
30
30
  } from "../models";
31
31
 
32
32
  /// <reference lib="esnext.asynciterable" />
33
33
  /** Class containing PrivateEndpointConnections operations. */
34
34
  export class PrivateEndpointConnectionsImpl
35
- implements PrivateEndpointConnections {
35
+ implements PrivateEndpointConnections
36
+ {
36
37
  private readonly client: RedisEnterpriseManagementClient;
37
38
 
38
39
  /**
@@ -46,13 +47,13 @@ export class PrivateEndpointConnectionsImpl
46
47
  /**
47
48
  * Lists all the private endpoint connections associated with the RedisEnterprise cluster.
48
49
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
49
- * @param clusterName The name of the RedisEnterprise cluster.
50
+ * @param clusterName The name of the Redis Enterprise cluster.
50
51
  * @param options The options parameters.
51
52
  */
52
53
  public list(
53
54
  resourceGroupName: string,
54
55
  clusterName: string,
55
- options?: PrivateEndpointConnectionsListOptionalParams
56
+ options?: PrivateEndpointConnectionsListOptionalParams,
56
57
  ): PagedAsyncIterableIterator<PrivateEndpointConnection> {
57
58
  const iter = this.listPagingAll(resourceGroupName, clusterName, options);
58
59
  return {
@@ -70,9 +71,9 @@ export class PrivateEndpointConnectionsImpl
70
71
  resourceGroupName,
71
72
  clusterName,
72
73
  options,
73
- settings
74
+ settings,
74
75
  );
75
- }
76
+ },
76
77
  };
77
78
  }
78
79
 
@@ -80,7 +81,7 @@ export class PrivateEndpointConnectionsImpl
80
81
  resourceGroupName: string,
81
82
  clusterName: string,
82
83
  options?: PrivateEndpointConnectionsListOptionalParams,
83
- _settings?: PageSettings
84
+ _settings?: PageSettings,
84
85
  ): AsyncIterableIterator<PrivateEndpointConnection[]> {
85
86
  let result: PrivateEndpointConnectionsListResponse;
86
87
  result = await this._list(resourceGroupName, clusterName, options);
@@ -90,12 +91,12 @@ export class PrivateEndpointConnectionsImpl
90
91
  private async *listPagingAll(
91
92
  resourceGroupName: string,
92
93
  clusterName: string,
93
- options?: PrivateEndpointConnectionsListOptionalParams
94
+ options?: PrivateEndpointConnectionsListOptionalParams,
94
95
  ): AsyncIterableIterator<PrivateEndpointConnection> {
95
96
  for await (const page of this.listPagingPage(
96
97
  resourceGroupName,
97
98
  clusterName,
98
- options
99
+ options,
99
100
  )) {
100
101
  yield* page;
101
102
  }
@@ -104,24 +105,24 @@ export class PrivateEndpointConnectionsImpl
104
105
  /**
105
106
  * Lists all the private endpoint connections associated with the RedisEnterprise cluster.
106
107
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
107
- * @param clusterName The name of the RedisEnterprise cluster.
108
+ * @param clusterName The name of the Redis Enterprise cluster.
108
109
  * @param options The options parameters.
109
110
  */
110
111
  private _list(
111
112
  resourceGroupName: string,
112
113
  clusterName: string,
113
- options?: PrivateEndpointConnectionsListOptionalParams
114
+ options?: PrivateEndpointConnectionsListOptionalParams,
114
115
  ): Promise<PrivateEndpointConnectionsListResponse> {
115
116
  return this.client.sendOperationRequest(
116
117
  { resourceGroupName, clusterName, options },
117
- listOperationSpec
118
+ listOperationSpec,
118
119
  );
119
120
  }
120
121
 
121
122
  /**
122
123
  * Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
123
124
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
124
- * @param clusterName The name of the RedisEnterprise cluster.
125
+ * @param clusterName The name of the Redis Enterprise cluster.
125
126
  * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
126
127
  * Azure resource
127
128
  * @param options The options parameters.
@@ -130,16 +131,16 @@ export class PrivateEndpointConnectionsImpl
130
131
  resourceGroupName: string,
131
132
  clusterName: string,
132
133
  privateEndpointConnectionName: string,
133
- options?: PrivateEndpointConnectionsGetOptionalParams
134
+ options?: PrivateEndpointConnectionsGetOptionalParams,
134
135
  ): Promise<PrivateEndpointConnectionsGetResponse> {
135
136
  return this.client.sendOperationRequest(
136
137
  {
137
138
  resourceGroupName,
138
139
  clusterName,
139
140
  privateEndpointConnectionName,
140
- options
141
+ options,
141
142
  },
142
- getOperationSpec
143
+ getOperationSpec,
143
144
  );
144
145
  }
145
146
 
@@ -147,7 +148,7 @@ export class PrivateEndpointConnectionsImpl
147
148
  * Updates the state of the specified private endpoint connection associated with the RedisEnterprise
148
149
  * cluster.
149
150
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
150
- * @param clusterName The name of the RedisEnterprise cluster.
151
+ * @param clusterName The name of the Redis Enterprise cluster.
151
152
  * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
152
153
  * Azure resource
153
154
  * @param properties The private endpoint connection properties.
@@ -158,7 +159,7 @@ export class PrivateEndpointConnectionsImpl
158
159
  clusterName: string,
159
160
  privateEndpointConnectionName: string,
160
161
  properties: PrivateEndpointConnection,
161
- options?: PrivateEndpointConnectionsPutOptionalParams
162
+ options?: PrivateEndpointConnectionsPutOptionalParams,
162
163
  ): Promise<
163
164
  SimplePollerLike<
164
165
  OperationState<PrivateEndpointConnectionsPutResponse>,
@@ -167,21 +168,20 @@ export class PrivateEndpointConnectionsImpl
167
168
  > {
168
169
  const directSendOperation = async (
169
170
  args: coreClient.OperationArguments,
170
- spec: coreClient.OperationSpec
171
+ spec: coreClient.OperationSpec,
171
172
  ): Promise<PrivateEndpointConnectionsPutResponse> => {
172
173
  return this.client.sendOperationRequest(args, spec);
173
174
  };
174
175
  const sendOperationFn = async (
175
176
  args: coreClient.OperationArguments,
176
- spec: coreClient.OperationSpec
177
+ spec: coreClient.OperationSpec,
177
178
  ) => {
178
- let currentRawResponse:
179
- | coreClient.FullOperationResponse
180
- | undefined = undefined;
179
+ let currentRawResponse: coreClient.FullOperationResponse | undefined =
180
+ undefined;
181
181
  const providedCallback = args.options?.onResponse;
182
182
  const callback: coreClient.RawResponseCallback = (
183
183
  rawResponse: coreClient.FullOperationResponse,
184
- flatResponse: unknown
184
+ flatResponse: unknown,
185
185
  ) => {
186
186
  currentRawResponse = rawResponse;
187
187
  providedCallback?.(rawResponse, flatResponse);
@@ -190,8 +190,8 @@ export class PrivateEndpointConnectionsImpl
190
190
  ...args,
191
191
  options: {
192
192
  ...args.options,
193
- onResponse: callback
194
- }
193
+ onResponse: callback,
194
+ },
195
195
  };
196
196
  const flatResponse = await directSendOperation(updatedArgs, spec);
197
197
  return {
@@ -199,8 +199,8 @@ export class PrivateEndpointConnectionsImpl
199
199
  rawResponse: {
200
200
  statusCode: currentRawResponse!.status,
201
201
  body: currentRawResponse!.parsedBody,
202
- headers: currentRawResponse!.headers.toJSON()
203
- }
202
+ headers: currentRawResponse!.headers.toJSON(),
203
+ },
204
204
  };
205
205
  };
206
206
 
@@ -211,16 +211,16 @@ export class PrivateEndpointConnectionsImpl
211
211
  clusterName,
212
212
  privateEndpointConnectionName,
213
213
  properties,
214
- options
214
+ options,
215
215
  },
216
- spec: putOperationSpec
216
+ spec: putOperationSpec,
217
217
  });
218
218
  const poller = await createHttpPoller<
219
219
  PrivateEndpointConnectionsPutResponse,
220
220
  OperationState<PrivateEndpointConnectionsPutResponse>
221
221
  >(lro, {
222
222
  restoreFrom: options?.resumeFrom,
223
- intervalInMs: options?.updateIntervalInMs
223
+ intervalInMs: options?.updateIntervalInMs,
224
224
  });
225
225
  await poller.poll();
226
226
  return poller;
@@ -230,7 +230,7 @@ export class PrivateEndpointConnectionsImpl
230
230
  * Updates the state of the specified private endpoint connection associated with the RedisEnterprise
231
231
  * cluster.
232
232
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
233
- * @param clusterName The name of the RedisEnterprise cluster.
233
+ * @param clusterName The name of the Redis Enterprise cluster.
234
234
  * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
235
235
  * Azure resource
236
236
  * @param properties The private endpoint connection properties.
@@ -241,14 +241,14 @@ export class PrivateEndpointConnectionsImpl
241
241
  clusterName: string,
242
242
  privateEndpointConnectionName: string,
243
243
  properties: PrivateEndpointConnection,
244
- options?: PrivateEndpointConnectionsPutOptionalParams
244
+ options?: PrivateEndpointConnectionsPutOptionalParams,
245
245
  ): Promise<PrivateEndpointConnectionsPutResponse> {
246
246
  const poller = await this.beginPut(
247
247
  resourceGroupName,
248
248
  clusterName,
249
249
  privateEndpointConnectionName,
250
250
  properties,
251
- options
251
+ options,
252
252
  );
253
253
  return poller.pollUntilDone();
254
254
  }
@@ -256,7 +256,7 @@ export class PrivateEndpointConnectionsImpl
256
256
  /**
257
257
  * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
258
258
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
259
- * @param clusterName The name of the RedisEnterprise cluster.
259
+ * @param clusterName The name of the Redis Enterprise cluster.
260
260
  * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
261
261
  * Azure resource
262
262
  * @param options The options parameters.
@@ -265,25 +265,24 @@ export class PrivateEndpointConnectionsImpl
265
265
  resourceGroupName: string,
266
266
  clusterName: string,
267
267
  privateEndpointConnectionName: string,
268
- options?: PrivateEndpointConnectionsDeleteOptionalParams
268
+ options?: PrivateEndpointConnectionsDeleteOptionalParams,
269
269
  ): Promise<SimplePollerLike<OperationState<void>, void>> {
270
270
  const directSendOperation = async (
271
271
  args: coreClient.OperationArguments,
272
- spec: coreClient.OperationSpec
272
+ spec: coreClient.OperationSpec,
273
273
  ): Promise<void> => {
274
274
  return this.client.sendOperationRequest(args, spec);
275
275
  };
276
276
  const sendOperationFn = async (
277
277
  args: coreClient.OperationArguments,
278
- spec: coreClient.OperationSpec
278
+ spec: coreClient.OperationSpec,
279
279
  ) => {
280
- let currentRawResponse:
281
- | coreClient.FullOperationResponse
282
- | undefined = undefined;
280
+ let currentRawResponse: coreClient.FullOperationResponse | undefined =
281
+ undefined;
283
282
  const providedCallback = args.options?.onResponse;
284
283
  const callback: coreClient.RawResponseCallback = (
285
284
  rawResponse: coreClient.FullOperationResponse,
286
- flatResponse: unknown
285
+ flatResponse: unknown,
287
286
  ) => {
288
287
  currentRawResponse = rawResponse;
289
288
  providedCallback?.(rawResponse, flatResponse);
@@ -292,8 +291,8 @@ export class PrivateEndpointConnectionsImpl
292
291
  ...args,
293
292
  options: {
294
293
  ...args.options,
295
- onResponse: callback
296
- }
294
+ onResponse: callback,
295
+ },
297
296
  };
298
297
  const flatResponse = await directSendOperation(updatedArgs, spec);
299
298
  return {
@@ -301,8 +300,8 @@ export class PrivateEndpointConnectionsImpl
301
300
  rawResponse: {
302
301
  statusCode: currentRawResponse!.status,
303
302
  body: currentRawResponse!.parsedBody,
304
- headers: currentRawResponse!.headers.toJSON()
305
- }
303
+ headers: currentRawResponse!.headers.toJSON(),
304
+ },
306
305
  };
307
306
  };
308
307
 
@@ -312,14 +311,14 @@ export class PrivateEndpointConnectionsImpl
312
311
  resourceGroupName,
313
312
  clusterName,
314
313
  privateEndpointConnectionName,
315
- options
314
+ options,
316
315
  },
317
- spec: deleteOperationSpec
316
+ spec: deleteOperationSpec,
318
317
  });
319
318
  const poller = await createHttpPoller<void, OperationState<void>>(lro, {
320
319
  restoreFrom: options?.resumeFrom,
321
320
  intervalInMs: options?.updateIntervalInMs,
322
- resourceLocationConfig: "location"
321
+ resourceLocationConfig: "location",
323
322
  });
324
323
  await poller.poll();
325
324
  return poller;
@@ -328,7 +327,7 @@ export class PrivateEndpointConnectionsImpl
328
327
  /**
329
328
  * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
330
329
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
331
- * @param clusterName The name of the RedisEnterprise cluster.
330
+ * @param clusterName The name of the Redis Enterprise cluster.
332
331
  * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
333
332
  * Azure resource
334
333
  * @param options The options parameters.
@@ -337,13 +336,13 @@ export class PrivateEndpointConnectionsImpl
337
336
  resourceGroupName: string,
338
337
  clusterName: string,
339
338
  privateEndpointConnectionName: string,
340
- options?: PrivateEndpointConnectionsDeleteOptionalParams
339
+ options?: PrivateEndpointConnectionsDeleteOptionalParams,
341
340
  ): Promise<void> {
342
341
  const poller = await this.beginDelete(
343
342
  resourceGroupName,
344
343
  clusterName,
345
344
  privateEndpointConnectionName,
346
- options
345
+ options,
347
346
  );
348
347
  return poller.pollUntilDone();
349
348
  }
@@ -352,38 +351,36 @@ export class PrivateEndpointConnectionsImpl
352
351
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
353
352
 
354
353
  const listOperationSpec: coreClient.OperationSpec = {
355
- path:
356
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections",
354
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections",
357
355
  httpMethod: "GET",
358
356
  responses: {
359
357
  200: {
360
- bodyMapper: Mappers.PrivateEndpointConnectionListResult
358
+ bodyMapper: Mappers.PrivateEndpointConnectionListResult,
361
359
  },
362
360
  default: {
363
- bodyMapper: Mappers.ErrorResponse
364
- }
361
+ bodyMapper: Mappers.ErrorResponse,
362
+ },
365
363
  },
366
364
  queryParameters: [Parameters.apiVersion],
367
365
  urlParameters: [
368
366
  Parameters.$host,
369
367
  Parameters.subscriptionId,
370
368
  Parameters.resourceGroupName,
371
- Parameters.clusterName
369
+ Parameters.clusterName,
372
370
  ],
373
371
  headerParameters: [Parameters.accept],
374
- serializer
372
+ serializer,
375
373
  };
376
374
  const getOperationSpec: coreClient.OperationSpec = {
377
- path:
378
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
375
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
379
376
  httpMethod: "GET",
380
377
  responses: {
381
378
  200: {
382
- bodyMapper: Mappers.PrivateEndpointConnection
379
+ bodyMapper: Mappers.PrivateEndpointConnection,
383
380
  },
384
381
  default: {
385
- bodyMapper: Mappers.ErrorResponse
386
- }
382
+ bodyMapper: Mappers.ErrorResponse,
383
+ },
387
384
  },
388
385
  queryParameters: [Parameters.apiVersion],
389
386
  urlParameters: [
@@ -391,31 +388,30 @@ const getOperationSpec: coreClient.OperationSpec = {
391
388
  Parameters.subscriptionId,
392
389
  Parameters.resourceGroupName,
393
390
  Parameters.clusterName,
394
- Parameters.privateEndpointConnectionName
391
+ Parameters.privateEndpointConnectionName,
395
392
  ],
396
393
  headerParameters: [Parameters.accept],
397
- serializer
394
+ serializer,
398
395
  };
399
396
  const putOperationSpec: coreClient.OperationSpec = {
400
- path:
401
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
397
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
402
398
  httpMethod: "PUT",
403
399
  responses: {
404
400
  200: {
405
- bodyMapper: Mappers.PrivateEndpointConnection
401
+ bodyMapper: Mappers.PrivateEndpointConnection,
406
402
  },
407
403
  201: {
408
- bodyMapper: Mappers.PrivateEndpointConnection
404
+ bodyMapper: Mappers.PrivateEndpointConnection,
409
405
  },
410
406
  202: {
411
- bodyMapper: Mappers.PrivateEndpointConnection
407
+ bodyMapper: Mappers.PrivateEndpointConnection,
412
408
  },
413
409
  204: {
414
- bodyMapper: Mappers.PrivateEndpointConnection
410
+ bodyMapper: Mappers.PrivateEndpointConnection,
415
411
  },
416
412
  default: {
417
- bodyMapper: Mappers.ErrorResponse
418
- }
413
+ bodyMapper: Mappers.ErrorResponse,
414
+ },
419
415
  },
420
416
  requestBody: Parameters.properties,
421
417
  queryParameters: [Parameters.apiVersion],
@@ -424,15 +420,14 @@ const putOperationSpec: coreClient.OperationSpec = {
424
420
  Parameters.subscriptionId,
425
421
  Parameters.resourceGroupName,
426
422
  Parameters.clusterName,
427
- Parameters.privateEndpointConnectionName
423
+ Parameters.privateEndpointConnectionName,
428
424
  ],
429
425
  headerParameters: [Parameters.accept, Parameters.contentType],
430
426
  mediaType: "json",
431
- serializer
427
+ serializer,
432
428
  };
433
429
  const deleteOperationSpec: coreClient.OperationSpec = {
434
- path:
435
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
430
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
436
431
  httpMethod: "DELETE",
437
432
  responses: {
438
433
  200: {},
@@ -440,8 +435,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
440
435
  202: {},
441
436
  204: {},
442
437
  default: {
443
- bodyMapper: Mappers.ErrorResponse
444
- }
438
+ bodyMapper: Mappers.ErrorResponse,
439
+ },
445
440
  },
446
441
  queryParameters: [Parameters.apiVersion],
447
442
  urlParameters: [
@@ -449,8 +444,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
449
444
  Parameters.subscriptionId,
450
445
  Parameters.resourceGroupName,
451
446
  Parameters.clusterName,
452
- Parameters.privateEndpointConnectionName
447
+ Parameters.privateEndpointConnectionName,
453
448
  ],
454
449
  headerParameters: [Parameters.accept],
455
- serializer
450
+ serializer,
456
451
  };