@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
@@ -17,20 +17,20 @@ export const ClusterListResult = {
17
17
  element: {
18
18
  type: {
19
19
  name: "Composite",
20
- className: "Cluster"
21
- }
22
- }
23
- }
20
+ className: "Cluster",
21
+ },
22
+ },
23
+ },
24
24
  },
25
25
  nextLink: {
26
26
  serializedName: "nextLink",
27
27
  readOnly: true,
28
28
  type: {
29
- name: "String"
30
- }
31
- }
32
- }
33
- }
29
+ name: "String",
30
+ },
31
+ },
32
+ },
33
+ },
34
34
  };
35
35
  export const MaintenanceWindow = {
36
36
  type: {
@@ -40,29 +40,29 @@ export const MaintenanceWindow = {
40
40
  customWindow: {
41
41
  serializedName: "customWindow",
42
42
  type: {
43
- name: "String"
44
- }
43
+ name: "String",
44
+ },
45
45
  },
46
46
  startHour: {
47
47
  serializedName: "startHour",
48
48
  type: {
49
- name: "Number"
50
- }
49
+ name: "Number",
50
+ },
51
51
  },
52
52
  startMinute: {
53
53
  serializedName: "startMinute",
54
54
  type: {
55
- name: "Number"
56
- }
55
+ name: "Number",
56
+ },
57
57
  },
58
58
  dayOfWeek: {
59
59
  serializedName: "dayOfWeek",
60
60
  type: {
61
- name: "Number"
62
- }
63
- }
64
- }
65
- }
61
+ name: "Number",
62
+ },
63
+ },
64
+ },
65
+ },
66
66
  };
67
67
  export const ServerNameItem = {
68
68
  type: {
@@ -72,18 +72,18 @@ export const ServerNameItem = {
72
72
  name: {
73
73
  serializedName: "name",
74
74
  type: {
75
- name: "String"
76
- }
75
+ name: "String",
76
+ },
77
77
  },
78
78
  fullyQualifiedDomainName: {
79
79
  serializedName: "fullyQualifiedDomainName",
80
80
  readOnly: true,
81
81
  type: {
82
- name: "String"
83
- }
84
- }
85
- }
86
- }
82
+ name: "String",
83
+ },
84
+ },
85
+ },
86
+ },
87
87
  };
88
88
  export const PrivateEndpointProperty = {
89
89
  type: {
@@ -93,11 +93,11 @@ export const PrivateEndpointProperty = {
93
93
  id: {
94
94
  serializedName: "id",
95
95
  type: {
96
- name: "String"
97
- }
98
- }
99
- }
100
- }
96
+ name: "String",
97
+ },
98
+ },
99
+ },
100
+ },
101
101
  };
102
102
  export const PrivateLinkServiceConnectionState = {
103
103
  type: {
@@ -107,23 +107,23 @@ export const PrivateLinkServiceConnectionState = {
107
107
  status: {
108
108
  serializedName: "status",
109
109
  type: {
110
- name: "String"
111
- }
110
+ name: "String",
111
+ },
112
112
  },
113
113
  description: {
114
114
  serializedName: "description",
115
115
  type: {
116
- name: "String"
117
- }
116
+ name: "String",
117
+ },
118
118
  },
119
119
  actionsRequired: {
120
120
  serializedName: "actionsRequired",
121
121
  type: {
122
- name: "String"
123
- }
124
- }
125
- }
126
- }
122
+ name: "String",
123
+ },
124
+ },
125
+ },
126
+ },
127
127
  };
128
128
  export const Resource = {
129
129
  type: {
@@ -134,32 +134,32 @@ export const Resource = {
134
134
  serializedName: "id",
135
135
  readOnly: true,
136
136
  type: {
137
- name: "String"
138
- }
137
+ name: "String",
138
+ },
139
139
  },
140
140
  name: {
141
141
  serializedName: "name",
142
142
  readOnly: true,
143
143
  type: {
144
- name: "String"
145
- }
144
+ name: "String",
145
+ },
146
146
  },
147
147
  type: {
148
148
  serializedName: "type",
149
149
  readOnly: true,
150
150
  type: {
151
- name: "String"
152
- }
151
+ name: "String",
152
+ },
153
153
  },
154
154
  systemData: {
155
155
  serializedName: "systemData",
156
156
  type: {
157
157
  name: "Composite",
158
- className: "SystemData"
159
- }
160
- }
161
- }
162
- }
158
+ className: "SystemData",
159
+ },
160
+ },
161
+ },
162
+ },
163
163
  };
164
164
  export const SystemData = {
165
165
  type: {
@@ -169,41 +169,61 @@ export const SystemData = {
169
169
  createdBy: {
170
170
  serializedName: "createdBy",
171
171
  type: {
172
- name: "String"
173
- }
172
+ name: "String",
173
+ },
174
174
  },
175
175
  createdByType: {
176
176
  serializedName: "createdByType",
177
177
  type: {
178
- name: "String"
179
- }
178
+ name: "String",
179
+ },
180
180
  },
181
181
  createdAt: {
182
182
  serializedName: "createdAt",
183
183
  type: {
184
- name: "DateTime"
185
- }
184
+ name: "DateTime",
185
+ },
186
186
  },
187
187
  lastModifiedBy: {
188
188
  serializedName: "lastModifiedBy",
189
189
  type: {
190
- name: "String"
191
- }
190
+ name: "String",
191
+ },
192
192
  },
193
193
  lastModifiedByType: {
194
194
  serializedName: "lastModifiedByType",
195
195
  type: {
196
- name: "String"
197
- }
196
+ name: "String",
197
+ },
198
198
  },
199
199
  lastModifiedAt: {
200
200
  serializedName: "lastModifiedAt",
201
201
  type: {
202
- name: "DateTime"
203
- }
204
- }
205
- }
206
- }
202
+ name: "DateTime",
203
+ },
204
+ },
205
+ },
206
+ },
207
+ };
208
+ export const AuthConfig = {
209
+ type: {
210
+ name: "Composite",
211
+ className: "AuthConfig",
212
+ modelProperties: {
213
+ activeDirectoryAuth: {
214
+ serializedName: "activeDirectoryAuth",
215
+ type: {
216
+ name: "String",
217
+ },
218
+ },
219
+ passwordAuth: {
220
+ serializedName: "passwordAuth",
221
+ type: {
222
+ name: "String",
223
+ },
224
+ },
225
+ },
226
+ },
207
227
  };
208
228
  export const ErrorResponse = {
209
229
  type: {
@@ -214,11 +234,11 @@ export const ErrorResponse = {
214
234
  serializedName: "error",
215
235
  type: {
216
236
  name: "Composite",
217
- className: "ErrorDetail"
218
- }
219
- }
220
- }
221
- }
237
+ className: "ErrorDetail",
238
+ },
239
+ },
240
+ },
241
+ },
222
242
  };
223
243
  export const ErrorDetail = {
224
244
  type: {
@@ -229,22 +249,22 @@ export const ErrorDetail = {
229
249
  serializedName: "code",
230
250
  readOnly: true,
231
251
  type: {
232
- name: "String"
233
- }
252
+ name: "String",
253
+ },
234
254
  },
235
255
  message: {
236
256
  serializedName: "message",
237
257
  readOnly: true,
238
258
  type: {
239
- name: "String"
240
- }
259
+ name: "String",
260
+ },
241
261
  },
242
262
  target: {
243
263
  serializedName: "target",
244
264
  readOnly: true,
245
265
  type: {
246
- name: "String"
247
- }
266
+ name: "String",
267
+ },
248
268
  },
249
269
  details: {
250
270
  serializedName: "details",
@@ -254,10 +274,10 @@ export const ErrorDetail = {
254
274
  element: {
255
275
  type: {
256
276
  name: "Composite",
257
- className: "ErrorDetail"
258
- }
259
- }
260
- }
277
+ className: "ErrorDetail",
278
+ },
279
+ },
280
+ },
261
281
  },
262
282
  additionalInfo: {
263
283
  serializedName: "additionalInfo",
@@ -267,13 +287,13 @@ export const ErrorDetail = {
267
287
  element: {
268
288
  type: {
269
289
  name: "Composite",
270
- className: "ErrorAdditionalInfo"
271
- }
272
- }
273
- }
274
- }
275
- }
276
- }
290
+ className: "ErrorAdditionalInfo",
291
+ },
292
+ },
293
+ },
294
+ },
295
+ },
296
+ },
277
297
  };
278
298
  export const ErrorAdditionalInfo = {
279
299
  type: {
@@ -284,19 +304,19 @@ export const ErrorAdditionalInfo = {
284
304
  serializedName: "type",
285
305
  readOnly: true,
286
306
  type: {
287
- name: "String"
288
- }
307
+ name: "String",
308
+ },
289
309
  },
290
310
  info: {
291
311
  serializedName: "info",
292
312
  readOnly: true,
293
313
  type: {
294
314
  name: "Dictionary",
295
- value: { type: { name: "any" } }
296
- }
297
- }
298
- }
299
- }
315
+ value: { type: { name: "any" } },
316
+ },
317
+ },
318
+ },
319
+ },
300
320
  };
301
321
  export const ClusterForUpdate = {
302
322
  type: {
@@ -307,109 +327,109 @@ export const ClusterForUpdate = {
307
327
  serializedName: "tags",
308
328
  type: {
309
329
  name: "Dictionary",
310
- value: { type: { name: "String" } }
311
- }
330
+ value: { type: { name: "String" } },
331
+ },
312
332
  },
313
333
  administratorLoginPassword: {
314
334
  serializedName: "properties.administratorLoginPassword",
315
335
  type: {
316
- name: "String"
317
- }
336
+ name: "String",
337
+ },
318
338
  },
319
339
  postgresqlVersion: {
320
340
  serializedName: "properties.postgresqlVersion",
321
341
  type: {
322
- name: "String"
323
- }
342
+ name: "String",
343
+ },
324
344
  },
325
345
  citusVersion: {
326
346
  serializedName: "properties.citusVersion",
327
347
  type: {
328
- name: "String"
329
- }
348
+ name: "String",
349
+ },
330
350
  },
331
351
  enableShardsOnCoordinator: {
332
352
  serializedName: "properties.enableShardsOnCoordinator",
333
353
  type: {
334
- name: "Boolean"
335
- }
354
+ name: "Boolean",
355
+ },
336
356
  },
337
357
  enableHa: {
338
358
  serializedName: "properties.enableHa",
339
359
  type: {
340
- name: "Boolean"
341
- }
360
+ name: "Boolean",
361
+ },
342
362
  },
343
363
  preferredPrimaryZone: {
344
364
  serializedName: "properties.preferredPrimaryZone",
345
365
  type: {
346
- name: "String"
347
- }
366
+ name: "String",
367
+ },
348
368
  },
349
369
  coordinatorServerEdition: {
350
370
  serializedName: "properties.coordinatorServerEdition",
351
371
  type: {
352
- name: "String"
353
- }
372
+ name: "String",
373
+ },
354
374
  },
355
375
  coordinatorStorageQuotaInMb: {
356
376
  serializedName: "properties.coordinatorStorageQuotaInMb",
357
377
  type: {
358
- name: "Number"
359
- }
378
+ name: "Number",
379
+ },
360
380
  },
361
381
  coordinatorVCores: {
362
382
  serializedName: "properties.coordinatorVCores",
363
383
  type: {
364
- name: "Number"
365
- }
384
+ name: "Number",
385
+ },
366
386
  },
367
387
  coordinatorEnablePublicIpAccess: {
368
388
  serializedName: "properties.coordinatorEnablePublicIpAccess",
369
389
  type: {
370
- name: "Boolean"
371
- }
390
+ name: "Boolean",
391
+ },
372
392
  },
373
393
  nodeServerEdition: {
374
394
  serializedName: "properties.nodeServerEdition",
375
395
  type: {
376
- name: "String"
377
- }
396
+ name: "String",
397
+ },
378
398
  },
379
399
  nodeCount: {
380
400
  serializedName: "properties.nodeCount",
381
401
  type: {
382
- name: "Number"
383
- }
402
+ name: "Number",
403
+ },
384
404
  },
385
405
  nodeStorageQuotaInMb: {
386
406
  serializedName: "properties.nodeStorageQuotaInMb",
387
407
  type: {
388
- name: "Number"
389
- }
408
+ name: "Number",
409
+ },
390
410
  },
391
411
  nodeVCores: {
392
412
  serializedName: "properties.nodeVCores",
393
413
  type: {
394
- name: "Number"
395
- }
414
+ name: "Number",
415
+ },
396
416
  },
397
417
  nodeEnablePublicIpAccess: {
398
418
  serializedName: "properties.nodeEnablePublicIpAccess",
399
419
  readOnly: true,
400
420
  type: {
401
- name: "Boolean"
402
- }
421
+ name: "Boolean",
422
+ },
403
423
  },
404
424
  maintenanceWindow: {
405
425
  serializedName: "properties.maintenanceWindow",
406
426
  type: {
407
427
  name: "Composite",
408
- className: "MaintenanceWindow"
409
- }
410
- }
411
- }
412
- }
428
+ className: "MaintenanceWindow",
429
+ },
430
+ },
431
+ },
432
+ },
413
433
  };
414
434
  export const ClusterServerListResult = {
415
435
  type: {
@@ -423,13 +443,13 @@ export const ClusterServerListResult = {
423
443
  element: {
424
444
  type: {
425
445
  name: "Composite",
426
- className: "ClusterServer"
427
- }
428
- }
429
- }
430
- }
431
- }
432
- }
446
+ className: "ClusterServer",
447
+ },
448
+ },
449
+ },
450
+ },
451
+ },
452
+ },
433
453
  };
434
454
  export const ServerProperties = {
435
455
  type: {
@@ -439,50 +459,50 @@ export const ServerProperties = {
439
459
  serverEdition: {
440
460
  serializedName: "serverEdition",
441
461
  type: {
442
- name: "String"
443
- }
462
+ name: "String",
463
+ },
444
464
  },
445
465
  storageQuotaInMb: {
446
466
  serializedName: "storageQuotaInMb",
447
467
  type: {
448
- name: "Number"
449
- }
468
+ name: "Number",
469
+ },
450
470
  },
451
471
  vCores: {
452
472
  serializedName: "vCores",
453
473
  type: {
454
- name: "Number"
455
- }
474
+ name: "Number",
475
+ },
456
476
  },
457
477
  enableHa: {
458
478
  serializedName: "enableHa",
459
479
  type: {
460
- name: "Boolean"
461
- }
480
+ name: "Boolean",
481
+ },
462
482
  },
463
483
  enablePublicIpAccess: {
464
484
  serializedName: "enablePublicIpAccess",
465
485
  readOnly: true,
466
486
  type: {
467
- name: "Boolean"
468
- }
487
+ name: "Boolean",
488
+ },
469
489
  },
470
490
  isReadOnly: {
471
491
  serializedName: "isReadOnly",
472
492
  readOnly: true,
473
493
  type: {
474
- name: "Boolean"
475
- }
494
+ name: "Boolean",
495
+ },
476
496
  },
477
497
  administratorLogin: {
478
498
  serializedName: "administratorLogin",
479
499
  readOnly: true,
480
500
  type: {
481
- name: "String"
482
- }
483
- }
484
- }
485
- }
501
+ name: "String",
502
+ },
503
+ },
504
+ },
505
+ },
486
506
  };
487
507
  export const ServerConfigurationListResult = {
488
508
  type: {
@@ -496,20 +516,20 @@ export const ServerConfigurationListResult = {
496
516
  element: {
497
517
  type: {
498
518
  name: "Composite",
499
- className: "ServerConfiguration"
500
- }
501
- }
502
- }
519
+ className: "ServerConfiguration",
520
+ },
521
+ },
522
+ },
503
523
  },
504
524
  nextLink: {
505
525
  serializedName: "nextLink",
506
526
  readOnly: true,
507
527
  type: {
508
- name: "String"
509
- }
510
- }
511
- }
512
- }
528
+ name: "String",
529
+ },
530
+ },
531
+ },
532
+ },
513
533
  };
514
534
  export const ClusterConfigurationListResult = {
515
535
  type: {
@@ -523,20 +543,20 @@ export const ClusterConfigurationListResult = {
523
543
  element: {
524
544
  type: {
525
545
  name: "Composite",
526
- className: "Configuration"
527
- }
528
- }
529
- }
546
+ className: "Configuration",
547
+ },
548
+ },
549
+ },
530
550
  },
531
551
  nextLink: {
532
552
  serializedName: "nextLink",
533
553
  readOnly: true,
534
554
  type: {
535
- name: "String"
536
- }
537
- }
538
- }
539
- }
555
+ name: "String",
556
+ },
557
+ },
558
+ },
559
+ },
540
560
  };
541
561
  export const ServerRoleGroupConfiguration = {
542
562
  type: {
@@ -547,32 +567,32 @@ export const ServerRoleGroupConfiguration = {
547
567
  serializedName: "role",
548
568
  required: true,
549
569
  type: {
550
- name: "String"
551
- }
570
+ name: "String",
571
+ },
552
572
  },
553
573
  value: {
554
574
  serializedName: "value",
555
575
  required: true,
556
576
  type: {
557
- name: "String"
558
- }
577
+ name: "String",
578
+ },
559
579
  },
560
580
  defaultValue: {
561
581
  serializedName: "defaultValue",
562
582
  readOnly: true,
563
583
  type: {
564
- name: "String"
565
- }
584
+ name: "String",
585
+ },
566
586
  },
567
587
  source: {
568
588
  serializedName: "source",
569
589
  readOnly: true,
570
590
  type: {
571
- name: "String"
572
- }
573
- }
574
- }
575
- }
591
+ name: "String",
592
+ },
593
+ },
594
+ },
595
+ },
576
596
  };
577
597
  export const FirewallRuleListResult = {
578
598
  type: {
@@ -586,13 +606,13 @@ export const FirewallRuleListResult = {
586
606
  element: {
587
607
  type: {
588
608
  name: "Composite",
589
- className: "FirewallRule"
590
- }
591
- }
592
- }
593
- }
594
- }
595
- }
609
+ className: "FirewallRule",
610
+ },
611
+ },
612
+ },
613
+ },
614
+ },
615
+ },
596
616
  };
597
617
  export const RoleListResult = {
598
618
  type: {
@@ -606,13 +626,27 @@ export const RoleListResult = {
606
626
  element: {
607
627
  type: {
608
628
  name: "Composite",
609
- className: "Role"
610
- }
611
- }
612
- }
613
- }
614
- }
615
- }
629
+ className: "Role",
630
+ },
631
+ },
632
+ },
633
+ },
634
+ },
635
+ },
636
+ };
637
+ export const PromoteRequest = {
638
+ type: {
639
+ name: "Composite",
640
+ className: "PromoteRequest",
641
+ modelProperties: {
642
+ enableGeoBackup: {
643
+ serializedName: "enableGeoBackup",
644
+ type: {
645
+ name: "Boolean",
646
+ },
647
+ },
648
+ },
649
+ },
616
650
  };
617
651
  export const NameAvailabilityRequest = {
618
652
  type: {
@@ -623,19 +657,19 @@ export const NameAvailabilityRequest = {
623
657
  serializedName: "name",
624
658
  required: true,
625
659
  type: {
626
- name: "String"
627
- }
660
+ name: "String",
661
+ },
628
662
  },
629
663
  type: {
630
664
  defaultValue: "Microsoft.DBforPostgreSQL/serverGroupsv2",
631
665
  isConstant: true,
632
666
  serializedName: "type",
633
667
  type: {
634
- name: "String"
635
- }
636
- }
637
- }
638
- }
668
+ name: "String",
669
+ },
670
+ },
671
+ },
672
+ },
639
673
  };
640
674
  export const NameAvailability = {
641
675
  type: {
@@ -645,29 +679,29 @@ export const NameAvailability = {
645
679
  message: {
646
680
  serializedName: "message",
647
681
  type: {
648
- name: "String"
649
- }
682
+ name: "String",
683
+ },
650
684
  },
651
685
  nameAvailable: {
652
686
  serializedName: "nameAvailable",
653
687
  type: {
654
- name: "Boolean"
655
- }
688
+ name: "Boolean",
689
+ },
656
690
  },
657
691
  name: {
658
692
  serializedName: "name",
659
693
  type: {
660
- name: "String"
661
- }
694
+ name: "String",
695
+ },
662
696
  },
663
697
  type: {
664
698
  serializedName: "type",
665
699
  type: {
666
- name: "String"
667
- }
668
- }
669
- }
670
- }
700
+ name: "String",
701
+ },
702
+ },
703
+ },
704
+ },
671
705
  };
672
706
  export const OperationListResult = {
673
707
  type: {
@@ -681,20 +715,20 @@ export const OperationListResult = {
681
715
  element: {
682
716
  type: {
683
717
  name: "Composite",
684
- className: "Operation"
685
- }
686
- }
687
- }
718
+ className: "Operation",
719
+ },
720
+ },
721
+ },
688
722
  },
689
723
  nextLink: {
690
724
  serializedName: "nextLink",
691
725
  readOnly: true,
692
726
  type: {
693
- name: "String"
694
- }
695
- }
696
- }
697
- }
727
+ name: "String",
728
+ },
729
+ },
730
+ },
731
+ },
698
732
  };
699
733
  export const Operation = {
700
734
  type: {
@@ -705,28 +739,28 @@ export const Operation = {
705
739
  serializedName: "name",
706
740
  readOnly: true,
707
741
  type: {
708
- name: "String"
709
- }
742
+ name: "String",
743
+ },
710
744
  },
711
745
  display: {
712
746
  serializedName: "display",
713
747
  type: {
714
748
  name: "Composite",
715
- className: "OperationDisplay"
716
- }
749
+ className: "OperationDisplay",
750
+ },
717
751
  },
718
752
  isDataAction: {
719
753
  serializedName: "isDataAction",
720
754
  type: {
721
- name: "Boolean"
722
- }
755
+ name: "Boolean",
756
+ },
723
757
  },
724
758
  origin: {
725
759
  serializedName: "origin",
726
760
  readOnly: true,
727
761
  type: {
728
- name: "String"
729
- }
762
+ name: "String",
763
+ },
730
764
  },
731
765
  properties: {
732
766
  serializedName: "properties",
@@ -734,12 +768,12 @@ export const Operation = {
734
768
  type: {
735
769
  name: "Dictionary",
736
770
  value: {
737
- type: { name: "Dictionary", value: { type: { name: "any" } } }
738
- }
739
- }
740
- }
741
- }
742
- }
771
+ type: { name: "Dictionary", value: { type: { name: "any" } } },
772
+ },
773
+ },
774
+ },
775
+ },
776
+ },
743
777
  };
744
778
  export const OperationDisplay = {
745
779
  type: {
@@ -750,32 +784,32 @@ export const OperationDisplay = {
750
784
  serializedName: "provider",
751
785
  readOnly: true,
752
786
  type: {
753
- name: "String"
754
- }
787
+ name: "String",
788
+ },
755
789
  },
756
790
  resource: {
757
791
  serializedName: "resource",
758
792
  readOnly: true,
759
793
  type: {
760
- name: "String"
761
- }
794
+ name: "String",
795
+ },
762
796
  },
763
797
  operation: {
764
798
  serializedName: "operation",
765
799
  readOnly: true,
766
800
  type: {
767
- name: "String"
768
- }
801
+ name: "String",
802
+ },
769
803
  },
770
804
  description: {
771
805
  serializedName: "description",
772
806
  readOnly: true,
773
807
  type: {
774
- name: "String"
775
- }
776
- }
777
- }
778
- }
808
+ name: "String",
809
+ },
810
+ },
811
+ },
812
+ },
779
813
  };
780
814
  export const PrivateEndpointConnectionListResult = {
781
815
  type: {
@@ -789,13 +823,13 @@ export const PrivateEndpointConnectionListResult = {
789
823
  element: {
790
824
  type: {
791
825
  name: "Composite",
792
- className: "PrivateEndpointConnection"
793
- }
794
- }
795
- }
796
- }
797
- }
798
- }
826
+ className: "PrivateEndpointConnection",
827
+ },
828
+ },
829
+ },
830
+ },
831
+ },
832
+ },
799
833
  };
800
834
  export const PrivateEndpoint = {
801
835
  type: {
@@ -806,11 +840,11 @@ export const PrivateEndpoint = {
806
840
  serializedName: "id",
807
841
  readOnly: true,
808
842
  type: {
809
- name: "String"
810
- }
811
- }
812
- }
813
- }
843
+ name: "String",
844
+ },
845
+ },
846
+ },
847
+ },
814
848
  };
815
849
  export const PrivateLinkResourceListResult = {
816
850
  type: {
@@ -824,20 +858,20 @@ export const PrivateLinkResourceListResult = {
824
858
  element: {
825
859
  type: {
826
860
  name: "Composite",
827
- className: "PrivateLinkResource"
828
- }
829
- }
830
- }
831
- }
832
- }
833
- }
861
+ className: "PrivateLinkResource",
862
+ },
863
+ },
864
+ },
865
+ },
866
+ },
867
+ },
834
868
  };
835
869
  export const ProxyResource = {
836
870
  type: {
837
871
  name: "Composite",
838
872
  className: "ProxyResource",
839
- modelProperties: Object.assign({}, Resource.type.modelProperties)
840
- }
873
+ modelProperties: Object.assign({}, Resource.type.modelProperties),
874
+ },
841
875
  };
842
876
  export const TrackedResource = {
843
877
  type: {
@@ -847,16 +881,16 @@ export const TrackedResource = {
847
881
  serializedName: "tags",
848
882
  type: {
849
883
  name: "Dictionary",
850
- value: { type: { name: "String" } }
851
- }
884
+ value: { type: { name: "String" } },
885
+ },
852
886
  }, location: {
853
887
  serializedName: "location",
854
888
  required: true,
855
889
  type: {
856
- name: "String"
857
- }
858
- } })
859
- }
890
+ name: "String",
891
+ },
892
+ } }),
893
+ },
860
894
  };
861
895
  export const PrivateEndpointConnection = {
862
896
  type: {
@@ -869,30 +903,30 @@ export const PrivateEndpointConnection = {
869
903
  name: "Sequence",
870
904
  element: {
871
905
  type: {
872
- name: "String"
873
- }
874
- }
875
- }
906
+ name: "String",
907
+ },
908
+ },
909
+ },
876
910
  }, privateEndpoint: {
877
911
  serializedName: "properties.privateEndpoint",
878
912
  type: {
879
913
  name: "Composite",
880
- className: "PrivateEndpoint"
881
- }
914
+ className: "PrivateEndpoint",
915
+ },
882
916
  }, privateLinkServiceConnectionState: {
883
917
  serializedName: "properties.privateLinkServiceConnectionState",
884
918
  type: {
885
919
  name: "Composite",
886
- className: "PrivateLinkServiceConnectionState"
887
- }
920
+ className: "PrivateLinkServiceConnectionState",
921
+ },
888
922
  }, provisioningState: {
889
923
  serializedName: "properties.provisioningState",
890
924
  readOnly: true,
891
925
  type: {
892
- name: "String"
893
- }
894
- } })
895
- }
926
+ name: "String",
927
+ },
928
+ } }),
929
+ },
896
930
  };
897
931
  export const PrivateLinkResource = {
898
932
  type: {
@@ -902,8 +936,8 @@ export const PrivateLinkResource = {
902
936
  serializedName: "properties.groupId",
903
937
  readOnly: true,
904
938
  type: {
905
- name: "String"
906
- }
939
+ name: "String",
940
+ },
907
941
  }, requiredMembers: {
908
942
  serializedName: "properties.requiredMembers",
909
943
  readOnly: true,
@@ -911,22 +945,22 @@ export const PrivateLinkResource = {
911
945
  name: "Sequence",
912
946
  element: {
913
947
  type: {
914
- name: "String"
915
- }
916
- }
917
- }
948
+ name: "String",
949
+ },
950
+ },
951
+ },
918
952
  }, requiredZoneNames: {
919
953
  serializedName: "properties.requiredZoneNames",
920
954
  type: {
921
955
  name: "Sequence",
922
956
  element: {
923
957
  type: {
924
- name: "String"
925
- }
926
- }
927
- }
928
- } })
929
- }
958
+ name: "String",
959
+ },
960
+ },
961
+ },
962
+ } }),
963
+ },
930
964
  };
931
965
  export const ClusterServerProperties = {
932
966
  type: {
@@ -936,42 +970,42 @@ export const ClusterServerProperties = {
936
970
  serializedName: "fullyQualifiedDomainName",
937
971
  readOnly: true,
938
972
  type: {
939
- name: "String"
940
- }
973
+ name: "String",
974
+ },
941
975
  }, role: {
942
976
  serializedName: "role",
943
977
  type: {
944
- name: "String"
945
- }
978
+ name: "String",
979
+ },
946
980
  }, state: {
947
981
  serializedName: "state",
948
982
  readOnly: true,
949
983
  type: {
950
- name: "String"
951
- }
984
+ name: "String",
985
+ },
952
986
  }, haState: {
953
987
  serializedName: "haState",
954
988
  readOnly: true,
955
989
  type: {
956
- name: "String"
957
- }
990
+ name: "String",
991
+ },
958
992
  }, availabilityZone: {
959
993
  serializedName: "availabilityZone",
960
994
  type: {
961
- name: "String"
962
- }
995
+ name: "String",
996
+ },
963
997
  }, postgresqlVersion: {
964
998
  serializedName: "postgresqlVersion",
965
999
  type: {
966
- name: "String"
967
- }
1000
+ name: "String",
1001
+ },
968
1002
  }, citusVersion: {
969
1003
  serializedName: "citusVersion",
970
1004
  type: {
971
- name: "String"
972
- }
973
- } })
974
- }
1005
+ name: "String",
1006
+ },
1007
+ } }),
1008
+ },
975
1009
  };
976
1010
  export const SimplePrivateEndpointConnection = {
977
1011
  type: {
@@ -981,26 +1015,26 @@ export const SimplePrivateEndpointConnection = {
981
1015
  serializedName: "properties.privateEndpoint",
982
1016
  type: {
983
1017
  name: "Composite",
984
- className: "PrivateEndpointProperty"
985
- }
1018
+ className: "PrivateEndpointProperty",
1019
+ },
986
1020
  }, groupIds: {
987
1021
  serializedName: "properties.groupIds",
988
1022
  type: {
989
1023
  name: "Sequence",
990
1024
  element: {
991
1025
  type: {
992
- name: "String"
993
- }
994
- }
995
- }
1026
+ name: "String",
1027
+ },
1028
+ },
1029
+ },
996
1030
  }, privateLinkServiceConnectionState: {
997
1031
  serializedName: "properties.privateLinkServiceConnectionState",
998
1032
  type: {
999
1033
  name: "Composite",
1000
- className: "PrivateLinkServiceConnectionState"
1001
- }
1002
- } })
1003
- }
1034
+ className: "PrivateLinkServiceConnectionState",
1035
+ },
1036
+ } }),
1037
+ },
1004
1038
  };
1005
1039
  export const ClusterServer = {
1006
1040
  type: {
@@ -1009,81 +1043,81 @@ export const ClusterServer = {
1009
1043
  modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { serverEdition: {
1010
1044
  serializedName: "properties.serverEdition",
1011
1045
  type: {
1012
- name: "String"
1013
- }
1046
+ name: "String",
1047
+ },
1014
1048
  }, storageQuotaInMb: {
1015
1049
  serializedName: "properties.storageQuotaInMb",
1016
1050
  type: {
1017
- name: "Number"
1018
- }
1051
+ name: "Number",
1052
+ },
1019
1053
  }, vCores: {
1020
1054
  serializedName: "properties.vCores",
1021
1055
  type: {
1022
- name: "Number"
1023
- }
1056
+ name: "Number",
1057
+ },
1024
1058
  }, enableHa: {
1025
1059
  serializedName: "properties.enableHa",
1026
1060
  type: {
1027
- name: "Boolean"
1028
- }
1061
+ name: "Boolean",
1062
+ },
1029
1063
  }, enablePublicIpAccess: {
1030
1064
  serializedName: "properties.enablePublicIpAccess",
1031
1065
  readOnly: true,
1032
1066
  type: {
1033
- name: "Boolean"
1034
- }
1067
+ name: "Boolean",
1068
+ },
1035
1069
  }, isReadOnly: {
1036
1070
  serializedName: "properties.isReadOnly",
1037
1071
  readOnly: true,
1038
1072
  type: {
1039
- name: "Boolean"
1040
- }
1073
+ name: "Boolean",
1074
+ },
1041
1075
  }, administratorLogin: {
1042
1076
  serializedName: "properties.administratorLogin",
1043
1077
  readOnly: true,
1044
1078
  type: {
1045
- name: "String"
1046
- }
1079
+ name: "String",
1080
+ },
1047
1081
  }, fullyQualifiedDomainName: {
1048
1082
  serializedName: "properties.fullyQualifiedDomainName",
1049
1083
  readOnly: true,
1050
1084
  type: {
1051
- name: "String"
1052
- }
1085
+ name: "String",
1086
+ },
1053
1087
  }, role: {
1054
1088
  serializedName: "properties.role",
1055
1089
  type: {
1056
- name: "String"
1057
- }
1090
+ name: "String",
1091
+ },
1058
1092
  }, state: {
1059
1093
  serializedName: "properties.state",
1060
1094
  readOnly: true,
1061
1095
  type: {
1062
- name: "String"
1063
- }
1096
+ name: "String",
1097
+ },
1064
1098
  }, haState: {
1065
1099
  serializedName: "properties.haState",
1066
1100
  readOnly: true,
1067
1101
  type: {
1068
- name: "String"
1069
- }
1102
+ name: "String",
1103
+ },
1070
1104
  }, availabilityZone: {
1071
1105
  serializedName: "properties.availabilityZone",
1072
1106
  type: {
1073
- name: "String"
1074
- }
1107
+ name: "String",
1108
+ },
1075
1109
  }, postgresqlVersion: {
1076
1110
  serializedName: "properties.postgresqlVersion",
1077
1111
  type: {
1078
- name: "String"
1079
- }
1112
+ name: "String",
1113
+ },
1080
1114
  }, citusVersion: {
1081
1115
  serializedName: "properties.citusVersion",
1082
1116
  type: {
1083
- name: "String"
1084
- }
1085
- } })
1086
- }
1117
+ name: "String",
1118
+ },
1119
+ } }),
1120
+ },
1087
1121
  };
1088
1122
  export const ServerConfiguration = {
1089
1123
  type: {
@@ -1092,52 +1126,52 @@ export const ServerConfiguration = {
1092
1126
  modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { value: {
1093
1127
  serializedName: "properties.value",
1094
1128
  type: {
1095
- name: "String"
1096
- }
1129
+ name: "String",
1130
+ },
1097
1131
  }, source: {
1098
1132
  serializedName: "properties.source",
1099
1133
  readOnly: true,
1100
1134
  type: {
1101
- name: "String"
1102
- }
1135
+ name: "String",
1136
+ },
1103
1137
  }, description: {
1104
1138
  serializedName: "properties.description",
1105
1139
  readOnly: true,
1106
1140
  type: {
1107
- name: "String"
1108
- }
1141
+ name: "String",
1142
+ },
1109
1143
  }, defaultValue: {
1110
1144
  serializedName: "properties.defaultValue",
1111
1145
  readOnly: true,
1112
1146
  type: {
1113
- name: "String"
1114
- }
1147
+ name: "String",
1148
+ },
1115
1149
  }, dataType: {
1116
1150
  serializedName: "properties.dataType",
1117
1151
  readOnly: true,
1118
1152
  type: {
1119
- name: "String"
1120
- }
1153
+ name: "String",
1154
+ },
1121
1155
  }, allowedValues: {
1122
1156
  serializedName: "properties.allowedValues",
1123
1157
  readOnly: true,
1124
1158
  type: {
1125
- name: "String"
1126
- }
1159
+ name: "String",
1160
+ },
1127
1161
  }, requiresRestart: {
1128
1162
  serializedName: "properties.requiresRestart",
1129
1163
  readOnly: true,
1130
1164
  type: {
1131
- name: "Boolean"
1132
- }
1165
+ name: "Boolean",
1166
+ },
1133
1167
  }, provisioningState: {
1134
1168
  serializedName: "properties.provisioningState",
1135
1169
  readOnly: true,
1136
1170
  type: {
1137
- name: "String"
1138
- }
1139
- } })
1140
- }
1171
+ name: "String",
1172
+ },
1173
+ } }),
1174
+ },
1141
1175
  };
1142
1176
  export const Configuration = {
1143
1177
  type: {
@@ -1147,28 +1181,28 @@ export const Configuration = {
1147
1181
  serializedName: "properties.description",
1148
1182
  readOnly: true,
1149
1183
  type: {
1150
- name: "String"
1151
- }
1184
+ name: "String",
1185
+ },
1152
1186
  }, dataType: {
1153
1187
  serializedName: "properties.dataType",
1154
1188
  readOnly: true,
1155
1189
  type: {
1156
- name: "String"
1157
- }
1190
+ name: "String",
1191
+ },
1158
1192
  }, allowedValues: {
1159
1193
  serializedName: "properties.allowedValues",
1160
1194
  readOnly: true,
1161
1195
  type: {
1162
- name: "String"
1163
- }
1196
+ name: "String",
1197
+ },
1164
1198
  }, requiresRestart: {
1165
1199
  serializedName: "properties.requiresRestart",
1166
1200
  type: {
1167
- name: "Boolean"
1168
- }
1201
+ name: "Boolean",
1202
+ },
1169
1203
  }, serverRoleGroupConfigurations: {
1170
1204
  constraints: {
1171
- UniqueItems: true
1205
+ UniqueItems: true,
1172
1206
  },
1173
1207
  serializedName: "properties.serverRoleGroupConfigurations",
1174
1208
  type: {
@@ -1176,18 +1210,18 @@ export const Configuration = {
1176
1210
  element: {
1177
1211
  type: {
1178
1212
  name: "Composite",
1179
- className: "ServerRoleGroupConfiguration"
1180
- }
1181
- }
1182
- }
1213
+ className: "ServerRoleGroupConfiguration",
1214
+ },
1215
+ },
1216
+ },
1183
1217
  }, provisioningState: {
1184
1218
  serializedName: "properties.provisioningState",
1185
1219
  readOnly: true,
1186
1220
  type: {
1187
- name: "String"
1188
- }
1189
- } })
1190
- }
1221
+ name: "String",
1222
+ },
1223
+ } }),
1224
+ },
1191
1225
  };
1192
1226
  export const FirewallRule = {
1193
1227
  type: {
@@ -1195,49 +1229,69 @@ export const FirewallRule = {
1195
1229
  className: "FirewallRule",
1196
1230
  modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { startIpAddress: {
1197
1231
  constraints: {
1198
- Pattern: new RegExp("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$")
1232
+ Pattern: new RegExp("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$"),
1199
1233
  },
1200
1234
  serializedName: "properties.startIpAddress",
1201
1235
  required: true,
1202
1236
  type: {
1203
- name: "String"
1204
- }
1237
+ name: "String",
1238
+ },
1205
1239
  }, endIpAddress: {
1206
1240
  constraints: {
1207
- Pattern: new RegExp("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$")
1241
+ Pattern: new RegExp("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$"),
1208
1242
  },
1209
1243
  serializedName: "properties.endIpAddress",
1210
1244
  required: true,
1211
1245
  type: {
1212
- name: "String"
1213
- }
1246
+ name: "String",
1247
+ },
1214
1248
  }, provisioningState: {
1215
1249
  serializedName: "properties.provisioningState",
1216
1250
  readOnly: true,
1217
1251
  type: {
1218
- name: "String"
1219
- }
1220
- } })
1221
- }
1252
+ name: "String",
1253
+ },
1254
+ } }),
1255
+ },
1222
1256
  };
1223
1257
  export const Role = {
1224
1258
  type: {
1225
1259
  name: "Composite",
1226
1260
  className: "Role",
1227
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { password: {
1261
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { roleType: {
1262
+ defaultValue: "user",
1263
+ serializedName: "properties.roleType",
1264
+ type: {
1265
+ name: "String",
1266
+ },
1267
+ }, password: {
1228
1268
  serializedName: "properties.password",
1229
- required: true,
1230
1269
  type: {
1231
- name: "String"
1232
- }
1270
+ name: "String",
1271
+ },
1233
1272
  }, provisioningState: {
1234
1273
  serializedName: "properties.provisioningState",
1235
1274
  readOnly: true,
1236
1275
  type: {
1237
- name: "String"
1238
- }
1239
- } })
1240
- }
1276
+ name: "String",
1277
+ },
1278
+ }, objectId: {
1279
+ serializedName: "properties.externalIdentity.objectId",
1280
+ type: {
1281
+ name: "String",
1282
+ },
1283
+ }, principalType: {
1284
+ serializedName: "properties.externalIdentity.principalType",
1285
+ type: {
1286
+ name: "String",
1287
+ },
1288
+ }, tenantId: {
1289
+ serializedName: "properties.externalIdentity.tenantId",
1290
+ type: {
1291
+ name: "String",
1292
+ },
1293
+ } }),
1294
+ },
1241
1295
  };
1242
1296
  export const Cluster = {
1243
1297
  type: {
@@ -1247,104 +1301,104 @@ export const Cluster = {
1247
1301
  serializedName: "properties.administratorLogin",
1248
1302
  readOnly: true,
1249
1303
  type: {
1250
- name: "String"
1251
- }
1304
+ name: "String",
1305
+ },
1252
1306
  }, administratorLoginPassword: {
1253
1307
  serializedName: "properties.administratorLoginPassword",
1254
1308
  type: {
1255
- name: "String"
1256
- }
1309
+ name: "String",
1310
+ },
1257
1311
  }, provisioningState: {
1258
1312
  serializedName: "properties.provisioningState",
1259
1313
  readOnly: true,
1260
1314
  type: {
1261
- name: "String"
1262
- }
1315
+ name: "String",
1316
+ },
1263
1317
  }, state: {
1264
1318
  serializedName: "properties.state",
1265
1319
  readOnly: true,
1266
1320
  type: {
1267
- name: "String"
1268
- }
1321
+ name: "String",
1322
+ },
1269
1323
  }, postgresqlVersion: {
1270
1324
  serializedName: "properties.postgresqlVersion",
1271
1325
  type: {
1272
- name: "String"
1273
- }
1326
+ name: "String",
1327
+ },
1274
1328
  }, citusVersion: {
1275
1329
  serializedName: "properties.citusVersion",
1276
1330
  type: {
1277
- name: "String"
1278
- }
1331
+ name: "String",
1332
+ },
1279
1333
  }, maintenanceWindow: {
1280
1334
  serializedName: "properties.maintenanceWindow",
1281
1335
  type: {
1282
1336
  name: "Composite",
1283
- className: "MaintenanceWindow"
1284
- }
1337
+ className: "MaintenanceWindow",
1338
+ },
1285
1339
  }, preferredPrimaryZone: {
1286
1340
  serializedName: "properties.preferredPrimaryZone",
1287
1341
  type: {
1288
- name: "String"
1289
- }
1342
+ name: "String",
1343
+ },
1290
1344
  }, enableShardsOnCoordinator: {
1291
1345
  serializedName: "properties.enableShardsOnCoordinator",
1292
1346
  type: {
1293
- name: "Boolean"
1294
- }
1347
+ name: "Boolean",
1348
+ },
1295
1349
  }, enableHa: {
1296
1350
  serializedName: "properties.enableHa",
1297
1351
  type: {
1298
- name: "Boolean"
1299
- }
1352
+ name: "Boolean",
1353
+ },
1300
1354
  }, coordinatorServerEdition: {
1301
1355
  serializedName: "properties.coordinatorServerEdition",
1302
1356
  type: {
1303
- name: "String"
1304
- }
1357
+ name: "String",
1358
+ },
1305
1359
  }, coordinatorStorageQuotaInMb: {
1306
1360
  serializedName: "properties.coordinatorStorageQuotaInMb",
1307
1361
  type: {
1308
- name: "Number"
1309
- }
1362
+ name: "Number",
1363
+ },
1310
1364
  }, coordinatorVCores: {
1311
1365
  serializedName: "properties.coordinatorVCores",
1312
1366
  type: {
1313
- name: "Number"
1314
- }
1367
+ name: "Number",
1368
+ },
1315
1369
  }, coordinatorEnablePublicIpAccess: {
1316
1370
  serializedName: "properties.coordinatorEnablePublicIpAccess",
1317
1371
  type: {
1318
- name: "Boolean"
1319
- }
1372
+ name: "Boolean",
1373
+ },
1320
1374
  }, nodeServerEdition: {
1321
1375
  serializedName: "properties.nodeServerEdition",
1322
1376
  type: {
1323
- name: "String"
1324
- }
1377
+ name: "String",
1378
+ },
1325
1379
  }, nodeCount: {
1326
1380
  serializedName: "properties.nodeCount",
1327
1381
  type: {
1328
- name: "Number"
1329
- }
1382
+ name: "Number",
1383
+ },
1330
1384
  }, nodeStorageQuotaInMb: {
1331
1385
  serializedName: "properties.nodeStorageQuotaInMb",
1332
1386
  type: {
1333
- name: "Number"
1334
- }
1387
+ name: "Number",
1388
+ },
1335
1389
  }, nodeVCores: {
1336
1390
  serializedName: "properties.nodeVCores",
1337
1391
  type: {
1338
- name: "Number"
1339
- }
1392
+ name: "Number",
1393
+ },
1340
1394
  }, nodeEnablePublicIpAccess: {
1341
1395
  serializedName: "properties.nodeEnablePublicIpAccess",
1342
1396
  type: {
1343
- name: "Boolean"
1344
- }
1397
+ name: "Boolean",
1398
+ },
1345
1399
  }, serverNames: {
1346
1400
  constraints: {
1347
- UniqueItems: true
1401
+ UniqueItems: true,
1348
1402
  },
1349
1403
  serializedName: "properties.serverNames",
1350
1404
  readOnly: true,
@@ -1353,28 +1407,28 @@ export const Cluster = {
1353
1407
  element: {
1354
1408
  type: {
1355
1409
  name: "Composite",
1356
- className: "ServerNameItem"
1357
- }
1358
- }
1359
- }
1410
+ className: "ServerNameItem",
1411
+ },
1412
+ },
1413
+ },
1360
1414
  }, sourceResourceId: {
1361
1415
  serializedName: "properties.sourceResourceId",
1362
1416
  type: {
1363
- name: "String"
1364
- }
1417
+ name: "String",
1418
+ },
1365
1419
  }, sourceLocation: {
1366
1420
  serializedName: "properties.sourceLocation",
1367
1421
  type: {
1368
- name: "String"
1369
- }
1422
+ name: "String",
1423
+ },
1370
1424
  }, pointInTimeUTC: {
1371
1425
  serializedName: "properties.pointInTimeUTC",
1372
1426
  type: {
1373
- name: "DateTime"
1374
- }
1427
+ name: "DateTime",
1428
+ },
1375
1429
  }, readReplicas: {
1376
1430
  constraints: {
1377
- UniqueItems: true
1431
+ UniqueItems: true,
1378
1432
  },
1379
1433
  serializedName: "properties.readReplicas",
1380
1434
  readOnly: true,
@@ -1382,16 +1436,16 @@ export const Cluster = {
1382
1436
  name: "Sequence",
1383
1437
  element: {
1384
1438
  type: {
1385
- name: "String"
1386
- }
1387
- }
1388
- }
1439
+ name: "String",
1440
+ },
1441
+ },
1442
+ },
1389
1443
  }, earliestRestoreTime: {
1390
1444
  serializedName: "properties.earliestRestoreTime",
1391
1445
  readOnly: true,
1392
1446
  type: {
1393
- name: "DateTime"
1394
- }
1447
+ name: "DateTime",
1448
+ },
1395
1449
  }, privateEndpointConnections: {
1396
1450
  serializedName: "properties.privateEndpointConnections",
1397
1451
  readOnly: true,
@@ -1400,12 +1454,28 @@ export const Cluster = {
1400
1454
  element: {
1401
1455
  type: {
1402
1456
  name: "Composite",
1403
- className: "SimplePrivateEndpointConnection"
1404
- }
1405
- }
1406
- }
1407
- } })
1408
- }
1457
+ className: "SimplePrivateEndpointConnection",
1458
+ },
1459
+ },
1460
+ },
1461
+ }, databaseName: {
1462
+ serializedName: "properties.databaseName",
1463
+ type: {
1464
+ name: "String",
1465
+ },
1466
+ }, enableGeoBackup: {
1467
+ serializedName: "properties.enableGeoBackup",
1468
+ type: {
1469
+ name: "Boolean",
1470
+ },
1471
+ }, authConfig: {
1472
+ serializedName: "properties.authConfig",
1473
+ type: {
1474
+ name: "Composite",
1475
+ className: "AuthConfig",
1476
+ },
1477
+ } }),
1478
+ },
1409
1479
  };
1410
1480
  export const ClustersCreateHeaders = {
1411
1481
  type: {
@@ -1415,17 +1485,17 @@ export const ClustersCreateHeaders = {
1415
1485
  location: {
1416
1486
  serializedName: "location",
1417
1487
  type: {
1418
- name: "String"
1419
- }
1488
+ name: "String",
1489
+ },
1420
1490
  },
1421
1491
  azureAsyncOperation: {
1422
1492
  serializedName: "azure-async-operation",
1423
1493
  type: {
1424
- name: "String"
1425
- }
1426
- }
1427
- }
1428
- }
1494
+ name: "String",
1495
+ },
1496
+ },
1497
+ },
1498
+ },
1429
1499
  };
1430
1500
  export const ClustersDeleteHeaders = {
1431
1501
  type: {
@@ -1435,17 +1505,17 @@ export const ClustersDeleteHeaders = {
1435
1505
  location: {
1436
1506
  serializedName: "location",
1437
1507
  type: {
1438
- name: "String"
1439
- }
1508
+ name: "String",
1509
+ },
1440
1510
  },
1441
1511
  azureAsyncOperation: {
1442
1512
  serializedName: "azure-async-operation",
1443
1513
  type: {
1444
- name: "String"
1445
- }
1446
- }
1447
- }
1448
- }
1514
+ name: "String",
1515
+ },
1516
+ },
1517
+ },
1518
+ },
1449
1519
  };
1450
1520
  export const ClustersUpdateHeaders = {
1451
1521
  type: {
@@ -1455,17 +1525,17 @@ export const ClustersUpdateHeaders = {
1455
1525
  location: {
1456
1526
  serializedName: "location",
1457
1527
  type: {
1458
- name: "String"
1459
- }
1528
+ name: "String",
1529
+ },
1460
1530
  },
1461
1531
  azureAsyncOperation: {
1462
1532
  serializedName: "azure-async-operation",
1463
1533
  type: {
1464
- name: "String"
1465
- }
1466
- }
1467
- }
1468
- }
1534
+ name: "String",
1535
+ },
1536
+ },
1537
+ },
1538
+ },
1469
1539
  };
1470
1540
  export const ClustersRestartHeaders = {
1471
1541
  type: {
@@ -1475,17 +1545,17 @@ export const ClustersRestartHeaders = {
1475
1545
  location: {
1476
1546
  serializedName: "location",
1477
1547
  type: {
1478
- name: "String"
1479
- }
1548
+ name: "String",
1549
+ },
1480
1550
  },
1481
1551
  azureAsyncOperation: {
1482
1552
  serializedName: "azure-async-operation",
1483
1553
  type: {
1484
- name: "String"
1485
- }
1486
- }
1487
- }
1488
- }
1554
+ name: "String",
1555
+ },
1556
+ },
1557
+ },
1558
+ },
1489
1559
  };
1490
1560
  export const ClustersStartHeaders = {
1491
1561
  type: {
@@ -1495,17 +1565,17 @@ export const ClustersStartHeaders = {
1495
1565
  location: {
1496
1566
  serializedName: "location",
1497
1567
  type: {
1498
- name: "String"
1499
- }
1568
+ name: "String",
1569
+ },
1500
1570
  },
1501
1571
  azureAsyncOperation: {
1502
1572
  serializedName: "azure-async-operation",
1503
1573
  type: {
1504
- name: "String"
1505
- }
1506
- }
1507
- }
1508
- }
1574
+ name: "String",
1575
+ },
1576
+ },
1577
+ },
1578
+ },
1509
1579
  };
1510
1580
  export const ClustersStopHeaders = {
1511
1581
  type: {
@@ -1515,17 +1585,17 @@ export const ClustersStopHeaders = {
1515
1585
  location: {
1516
1586
  serializedName: "location",
1517
1587
  type: {
1518
- name: "String"
1519
- }
1588
+ name: "String",
1589
+ },
1520
1590
  },
1521
1591
  azureAsyncOperation: {
1522
1592
  serializedName: "azure-async-operation",
1523
1593
  type: {
1524
- name: "String"
1525
- }
1526
- }
1527
- }
1528
- }
1594
+ name: "String",
1595
+ },
1596
+ },
1597
+ },
1598
+ },
1529
1599
  };
1530
1600
  export const ClustersPromoteReadReplicaHeaders = {
1531
1601
  type: {
@@ -1535,17 +1605,17 @@ export const ClustersPromoteReadReplicaHeaders = {
1535
1605
  location: {
1536
1606
  serializedName: "location",
1537
1607
  type: {
1538
- name: "String"
1539
- }
1608
+ name: "String",
1609
+ },
1540
1610
  },
1541
1611
  azureAsyncOperation: {
1542
1612
  serializedName: "azure-async-operation",
1543
1613
  type: {
1544
- name: "String"
1545
- }
1546
- }
1547
- }
1548
- }
1614
+ name: "String",
1615
+ },
1616
+ },
1617
+ },
1618
+ },
1549
1619
  };
1550
1620
  export const ConfigurationsUpdateOnCoordinatorHeaders = {
1551
1621
  type: {
@@ -1555,17 +1625,17 @@ export const ConfigurationsUpdateOnCoordinatorHeaders = {
1555
1625
  location: {
1556
1626
  serializedName: "location",
1557
1627
  type: {
1558
- name: "String"
1559
- }
1628
+ name: "String",
1629
+ },
1560
1630
  },
1561
1631
  azureAsyncOperation: {
1562
1632
  serializedName: "azure-async-operation",
1563
1633
  type: {
1564
- name: "String"
1565
- }
1566
- }
1567
- }
1568
- }
1634
+ name: "String",
1635
+ },
1636
+ },
1637
+ },
1638
+ },
1569
1639
  };
1570
1640
  export const ConfigurationsUpdateOnNodeHeaders = {
1571
1641
  type: {
@@ -1575,17 +1645,17 @@ export const ConfigurationsUpdateOnNodeHeaders = {
1575
1645
  location: {
1576
1646
  serializedName: "location",
1577
1647
  type: {
1578
- name: "String"
1579
- }
1648
+ name: "String",
1649
+ },
1580
1650
  },
1581
1651
  azureAsyncOperation: {
1582
1652
  serializedName: "azure-async-operation",
1583
1653
  type: {
1584
- name: "String"
1585
- }
1586
- }
1587
- }
1588
- }
1654
+ name: "String",
1655
+ },
1656
+ },
1657
+ },
1658
+ },
1589
1659
  };
1590
1660
  export const FirewallRulesCreateOrUpdateHeaders = {
1591
1661
  type: {
@@ -1595,17 +1665,17 @@ export const FirewallRulesCreateOrUpdateHeaders = {
1595
1665
  location: {
1596
1666
  serializedName: "location",
1597
1667
  type: {
1598
- name: "String"
1599
- }
1668
+ name: "String",
1669
+ },
1600
1670
  },
1601
1671
  azureAsyncOperation: {
1602
1672
  serializedName: "azure-async-operation",
1603
1673
  type: {
1604
- name: "String"
1605
- }
1606
- }
1607
- }
1608
- }
1674
+ name: "String",
1675
+ },
1676
+ },
1677
+ },
1678
+ },
1609
1679
  };
1610
1680
  export const FirewallRulesDeleteHeaders = {
1611
1681
  type: {
@@ -1615,17 +1685,17 @@ export const FirewallRulesDeleteHeaders = {
1615
1685
  location: {
1616
1686
  serializedName: "location",
1617
1687
  type: {
1618
- name: "String"
1619
- }
1688
+ name: "String",
1689
+ },
1620
1690
  },
1621
1691
  azureAsyncOperation: {
1622
1692
  serializedName: "azure-async-operation",
1623
1693
  type: {
1624
- name: "String"
1625
- }
1626
- }
1627
- }
1628
- }
1694
+ name: "String",
1695
+ },
1696
+ },
1697
+ },
1698
+ },
1629
1699
  };
1630
1700
  export const RolesCreateHeaders = {
1631
1701
  type: {
@@ -1635,17 +1705,17 @@ export const RolesCreateHeaders = {
1635
1705
  location: {
1636
1706
  serializedName: "location",
1637
1707
  type: {
1638
- name: "String"
1639
- }
1708
+ name: "String",
1709
+ },
1640
1710
  },
1641
1711
  azureAsyncOperation: {
1642
1712
  serializedName: "azure-async-operation",
1643
1713
  type: {
1644
- name: "String"
1645
- }
1646
- }
1647
- }
1648
- }
1714
+ name: "String",
1715
+ },
1716
+ },
1717
+ },
1718
+ },
1649
1719
  };
1650
1720
  export const RolesDeleteHeaders = {
1651
1721
  type: {
@@ -1655,17 +1725,17 @@ export const RolesDeleteHeaders = {
1655
1725
  location: {
1656
1726
  serializedName: "location",
1657
1727
  type: {
1658
- name: "String"
1659
- }
1728
+ name: "String",
1729
+ },
1660
1730
  },
1661
1731
  azureAsyncOperation: {
1662
1732
  serializedName: "azure-async-operation",
1663
1733
  type: {
1664
- name: "String"
1665
- }
1666
- }
1667
- }
1668
- }
1734
+ name: "String",
1735
+ },
1736
+ },
1737
+ },
1738
+ },
1669
1739
  };
1670
1740
  export const PrivateEndpointConnectionsCreateOrUpdateHeaders = {
1671
1741
  type: {
@@ -1675,17 +1745,17 @@ export const PrivateEndpointConnectionsCreateOrUpdateHeaders = {
1675
1745
  location: {
1676
1746
  serializedName: "location",
1677
1747
  type: {
1678
- name: "String"
1679
- }
1748
+ name: "String",
1749
+ },
1680
1750
  },
1681
1751
  azureAsyncOperation: {
1682
1752
  serializedName: "azure-async-operation",
1683
1753
  type: {
1684
- name: "String"
1685
- }
1686
- }
1687
- }
1688
- }
1754
+ name: "String",
1755
+ },
1756
+ },
1757
+ },
1758
+ },
1689
1759
  };
1690
1760
  export const PrivateEndpointConnectionsDeleteHeaders = {
1691
1761
  type: {
@@ -1695,16 +1765,16 @@ export const PrivateEndpointConnectionsDeleteHeaders = {
1695
1765
  location: {
1696
1766
  serializedName: "location",
1697
1767
  type: {
1698
- name: "String"
1699
- }
1768
+ name: "String",
1769
+ },
1700
1770
  },
1701
1771
  azureAsyncOperation: {
1702
1772
  serializedName: "azure-async-operation",
1703
1773
  type: {
1704
- name: "String"
1705
- }
1706
- }
1707
- }
1708
- }
1774
+ name: "String",
1775
+ },
1776
+ },
1777
+ },
1778
+ },
1709
1779
  };
1710
1780
  //# sourceMappingURL=mappers.js.map