@azure/arm-cosmosdbforpostgresql 1.0.1-alpha.20240312.1 → 1.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 (113) hide show
  1. package/CHANGELOG.md +24 -10
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +1060 -948
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/clustersCheckNameAvailabilitySample.js +3 -3
  9. package/dist-esm/samples-dev/clustersCheckNameAvailabilitySample.js.map +1 -1
  10. package/dist-esm/samples-dev/clustersCreateSample.js +13 -13
  11. package/dist-esm/samples-dev/clustersCreateSample.js.map +1 -1
  12. package/dist-esm/samples-dev/clustersDeleteSample.js +1 -1
  13. package/dist-esm/samples-dev/clustersGetSample.js +1 -1
  14. package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +1 -1
  15. package/dist-esm/samples-dev/clustersListSample.js +1 -1
  16. package/dist-esm/samples-dev/clustersPromoteReadReplicaSample.js +1 -1
  17. package/dist-esm/samples-dev/clustersRestartSample.js +1 -1
  18. package/dist-esm/samples-dev/clustersStartSample.js +1 -1
  19. package/dist-esm/samples-dev/clustersStopSample.js +1 -1
  20. package/dist-esm/samples-dev/clustersUpdateSample.js +9 -9
  21. package/dist-esm/samples-dev/clustersUpdateSample.js.map +1 -1
  22. package/dist-esm/samples-dev/configurationsGetCoordinatorSample.js +1 -1
  23. package/dist-esm/samples-dev/configurationsGetNodeSample.js +1 -1
  24. package/dist-esm/samples-dev/configurationsGetSample.js +1 -1
  25. package/dist-esm/samples-dev/configurationsListByClusterSample.js +1 -1
  26. package/dist-esm/samples-dev/configurationsListByServerSample.js +1 -1
  27. package/dist-esm/samples-dev/configurationsUpdateOnCoordinatorSample.js +2 -2
  28. package/dist-esm/samples-dev/configurationsUpdateOnCoordinatorSample.js.map +1 -1
  29. package/dist-esm/samples-dev/configurationsUpdateOnNodeSample.js +2 -2
  30. package/dist-esm/samples-dev/configurationsUpdateOnNodeSample.js.map +1 -1
  31. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +3 -3
  32. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js.map +1 -1
  33. package/dist-esm/samples-dev/firewallRulesDeleteSample.js +1 -1
  34. package/dist-esm/samples-dev/firewallRulesGetSample.js +1 -1
  35. package/dist-esm/samples-dev/firewallRulesListByClusterSample.js +1 -1
  36. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  37. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +4 -4
  38. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
  39. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  40. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  41. package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.js +1 -1
  42. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +1 -1
  43. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +1 -1
  44. package/dist-esm/samples-dev/rolesCreateSample.js +1 -1
  45. package/dist-esm/samples-dev/rolesDeleteSample.js +1 -1
  46. package/dist-esm/samples-dev/rolesGetSample.js +1 -1
  47. package/dist-esm/samples-dev/rolesListByClusterSample.js +1 -1
  48. package/dist-esm/samples-dev/serversGetSample.js +1 -1
  49. package/dist-esm/samples-dev/serversListByClusterSample.js +1 -1
  50. package/dist-esm/src/cosmosDBForPostgreSQL.d.ts.map +1 -1
  51. package/dist-esm/src/cosmosDBForPostgreSQL.js +9 -9
  52. package/dist-esm/src/cosmosDBForPostgreSQL.js.map +1 -1
  53. package/dist-esm/src/lroImpl.js +1 -1
  54. package/dist-esm/src/models/index.d.ts +91 -2
  55. package/dist-esm/src/models/index.d.ts.map +1 -1
  56. package/dist-esm/src/models/index.js +34 -0
  57. package/dist-esm/src/models/index.js.map +1 -1
  58. package/dist-esm/src/models/mappers.d.ts +2 -0
  59. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  60. package/dist-esm/src/models/mappers.js +649 -579
  61. package/dist-esm/src/models/mappers.js.map +1 -1
  62. package/dist-esm/src/models/parameters.d.ts +1 -0
  63. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  64. package/dist-esm/src/models/parameters.js +63 -59
  65. package/dist-esm/src/models/parameters.js.map +1 -1
  66. package/dist-esm/src/operations/clusters.d.ts.map +1 -1
  67. package/dist-esm/src/operations/clusters.js +106 -104
  68. package/dist-esm/src/operations/clusters.js.map +1 -1
  69. package/dist-esm/src/operations/configurations.d.ts.map +1 -1
  70. package/dist-esm/src/operations/configurations.js +64 -64
  71. package/dist-esm/src/operations/configurations.js.map +1 -1
  72. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
  73. package/dist-esm/src/operations/firewallRules.js +37 -37
  74. package/dist-esm/src/operations/firewallRules.js.map +1 -1
  75. package/dist-esm/src/operations/operations.js +5 -5
  76. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  77. package/dist-esm/src/operations/privateEndpointConnections.js +39 -39
  78. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  79. package/dist-esm/src/operations/privateLinkResources.js +11 -11
  80. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  81. package/dist-esm/src/operations/roles.d.ts.map +1 -1
  82. package/dist-esm/src/operations/roles.js +36 -36
  83. package/dist-esm/src/operations/roles.js.map +1 -1
  84. package/dist-esm/src/operations/servers.js +11 -11
  85. package/dist-esm/src/operations/servers.js.map +1 -1
  86. package/dist-esm/test/cosmosdbforpostgresql_operations_test.spec.js +2 -2
  87. package/dist-esm/test/cosmosdbforpostgresql_operations_test.spec.js.map +1 -1
  88. package/package.json +9 -9
  89. package/review/arm-cosmosdbforpostgresql.api.md +63 -1
  90. package/src/cosmosDBForPostgreSQL.ts +18 -17
  91. package/src/lroImpl.ts +3 -3
  92. package/src/models/index.ts +124 -17
  93. package/src/models/mappers.ts +710 -628
  94. package/src/models/parameters.ts +66 -60
  95. package/src/operations/clusters.ts +208 -224
  96. package/src/operations/configurations.ts +122 -131
  97. package/src/operations/firewallRules.ts +72 -78
  98. package/src/operations/operations.ts +10 -10
  99. package/src/operations/privateEndpointConnections.ts +76 -81
  100. package/src/operations/privateLinkResources.ts +24 -26
  101. package/src/operations/roles.ts +71 -77
  102. package/src/operations/servers.ts +24 -26
  103. package/src/operationsInterfaces/clusters.ts +19 -19
  104. package/src/operationsInterfaces/configurations.ts +10 -10
  105. package/src/operationsInterfaces/firewallRules.ts +7 -7
  106. package/src/operationsInterfaces/operations.ts +1 -1
  107. package/src/operationsInterfaces/privateEndpointConnections.ts +7 -7
  108. package/src/operationsInterfaces/privateLinkResources.ts +3 -3
  109. package/src/operationsInterfaces/roles.ts +7 -7
  110. package/src/operationsInterfaces/servers.ts +3 -3
  111. package/src/pagingHelper.ts +1 -1
  112. package/types/arm-cosmosdbforpostgresql.d.ts +101 -2
  113. package/types/tsdoc-metadata.json +1 -1
@@ -15,7 +15,7 @@ import { CosmosDBForPostgreSQL } from "../cosmosDBForPostgreSQL";
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 {
@@ -27,13 +27,14 @@ import {
27
27
  PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
28
28
  PrivateEndpointConnectionsCreateOrUpdateResponse,
29
29
  PrivateEndpointConnectionsDeleteOptionalParams,
30
- PrivateEndpointConnectionsDeleteResponse
30
+ PrivateEndpointConnectionsDeleteResponse,
31
31
  } from "../models";
32
32
 
33
33
  /// <reference lib="esnext.asynciterable" />
34
34
  /** Class containing PrivateEndpointConnections operations. */
35
35
  export class PrivateEndpointConnectionsImpl
36
- implements PrivateEndpointConnections {
36
+ implements PrivateEndpointConnections
37
+ {
37
38
  private readonly client: CosmosDBForPostgreSQL;
38
39
 
39
40
  /**
@@ -53,12 +54,12 @@ export class PrivateEndpointConnectionsImpl
53
54
  public listByCluster(
54
55
  resourceGroupName: string,
55
56
  clusterName: string,
56
- options?: PrivateEndpointConnectionsListByClusterOptionalParams
57
+ options?: PrivateEndpointConnectionsListByClusterOptionalParams,
57
58
  ): PagedAsyncIterableIterator<PrivateEndpointConnection> {
58
59
  const iter = this.listByClusterPagingAll(
59
60
  resourceGroupName,
60
61
  clusterName,
61
- options
62
+ options,
62
63
  );
63
64
  return {
64
65
  next() {
@@ -75,9 +76,9 @@ export class PrivateEndpointConnectionsImpl
75
76
  resourceGroupName,
76
77
  clusterName,
77
78
  options,
78
- settings
79
+ settings,
79
80
  );
80
- }
81
+ },
81
82
  };
82
83
  }
83
84
 
@@ -85,7 +86,7 @@ export class PrivateEndpointConnectionsImpl
85
86
  resourceGroupName: string,
86
87
  clusterName: string,
87
88
  options?: PrivateEndpointConnectionsListByClusterOptionalParams,
88
- _settings?: PageSettings
89
+ _settings?: PageSettings,
89
90
  ): AsyncIterableIterator<PrivateEndpointConnection[]> {
90
91
  let result: PrivateEndpointConnectionsListByClusterResponse;
91
92
  result = await this._listByCluster(resourceGroupName, clusterName, options);
@@ -95,12 +96,12 @@ export class PrivateEndpointConnectionsImpl
95
96
  private async *listByClusterPagingAll(
96
97
  resourceGroupName: string,
97
98
  clusterName: string,
98
- options?: PrivateEndpointConnectionsListByClusterOptionalParams
99
+ options?: PrivateEndpointConnectionsListByClusterOptionalParams,
99
100
  ): AsyncIterableIterator<PrivateEndpointConnection> {
100
101
  for await (const page of this.listByClusterPagingPage(
101
102
  resourceGroupName,
102
103
  clusterName,
103
- options
104
+ options,
104
105
  )) {
105
106
  yield* page;
106
107
  }
@@ -115,11 +116,11 @@ export class PrivateEndpointConnectionsImpl
115
116
  private _listByCluster(
116
117
  resourceGroupName: string,
117
118
  clusterName: string,
118
- options?: PrivateEndpointConnectionsListByClusterOptionalParams
119
+ options?: PrivateEndpointConnectionsListByClusterOptionalParams,
119
120
  ): Promise<PrivateEndpointConnectionsListByClusterResponse> {
120
121
  return this.client.sendOperationRequest(
121
122
  { resourceGroupName, clusterName, options },
122
- listByClusterOperationSpec
123
+ listByClusterOperationSpec,
123
124
  );
124
125
  }
125
126
 
@@ -135,16 +136,16 @@ export class PrivateEndpointConnectionsImpl
135
136
  resourceGroupName: string,
136
137
  clusterName: string,
137
138
  privateEndpointConnectionName: string,
138
- options?: PrivateEndpointConnectionsGetOptionalParams
139
+ options?: PrivateEndpointConnectionsGetOptionalParams,
139
140
  ): Promise<PrivateEndpointConnectionsGetResponse> {
140
141
  return this.client.sendOperationRequest(
141
142
  {
142
143
  resourceGroupName,
143
144
  clusterName,
144
145
  privateEndpointConnectionName,
145
- options
146
+ options,
146
147
  },
147
- getOperationSpec
148
+ getOperationSpec,
148
149
  );
149
150
  }
150
151
 
@@ -162,7 +163,7 @@ export class PrivateEndpointConnectionsImpl
162
163
  clusterName: string,
163
164
  privateEndpointConnectionName: string,
164
165
  parameters: PrivateEndpointConnection,
165
- options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
166
+ options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
166
167
  ): Promise<
167
168
  SimplePollerLike<
168
169
  OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,
@@ -171,21 +172,20 @@ export class PrivateEndpointConnectionsImpl
171
172
  > {
172
173
  const directSendOperation = async (
173
174
  args: coreClient.OperationArguments,
174
- spec: coreClient.OperationSpec
175
+ spec: coreClient.OperationSpec,
175
176
  ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {
176
177
  return this.client.sendOperationRequest(args, spec);
177
178
  };
178
179
  const sendOperationFn = async (
179
180
  args: coreClient.OperationArguments,
180
- spec: coreClient.OperationSpec
181
+ spec: coreClient.OperationSpec,
181
182
  ) => {
182
- let currentRawResponse:
183
- | coreClient.FullOperationResponse
184
- | undefined = undefined;
183
+ let currentRawResponse: coreClient.FullOperationResponse | undefined =
184
+ undefined;
185
185
  const providedCallback = args.options?.onResponse;
186
186
  const callback: coreClient.RawResponseCallback = (
187
187
  rawResponse: coreClient.FullOperationResponse,
188
- flatResponse: unknown
188
+ flatResponse: unknown,
189
189
  ) => {
190
190
  currentRawResponse = rawResponse;
191
191
  providedCallback?.(rawResponse, flatResponse);
@@ -194,8 +194,8 @@ export class PrivateEndpointConnectionsImpl
194
194
  ...args,
195
195
  options: {
196
196
  ...args.options,
197
- onResponse: callback
198
- }
197
+ onResponse: callback,
198
+ },
199
199
  };
200
200
  const flatResponse = await directSendOperation(updatedArgs, spec);
201
201
  return {
@@ -203,8 +203,8 @@ export class PrivateEndpointConnectionsImpl
203
203
  rawResponse: {
204
204
  statusCode: currentRawResponse!.status,
205
205
  body: currentRawResponse!.parsedBody,
206
- headers: currentRawResponse!.headers.toJSON()
207
- }
206
+ headers: currentRawResponse!.headers.toJSON(),
207
+ },
208
208
  };
209
209
  };
210
210
 
@@ -215,9 +215,9 @@ export class PrivateEndpointConnectionsImpl
215
215
  clusterName,
216
216
  privateEndpointConnectionName,
217
217
  parameters,
218
- options
218
+ options,
219
219
  },
220
- spec: createOrUpdateOperationSpec
220
+ spec: createOrUpdateOperationSpec,
221
221
  });
222
222
  const poller = await createHttpPoller<
223
223
  PrivateEndpointConnectionsCreateOrUpdateResponse,
@@ -225,7 +225,7 @@ export class PrivateEndpointConnectionsImpl
225
225
  >(lro, {
226
226
  restoreFrom: options?.resumeFrom,
227
227
  intervalInMs: options?.updateIntervalInMs,
228
- resourceLocationConfig: "azure-async-operation"
228
+ resourceLocationConfig: "azure-async-operation",
229
229
  });
230
230
  await poller.poll();
231
231
  return poller;
@@ -245,14 +245,14 @@ export class PrivateEndpointConnectionsImpl
245
245
  clusterName: string,
246
246
  privateEndpointConnectionName: string,
247
247
  parameters: PrivateEndpointConnection,
248
- options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
248
+ options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
249
249
  ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {
250
250
  const poller = await this.beginCreateOrUpdate(
251
251
  resourceGroupName,
252
252
  clusterName,
253
253
  privateEndpointConnectionName,
254
254
  parameters,
255
- options
255
+ options,
256
256
  );
257
257
  return poller.pollUntilDone();
258
258
  }
@@ -269,7 +269,7 @@ export class PrivateEndpointConnectionsImpl
269
269
  resourceGroupName: string,
270
270
  clusterName: string,
271
271
  privateEndpointConnectionName: string,
272
- options?: PrivateEndpointConnectionsDeleteOptionalParams
272
+ options?: PrivateEndpointConnectionsDeleteOptionalParams,
273
273
  ): Promise<
274
274
  SimplePollerLike<
275
275
  OperationState<PrivateEndpointConnectionsDeleteResponse>,
@@ -278,21 +278,20 @@ export class PrivateEndpointConnectionsImpl
278
278
  > {
279
279
  const directSendOperation = async (
280
280
  args: coreClient.OperationArguments,
281
- spec: coreClient.OperationSpec
281
+ spec: coreClient.OperationSpec,
282
282
  ): Promise<PrivateEndpointConnectionsDeleteResponse> => {
283
283
  return this.client.sendOperationRequest(args, spec);
284
284
  };
285
285
  const sendOperationFn = async (
286
286
  args: coreClient.OperationArguments,
287
- spec: coreClient.OperationSpec
287
+ spec: coreClient.OperationSpec,
288
288
  ) => {
289
- let currentRawResponse:
290
- | coreClient.FullOperationResponse
291
- | undefined = undefined;
289
+ let currentRawResponse: coreClient.FullOperationResponse | undefined =
290
+ undefined;
292
291
  const providedCallback = args.options?.onResponse;
293
292
  const callback: coreClient.RawResponseCallback = (
294
293
  rawResponse: coreClient.FullOperationResponse,
295
- flatResponse: unknown
294
+ flatResponse: unknown,
296
295
  ) => {
297
296
  currentRawResponse = rawResponse;
298
297
  providedCallback?.(rawResponse, flatResponse);
@@ -301,8 +300,8 @@ export class PrivateEndpointConnectionsImpl
301
300
  ...args,
302
301
  options: {
303
302
  ...args.options,
304
- onResponse: callback
305
- }
303
+ onResponse: callback,
304
+ },
306
305
  };
307
306
  const flatResponse = await directSendOperation(updatedArgs, spec);
308
307
  return {
@@ -310,8 +309,8 @@ export class PrivateEndpointConnectionsImpl
310
309
  rawResponse: {
311
310
  statusCode: currentRawResponse!.status,
312
311
  body: currentRawResponse!.parsedBody,
313
- headers: currentRawResponse!.headers.toJSON()
314
- }
312
+ headers: currentRawResponse!.headers.toJSON(),
313
+ },
315
314
  };
316
315
  };
317
316
 
@@ -321,9 +320,9 @@ export class PrivateEndpointConnectionsImpl
321
320
  resourceGroupName,
322
321
  clusterName,
323
322
  privateEndpointConnectionName,
324
- options
323
+ options,
325
324
  },
326
- spec: deleteOperationSpec
325
+ spec: deleteOperationSpec,
327
326
  });
328
327
  const poller = await createHttpPoller<
329
328
  PrivateEndpointConnectionsDeleteResponse,
@@ -331,7 +330,7 @@ export class PrivateEndpointConnectionsImpl
331
330
  >(lro, {
332
331
  restoreFrom: options?.resumeFrom,
333
332
  intervalInMs: options?.updateIntervalInMs,
334
- resourceLocationConfig: "location"
333
+ resourceLocationConfig: "location",
335
334
  });
336
335
  await poller.poll();
337
336
  return poller;
@@ -349,13 +348,13 @@ export class PrivateEndpointConnectionsImpl
349
348
  resourceGroupName: string,
350
349
  clusterName: string,
351
350
  privateEndpointConnectionName: string,
352
- options?: PrivateEndpointConnectionsDeleteOptionalParams
351
+ options?: PrivateEndpointConnectionsDeleteOptionalParams,
353
352
  ): Promise<PrivateEndpointConnectionsDeleteResponse> {
354
353
  const poller = await this.beginDelete(
355
354
  resourceGroupName,
356
355
  clusterName,
357
356
  privateEndpointConnectionName,
358
- options
357
+ options,
359
358
  );
360
359
  return poller.pollUntilDone();
361
360
  }
@@ -364,38 +363,36 @@ export class PrivateEndpointConnectionsImpl
364
363
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
365
364
 
366
365
  const listByClusterOperationSpec: coreClient.OperationSpec = {
367
- path:
368
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections",
366
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections",
369
367
  httpMethod: "GET",
370
368
  responses: {
371
369
  200: {
372
- bodyMapper: Mappers.PrivateEndpointConnectionListResult
370
+ bodyMapper: Mappers.PrivateEndpointConnectionListResult,
373
371
  },
374
372
  default: {
375
- bodyMapper: Mappers.ErrorResponse
376
- }
373
+ bodyMapper: Mappers.ErrorResponse,
374
+ },
377
375
  },
378
376
  queryParameters: [Parameters.apiVersion],
379
377
  urlParameters: [
380
378
  Parameters.$host,
381
379
  Parameters.subscriptionId,
382
380
  Parameters.resourceGroupName,
383
- Parameters.clusterName
381
+ Parameters.clusterName,
384
382
  ],
385
383
  headerParameters: [Parameters.accept],
386
- serializer
384
+ serializer,
387
385
  };
388
386
  const getOperationSpec: coreClient.OperationSpec = {
389
- path:
390
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
387
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
391
388
  httpMethod: "GET",
392
389
  responses: {
393
390
  200: {
394
- bodyMapper: Mappers.PrivateEndpointConnection
391
+ bodyMapper: Mappers.PrivateEndpointConnection,
395
392
  },
396
393
  default: {
397
- bodyMapper: Mappers.ErrorResponse
398
- }
394
+ bodyMapper: Mappers.ErrorResponse,
395
+ },
399
396
  },
400
397
  queryParameters: [Parameters.apiVersion],
401
398
  urlParameters: [
@@ -403,31 +400,30 @@ const getOperationSpec: coreClient.OperationSpec = {
403
400
  Parameters.subscriptionId,
404
401
  Parameters.resourceGroupName,
405
402
  Parameters.clusterName,
406
- Parameters.privateEndpointConnectionName
403
+ Parameters.privateEndpointConnectionName,
407
404
  ],
408
405
  headerParameters: [Parameters.accept],
409
- serializer
406
+ serializer,
410
407
  };
411
408
  const createOrUpdateOperationSpec: coreClient.OperationSpec = {
412
- path:
413
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
409
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
414
410
  httpMethod: "PUT",
415
411
  responses: {
416
412
  200: {
417
- bodyMapper: Mappers.PrivateEndpointConnection
413
+ bodyMapper: Mappers.PrivateEndpointConnection,
418
414
  },
419
415
  201: {
420
- bodyMapper: Mappers.PrivateEndpointConnection
416
+ bodyMapper: Mappers.PrivateEndpointConnection,
421
417
  },
422
418
  202: {
423
- bodyMapper: Mappers.PrivateEndpointConnection
419
+ bodyMapper: Mappers.PrivateEndpointConnection,
424
420
  },
425
421
  204: {
426
- bodyMapper: Mappers.PrivateEndpointConnection
422
+ bodyMapper: Mappers.PrivateEndpointConnection,
427
423
  },
428
424
  default: {
429
- bodyMapper: Mappers.ErrorResponse
430
- }
425
+ bodyMapper: Mappers.ErrorResponse,
426
+ },
431
427
  },
432
428
  requestBody: Parameters.parameters5,
433
429
  queryParameters: [Parameters.apiVersion],
@@ -436,32 +432,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
436
432
  Parameters.subscriptionId,
437
433
  Parameters.resourceGroupName,
438
434
  Parameters.clusterName,
439
- Parameters.privateEndpointConnectionName
435
+ Parameters.privateEndpointConnectionName,
440
436
  ],
441
437
  headerParameters: [Parameters.accept, Parameters.contentType],
442
438
  mediaType: "json",
443
- serializer
439
+ serializer,
444
440
  };
445
441
  const deleteOperationSpec: coreClient.OperationSpec = {
446
- path:
447
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
442
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
448
443
  httpMethod: "DELETE",
449
444
  responses: {
450
445
  200: {
451
- headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders
446
+ headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,
452
447
  },
453
448
  201: {
454
- headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders
449
+ headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,
455
450
  },
456
451
  202: {
457
- headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders
452
+ headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,
458
453
  },
459
454
  204: {
460
- headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders
455
+ headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders,
461
456
  },
462
457
  default: {
463
- bodyMapper: Mappers.ErrorResponse
464
- }
458
+ bodyMapper: Mappers.ErrorResponse,
459
+ },
465
460
  },
466
461
  queryParameters: [Parameters.apiVersion],
467
462
  urlParameters: [
@@ -469,8 +464,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
469
464
  Parameters.subscriptionId,
470
465
  Parameters.resourceGroupName,
471
466
  Parameters.clusterName,
472
- Parameters.privateEndpointConnectionName
467
+ Parameters.privateEndpointConnectionName,
473
468
  ],
474
469
  headerParameters: [Parameters.accept],
475
- serializer
470
+ serializer,
476
471
  };
@@ -17,7 +17,7 @@ import {
17
17
  PrivateLinkResourcesListByClusterOptionalParams,
18
18
  PrivateLinkResourcesListByClusterResponse,
19
19
  PrivateLinkResourcesGetOptionalParams,
20
- PrivateLinkResourcesGetResponse
20
+ PrivateLinkResourcesGetResponse,
21
21
  } from "../models";
22
22
 
23
23
  /// <reference lib="esnext.asynciterable" />
@@ -42,12 +42,12 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
42
42
  public listByCluster(
43
43
  resourceGroupName: string,
44
44
  clusterName: string,
45
- options?: PrivateLinkResourcesListByClusterOptionalParams
45
+ options?: PrivateLinkResourcesListByClusterOptionalParams,
46
46
  ): PagedAsyncIterableIterator<PrivateLinkResource> {
47
47
  const iter = this.listByClusterPagingAll(
48
48
  resourceGroupName,
49
49
  clusterName,
50
- options
50
+ options,
51
51
  );
52
52
  return {
53
53
  next() {
@@ -64,9 +64,9 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
64
64
  resourceGroupName,
65
65
  clusterName,
66
66
  options,
67
- settings
67
+ settings,
68
68
  );
69
- }
69
+ },
70
70
  };
71
71
  }
72
72
 
@@ -74,7 +74,7 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
74
74
  resourceGroupName: string,
75
75
  clusterName: string,
76
76
  options?: PrivateLinkResourcesListByClusterOptionalParams,
77
- _settings?: PageSettings
77
+ _settings?: PageSettings,
78
78
  ): AsyncIterableIterator<PrivateLinkResource[]> {
79
79
  let result: PrivateLinkResourcesListByClusterResponse;
80
80
  result = await this._listByCluster(resourceGroupName, clusterName, options);
@@ -84,12 +84,12 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
84
84
  private async *listByClusterPagingAll(
85
85
  resourceGroupName: string,
86
86
  clusterName: string,
87
- options?: PrivateLinkResourcesListByClusterOptionalParams
87
+ options?: PrivateLinkResourcesListByClusterOptionalParams,
88
88
  ): AsyncIterableIterator<PrivateLinkResource> {
89
89
  for await (const page of this.listByClusterPagingPage(
90
90
  resourceGroupName,
91
91
  clusterName,
92
- options
92
+ options,
93
93
  )) {
94
94
  yield* page;
95
95
  }
@@ -104,11 +104,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
104
104
  private _listByCluster(
105
105
  resourceGroupName: string,
106
106
  clusterName: string,
107
- options?: PrivateLinkResourcesListByClusterOptionalParams
107
+ options?: PrivateLinkResourcesListByClusterOptionalParams,
108
108
  ): Promise<PrivateLinkResourcesListByClusterResponse> {
109
109
  return this.client.sendOperationRequest(
110
110
  { resourceGroupName, clusterName, options },
111
- listByClusterOperationSpec
111
+ listByClusterOperationSpec,
112
112
  );
113
113
  }
114
114
 
@@ -123,11 +123,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
123
123
  resourceGroupName: string,
124
124
  clusterName: string,
125
125
  privateLinkResourceName: string,
126
- options?: PrivateLinkResourcesGetOptionalParams
126
+ options?: PrivateLinkResourcesGetOptionalParams,
127
127
  ): Promise<PrivateLinkResourcesGetResponse> {
128
128
  return this.client.sendOperationRequest(
129
129
  { resourceGroupName, clusterName, privateLinkResourceName, options },
130
- getOperationSpec
130
+ getOperationSpec,
131
131
  );
132
132
  }
133
133
  }
@@ -135,38 +135,36 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
135
135
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
136
136
 
137
137
  const listByClusterOperationSpec: coreClient.OperationSpec = {
138
- path:
139
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateLinkResources",
138
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateLinkResources",
140
139
  httpMethod: "GET",
141
140
  responses: {
142
141
  200: {
143
- bodyMapper: Mappers.PrivateLinkResourceListResult
142
+ bodyMapper: Mappers.PrivateLinkResourceListResult,
144
143
  },
145
144
  default: {
146
- bodyMapper: Mappers.ErrorResponse
147
- }
145
+ bodyMapper: Mappers.ErrorResponse,
146
+ },
148
147
  },
149
148
  queryParameters: [Parameters.apiVersion],
150
149
  urlParameters: [
151
150
  Parameters.$host,
152
151
  Parameters.subscriptionId,
153
152
  Parameters.resourceGroupName,
154
- Parameters.clusterName
153
+ Parameters.clusterName,
155
154
  ],
156
155
  headerParameters: [Parameters.accept],
157
- serializer
156
+ serializer,
158
157
  };
159
158
  const getOperationSpec: coreClient.OperationSpec = {
160
- path:
161
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateLinkResources/{privateLinkResourceName}",
159
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateLinkResources/{privateLinkResourceName}",
162
160
  httpMethod: "GET",
163
161
  responses: {
164
162
  200: {
165
- bodyMapper: Mappers.PrivateLinkResource
163
+ bodyMapper: Mappers.PrivateLinkResource,
166
164
  },
167
165
  default: {
168
- bodyMapper: Mappers.ErrorResponse
169
- }
166
+ bodyMapper: Mappers.ErrorResponse,
167
+ },
170
168
  },
171
169
  queryParameters: [Parameters.apiVersion],
172
170
  urlParameters: [
@@ -174,8 +172,8 @@ const getOperationSpec: coreClient.OperationSpec = {
174
172
  Parameters.subscriptionId,
175
173
  Parameters.resourceGroupName,
176
174
  Parameters.clusterName,
177
- Parameters.privateLinkResourceName
175
+ Parameters.privateLinkResourceName,
178
176
  ],
179
177
  headerParameters: [Parameters.accept],
180
- serializer
178
+ serializer,
181
179
  };