@azure/provisioning-sql 0.0.0-stage → 1.0.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 (176) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +64 -2
  4. package/dist/browser/deleted-server.d.ts +33 -0
  5. package/dist/browser/deleted-server.d.ts.map +1 -0
  6. package/dist/browser/deleted-server.js +61 -0
  7. package/dist/browser/deleted-server.js.map +1 -0
  8. package/dist/browser/index.d.ts +14 -0
  9. package/dist/browser/index.d.ts.map +1 -0
  10. package/dist/browser/index.js +16 -0
  11. package/dist/browser/index.js.map +1 -0
  12. package/dist/browser/instance-failover-group.d.ts +48 -0
  13. package/dist/browser/instance-failover-group.d.ts.map +1 -0
  14. package/dist/browser/instance-failover-group.js +63 -0
  15. package/dist/browser/instance-failover-group.js.map +1 -0
  16. package/dist/browser/instance-pool.d.ts +101 -0
  17. package/dist/browser/instance-pool.d.ts.map +1 -0
  18. package/dist/browser/instance-pool.js +148 -0
  19. package/dist/browser/instance-pool.js.map +1 -0
  20. package/dist/browser/managed-database-move-operation-result.d.ts +30 -0
  21. package/dist/browser/managed-database-move-operation-result.d.ts.map +1 -0
  22. package/dist/browser/managed-database-move-operation-result.js +58 -0
  23. package/dist/browser/managed-database-move-operation-result.js.map +1 -0
  24. package/dist/browser/managed-instance.d.ts +1555 -0
  25. package/dist/browser/managed-instance.d.ts.map +1 -0
  26. package/dist/browser/managed-instance.js +2234 -0
  27. package/dist/browser/managed-instance.js.map +1 -0
  28. package/dist/browser/package.json +8 -0
  29. package/dist/browser/resource-group-long-term-retention-managed-instance-backup.d.ts +33 -0
  30. package/dist/browser/resource-group-long-term-retention-managed-instance-backup.d.ts.map +1 -0
  31. package/dist/browser/resource-group-long-term-retention-managed-instance-backup.js +61 -0
  32. package/dist/browser/resource-group-long-term-retention-managed-instance-backup.js.map +1 -0
  33. package/dist/browser/server-trust-group.d.ts +48 -0
  34. package/dist/browser/server-trust-group.d.ts.map +1 -0
  35. package/dist/browser/server-trust-group.js +63 -0
  36. package/dist/browser/server-trust-group.js.map +1 -0
  37. package/dist/browser/server.d.ts +3137 -0
  38. package/dist/browser/server.d.ts.map +1 -0
  39. package/dist/browser/server.js +4486 -0
  40. package/dist/browser/server.js.map +1 -0
  41. package/dist/browser/subscription-long-term-retention-backup.d.ts +33 -0
  42. package/dist/browser/subscription-long-term-retention-backup.d.ts.map +1 -0
  43. package/dist/browser/subscription-long-term-retention-backup.js +61 -0
  44. package/dist/browser/subscription-long-term-retention-backup.js.map +1 -0
  45. package/dist/browser/time-zone.d.ts +30 -0
  46. package/dist/browser/time-zone.d.ts.map +1 -0
  47. package/dist/browser/time-zone.js +58 -0
  48. package/dist/browser/time-zone.js.map +1 -0
  49. package/dist/browser/types.d.ts +13481 -0
  50. package/dist/browser/types.d.ts.map +1 -0
  51. package/dist/browser/types.js +3035 -0
  52. package/dist/browser/types.js.map +1 -0
  53. package/dist/browser/usage.d.ts +33 -0
  54. package/dist/browser/usage.d.ts.map +1 -0
  55. package/dist/browser/usage.js +61 -0
  56. package/dist/browser/usage.js.map +1 -0
  57. package/dist/browser/virtual-cluster.d.ts +66 -0
  58. package/dist/browser/virtual-cluster.d.ts.map +1 -0
  59. package/dist/browser/virtual-cluster.js +85 -0
  60. package/dist/browser/virtual-cluster.js.map +1 -0
  61. package/dist/commonjs/deleted-server.d.ts +33 -0
  62. package/dist/commonjs/deleted-server.d.ts.map +1 -0
  63. package/dist/commonjs/deleted-server.js +84 -0
  64. package/dist/commonjs/deleted-server.js.map +7 -0
  65. package/dist/commonjs/index.d.ts +14 -0
  66. package/dist/commonjs/index.d.ts.map +1 -0
  67. package/dist/commonjs/index.js +296 -0
  68. package/dist/commonjs/index.js.map +7 -0
  69. package/dist/commonjs/instance-failover-group.d.ts +48 -0
  70. package/dist/commonjs/instance-failover-group.d.ts.map +1 -0
  71. package/dist/commonjs/instance-failover-group.js +86 -0
  72. package/dist/commonjs/instance-failover-group.js.map +7 -0
  73. package/dist/commonjs/instance-pool.d.ts +101 -0
  74. package/dist/commonjs/instance-pool.d.ts.map +1 -0
  75. package/dist/commonjs/instance-pool.js +172 -0
  76. package/dist/commonjs/instance-pool.js.map +7 -0
  77. package/dist/commonjs/managed-database-move-operation-result.d.ts +30 -0
  78. package/dist/commonjs/managed-database-move-operation-result.d.ts.map +1 -0
  79. package/dist/commonjs/managed-database-move-operation-result.js +81 -0
  80. package/dist/commonjs/managed-database-move-operation-result.js.map +7 -0
  81. package/dist/commonjs/managed-instance.d.ts +1555 -0
  82. package/dist/commonjs/managed-instance.d.ts.map +1 -0
  83. package/dist/commonjs/managed-instance.js +2308 -0
  84. package/dist/commonjs/managed-instance.js.map +7 -0
  85. package/dist/commonjs/package.json +8 -0
  86. package/dist/commonjs/resource-group-long-term-retention-managed-instance-backup.d.ts +33 -0
  87. package/dist/commonjs/resource-group-long-term-retention-managed-instance-backup.d.ts.map +1 -0
  88. package/dist/commonjs/resource-group-long-term-retention-managed-instance-backup.js +88 -0
  89. package/dist/commonjs/resource-group-long-term-retention-managed-instance-backup.js.map +7 -0
  90. package/dist/commonjs/server-trust-group.d.ts +48 -0
  91. package/dist/commonjs/server-trust-group.d.ts.map +1 -0
  92. package/dist/commonjs/server-trust-group.js +86 -0
  93. package/dist/commonjs/server-trust-group.js.map +7 -0
  94. package/dist/commonjs/server.d.ts +3137 -0
  95. package/dist/commonjs/server.d.ts.map +1 -0
  96. package/dist/commonjs/server.js +4604 -0
  97. package/dist/commonjs/server.js.map +7 -0
  98. package/dist/commonjs/subscription-long-term-retention-backup.d.ts +33 -0
  99. package/dist/commonjs/subscription-long-term-retention-backup.d.ts.map +1 -0
  100. package/dist/commonjs/subscription-long-term-retention-backup.js +84 -0
  101. package/dist/commonjs/subscription-long-term-retention-backup.js.map +7 -0
  102. package/dist/commonjs/time-zone.d.ts +30 -0
  103. package/dist/commonjs/time-zone.d.ts.map +1 -0
  104. package/dist/commonjs/time-zone.js +81 -0
  105. package/dist/commonjs/time-zone.js.map +7 -0
  106. package/dist/commonjs/tsdoc-metadata.json +11 -0
  107. package/dist/commonjs/types.d.ts +13481 -0
  108. package/dist/commonjs/types.d.ts.map +1 -0
  109. package/dist/commonjs/types.js +3439 -0
  110. package/dist/commonjs/types.js.map +7 -0
  111. package/dist/commonjs/usage.d.ts +33 -0
  112. package/dist/commonjs/usage.d.ts.map +1 -0
  113. package/dist/commonjs/usage.js +84 -0
  114. package/dist/commonjs/usage.js.map +7 -0
  115. package/dist/commonjs/virtual-cluster.d.ts +66 -0
  116. package/dist/commonjs/virtual-cluster.d.ts.map +1 -0
  117. package/dist/commonjs/virtual-cluster.js +108 -0
  118. package/dist/commonjs/virtual-cluster.js.map +7 -0
  119. package/dist/esm/deleted-server.d.ts +33 -0
  120. package/dist/esm/deleted-server.d.ts.map +1 -0
  121. package/dist/esm/deleted-server.js +61 -0
  122. package/dist/esm/deleted-server.js.map +1 -0
  123. package/dist/esm/index.d.ts +14 -0
  124. package/dist/esm/index.d.ts.map +1 -0
  125. package/dist/esm/index.js +16 -0
  126. package/dist/esm/index.js.map +1 -0
  127. package/dist/esm/instance-failover-group.d.ts +48 -0
  128. package/dist/esm/instance-failover-group.d.ts.map +1 -0
  129. package/dist/esm/instance-failover-group.js +63 -0
  130. package/dist/esm/instance-failover-group.js.map +1 -0
  131. package/dist/esm/instance-pool.d.ts +101 -0
  132. package/dist/esm/instance-pool.d.ts.map +1 -0
  133. package/dist/esm/instance-pool.js +148 -0
  134. package/dist/esm/instance-pool.js.map +1 -0
  135. package/dist/esm/managed-database-move-operation-result.d.ts +30 -0
  136. package/dist/esm/managed-database-move-operation-result.d.ts.map +1 -0
  137. package/dist/esm/managed-database-move-operation-result.js +58 -0
  138. package/dist/esm/managed-database-move-operation-result.js.map +1 -0
  139. package/dist/esm/managed-instance.d.ts +1555 -0
  140. package/dist/esm/managed-instance.d.ts.map +1 -0
  141. package/dist/esm/managed-instance.js +2234 -0
  142. package/dist/esm/managed-instance.js.map +1 -0
  143. package/dist/esm/package.json +8 -0
  144. package/dist/esm/resource-group-long-term-retention-managed-instance-backup.d.ts +33 -0
  145. package/dist/esm/resource-group-long-term-retention-managed-instance-backup.d.ts.map +1 -0
  146. package/dist/esm/resource-group-long-term-retention-managed-instance-backup.js +61 -0
  147. package/dist/esm/resource-group-long-term-retention-managed-instance-backup.js.map +1 -0
  148. package/dist/esm/server-trust-group.d.ts +48 -0
  149. package/dist/esm/server-trust-group.d.ts.map +1 -0
  150. package/dist/esm/server-trust-group.js +63 -0
  151. package/dist/esm/server-trust-group.js.map +1 -0
  152. package/dist/esm/server.d.ts +3137 -0
  153. package/dist/esm/server.d.ts.map +1 -0
  154. package/dist/esm/server.js +4486 -0
  155. package/dist/esm/server.js.map +1 -0
  156. package/dist/esm/subscription-long-term-retention-backup.d.ts +33 -0
  157. package/dist/esm/subscription-long-term-retention-backup.d.ts.map +1 -0
  158. package/dist/esm/subscription-long-term-retention-backup.js +61 -0
  159. package/dist/esm/subscription-long-term-retention-backup.js.map +1 -0
  160. package/dist/esm/time-zone.d.ts +30 -0
  161. package/dist/esm/time-zone.d.ts.map +1 -0
  162. package/dist/esm/time-zone.js +58 -0
  163. package/dist/esm/time-zone.js.map +1 -0
  164. package/dist/esm/types.d.ts +13481 -0
  165. package/dist/esm/types.d.ts.map +1 -0
  166. package/dist/esm/types.js +3035 -0
  167. package/dist/esm/types.js.map +1 -0
  168. package/dist/esm/usage.d.ts +33 -0
  169. package/dist/esm/usage.d.ts.map +1 -0
  170. package/dist/esm/usage.js +61 -0
  171. package/dist/esm/usage.js.map +1 -0
  172. package/dist/esm/virtual-cluster.d.ts +66 -0
  173. package/dist/esm/virtual-cluster.d.ts.map +1 -0
  174. package/dist/esm/virtual-cluster.js +85 -0
  175. package/dist/esm/virtual-cluster.js.map +1 -0
  176. package/package.json +103 -3
@@ -0,0 +1,3035 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { createArrayShape, createBooleanShape, createDateShape, createDeferredShape, createEnumShape, createFlatModelShape, createNumberShape, createRecordShape, createStringShape, createUnionShape, } from "@azure/provisioning-core/internal";
4
+ export const administratorPropertiesShape = createFlatModelShape({
5
+ administratorType: { armPath: ["administratorType"], value: createUnionShape() },
6
+ azureAdOnlyAuthentication: {
7
+ armPath: ["azureADOnlyAuthentication"],
8
+ value: createBooleanShape(),
9
+ readOnly: true,
10
+ },
11
+ login: { armPath: ["login"], value: createStringShape() },
12
+ sid: { armPath: ["sid"], value: createStringShape() },
13
+ tenantId: { armPath: ["tenantId"], value: createStringShape() },
14
+ });
15
+ export const advancedThreatProtectionPropertiesShape = createFlatModelShape({
16
+ creationTime: {
17
+ armPath: ["creationTime"],
18
+ value: createDateShape({
19
+ kind: "date-time-text",
20
+ source: "utcDateTime",
21
+ format: "rfc3339",
22
+ clientMode: "client",
23
+ wire: { kind: "string" },
24
+ }),
25
+ readOnly: true,
26
+ },
27
+ state: { armPath: ["state"], value: createEnumShape() },
28
+ });
29
+ export const advisorPropertiesShape = createFlatModelShape({
30
+ advisorStatus: { armPath: ["advisorStatus"], value: createEnumShape(), readOnly: true },
31
+ autoExecuteStatus: { armPath: ["autoExecuteStatus"], value: createEnumShape() },
32
+ autoExecuteStatusInheritedFrom: {
33
+ armPath: ["autoExecuteStatusInheritedFrom"],
34
+ value: createEnumShape(),
35
+ readOnly: true,
36
+ },
37
+ lastChecked: {
38
+ armPath: ["lastChecked"],
39
+ value: createDateShape({
40
+ kind: "date-time-text",
41
+ source: "utcDateTime",
42
+ format: "rfc3339",
43
+ clientMode: "client",
44
+ wire: { kind: "string" },
45
+ }),
46
+ readOnly: true,
47
+ },
48
+ recommendationsStatus: {
49
+ armPath: ["recommendationsStatus"],
50
+ value: createStringShape(),
51
+ readOnly: true,
52
+ },
53
+ recommendedActions: {
54
+ armPath: ["recommendedActions"],
55
+ value: createArrayShape(createDeferredShape(() => sqlRecommendedActionShape)),
56
+ readOnly: true,
57
+ },
58
+ });
59
+ export const automaticTuningOptionsShape = createFlatModelShape({
60
+ actualState: { armPath: ["actualState"], value: createEnumShape(), readOnly: true },
61
+ desiredState: { armPath: ["desiredState"], value: createEnumShape() },
62
+ reasonCode: { armPath: ["reasonCode"], value: createNumberShape(), readOnly: true },
63
+ reasonDesc: { armPath: ["reasonDesc"], value: createEnumShape(), readOnly: true },
64
+ });
65
+ export const automaticTuningServerOptionsShape = createFlatModelShape({
66
+ actualState: { armPath: ["actualState"], value: createEnumShape(), readOnly: true },
67
+ desiredState: { armPath: ["desiredState"], value: createEnumShape() },
68
+ reasonCode: { armPath: ["reasonCode"], value: createNumberShape(), readOnly: true },
69
+ reasonDesc: { armPath: ["reasonDesc"], value: createEnumShape(), readOnly: true },
70
+ });
71
+ export const automaticTuningServerPropertiesShape = createFlatModelShape({
72
+ actualState: { armPath: ["actualState"], value: createEnumShape(), readOnly: true },
73
+ desiredState: { armPath: ["desiredState"], value: createEnumShape() },
74
+ options: {
75
+ armPath: ["options"],
76
+ value: createRecordShape(createDeferredShape(() => automaticTuningServerOptionsShape)),
77
+ },
78
+ });
79
+ export const azureAdOnlyAuthPropertiesShape = createFlatModelShape({
80
+ azureAdOnlyAuthentication: {
81
+ armPath: ["azureADOnlyAuthentication"],
82
+ value: createBooleanShape(),
83
+ },
84
+ });
85
+ export const backupShortTermRetentionPolicyPropertiesShape = createFlatModelShape({
86
+ diffBackupIntervalInHours: { armPath: ["diffBackupIntervalInHours"], value: createUnionShape() },
87
+ retentionDays: { armPath: ["retentionDays"], value: createNumberShape() },
88
+ });
89
+ export const baselineShape = createFlatModelShape({
90
+ expectedResults: {
91
+ armPath: ["expectedResults"],
92
+ value: createArrayShape(createArrayShape(createStringShape())),
93
+ readOnly: true,
94
+ },
95
+ updatedTime: {
96
+ armPath: ["updatedTime"],
97
+ value: createDateShape({
98
+ kind: "date-time-text",
99
+ source: "utcDateTime",
100
+ format: "rfc3339",
101
+ clientMode: "client",
102
+ wire: { kind: "string" },
103
+ }),
104
+ readOnly: true,
105
+ },
106
+ });
107
+ export const baselineAdjustedResultShape = createFlatModelShape({
108
+ baseline: {
109
+ armPath: ["baseline"],
110
+ value: createDeferredShape(() => baselineShape),
111
+ readOnly: true,
112
+ },
113
+ resultsNotInBaseline: {
114
+ armPath: ["resultsNotInBaseline"],
115
+ value: createArrayShape(createArrayShape(createStringShape())),
116
+ readOnly: true,
117
+ },
118
+ resultsOnlyInBaseline: {
119
+ armPath: ["resultsOnlyInBaseline"],
120
+ value: createArrayShape(createArrayShape(createStringShape())),
121
+ readOnly: true,
122
+ },
123
+ status: { armPath: ["status"], value: createUnionShape(), readOnly: true },
124
+ });
125
+ export const benchmarkReferenceShape = createFlatModelShape({
126
+ benchmark: { armPath: ["benchmark"], value: createStringShape(), readOnly: true },
127
+ reference: { armPath: ["reference"], value: createStringShape(), readOnly: true },
128
+ });
129
+ export const certificateInfoShape = createFlatModelShape({
130
+ certificateName: { armPath: ["certificateName"], value: createStringShape(), readOnly: true },
131
+ expiryDate: {
132
+ armPath: ["expiryDate"],
133
+ value: createDateShape({
134
+ kind: "date-time-text",
135
+ source: "utcDateTime",
136
+ format: "rfc3339",
137
+ clientMode: "client",
138
+ wire: { kind: "string" },
139
+ }),
140
+ readOnly: true,
141
+ },
142
+ });
143
+ export const databaseAutomaticTuningPropertiesShape = createFlatModelShape({
144
+ actualState: { armPath: ["actualState"], value: createEnumShape(), readOnly: true },
145
+ desiredState: { armPath: ["desiredState"], value: createEnumShape() },
146
+ options: {
147
+ armPath: ["options"],
148
+ value: createRecordShape(createDeferredShape(() => automaticTuningOptionsShape)),
149
+ },
150
+ });
151
+ export const databaseBlobAuditingPolicyPropertiesShape = createFlatModelShape({
152
+ auditActionsAndGroups: {
153
+ armPath: ["auditActionsAndGroups"],
154
+ value: createArrayShape(createStringShape()),
155
+ },
156
+ isAzureMonitorTargetEnabled: {
157
+ armPath: ["isAzureMonitorTargetEnabled"],
158
+ value: createBooleanShape(),
159
+ },
160
+ isManagedIdentityInUse: { armPath: ["isManagedIdentityInUse"], value: createBooleanShape() },
161
+ isStorageSecondaryKeyInUse: {
162
+ armPath: ["isStorageSecondaryKeyInUse"],
163
+ value: createBooleanShape(),
164
+ },
165
+ queueDelayMs: { armPath: ["queueDelayMs"], value: createNumberShape() },
166
+ retentionDays: { armPath: ["retentionDays"], value: createNumberShape() },
167
+ state: { armPath: ["state"], value: createEnumShape() },
168
+ storageAccountAccessKey: { armPath: ["storageAccountAccessKey"], value: createStringShape() },
169
+ storageAccountSubscriptionId: {
170
+ armPath: ["storageAccountSubscriptionId"],
171
+ value: createStringShape(),
172
+ },
173
+ storageEndpoint: { armPath: ["storageEndpoint"], value: createStringShape() },
174
+ });
175
+ export const databaseColumnPropertiesShape = createFlatModelShape({
176
+ columnType: { armPath: ["columnType"], value: createUnionShape(), readOnly: true },
177
+ isComputed: { armPath: ["isComputed"], value: createBooleanShape(), readOnly: true },
178
+ memoryOptimized: { armPath: ["memoryOptimized"], value: createBooleanShape(), readOnly: true },
179
+ temporalType: { armPath: ["temporalType"], value: createUnionShape(), readOnly: true },
180
+ });
181
+ export const databaseExtensionsPropertiesShape = createFlatModelShape({
182
+ administratorLogin: { armPath: ["administratorLogin"], value: createStringShape() },
183
+ administratorLoginPassword: {
184
+ armPath: ["administratorLoginPassword"],
185
+ value: createStringShape(),
186
+ },
187
+ authenticationType: { armPath: ["authenticationType"], value: createStringShape() },
188
+ databaseEdition: { armPath: ["databaseEdition"], value: createStringShape() },
189
+ maxSizeBytes: { armPath: ["maxSizeBytes"], value: createStringShape() },
190
+ networkIsolation: {
191
+ armPath: ["networkIsolation"],
192
+ value: createDeferredShape(() => networkIsolationSettingsShape),
193
+ },
194
+ operationMode: { armPath: ["operationMode"], value: createUnionShape() },
195
+ serviceObjectiveName: { armPath: ["serviceObjectiveName"], value: createStringShape() },
196
+ storageKey: { armPath: ["storageKey"], value: createStringShape() },
197
+ storageKeyType: { armPath: ["storageKeyType"], value: createUnionShape() },
198
+ storageUri: { armPath: ["storageUri"], value: createStringShape() },
199
+ });
200
+ export const databaseIdentityShape = createFlatModelShape({
201
+ tenantId: { armPath: ["tenantId"], value: createStringShape(), readOnly: true },
202
+ type: { armPath: ["type"], value: createUnionShape() },
203
+ userAssignedIdentities: {
204
+ armPath: ["userAssignedIdentities"],
205
+ value: createRecordShape(createDeferredShape(() => databaseUserIdentityShape)),
206
+ },
207
+ });
208
+ export const databaseKeyShape = createFlatModelShape({
209
+ creationDate: {
210
+ armPath: ["creationDate"],
211
+ value: createDateShape({
212
+ kind: "date-time-text",
213
+ source: "utcDateTime",
214
+ format: "rfc3339",
215
+ clientMode: "client",
216
+ wire: { kind: "string" },
217
+ }),
218
+ readOnly: true,
219
+ },
220
+ keyVersion: { armPath: ["keyVersion"], value: createStringShape(), readOnly: true },
221
+ subregion: { armPath: ["subregion"], value: createStringShape(), readOnly: true },
222
+ thumbprint: { armPath: ["thumbprint"], value: createStringShape(), readOnly: true },
223
+ type: { armPath: ["type"], value: createUnionShape(), readOnly: true },
224
+ });
225
+ export const databasePropertiesShape = createFlatModelShape({
226
+ autoPauseDelay: { armPath: ["autoPauseDelay"], value: createNumberShape() },
227
+ availabilityZone: { armPath: ["availabilityZone"], value: createUnionShape() },
228
+ catalogCollation: { armPath: ["catalogCollation"], value: createUnionShape() },
229
+ collation: { armPath: ["collation"], value: createStringShape() },
230
+ createMode: { armPath: ["createMode"], value: createUnionShape() },
231
+ creationDate: {
232
+ armPath: ["creationDate"],
233
+ value: createDateShape({
234
+ kind: "date-time-text",
235
+ source: "utcDateTime",
236
+ format: "rfc3339",
237
+ clientMode: "client",
238
+ wire: { kind: "string" },
239
+ }),
240
+ readOnly: true,
241
+ },
242
+ currentBackupStorageRedundancy: {
243
+ armPath: ["currentBackupStorageRedundancy"],
244
+ value: createUnionShape(),
245
+ readOnly: true,
246
+ },
247
+ currentServiceObjectiveName: {
248
+ armPath: ["currentServiceObjectiveName"],
249
+ value: createStringShape(),
250
+ readOnly: true,
251
+ },
252
+ currentSku: {
253
+ armPath: ["currentSku"],
254
+ value: createDeferredShape(() => skuShape),
255
+ readOnly: true,
256
+ },
257
+ databaseId: { armPath: ["databaseId"], value: createStringShape(), readOnly: true },
258
+ defaultSecondaryLocation: {
259
+ armPath: ["defaultSecondaryLocation"],
260
+ value: createStringShape(),
261
+ readOnly: true,
262
+ },
263
+ earliestRestoreDate: {
264
+ armPath: ["earliestRestoreDate"],
265
+ value: createDateShape({
266
+ kind: "date-time-text",
267
+ source: "utcDateTime",
268
+ format: "rfc3339",
269
+ clientMode: "client",
270
+ wire: { kind: "string" },
271
+ }),
272
+ readOnly: true,
273
+ },
274
+ elasticPoolId: { armPath: ["elasticPoolId"], value: createStringShape() },
275
+ encryptionProtector: { armPath: ["encryptionProtector"], value: createStringShape() },
276
+ encryptionProtectorAutoRotation: {
277
+ armPath: ["encryptionProtectorAutoRotation"],
278
+ value: createBooleanShape(),
279
+ },
280
+ failoverGroupId: { armPath: ["failoverGroupId"], value: createStringShape(), readOnly: true },
281
+ federatedClientId: { armPath: ["federatedClientId"], value: createStringShape() },
282
+ freeLimitExhaustionBehavior: {
283
+ armPath: ["freeLimitExhaustionBehavior"],
284
+ value: createUnionShape(),
285
+ },
286
+ highAvailabilityReplicaCount: {
287
+ armPath: ["highAvailabilityReplicaCount"],
288
+ value: createNumberShape(),
289
+ },
290
+ isInfraEncryptionEnabled: {
291
+ armPath: ["isInfraEncryptionEnabled"],
292
+ value: createBooleanShape(),
293
+ readOnly: true,
294
+ },
295
+ isLedgerOn: { armPath: ["isLedgerOn"], value: createBooleanShape() },
296
+ keys: {
297
+ armPath: ["keys"],
298
+ value: createRecordShape(createDeferredShape(() => databaseKeyShape)),
299
+ },
300
+ licenseType: { armPath: ["licenseType"], value: createUnionShape() },
301
+ longTermRetentionBackupResourceId: {
302
+ armPath: ["longTermRetentionBackupResourceId"],
303
+ value: createStringShape(),
304
+ },
305
+ maintenanceConfigurationId: {
306
+ armPath: ["maintenanceConfigurationId"],
307
+ value: createStringShape(),
308
+ },
309
+ manualCutover: { armPath: ["manualCutover"], value: createBooleanShape() },
310
+ maxLogSizeBytes: { armPath: ["maxLogSizeBytes"], value: createNumberShape(), readOnly: true },
311
+ maxSizeBytes: { armPath: ["maxSizeBytes"], value: createNumberShape() },
312
+ minCapacity: { armPath: ["minCapacity"], value: createNumberShape() },
313
+ pausedDate: {
314
+ armPath: ["pausedDate"],
315
+ value: createDateShape({
316
+ kind: "date-time-text",
317
+ source: "utcDateTime",
318
+ format: "rfc3339",
319
+ clientMode: "client",
320
+ wire: { kind: "string" },
321
+ }),
322
+ readOnly: true,
323
+ },
324
+ performCutover: { armPath: ["performCutover"], value: createBooleanShape() },
325
+ preferredEnclaveType: { armPath: ["preferredEnclaveType"], value: createUnionShape() },
326
+ readScale: { armPath: ["readScale"], value: createUnionShape() },
327
+ recoverableDatabaseId: { armPath: ["recoverableDatabaseId"], value: createStringShape() },
328
+ recoveryServicesRecoveryPointId: {
329
+ armPath: ["recoveryServicesRecoveryPointId"],
330
+ value: createStringShape(),
331
+ },
332
+ requestedBackupStorageRedundancy: {
333
+ armPath: ["requestedBackupStorageRedundancy"],
334
+ value: createUnionShape(),
335
+ },
336
+ requestedServiceObjectiveName: {
337
+ armPath: ["requestedServiceObjectiveName"],
338
+ value: createStringShape(),
339
+ readOnly: true,
340
+ },
341
+ restorableDroppedDatabaseId: {
342
+ armPath: ["restorableDroppedDatabaseId"],
343
+ value: createStringShape(),
344
+ },
345
+ restorePointInTime: {
346
+ armPath: ["restorePointInTime"],
347
+ value: createDateShape({
348
+ kind: "date-time-text",
349
+ source: "utcDateTime",
350
+ format: "rfc3339",
351
+ clientMode: "client",
352
+ wire: { kind: "string" },
353
+ }),
354
+ },
355
+ resumedDate: {
356
+ armPath: ["resumedDate"],
357
+ value: createDateShape({
358
+ kind: "date-time-text",
359
+ source: "utcDateTime",
360
+ format: "rfc3339",
361
+ clientMode: "client",
362
+ wire: { kind: "string" },
363
+ }),
364
+ readOnly: true,
365
+ },
366
+ sampleName: { armPath: ["sampleName"], value: createUnionShape() },
367
+ secondaryType: { armPath: ["secondaryType"], value: createUnionShape() },
368
+ sourceDatabaseDeletionDate: {
369
+ armPath: ["sourceDatabaseDeletionDate"],
370
+ value: createDateShape({
371
+ kind: "date-time-text",
372
+ source: "utcDateTime",
373
+ format: "rfc3339",
374
+ clientMode: "client",
375
+ wire: { kind: "string" },
376
+ }),
377
+ },
378
+ sourceDatabaseId: { armPath: ["sourceDatabaseId"], value: createStringShape() },
379
+ sourceResourceId: { armPath: ["sourceResourceId"], value: createStringShape() },
380
+ status: { armPath: ["status"], value: createUnionShape(), readOnly: true },
381
+ useFreeLimit: { armPath: ["useFreeLimit"], value: createBooleanShape() },
382
+ zoneRedundant: { armPath: ["zoneRedundant"], value: createBooleanShape() },
383
+ });
384
+ export const databaseSqlVulnerabilityAssessmentBaselineSetPropertiesShape = createFlatModelShape({
385
+ latestScan: { armPath: ["latestScan"], value: createBooleanShape() },
386
+ results: {
387
+ armPath: ["results"],
388
+ value: createRecordShape(createArrayShape(createArrayShape(createStringShape()))),
389
+ },
390
+ });
391
+ export const databaseSqlVulnerabilityAssessmentRuleBaselinePropertiesShape = createFlatModelShape({
392
+ latestScan: { armPath: ["latestScan"], value: createBooleanShape() },
393
+ results: {
394
+ armPath: ["results"],
395
+ value: createArrayShape(createArrayShape(createStringShape())),
396
+ },
397
+ });
398
+ export const databaseTablePropertiesShape = createFlatModelShape({
399
+ memoryOptimized: { armPath: ["memoryOptimized"], value: createBooleanShape(), readOnly: true },
400
+ temporalType: { armPath: ["temporalType"], value: createUnionShape(), readOnly: true },
401
+ });
402
+ export const databaseUserIdentityShape = createFlatModelShape({
403
+ clientId: { armPath: ["clientId"], value: createStringShape(), readOnly: true },
404
+ principalId: { armPath: ["principalId"], value: createStringShape(), readOnly: true },
405
+ });
406
+ export const databaseVulnerabilityAssessmentPropertiesShape = createFlatModelShape({
407
+ recurringScans: {
408
+ armPath: ["recurringScans"],
409
+ value: createDeferredShape(() => vulnerabilityAssessmentRecurringScansPropertiesShape),
410
+ },
411
+ storageAccountAccessKey: { armPath: ["storageAccountAccessKey"], value: createStringShape() },
412
+ storageContainerPath: { armPath: ["storageContainerPath"], value: createStringShape() },
413
+ storageContainerSasKey: { armPath: ["storageContainerSasKey"], value: createStringShape() },
414
+ });
415
+ export const databaseVulnerabilityAssessmentRuleBaselineItemShape = createFlatModelShape({
416
+ result: { armPath: ["result"], value: createArrayShape(createStringShape()) },
417
+ });
418
+ export const databaseVulnerabilityAssessmentRuleBaselinePropertiesShape = createFlatModelShape({
419
+ baselineResults: {
420
+ armPath: ["baselineResults"],
421
+ value: createArrayShape(createDeferredShape(() => databaseVulnerabilityAssessmentRuleBaselineItemShape)),
422
+ },
423
+ });
424
+ export const dataMaskingPolicyPropertiesShape = createFlatModelShape({
425
+ applicationPrincipals: {
426
+ armPath: ["applicationPrincipals"],
427
+ value: createStringShape(),
428
+ readOnly: true,
429
+ },
430
+ dataMaskingState: { armPath: ["dataMaskingState"], value: createEnumShape() },
431
+ exemptPrincipals: { armPath: ["exemptPrincipals"], value: createStringShape() },
432
+ maskingLevel: { armPath: ["maskingLevel"], value: createStringShape(), readOnly: true },
433
+ });
434
+ export const dataMaskingRulePropertiesShape = createFlatModelShape({
435
+ aliasName: { armPath: ["aliasName"], value: createStringShape() },
436
+ columnName: { armPath: ["columnName"], value: createStringShape() },
437
+ id: { armPath: ["id"], value: createStringShape(), readOnly: true },
438
+ maskingFunction: { armPath: ["maskingFunction"], value: createEnumShape() },
439
+ numberFrom: { armPath: ["numberFrom"], value: createStringShape() },
440
+ numberTo: { armPath: ["numberTo"], value: createStringShape() },
441
+ prefixSize: { armPath: ["prefixSize"], value: createStringShape() },
442
+ replacementString: { armPath: ["replacementString"], value: createStringShape() },
443
+ ruleState: { armPath: ["ruleState"], value: createEnumShape() },
444
+ schemaName: { armPath: ["schemaName"], value: createStringShape() },
445
+ suffixSize: { armPath: ["suffixSize"], value: createStringShape() },
446
+ tableName: { armPath: ["tableName"], value: createStringShape() },
447
+ });
448
+ export const dataWarehouseUserActivitiesPropertiesShape = createFlatModelShape({
449
+ activeQueriesCount: {
450
+ armPath: ["activeQueriesCount"],
451
+ value: createNumberShape(),
452
+ readOnly: true,
453
+ },
454
+ });
455
+ export const deletedServerPropertiesShape = createFlatModelShape({
456
+ deletionTime: {
457
+ armPath: ["deletionTime"],
458
+ value: createDateShape({
459
+ kind: "date-time-text",
460
+ source: "utcDateTime",
461
+ format: "rfc3339",
462
+ clientMode: "client",
463
+ wire: { kind: "string" },
464
+ }),
465
+ readOnly: true,
466
+ },
467
+ fullyQualifiedDomainName: {
468
+ armPath: ["fullyQualifiedDomainName"],
469
+ value: createStringShape(),
470
+ readOnly: true,
471
+ },
472
+ originalId: { armPath: ["originalId"], value: createStringShape(), readOnly: true },
473
+ version: { armPath: ["version"], value: createStringShape(), readOnly: true },
474
+ });
475
+ export const distributedAvailabilityGroupDatabaseShape = createFlatModelShape({
476
+ connectedState: { armPath: ["connectedState"], value: createUnionShape(), readOnly: true },
477
+ databaseName: { armPath: ["databaseName"], value: createStringShape() },
478
+ instanceRedoReplicationLagSeconds: {
479
+ armPath: ["instanceRedoReplicationLagSeconds"],
480
+ value: createNumberShape(),
481
+ readOnly: true,
482
+ },
483
+ instanceReplicaId: { armPath: ["instanceReplicaId"], value: createStringShape(), readOnly: true },
484
+ instanceSendReplicationLagSeconds: {
485
+ armPath: ["instanceSendReplicationLagSeconds"],
486
+ value: createNumberShape(),
487
+ readOnly: true,
488
+ },
489
+ lastBackupLsn: { armPath: ["lastBackupLsn"], value: createStringShape(), readOnly: true },
490
+ lastBackupTime: {
491
+ armPath: ["lastBackupTime"],
492
+ value: createDateShape({
493
+ kind: "date-time-text",
494
+ source: "utcDateTime",
495
+ format: "rfc3339",
496
+ clientMode: "client",
497
+ wire: { kind: "string" },
498
+ }),
499
+ readOnly: true,
500
+ },
501
+ lastCommitLsn: { armPath: ["lastCommitLsn"], value: createStringShape(), readOnly: true },
502
+ lastCommitTime: {
503
+ armPath: ["lastCommitTime"],
504
+ value: createDateShape({
505
+ kind: "date-time-text",
506
+ source: "utcDateTime",
507
+ format: "rfc3339",
508
+ clientMode: "client",
509
+ wire: { kind: "string" },
510
+ }),
511
+ readOnly: true,
512
+ },
513
+ lastHardenedLsn: { armPath: ["lastHardenedLsn"], value: createStringShape(), readOnly: true },
514
+ lastHardenedTime: {
515
+ armPath: ["lastHardenedTime"],
516
+ value: createDateShape({
517
+ kind: "date-time-text",
518
+ source: "utcDateTime",
519
+ format: "rfc3339",
520
+ clientMode: "client",
521
+ wire: { kind: "string" },
522
+ }),
523
+ readOnly: true,
524
+ },
525
+ lastReceivedLsn: { armPath: ["lastReceivedLsn"], value: createStringShape(), readOnly: true },
526
+ lastReceivedTime: {
527
+ armPath: ["lastReceivedTime"],
528
+ value: createDateShape({
529
+ kind: "date-time-text",
530
+ source: "utcDateTime",
531
+ format: "rfc3339",
532
+ clientMode: "client",
533
+ wire: { kind: "string" },
534
+ }),
535
+ readOnly: true,
536
+ },
537
+ lastSentLsn: { armPath: ["lastSentLsn"], value: createStringShape(), readOnly: true },
538
+ lastSentTime: {
539
+ armPath: ["lastSentTime"],
540
+ value: createDateShape({
541
+ kind: "date-time-text",
542
+ source: "utcDateTime",
543
+ format: "rfc3339",
544
+ clientMode: "client",
545
+ wire: { kind: "string" },
546
+ }),
547
+ readOnly: true,
548
+ },
549
+ mostRecentLinkError: {
550
+ armPath: ["mostRecentLinkError"],
551
+ value: createStringShape(),
552
+ readOnly: true,
553
+ },
554
+ partnerAuthCertValidity: {
555
+ armPath: ["partnerAuthCertValidity"],
556
+ value: createDeferredShape(() => certificateInfoShape),
557
+ readOnly: true,
558
+ },
559
+ partnerReplicaId: { armPath: ["partnerReplicaId"], value: createStringShape(), readOnly: true },
560
+ replicaState: { armPath: ["replicaState"], value: createStringShape(), readOnly: true },
561
+ seedingProgress: { armPath: ["seedingProgress"], value: createStringShape(), readOnly: true },
562
+ synchronizationHealth: {
563
+ armPath: ["synchronizationHealth"],
564
+ value: createUnionShape(),
565
+ readOnly: true,
566
+ },
567
+ });
568
+ export const distributedAvailabilityGroupPropertiesShape = createFlatModelShape({
569
+ databases: {
570
+ armPath: ["databases"],
571
+ value: createArrayShape(createDeferredShape(() => distributedAvailabilityGroupDatabaseShape)),
572
+ },
573
+ distributedAvailabilityGroupId: {
574
+ armPath: ["distributedAvailabilityGroupId"],
575
+ value: createStringShape(),
576
+ readOnly: true,
577
+ },
578
+ distributedAvailabilityGroupName: {
579
+ armPath: ["distributedAvailabilityGroupName"],
580
+ value: createStringShape(),
581
+ readOnly: true,
582
+ },
583
+ failoverMode: { armPath: ["failoverMode"], value: createUnionShape() },
584
+ instanceAvailabilityGroupName: {
585
+ armPath: ["instanceAvailabilityGroupName"],
586
+ value: createStringShape(),
587
+ },
588
+ instanceLinkRole: { armPath: ["instanceLinkRole"], value: createUnionShape() },
589
+ partnerAvailabilityGroupName: {
590
+ armPath: ["partnerAvailabilityGroupName"],
591
+ value: createStringShape(),
592
+ },
593
+ partnerEndpoint: { armPath: ["partnerEndpoint"], value: createStringShape() },
594
+ partnerLinkRole: { armPath: ["partnerLinkRole"], value: createUnionShape(), readOnly: true },
595
+ replicationMode: { armPath: ["replicationMode"], value: createUnionShape() },
596
+ seedingMode: { armPath: ["seedingMode"], value: createUnionShape() },
597
+ });
598
+ export const elasticPoolPerDatabaseSettingsShape = createFlatModelShape({
599
+ autoPauseDelay: { armPath: ["autoPauseDelay"], value: createNumberShape() },
600
+ maxCapacity: { armPath: ["maxCapacity"], value: createNumberShape() },
601
+ minCapacity: { armPath: ["minCapacity"], value: createNumberShape() },
602
+ });
603
+ export const elasticPoolPropertiesShape = createFlatModelShape({
604
+ autoPauseDelay: { armPath: ["autoPauseDelay"], value: createNumberShape() },
605
+ availabilityZone: { armPath: ["availabilityZone"], value: createUnionShape() },
606
+ creationDate: {
607
+ armPath: ["creationDate"],
608
+ value: createDateShape({
609
+ kind: "date-time-text",
610
+ source: "utcDateTime",
611
+ format: "rfc3339",
612
+ clientMode: "client",
613
+ wire: { kind: "string" },
614
+ }),
615
+ readOnly: true,
616
+ },
617
+ highAvailabilityReplicaCount: {
618
+ armPath: ["highAvailabilityReplicaCount"],
619
+ value: createNumberShape(),
620
+ },
621
+ licenseType: { armPath: ["licenseType"], value: createUnionShape() },
622
+ maintenanceConfigurationId: {
623
+ armPath: ["maintenanceConfigurationId"],
624
+ value: createStringShape(),
625
+ },
626
+ maxSizeBytes: { armPath: ["maxSizeBytes"], value: createNumberShape() },
627
+ minCapacity: { armPath: ["minCapacity"], value: createNumberShape() },
628
+ perDatabaseSettings: {
629
+ armPath: ["perDatabaseSettings"],
630
+ value: createDeferredShape(() => elasticPoolPerDatabaseSettingsShape),
631
+ },
632
+ preferredEnclaveType: { armPath: ["preferredEnclaveType"], value: createUnionShape() },
633
+ state: { armPath: ["state"], value: createUnionShape(), readOnly: true },
634
+ zoneRedundant: { armPath: ["zoneRedundant"], value: createBooleanShape() },
635
+ });
636
+ export const encryptionProtectorPropertiesShape = createFlatModelShape({
637
+ autoRotationEnabled: { armPath: ["autoRotationEnabled"], value: createBooleanShape() },
638
+ keyVersion: { armPath: ["keyVersion"], value: createStringShape(), readOnly: true },
639
+ serverKeyName: { armPath: ["serverKeyName"], value: createStringShape() },
640
+ serverKeyType: { armPath: ["serverKeyType"], value: createUnionShape() },
641
+ subregion: { armPath: ["subregion"], value: createStringShape(), readOnly: true },
642
+ thumbprint: { armPath: ["thumbprint"], value: createStringShape(), readOnly: true },
643
+ uri: { armPath: ["uri"], value: createStringShape(), readOnly: true },
644
+ });
645
+ export const endpointCertificatePropertiesShape = createFlatModelShape({
646
+ publicBlob: { armPath: ["publicBlob"], value: createStringShape(), readOnly: true },
647
+ });
648
+ export const extendedDatabaseBlobAuditingPolicyPropertiesShape = createFlatModelShape({
649
+ auditActionsAndGroups: {
650
+ armPath: ["auditActionsAndGroups"],
651
+ value: createArrayShape(createStringShape()),
652
+ },
653
+ isAzureMonitorTargetEnabled: {
654
+ armPath: ["isAzureMonitorTargetEnabled"],
655
+ value: createBooleanShape(),
656
+ },
657
+ isManagedIdentityInUse: { armPath: ["isManagedIdentityInUse"], value: createBooleanShape() },
658
+ isStorageSecondaryKeyInUse: {
659
+ armPath: ["isStorageSecondaryKeyInUse"],
660
+ value: createBooleanShape(),
661
+ },
662
+ predicateExpression: { armPath: ["predicateExpression"], value: createStringShape() },
663
+ queueDelayMs: { armPath: ["queueDelayMs"], value: createNumberShape() },
664
+ retentionDays: { armPath: ["retentionDays"], value: createNumberShape() },
665
+ state: { armPath: ["state"], value: createEnumShape() },
666
+ storageAccountAccessKey: { armPath: ["storageAccountAccessKey"], value: createStringShape() },
667
+ storageAccountSubscriptionId: {
668
+ armPath: ["storageAccountSubscriptionId"],
669
+ value: createStringShape(),
670
+ },
671
+ storageEndpoint: { armPath: ["storageEndpoint"], value: createStringShape() },
672
+ });
673
+ export const extendedServerBlobAuditingPolicyPropertiesShape = createFlatModelShape({
674
+ auditActionsAndGroups: {
675
+ armPath: ["auditActionsAndGroups"],
676
+ value: createArrayShape(createStringShape()),
677
+ },
678
+ isAzureMonitorTargetEnabled: {
679
+ armPath: ["isAzureMonitorTargetEnabled"],
680
+ value: createBooleanShape(),
681
+ },
682
+ isDevopsAuditEnabled: { armPath: ["isDevopsAuditEnabled"], value: createBooleanShape() },
683
+ isManagedIdentityInUse: { armPath: ["isManagedIdentityInUse"], value: createBooleanShape() },
684
+ isStorageSecondaryKeyInUse: {
685
+ armPath: ["isStorageSecondaryKeyInUse"],
686
+ value: createBooleanShape(),
687
+ },
688
+ predicateExpression: { armPath: ["predicateExpression"], value: createStringShape() },
689
+ queueDelayMs: { armPath: ["queueDelayMs"], value: createNumberShape() },
690
+ retentionDays: { armPath: ["retentionDays"], value: createNumberShape() },
691
+ state: { armPath: ["state"], value: createEnumShape() },
692
+ storageAccountAccessKey: { armPath: ["storageAccountAccessKey"], value: createStringShape() },
693
+ storageAccountSubscriptionId: {
694
+ armPath: ["storageAccountSubscriptionId"],
695
+ value: createStringShape(),
696
+ },
697
+ storageEndpoint: { armPath: ["storageEndpoint"], value: createStringShape() },
698
+ });
699
+ export const failoverGroupPropertiesShape = createFlatModelShape({
700
+ databases: { armPath: ["databases"], value: createArrayShape(createStringShape()) },
701
+ partnerServers: {
702
+ armPath: ["partnerServers"],
703
+ value: createArrayShape(createDeferredShape(() => partnerInfoShape)),
704
+ },
705
+ readOnlyEndpoint: {
706
+ armPath: ["readOnlyEndpoint"],
707
+ value: createDeferredShape(() => failoverGroupReadOnlyEndpointShape),
708
+ },
709
+ readWriteEndpoint: {
710
+ armPath: ["readWriteEndpoint"],
711
+ value: createDeferredShape(() => failoverGroupReadWriteEndpointShape),
712
+ },
713
+ replicationRole: { armPath: ["replicationRole"], value: createUnionShape(), readOnly: true },
714
+ replicationState: { armPath: ["replicationState"], value: createStringShape(), readOnly: true },
715
+ secondaryType: { armPath: ["secondaryType"], value: createUnionShape() },
716
+ });
717
+ export const failoverGroupReadOnlyEndpointShape = createFlatModelShape({
718
+ failoverPolicy: { armPath: ["failoverPolicy"], value: createUnionShape() },
719
+ targetServer: { armPath: ["targetServer"], value: createStringShape() },
720
+ });
721
+ export const failoverGroupReadWriteEndpointShape = createFlatModelShape({
722
+ failoverPolicy: { armPath: ["failoverPolicy"], value: createUnionShape() },
723
+ failoverWithDataLossGracePeriodMinutes: {
724
+ armPath: ["failoverWithDataLossGracePeriodMinutes"],
725
+ value: createNumberShape(),
726
+ },
727
+ });
728
+ export const geoBackupPolicyPropertiesShape = createFlatModelShape({
729
+ state: { armPath: ["state"], value: createEnumShape() },
730
+ storageType: { armPath: ["storageType"], value: createStringShape(), readOnly: true },
731
+ });
732
+ export const instanceFailoverGroupPropertiesShape = createFlatModelShape({
733
+ managedInstancePairs: {
734
+ armPath: ["managedInstancePairs"],
735
+ value: createArrayShape(createDeferredShape(() => managedInstancePairInfoShape)),
736
+ },
737
+ partnerRegions: {
738
+ armPath: ["partnerRegions"],
739
+ value: createArrayShape(createDeferredShape(() => partnerRegionInfoShape)),
740
+ },
741
+ readOnlyEndpoint: {
742
+ armPath: ["readOnlyEndpoint"],
743
+ value: createDeferredShape(() => instanceFailoverGroupReadOnlyEndpointShape),
744
+ },
745
+ readWriteEndpoint: {
746
+ armPath: ["readWriteEndpoint"],
747
+ value: createDeferredShape(() => instanceFailoverGroupReadWriteEndpointShape),
748
+ },
749
+ replicationRole: { armPath: ["replicationRole"], value: createUnionShape(), readOnly: true },
750
+ replicationState: { armPath: ["replicationState"], value: createStringShape(), readOnly: true },
751
+ secondaryType: { armPath: ["secondaryType"], value: createUnionShape() },
752
+ });
753
+ export const instanceFailoverGroupReadOnlyEndpointShape = createFlatModelShape({
754
+ failoverPolicy: { armPath: ["failoverPolicy"], value: createUnionShape() },
755
+ });
756
+ export const instanceFailoverGroupReadWriteEndpointShape = createFlatModelShape({
757
+ failoverPolicy: { armPath: ["failoverPolicy"], value: createUnionShape() },
758
+ failoverWithDataLossGracePeriodMinutes: {
759
+ armPath: ["failoverWithDataLossGracePeriodMinutes"],
760
+ value: createNumberShape(),
761
+ },
762
+ });
763
+ export const instancePoolOperationPropertiesShape = createFlatModelShape({
764
+ description: { armPath: ["description"], value: createStringShape(), readOnly: true },
765
+ errorCode: { armPath: ["errorCode"], value: createNumberShape(), readOnly: true },
766
+ errorDescription: { armPath: ["errorDescription"], value: createStringShape(), readOnly: true },
767
+ errorSeverity: { armPath: ["errorSeverity"], value: createNumberShape(), readOnly: true },
768
+ errorType: { armPath: ["errorType"], value: createUnionShape(), readOnly: true },
769
+ estimatedCompletionTime: {
770
+ armPath: ["estimatedCompletionTime"],
771
+ value: createDateShape({
772
+ kind: "date-time-text",
773
+ source: "utcDateTime",
774
+ format: "rfc3339",
775
+ clientMode: "client",
776
+ wire: { kind: "string" },
777
+ }),
778
+ readOnly: true,
779
+ },
780
+ instancePoolName: { armPath: ["instancePoolName"], value: createStringShape(), readOnly: true },
781
+ isCancellable: { armPath: ["isCancellable"], value: createBooleanShape(), readOnly: true },
782
+ operation: { armPath: ["operation"], value: createStringShape(), readOnly: true },
783
+ operationFriendlyName: {
784
+ armPath: ["operationFriendlyName"],
785
+ value: createStringShape(),
786
+ readOnly: true,
787
+ },
788
+ percentComplete: { armPath: ["percentComplete"], value: createNumberShape(), readOnly: true },
789
+ startTime: {
790
+ armPath: ["startTime"],
791
+ value: createDateShape({
792
+ kind: "date-time-text",
793
+ source: "utcDateTime",
794
+ format: "rfc3339",
795
+ clientMode: "client",
796
+ wire: { kind: "string" },
797
+ }),
798
+ readOnly: true,
799
+ },
800
+ state: { armPath: ["state"], value: createUnionShape(), readOnly: true },
801
+ });
802
+ export const instancePoolPropertiesShape = createFlatModelShape({
803
+ dnsZone: { armPath: ["dnsZone"], value: createStringShape(), readOnly: true },
804
+ licenseType: { armPath: ["licenseType"], value: createUnionShape() },
805
+ maintenanceConfigurationId: {
806
+ armPath: ["maintenanceConfigurationId"],
807
+ value: createStringShape(),
808
+ },
809
+ subnetId: { armPath: ["subnetId"], value: createStringShape() },
810
+ vCores: { armPath: ["vCores"], value: createNumberShape() },
811
+ });
812
+ export const iPv6ServerFirewallRulePropertiesShape = createFlatModelShape({
813
+ endIPv6Address: { armPath: ["endIPv6Address"], value: createStringShape() },
814
+ startIPv6Address: { armPath: ["startIPv6Address"], value: createStringShape() },
815
+ });
816
+ export const jobAgentIdentityShape = createFlatModelShape({
817
+ tenantId: { armPath: ["tenantId"], value: createStringShape() },
818
+ type: { armPath: ["type"], value: createUnionShape() },
819
+ userAssignedIdentities: {
820
+ armPath: ["userAssignedIdentities"],
821
+ value: createRecordShape(createDeferredShape(() => jobAgentUserAssignedIdentityShape)),
822
+ },
823
+ });
824
+ export const jobAgentPropertiesShape = createFlatModelShape({
825
+ databaseId: { armPath: ["databaseId"], value: createStringShape() },
826
+ state: { armPath: ["state"], value: createUnionShape(), readOnly: true },
827
+ });
828
+ export const jobAgentUserAssignedIdentityShape = createFlatModelShape({
829
+ clientId: { armPath: ["clientId"], value: createStringShape(), readOnly: true },
830
+ principalId: { armPath: ["principalId"], value: createStringShape(), readOnly: true },
831
+ });
832
+ export const jobCredentialPropertiesShape = createFlatModelShape({
833
+ password: { armPath: ["password"], value: createStringShape() },
834
+ username: { armPath: ["username"], value: createStringShape() },
835
+ });
836
+ export const jobExecutionPropertiesShape = createFlatModelShape({
837
+ createTime: {
838
+ armPath: ["createTime"],
839
+ value: createDateShape({
840
+ kind: "date-time-text",
841
+ source: "utcDateTime",
842
+ format: "rfc3339",
843
+ clientMode: "client",
844
+ wire: { kind: "string" },
845
+ }),
846
+ readOnly: true,
847
+ },
848
+ currentAttempts: { armPath: ["currentAttempts"], value: createNumberShape(), readOnly: true },
849
+ currentAttemptStartTime: {
850
+ armPath: ["currentAttemptStartTime"],
851
+ value: createDateShape({
852
+ kind: "date-time-text",
853
+ source: "utcDateTime",
854
+ format: "rfc3339",
855
+ clientMode: "client",
856
+ wire: { kind: "string" },
857
+ }),
858
+ readOnly: true,
859
+ },
860
+ endTime: {
861
+ armPath: ["endTime"],
862
+ value: createDateShape({
863
+ kind: "date-time-text",
864
+ source: "utcDateTime",
865
+ format: "rfc3339",
866
+ clientMode: "client",
867
+ wire: { kind: "string" },
868
+ }),
869
+ readOnly: true,
870
+ },
871
+ jobExecutionId: { armPath: ["jobExecutionId"], value: createStringShape(), readOnly: true },
872
+ jobVersion: { armPath: ["jobVersion"], value: createNumberShape(), readOnly: true },
873
+ lastMessage: { armPath: ["lastMessage"], value: createStringShape(), readOnly: true },
874
+ lifecycle: { armPath: ["lifecycle"], value: createUnionShape(), readOnly: true },
875
+ provisioningState: { armPath: ["provisioningState"], value: createUnionShape(), readOnly: true },
876
+ startTime: {
877
+ armPath: ["startTime"],
878
+ value: createDateShape({
879
+ kind: "date-time-text",
880
+ source: "utcDateTime",
881
+ format: "rfc3339",
882
+ clientMode: "client",
883
+ wire: { kind: "string" },
884
+ }),
885
+ readOnly: true,
886
+ },
887
+ stepId: { armPath: ["stepId"], value: createNumberShape(), readOnly: true },
888
+ stepName: { armPath: ["stepName"], value: createStringShape(), readOnly: true },
889
+ target: {
890
+ armPath: ["target"],
891
+ value: createDeferredShape(() => jobExecutionTargetShape),
892
+ readOnly: true,
893
+ },
894
+ });
895
+ export const jobExecutionTargetShape = createFlatModelShape({
896
+ databaseName: { armPath: ["databaseName"], value: createStringShape(), readOnly: true },
897
+ serverName: { armPath: ["serverName"], value: createStringShape(), readOnly: true },
898
+ type: { armPath: ["type"], value: createUnionShape(), readOnly: true },
899
+ });
900
+ export const jobPrivateEndpointPropertiesShape = createFlatModelShape({
901
+ privateEndpointId: { armPath: ["privateEndpointId"], value: createStringShape(), readOnly: true },
902
+ targetServerAzureResourceId: {
903
+ armPath: ["targetServerAzureResourceId"],
904
+ value: createStringShape(),
905
+ },
906
+ });
907
+ export const jobPropertiesShape = createFlatModelShape({
908
+ description: { armPath: ["description"], value: createStringShape() },
909
+ schedule: { armPath: ["schedule"], value: createDeferredShape(() => jobScheduleShape) },
910
+ version: { armPath: ["version"], value: createNumberShape(), readOnly: true },
911
+ });
912
+ export const jobScheduleShape = createFlatModelShape({
913
+ enabled: { armPath: ["enabled"], value: createBooleanShape() },
914
+ endTime: {
915
+ armPath: ["endTime"],
916
+ value: createDateShape({
917
+ kind: "date-time-text",
918
+ source: "utcDateTime",
919
+ format: "rfc3339",
920
+ clientMode: "client",
921
+ wire: { kind: "string" },
922
+ }),
923
+ },
924
+ interval: { armPath: ["interval"], value: createStringShape() },
925
+ startTime: {
926
+ armPath: ["startTime"],
927
+ value: createDateShape({
928
+ kind: "date-time-text",
929
+ source: "utcDateTime",
930
+ format: "rfc3339",
931
+ clientMode: "client",
932
+ wire: { kind: "string" },
933
+ }),
934
+ },
935
+ type: { armPath: ["type"], value: createEnumShape() },
936
+ });
937
+ export const jobStepActionShape = createFlatModelShape({
938
+ source: { armPath: ["source"], value: createUnionShape() },
939
+ type: { armPath: ["type"], value: createUnionShape() },
940
+ value: { armPath: ["value"], value: createStringShape() },
941
+ });
942
+ export const jobStepExecutionOptionsShape = createFlatModelShape({
943
+ initialRetryIntervalSeconds: {
944
+ armPath: ["initialRetryIntervalSeconds"],
945
+ value: createNumberShape(),
946
+ },
947
+ maximumRetryIntervalSeconds: {
948
+ armPath: ["maximumRetryIntervalSeconds"],
949
+ value: createNumberShape(),
950
+ },
951
+ retryAttempts: { armPath: ["retryAttempts"], value: createNumberShape() },
952
+ retryIntervalBackoffMultiplier: {
953
+ armPath: ["retryIntervalBackoffMultiplier"],
954
+ value: createNumberShape(),
955
+ },
956
+ timeoutSeconds: { armPath: ["timeoutSeconds"], value: createNumberShape() },
957
+ });
958
+ export const jobStepOutputShape = createFlatModelShape({
959
+ credential: { armPath: ["credential"], value: createStringShape() },
960
+ databaseName: { armPath: ["databaseName"], value: createStringShape() },
961
+ resourceGroupName: { armPath: ["resourceGroupName"], value: createStringShape() },
962
+ schemaName: { armPath: ["schemaName"], value: createStringShape() },
963
+ serverName: { armPath: ["serverName"], value: createStringShape() },
964
+ subscriptionId: { armPath: ["subscriptionId"], value: createStringShape() },
965
+ tableName: { armPath: ["tableName"], value: createStringShape() },
966
+ type: { armPath: ["type"], value: createUnionShape() },
967
+ });
968
+ export const jobStepPropertiesShape = createFlatModelShape({
969
+ action: { armPath: ["action"], value: createDeferredShape(() => jobStepActionShape) },
970
+ credential: { armPath: ["credential"], value: createStringShape() },
971
+ executionOptions: {
972
+ armPath: ["executionOptions"],
973
+ value: createDeferredShape(() => jobStepExecutionOptionsShape),
974
+ },
975
+ output: { armPath: ["output"], value: createDeferredShape(() => jobStepOutputShape) },
976
+ stepId: { armPath: ["stepId"], value: createNumberShape() },
977
+ targetGroup: { armPath: ["targetGroup"], value: createStringShape() },
978
+ });
979
+ export const jobTargetShape = createFlatModelShape({
980
+ databaseName: { armPath: ["databaseName"], value: createStringShape() },
981
+ elasticPoolName: { armPath: ["elasticPoolName"], value: createStringShape() },
982
+ membershipType: { armPath: ["membershipType"], value: createEnumShape() },
983
+ refreshCredential: { armPath: ["refreshCredential"], value: createStringShape() },
984
+ serverName: { armPath: ["serverName"], value: createStringShape() },
985
+ shardMapName: { armPath: ["shardMapName"], value: createStringShape() },
986
+ type: { armPath: ["type"], value: createUnionShape() },
987
+ });
988
+ export const jobTargetGroupPropertiesShape = createFlatModelShape({
989
+ members: {
990
+ armPath: ["members"],
991
+ value: createArrayShape(createDeferredShape(() => jobTargetShape)),
992
+ },
993
+ });
994
+ export const ledgerDigestUploadsPropertiesShape = createFlatModelShape({
995
+ digestStorageEndpoint: { armPath: ["digestStorageEndpoint"], value: createStringShape() },
996
+ state: { armPath: ["state"], value: createEnumShape(), readOnly: true },
997
+ });
998
+ export const longTermRetentionBackupPropertiesShape = createFlatModelShape({
999
+ backupExpirationTime: {
1000
+ armPath: ["backupExpirationTime"],
1001
+ value: createDateShape({
1002
+ kind: "date-time-text",
1003
+ source: "utcDateTime",
1004
+ format: "rfc3339",
1005
+ clientMode: "client",
1006
+ wire: { kind: "string" },
1007
+ }),
1008
+ readOnly: true,
1009
+ },
1010
+ backupStorageAccessTier: {
1011
+ armPath: ["backupStorageAccessTier"],
1012
+ value: createUnionShape(),
1013
+ readOnly: true,
1014
+ },
1015
+ backupStorageRedundancy: {
1016
+ armPath: ["backupStorageRedundancy"],
1017
+ value: createUnionShape(),
1018
+ readOnly: true,
1019
+ },
1020
+ backupTime: {
1021
+ armPath: ["backupTime"],
1022
+ value: createDateShape({
1023
+ kind: "date-time-text",
1024
+ source: "utcDateTime",
1025
+ format: "rfc3339",
1026
+ clientMode: "client",
1027
+ wire: { kind: "string" },
1028
+ }),
1029
+ readOnly: true,
1030
+ },
1031
+ databaseDeletionTime: {
1032
+ armPath: ["databaseDeletionTime"],
1033
+ value: createDateShape({
1034
+ kind: "date-time-text",
1035
+ source: "utcDateTime",
1036
+ format: "rfc3339",
1037
+ clientMode: "client",
1038
+ wire: { kind: "string" },
1039
+ }),
1040
+ readOnly: true,
1041
+ },
1042
+ databaseName: { armPath: ["databaseName"], value: createStringShape(), readOnly: true },
1043
+ isBackupImmutable: {
1044
+ armPath: ["isBackupImmutable"],
1045
+ value: createBooleanShape(),
1046
+ readOnly: true,
1047
+ },
1048
+ legalHoldImmutability: {
1049
+ armPath: ["legalHoldImmutability"],
1050
+ value: createUnionShape(),
1051
+ readOnly: true,
1052
+ },
1053
+ requestedBackupStorageRedundancy: {
1054
+ armPath: ["requestedBackupStorageRedundancy"],
1055
+ value: createUnionShape(),
1056
+ },
1057
+ serverCreateTime: {
1058
+ armPath: ["serverCreateTime"],
1059
+ value: createDateShape({
1060
+ kind: "date-time-text",
1061
+ source: "utcDateTime",
1062
+ format: "rfc3339",
1063
+ clientMode: "client",
1064
+ wire: { kind: "string" },
1065
+ }),
1066
+ readOnly: true,
1067
+ },
1068
+ serverName: { armPath: ["serverName"], value: createStringShape(), readOnly: true },
1069
+ timeBasedImmutability: {
1070
+ armPath: ["timeBasedImmutability"],
1071
+ value: createUnionShape(),
1072
+ readOnly: true,
1073
+ },
1074
+ timeBasedImmutabilityMode: {
1075
+ armPath: ["timeBasedImmutabilityMode"],
1076
+ value: createUnionShape(),
1077
+ readOnly: true,
1078
+ },
1079
+ });
1080
+ export const longTermRetentionPolicyPropertiesShape = createFlatModelShape({
1081
+ monthlyRetention: { armPath: ["monthlyRetention"], value: createStringShape() },
1082
+ timeBasedImmutability: { armPath: ["timeBasedImmutability"], value: createUnionShape() },
1083
+ timeBasedImmutabilityMode: { armPath: ["timeBasedImmutabilityMode"], value: createUnionShape() },
1084
+ weeklyRetention: { armPath: ["weeklyRetention"], value: createStringShape() },
1085
+ weekOfYear: { armPath: ["weekOfYear"], value: createNumberShape() },
1086
+ yearlyRetention: { armPath: ["yearlyRetention"], value: createStringShape() },
1087
+ });
1088
+ export const managedBackupShortTermRetentionPolicyPropertiesShape = createFlatModelShape({
1089
+ retentionDays: { armPath: ["retentionDays"], value: createNumberShape() },
1090
+ });
1091
+ export const managedDatabaseExtendedAccessibilityInfoShape = createFlatModelShape({
1092
+ inaccessibilityReasonDescription: {
1093
+ armPath: ["inaccessibilityReasonDescription"],
1094
+ value: createStringShape(),
1095
+ readOnly: true,
1096
+ },
1097
+ inaccessibilityReasonErrorCode: {
1098
+ armPath: ["inaccessibilityReasonErrorCode"],
1099
+ value: createStringShape(),
1100
+ readOnly: true,
1101
+ },
1102
+ inaccessibilityReasonKind: {
1103
+ armPath: ["inaccessibilityReasonKind"],
1104
+ value: createUnionShape(),
1105
+ readOnly: true,
1106
+ },
1107
+ inaccessibilityReasonTdeKeyUri: {
1108
+ armPath: ["inaccessibilityReasonTdeKeyUri"],
1109
+ value: createStringShape(),
1110
+ readOnly: true,
1111
+ },
1112
+ });
1113
+ export const managedDatabaseMoveOperationResultPropertiesShape = createFlatModelShape({
1114
+ errorCode: { armPath: ["errorCode"], value: createNumberShape(), readOnly: true },
1115
+ errorDescription: { armPath: ["errorDescription"], value: createStringShape(), readOnly: true },
1116
+ errorSeverity: { armPath: ["errorSeverity"], value: createNumberShape(), readOnly: true },
1117
+ isCancellable: { armPath: ["isCancellable"], value: createBooleanShape(), readOnly: true },
1118
+ isUserError: { armPath: ["isUserError"], value: createBooleanShape(), readOnly: true },
1119
+ operation: { armPath: ["operation"], value: createStringShape(), readOnly: true },
1120
+ operationFriendlyName: {
1121
+ armPath: ["operationFriendlyName"],
1122
+ value: createStringShape(),
1123
+ readOnly: true,
1124
+ },
1125
+ operationMode: { armPath: ["operationMode"], value: createUnionShape(), readOnly: true },
1126
+ sourceDatabaseName: {
1127
+ armPath: ["sourceDatabaseName"],
1128
+ value: createStringShape(),
1129
+ readOnly: true,
1130
+ },
1131
+ sourceManagedInstanceId: {
1132
+ armPath: ["sourceManagedInstanceId"],
1133
+ value: createStringShape(),
1134
+ readOnly: true,
1135
+ },
1136
+ sourceManagedInstanceName: {
1137
+ armPath: ["sourceManagedInstanceName"],
1138
+ value: createStringShape(),
1139
+ readOnly: true,
1140
+ },
1141
+ startTime: {
1142
+ armPath: ["startTime"],
1143
+ value: createDateShape({
1144
+ kind: "date-time-text",
1145
+ source: "utcDateTime",
1146
+ format: "rfc3339",
1147
+ clientMode: "client",
1148
+ wire: { kind: "string" },
1149
+ }),
1150
+ readOnly: true,
1151
+ },
1152
+ state: { armPath: ["state"], value: createUnionShape(), readOnly: true },
1153
+ targetDatabaseName: {
1154
+ armPath: ["targetDatabaseName"],
1155
+ value: createStringShape(),
1156
+ readOnly: true,
1157
+ },
1158
+ targetManagedInstanceId: {
1159
+ armPath: ["targetManagedInstanceId"],
1160
+ value: createStringShape(),
1161
+ readOnly: true,
1162
+ },
1163
+ targetManagedInstanceName: {
1164
+ armPath: ["targetManagedInstanceName"],
1165
+ value: createStringShape(),
1166
+ readOnly: true,
1167
+ },
1168
+ });
1169
+ export const managedDatabasePropertiesShape = createFlatModelShape({
1170
+ autoCompleteRestore: { armPath: ["autoCompleteRestore"], value: createBooleanShape() },
1171
+ catalogCollation: { armPath: ["catalogCollation"], value: createUnionShape() },
1172
+ collation: { armPath: ["collation"], value: createStringShape() },
1173
+ createMode: { armPath: ["createMode"], value: createUnionShape() },
1174
+ creationDate: {
1175
+ armPath: ["creationDate"],
1176
+ value: createDateShape({
1177
+ kind: "date-time-text",
1178
+ source: "utcDateTime",
1179
+ format: "rfc3339",
1180
+ clientMode: "client",
1181
+ wire: { kind: "string" },
1182
+ }),
1183
+ readOnly: true,
1184
+ },
1185
+ crossSubscriptionRestorableDroppedDatabaseId: {
1186
+ armPath: ["crossSubscriptionRestorableDroppedDatabaseId"],
1187
+ value: createStringShape(),
1188
+ },
1189
+ crossSubscriptionSourceDatabaseId: {
1190
+ armPath: ["crossSubscriptionSourceDatabaseId"],
1191
+ value: createStringShape(),
1192
+ },
1193
+ crossSubscriptionTargetManagedInstanceId: {
1194
+ armPath: ["crossSubscriptionTargetManagedInstanceId"],
1195
+ value: createStringShape(),
1196
+ },
1197
+ defaultSecondaryLocation: {
1198
+ armPath: ["defaultSecondaryLocation"],
1199
+ value: createStringShape(),
1200
+ readOnly: true,
1201
+ },
1202
+ earliestRestorePoint: {
1203
+ armPath: ["earliestRestorePoint"],
1204
+ value: createDateShape({
1205
+ kind: "date-time-text",
1206
+ source: "utcDateTime",
1207
+ format: "rfc3339",
1208
+ clientMode: "client",
1209
+ wire: { kind: "string" },
1210
+ }),
1211
+ readOnly: true,
1212
+ },
1213
+ extendedAccessibilityInfo: {
1214
+ armPath: ["extendedAccessibilityInfo"],
1215
+ value: createDeferredShape(() => managedDatabaseExtendedAccessibilityInfoShape),
1216
+ readOnly: true,
1217
+ },
1218
+ failoverGroupId: { armPath: ["failoverGroupId"], value: createStringShape(), readOnly: true },
1219
+ isLedgerOn: { armPath: ["isLedgerOn"], value: createBooleanShape() },
1220
+ lastBackupName: { armPath: ["lastBackupName"], value: createStringShape() },
1221
+ longTermRetentionBackupResourceId: {
1222
+ armPath: ["longTermRetentionBackupResourceId"],
1223
+ value: createStringShape(),
1224
+ },
1225
+ recoverableDatabaseId: { armPath: ["recoverableDatabaseId"], value: createStringShape() },
1226
+ restorableDroppedDatabaseId: {
1227
+ armPath: ["restorableDroppedDatabaseId"],
1228
+ value: createStringShape(),
1229
+ },
1230
+ restorePointInTime: {
1231
+ armPath: ["restorePointInTime"],
1232
+ value: createDateShape({
1233
+ kind: "date-time-text",
1234
+ source: "utcDateTime",
1235
+ format: "rfc3339",
1236
+ clientMode: "client",
1237
+ wire: { kind: "string" },
1238
+ }),
1239
+ },
1240
+ sourceDatabaseId: { armPath: ["sourceDatabaseId"], value: createStringShape() },
1241
+ status: { armPath: ["status"], value: createUnionShape(), readOnly: true },
1242
+ storageContainerIdentity: { armPath: ["storageContainerIdentity"], value: createStringShape() },
1243
+ storageContainerSasToken: { armPath: ["storageContainerSasToken"], value: createStringShape() },
1244
+ storageContainerUri: { armPath: ["storageContainerUri"], value: createStringShape() },
1245
+ });
1246
+ export const managedDatabaseRestoreDetailsBackupSetPropertiesShape = createFlatModelShape({
1247
+ backupSizeMb: { armPath: ["backupSizeMB"], value: createNumberShape(), readOnly: true },
1248
+ firstStripeName: { armPath: ["firstStripeName"], value: createStringShape(), readOnly: true },
1249
+ numberOfStripes: { armPath: ["numberOfStripes"], value: createNumberShape(), readOnly: true },
1250
+ restoreFinishedTimestampUtc: {
1251
+ armPath: ["restoreFinishedTimestampUtc"],
1252
+ value: createDateShape({
1253
+ kind: "date-time-text",
1254
+ source: "utcDateTime",
1255
+ format: "rfc3339",
1256
+ clientMode: "client",
1257
+ wire: { kind: "string" },
1258
+ }),
1259
+ readOnly: true,
1260
+ },
1261
+ restoreStartedTimestampUtc: {
1262
+ armPath: ["restoreStartedTimestampUtc"],
1263
+ value: createDateShape({
1264
+ kind: "date-time-text",
1265
+ source: "utcDateTime",
1266
+ format: "rfc3339",
1267
+ clientMode: "client",
1268
+ wire: { kind: "string" },
1269
+ }),
1270
+ readOnly: true,
1271
+ },
1272
+ status: { armPath: ["status"], value: createStringShape(), readOnly: true },
1273
+ });
1274
+ export const managedDatabaseRestoreDetailsPropertiesShape = createFlatModelShape({
1275
+ blockReason: { armPath: ["blockReason"], value: createStringShape(), readOnly: true },
1276
+ currentBackupType: { armPath: ["currentBackupType"], value: createStringShape(), readOnly: true },
1277
+ currentRestoredSizeMb: {
1278
+ armPath: ["currentRestoredSizeMB"],
1279
+ value: createNumberShape(),
1280
+ readOnly: true,
1281
+ },
1282
+ currentRestorePlanSizeMb: {
1283
+ armPath: ["currentRestorePlanSizeMB"],
1284
+ value: createNumberShape(),
1285
+ readOnly: true,
1286
+ },
1287
+ currentRestoringFileName: {
1288
+ armPath: ["currentRestoringFileName"],
1289
+ value: createStringShape(),
1290
+ readOnly: true,
1291
+ },
1292
+ diffBackupSets: {
1293
+ armPath: ["diffBackupSets"],
1294
+ value: createArrayShape(createDeferredShape(() => managedDatabaseRestoreDetailsBackupSetPropertiesShape)),
1295
+ readOnly: true,
1296
+ },
1297
+ fullBackupSets: {
1298
+ armPath: ["fullBackupSets"],
1299
+ value: createArrayShape(createDeferredShape(() => managedDatabaseRestoreDetailsBackupSetPropertiesShape)),
1300
+ readOnly: true,
1301
+ },
1302
+ lastRestoredFileName: {
1303
+ armPath: ["lastRestoredFileName"],
1304
+ value: createStringShape(),
1305
+ readOnly: true,
1306
+ },
1307
+ lastRestoredFileTime: {
1308
+ armPath: ["lastRestoredFileTime"],
1309
+ value: createDateShape({
1310
+ kind: "date-time-text",
1311
+ source: "utcDateTime",
1312
+ format: "rfc3339",
1313
+ clientMode: "client",
1314
+ wire: { kind: "string" },
1315
+ }),
1316
+ readOnly: true,
1317
+ },
1318
+ lastUploadedFileName: {
1319
+ armPath: ["lastUploadedFileName"],
1320
+ value: createStringShape(),
1321
+ readOnly: true,
1322
+ },
1323
+ lastUploadedFileTime: {
1324
+ armPath: ["lastUploadedFileTime"],
1325
+ value: createDateShape({
1326
+ kind: "date-time-text",
1327
+ source: "utcDateTime",
1328
+ format: "rfc3339",
1329
+ clientMode: "client",
1330
+ wire: { kind: "string" },
1331
+ }),
1332
+ readOnly: true,
1333
+ },
1334
+ logBackupSets: {
1335
+ armPath: ["logBackupSets"],
1336
+ value: createArrayShape(createDeferredShape(() => managedDatabaseRestoreDetailsBackupSetPropertiesShape)),
1337
+ readOnly: true,
1338
+ },
1339
+ numberOfFilesDetected: {
1340
+ armPath: ["numberOfFilesDetected"],
1341
+ value: createNumberShape(),
1342
+ readOnly: true,
1343
+ },
1344
+ numberOfFilesQueued: {
1345
+ armPath: ["numberOfFilesQueued"],
1346
+ value: createNumberShape(),
1347
+ readOnly: true,
1348
+ },
1349
+ numberOfFilesRestored: {
1350
+ armPath: ["numberOfFilesRestored"],
1351
+ value: createNumberShape(),
1352
+ readOnly: true,
1353
+ },
1354
+ numberOfFilesRestoring: {
1355
+ armPath: ["numberOfFilesRestoring"],
1356
+ value: createNumberShape(),
1357
+ readOnly: true,
1358
+ },
1359
+ numberOfFilesSkipped: {
1360
+ armPath: ["numberOfFilesSkipped"],
1361
+ value: createNumberShape(),
1362
+ readOnly: true,
1363
+ },
1364
+ numberOfFilesUnrestorable: {
1365
+ armPath: ["numberOfFilesUnrestorable"],
1366
+ value: createNumberShape(),
1367
+ readOnly: true,
1368
+ },
1369
+ percentCompleted: { armPath: ["percentCompleted"], value: createNumberShape(), readOnly: true },
1370
+ status: { armPath: ["status"], value: createStringShape(), readOnly: true },
1371
+ type: { armPath: ["type"], value: createStringShape(), readOnly: true },
1372
+ unrestorableFiles: {
1373
+ armPath: ["unrestorableFiles"],
1374
+ value: createArrayShape(createDeferredShape(() => managedDatabaseRestoreDetailsUnrestorableFilePropertiesShape)),
1375
+ readOnly: true,
1376
+ },
1377
+ });
1378
+ export const managedDatabaseRestoreDetailsUnrestorableFilePropertiesShape = createFlatModelShape({
1379
+ name: { armPath: ["name"], value: createStringShape(), readOnly: true },
1380
+ });
1381
+ export const managedInstanceAdministratorPropertiesShape = createFlatModelShape({
1382
+ administratorType: { armPath: ["administratorType"], value: createUnionShape() },
1383
+ login: { armPath: ["login"], value: createStringShape() },
1384
+ sid: { armPath: ["sid"], value: createStringShape() },
1385
+ tenantId: { armPath: ["tenantId"], value: createStringShape() },
1386
+ });
1387
+ export const managedInstanceAzureAdOnlyAuthPropertiesShape = createFlatModelShape({
1388
+ azureAdOnlyAuthentication: {
1389
+ armPath: ["azureADOnlyAuthentication"],
1390
+ value: createBooleanShape(),
1391
+ },
1392
+ });
1393
+ export const managedInstanceDtcPropertiesShape = createFlatModelShape({
1394
+ dtcEnabled: { armPath: ["dtcEnabled"], value: createBooleanShape() },
1395
+ dtcHostNameDnsSuffix: {
1396
+ armPath: ["dtcHostNameDnsSuffix"],
1397
+ value: createStringShape(),
1398
+ readOnly: true,
1399
+ },
1400
+ externalDnsSuffixSearchList: {
1401
+ armPath: ["externalDnsSuffixSearchList"],
1402
+ value: createArrayShape(createStringShape()),
1403
+ },
1404
+ provisioningState: { armPath: ["provisioningState"], value: createUnionShape(), readOnly: true },
1405
+ securitySettings: {
1406
+ armPath: ["securitySettings"],
1407
+ value: createDeferredShape(() => managedInstanceDtcSecuritySettingsShape),
1408
+ },
1409
+ });
1410
+ export const managedInstanceDtcSecuritySettingsShape = createFlatModelShape({
1411
+ snaLu6point2TransactionsEnabled: {
1412
+ armPath: ["snaLu6point2TransactionsEnabled"],
1413
+ value: createBooleanShape(),
1414
+ },
1415
+ transactionManagerCommunicationSettings: {
1416
+ armPath: ["transactionManagerCommunicationSettings"],
1417
+ value: createDeferredShape(() => managedInstanceDtcTransactionManagerCommunicationSettingsShape),
1418
+ },
1419
+ xaTransactionsDefaultTimeout: {
1420
+ armPath: ["xaTransactionsDefaultTimeout"],
1421
+ value: createNumberShape(),
1422
+ },
1423
+ xaTransactionsEnabled: { armPath: ["xaTransactionsEnabled"], value: createBooleanShape() },
1424
+ xaTransactionsMaximumTimeout: {
1425
+ armPath: ["xaTransactionsMaximumTimeout"],
1426
+ value: createNumberShape(),
1427
+ },
1428
+ });
1429
+ export const managedInstanceDtcTransactionManagerCommunicationSettingsShape = createFlatModelShape({
1430
+ allowInboundEnabled: { armPath: ["allowInboundEnabled"], value: createBooleanShape() },
1431
+ allowOutboundEnabled: { armPath: ["allowOutboundEnabled"], value: createBooleanShape() },
1432
+ authentication: { armPath: ["authentication"], value: createStringShape() },
1433
+ });
1434
+ export const managedInstanceEncryptionProtectorPropertiesShape = createFlatModelShape({
1435
+ autoRotationEnabled: { armPath: ["autoRotationEnabled"], value: createBooleanShape() },
1436
+ serverKeyName: { armPath: ["serverKeyName"], value: createStringShape() },
1437
+ serverKeyType: { armPath: ["serverKeyType"], value: createUnionShape() },
1438
+ thumbprint: { armPath: ["thumbprint"], value: createStringShape(), readOnly: true },
1439
+ uri: { armPath: ["uri"], value: createStringShape(), readOnly: true },
1440
+ });
1441
+ export const managedInstanceExternalAdministratorShape = createFlatModelShape({
1442
+ administratorType: { armPath: ["administratorType"], value: createUnionShape() },
1443
+ azureAdOnlyAuthentication: {
1444
+ armPath: ["azureADOnlyAuthentication"],
1445
+ value: createBooleanShape(),
1446
+ },
1447
+ login: { armPath: ["login"], value: createStringShape() },
1448
+ principalType: { armPath: ["principalType"], value: createUnionShape() },
1449
+ sid: { armPath: ["sid"], value: createStringShape() },
1450
+ tenantId: { armPath: ["tenantId"], value: createStringShape() },
1451
+ });
1452
+ export const managedInstanceKeyPropertiesShape = createFlatModelShape({
1453
+ autoRotationEnabled: {
1454
+ armPath: ["autoRotationEnabled"],
1455
+ value: createBooleanShape(),
1456
+ readOnly: true,
1457
+ },
1458
+ creationDate: {
1459
+ armPath: ["creationDate"],
1460
+ value: createDateShape({
1461
+ kind: "date-time-text",
1462
+ source: "utcDateTime",
1463
+ format: "rfc3339",
1464
+ clientMode: "client",
1465
+ wire: { kind: "string" },
1466
+ }),
1467
+ readOnly: true,
1468
+ },
1469
+ serverKeyType: { armPath: ["serverKeyType"], value: createUnionShape() },
1470
+ thumbprint: { armPath: ["thumbprint"], value: createStringShape(), readOnly: true },
1471
+ uri: { armPath: ["uri"], value: createStringShape() },
1472
+ });
1473
+ export const managedInstanceLongTermRetentionBackupPropertiesShape = createFlatModelShape({
1474
+ backupExpirationTime: {
1475
+ armPath: ["backupExpirationTime"],
1476
+ value: createDateShape({
1477
+ kind: "date-time-text",
1478
+ source: "utcDateTime",
1479
+ format: "rfc3339",
1480
+ clientMode: "client",
1481
+ wire: { kind: "string" },
1482
+ }),
1483
+ readOnly: true,
1484
+ },
1485
+ backupStorageAccessTier: {
1486
+ armPath: ["backupStorageAccessTier"],
1487
+ value: createUnionShape(),
1488
+ readOnly: true,
1489
+ },
1490
+ backupStorageRedundancy: {
1491
+ armPath: ["backupStorageRedundancy"],
1492
+ value: createUnionShape(),
1493
+ readOnly: true,
1494
+ },
1495
+ backupTime: {
1496
+ armPath: ["backupTime"],
1497
+ value: createDateShape({
1498
+ kind: "date-time-text",
1499
+ source: "utcDateTime",
1500
+ format: "rfc3339",
1501
+ clientMode: "client",
1502
+ wire: { kind: "string" },
1503
+ }),
1504
+ readOnly: true,
1505
+ },
1506
+ databaseDeletionTime: {
1507
+ armPath: ["databaseDeletionTime"],
1508
+ value: createDateShape({
1509
+ kind: "date-time-text",
1510
+ source: "utcDateTime",
1511
+ format: "rfc3339",
1512
+ clientMode: "client",
1513
+ wire: { kind: "string" },
1514
+ }),
1515
+ readOnly: true,
1516
+ },
1517
+ databaseName: { armPath: ["databaseName"], value: createStringShape(), readOnly: true },
1518
+ managedInstanceCreateTime: {
1519
+ armPath: ["managedInstanceCreateTime"],
1520
+ value: createDateShape({
1521
+ kind: "date-time-text",
1522
+ source: "utcDateTime",
1523
+ format: "rfc3339",
1524
+ clientMode: "client",
1525
+ wire: { kind: "string" },
1526
+ }),
1527
+ readOnly: true,
1528
+ },
1529
+ managedInstanceName: {
1530
+ armPath: ["managedInstanceName"],
1531
+ value: createStringShape(),
1532
+ readOnly: true,
1533
+ },
1534
+ });
1535
+ export const managedInstanceLongTermRetentionPolicyPropertiesShape = createFlatModelShape({
1536
+ backupStorageAccessTier: { armPath: ["backupStorageAccessTier"], value: createUnionShape() },
1537
+ monthlyRetention: { armPath: ["monthlyRetention"], value: createStringShape() },
1538
+ weeklyRetention: { armPath: ["weeklyRetention"], value: createStringShape() },
1539
+ weekOfYear: { armPath: ["weekOfYear"], value: createNumberShape() },
1540
+ yearlyRetention: { armPath: ["yearlyRetention"], value: createStringShape() },
1541
+ });
1542
+ export const managedInstanceOperationParametersPairShape = createFlatModelShape({
1543
+ currentParameters: {
1544
+ armPath: ["currentParameters"],
1545
+ value: createDeferredShape(() => upsertManagedServerOperationParametersShape),
1546
+ readOnly: true,
1547
+ },
1548
+ requestedParameters: {
1549
+ armPath: ["requestedParameters"],
1550
+ value: createDeferredShape(() => upsertManagedServerOperationParametersShape),
1551
+ readOnly: true,
1552
+ },
1553
+ });
1554
+ export const managedInstanceOperationPropertiesShape = createFlatModelShape({
1555
+ description: { armPath: ["description"], value: createStringShape(), readOnly: true },
1556
+ errorCode: { armPath: ["errorCode"], value: createNumberShape(), readOnly: true },
1557
+ errorDescription: { armPath: ["errorDescription"], value: createStringShape(), readOnly: true },
1558
+ errorSeverity: { armPath: ["errorSeverity"], value: createNumberShape(), readOnly: true },
1559
+ estimatedCompletionTime: {
1560
+ armPath: ["estimatedCompletionTime"],
1561
+ value: createDateShape({
1562
+ kind: "date-time-text",
1563
+ source: "utcDateTime",
1564
+ format: "rfc3339",
1565
+ clientMode: "client",
1566
+ wire: { kind: "string" },
1567
+ }),
1568
+ readOnly: true,
1569
+ },
1570
+ isCancellable: { armPath: ["isCancellable"], value: createBooleanShape(), readOnly: true },
1571
+ isUserError: { armPath: ["isUserError"], value: createBooleanShape(), readOnly: true },
1572
+ managedInstanceName: {
1573
+ armPath: ["managedInstanceName"],
1574
+ value: createStringShape(),
1575
+ readOnly: true,
1576
+ },
1577
+ operation: { armPath: ["operation"], value: createStringShape(), readOnly: true },
1578
+ operationFriendlyName: {
1579
+ armPath: ["operationFriendlyName"],
1580
+ value: createStringShape(),
1581
+ readOnly: true,
1582
+ },
1583
+ operationParameters: {
1584
+ armPath: ["operationParameters"],
1585
+ value: createDeferredShape(() => managedInstanceOperationParametersPairShape),
1586
+ readOnly: true,
1587
+ },
1588
+ operationSteps: {
1589
+ armPath: ["operationSteps"],
1590
+ value: createDeferredShape(() => managedInstanceOperationStepsShape),
1591
+ readOnly: true,
1592
+ },
1593
+ percentComplete: { armPath: ["percentComplete"], value: createNumberShape(), readOnly: true },
1594
+ startTime: {
1595
+ armPath: ["startTime"],
1596
+ value: createDateShape({
1597
+ kind: "date-time-text",
1598
+ source: "utcDateTime",
1599
+ format: "rfc3339",
1600
+ clientMode: "client",
1601
+ wire: { kind: "string" },
1602
+ }),
1603
+ readOnly: true,
1604
+ },
1605
+ state: { armPath: ["state"], value: createUnionShape(), readOnly: true },
1606
+ });
1607
+ export const managedInstanceOperationStepsShape = createFlatModelShape({
1608
+ currentStep: { armPath: ["currentStep"], value: createNumberShape(), readOnly: true },
1609
+ stepsList: {
1610
+ armPath: ["stepsList"],
1611
+ value: createArrayShape(createDeferredShape(() => upsertManagedServerOperationStepWithEstimatesAndDurationShape)),
1612
+ readOnly: true,
1613
+ },
1614
+ totalSteps: { armPath: ["totalSteps"], value: createStringShape(), readOnly: true },
1615
+ });
1616
+ export const managedInstancePairInfoShape = createFlatModelShape({
1617
+ partnerManagedInstanceId: { armPath: ["partnerManagedInstanceId"], value: createStringShape() },
1618
+ primaryManagedInstanceId: { armPath: ["primaryManagedInstanceId"], value: createStringShape() },
1619
+ });
1620
+ export const managedInstancePecPropertyShape = createFlatModelShape({
1621
+ id: { armPath: ["id"], value: createStringShape(), readOnly: true },
1622
+ properties: {
1623
+ armPath: ["properties"],
1624
+ value: createDeferredShape(() => managedInstancePrivateEndpointConnectionPropertiesShape),
1625
+ readOnly: true,
1626
+ },
1627
+ });
1628
+ export const managedInstancePrivateEndpointConnectionPropertiesShape = createFlatModelShape({
1629
+ privateEndpoint: {
1630
+ armPath: ["privateEndpoint"],
1631
+ value: createDeferredShape(() => managedInstancePrivateEndpointPropertyShape),
1632
+ },
1633
+ privateLinkServiceConnectionState: {
1634
+ armPath: ["privateLinkServiceConnectionState"],
1635
+ value: createDeferredShape(() => managedInstancePrivateLinkServiceConnectionStatePropertyShape),
1636
+ },
1637
+ provisioningState: {
1638
+ armPath: ["provisioningState"],
1639
+ value: createStringShape(),
1640
+ readOnly: true,
1641
+ },
1642
+ });
1643
+ export const managedInstancePrivateEndpointPropertyShape = createFlatModelShape({
1644
+ id: { armPath: ["id"], value: createStringShape() },
1645
+ });
1646
+ export const managedInstancePrivateLinkPropertiesShape = createFlatModelShape({
1647
+ groupId: { armPath: ["groupId"], value: createStringShape(), readOnly: true },
1648
+ requiredMembers: {
1649
+ armPath: ["requiredMembers"],
1650
+ value: createArrayShape(createStringShape()),
1651
+ readOnly: true,
1652
+ },
1653
+ requiredZoneNames: {
1654
+ armPath: ["requiredZoneNames"],
1655
+ value: createArrayShape(createStringShape()),
1656
+ readOnly: true,
1657
+ },
1658
+ });
1659
+ export const managedInstancePrivateLinkServiceConnectionStatePropertyShape = createFlatModelShape({
1660
+ actionsRequired: { armPath: ["actionsRequired"], value: createStringShape(), readOnly: true },
1661
+ description: { armPath: ["description"], value: createStringShape() },
1662
+ status: { armPath: ["status"], value: createStringShape() },
1663
+ });
1664
+ export const managedInstancePropertiesShape = createFlatModelShape({
1665
+ administratorLogin: { armPath: ["administratorLogin"], value: createStringShape() },
1666
+ administratorLoginPassword: {
1667
+ armPath: ["administratorLoginPassword"],
1668
+ value: createStringShape(),
1669
+ },
1670
+ administrators: {
1671
+ armPath: ["administrators"],
1672
+ value: createDeferredShape(() => managedInstanceExternalAdministratorShape),
1673
+ },
1674
+ authenticationMetadata: { armPath: ["authenticationMetadata"], value: createUnionShape() },
1675
+ collation: { armPath: ["collation"], value: createStringShape() },
1676
+ createTime: {
1677
+ armPath: ["createTime"],
1678
+ value: createDateShape({
1679
+ kind: "date-time-text",
1680
+ source: "utcDateTime",
1681
+ format: "rfc3339",
1682
+ clientMode: "client",
1683
+ wire: { kind: "string" },
1684
+ }),
1685
+ readOnly: true,
1686
+ },
1687
+ currentBackupStorageRedundancy: {
1688
+ armPath: ["currentBackupStorageRedundancy"],
1689
+ value: createUnionShape(),
1690
+ readOnly: true,
1691
+ },
1692
+ databaseFormat: { armPath: ["databaseFormat"], value: createUnionShape() },
1693
+ dnsZone: { armPath: ["dnsZone"], value: createStringShape(), readOnly: true },
1694
+ dnsZonePartner: { armPath: ["dnsZonePartner"], value: createStringShape() },
1695
+ externalGovernanceStatus: {
1696
+ armPath: ["externalGovernanceStatus"],
1697
+ value: createUnionShape(),
1698
+ readOnly: true,
1699
+ },
1700
+ fullyQualifiedDomainName: {
1701
+ armPath: ["fullyQualifiedDomainName"],
1702
+ value: createStringShape(),
1703
+ readOnly: true,
1704
+ },
1705
+ hybridSecondaryUsage: { armPath: ["hybridSecondaryUsage"], value: createUnionShape() },
1706
+ hybridSecondaryUsageDetected: {
1707
+ armPath: ["hybridSecondaryUsageDetected"],
1708
+ value: createUnionShape(),
1709
+ readOnly: true,
1710
+ },
1711
+ instancePoolId: { armPath: ["instancePoolId"], value: createStringShape() },
1712
+ isGeneralPurposeV2: { armPath: ["isGeneralPurposeV2"], value: createBooleanShape() },
1713
+ keyId: { armPath: ["keyId"], value: createStringShape() },
1714
+ licenseType: { armPath: ["licenseType"], value: createUnionShape() },
1715
+ maintenanceConfigurationId: {
1716
+ armPath: ["maintenanceConfigurationId"],
1717
+ value: createStringShape(),
1718
+ },
1719
+ managedInstanceCreateMode: { armPath: ["managedInstanceCreateMode"], value: createUnionShape() },
1720
+ memorySizeInGb: { armPath: ["memorySizeInGB"], value: createNumberShape() },
1721
+ minimalTlsVersion: { armPath: ["minimalTlsVersion"], value: createStringShape() },
1722
+ pricingModel: { armPath: ["pricingModel"], value: createUnionShape() },
1723
+ primaryUserAssignedIdentityId: {
1724
+ armPath: ["primaryUserAssignedIdentityId"],
1725
+ value: createStringShape(),
1726
+ },
1727
+ privateEndpointConnections: {
1728
+ armPath: ["privateEndpointConnections"],
1729
+ value: createArrayShape(createDeferredShape(() => managedInstancePecPropertyShape)),
1730
+ readOnly: true,
1731
+ },
1732
+ provisioningState: { armPath: ["provisioningState"], value: createUnionShape(), readOnly: true },
1733
+ proxyOverride: { armPath: ["proxyOverride"], value: createUnionShape() },
1734
+ publicDataEndpointEnabled: {
1735
+ armPath: ["publicDataEndpointEnabled"],
1736
+ value: createBooleanShape(),
1737
+ },
1738
+ requestedBackupStorageRedundancy: {
1739
+ armPath: ["requestedBackupStorageRedundancy"],
1740
+ value: createUnionShape(),
1741
+ },
1742
+ requestedLogicalAvailabilityZone: {
1743
+ armPath: ["requestedLogicalAvailabilityZone"],
1744
+ value: createUnionShape(),
1745
+ },
1746
+ restorePointInTime: {
1747
+ armPath: ["restorePointInTime"],
1748
+ value: createDateShape({
1749
+ kind: "date-time-text",
1750
+ source: "utcDateTime",
1751
+ format: "rfc3339",
1752
+ clientMode: "client",
1753
+ wire: { kind: "string" },
1754
+ }),
1755
+ },
1756
+ servicePrincipal: {
1757
+ armPath: ["servicePrincipal"],
1758
+ value: createDeferredShape(() => servicePrincipalShape),
1759
+ },
1760
+ sourceManagedInstanceId: { armPath: ["sourceManagedInstanceId"], value: createStringShape() },
1761
+ state: { armPath: ["state"], value: createStringShape(), readOnly: true },
1762
+ storageIOps: { armPath: ["storageIOps"], value: createNumberShape() },
1763
+ storageSizeInGb: { armPath: ["storageSizeInGB"], value: createNumberShape() },
1764
+ storageThroughputMBps: { armPath: ["storageThroughputMBps"], value: createNumberShape() },
1765
+ subnetId: { armPath: ["subnetId"], value: createStringShape() },
1766
+ timezoneId: { armPath: ["timezoneId"], value: createStringShape() },
1767
+ vCores: { armPath: ["vCores"], value: createNumberShape() },
1768
+ virtualClusterId: { armPath: ["virtualClusterId"], value: createStringShape(), readOnly: true },
1769
+ zoneRedundant: { armPath: ["zoneRedundant"], value: createBooleanShape() },
1770
+ });
1771
+ export const managedInstanceVulnerabilityAssessmentPropertiesShape = createFlatModelShape({
1772
+ recurringScans: {
1773
+ armPath: ["recurringScans"],
1774
+ value: createDeferredShape(() => vulnerabilityAssessmentRecurringScansPropertiesShape),
1775
+ },
1776
+ storageAccountAccessKey: { armPath: ["storageAccountAccessKey"], value: createStringShape() },
1777
+ storageContainerPath: { armPath: ["storageContainerPath"], value: createStringShape() },
1778
+ storageContainerSasKey: { armPath: ["storageContainerSasKey"], value: createStringShape() },
1779
+ });
1780
+ export const managedLedgerDigestUploadsPropertiesShape = createFlatModelShape({
1781
+ digestStorageEndpoint: { armPath: ["digestStorageEndpoint"], value: createStringShape() },
1782
+ state: { armPath: ["state"], value: createUnionShape(), readOnly: true },
1783
+ });
1784
+ export const managedServerDnsAliasPropertiesShape = createFlatModelShape({
1785
+ azureDnsRecord: { armPath: ["azureDnsRecord"], value: createStringShape(), readOnly: true },
1786
+ publicAzureDnsRecord: {
1787
+ armPath: ["publicAzureDnsRecord"],
1788
+ value: createStringShape(),
1789
+ readOnly: true,
1790
+ },
1791
+ });
1792
+ export const managedTransparentDataEncryptionPropertiesShape = createFlatModelShape({
1793
+ state: { armPath: ["state"], value: createEnumShape() },
1794
+ });
1795
+ export const networkIsolationSettingsShape = createFlatModelShape({
1796
+ sqlServerResourceId: { armPath: ["sqlServerResourceId"], value: createStringShape() },
1797
+ storageAccountResourceId: { armPath: ["storageAccountResourceId"], value: createStringShape() },
1798
+ });
1799
+ export const networkSecurityPerimeterConfigurationPropertiesShape = createFlatModelShape({
1800
+ networkSecurityPerimeter: {
1801
+ armPath: ["networkSecurityPerimeter"],
1802
+ value: createDeferredShape(() => nspConfigPerimeterShape),
1803
+ readOnly: true,
1804
+ },
1805
+ profile: {
1806
+ armPath: ["profile"],
1807
+ value: createDeferredShape(() => nspConfigProfileShape),
1808
+ readOnly: true,
1809
+ },
1810
+ provisioningIssues: {
1811
+ armPath: ["provisioningIssues"],
1812
+ value: createArrayShape(createDeferredShape(() => nspProvisioningIssueShape)),
1813
+ readOnly: true,
1814
+ },
1815
+ provisioningState: {
1816
+ armPath: ["provisioningState"],
1817
+ value: createStringShape(),
1818
+ readOnly: true,
1819
+ },
1820
+ resourceAssociation: {
1821
+ armPath: ["resourceAssociation"],
1822
+ value: createDeferredShape(() => nspConfigAssociationShape),
1823
+ readOnly: true,
1824
+ },
1825
+ });
1826
+ export const nspConfigAccessRuleShape = createFlatModelShape({
1827
+ name: { armPath: ["name"], value: createStringShape(), readOnly: true },
1828
+ properties: {
1829
+ armPath: ["properties"],
1830
+ value: createDeferredShape(() => nspConfigAccessRulePropertiesShape),
1831
+ readOnly: true,
1832
+ },
1833
+ });
1834
+ export const nspConfigAccessRulePropertiesShape = createFlatModelShape({
1835
+ addressPrefixes: {
1836
+ armPath: ["addressPrefixes"],
1837
+ value: createArrayShape(createStringShape()),
1838
+ readOnly: true,
1839
+ },
1840
+ direction: { armPath: ["direction"], value: createStringShape(), readOnly: true },
1841
+ fullyQualifiedDomainNames: {
1842
+ armPath: ["fullyQualifiedDomainNames"],
1843
+ value: createArrayShape(createStringShape()),
1844
+ readOnly: true,
1845
+ },
1846
+ networkSecurityPerimeters: {
1847
+ armPath: ["networkSecurityPerimeters"],
1848
+ value: createArrayShape(createDeferredShape(() => nspConfigNetworkSecurityPerimeterRuleShape)),
1849
+ readOnly: true,
1850
+ },
1851
+ serviceTags: {
1852
+ armPath: ["serviceTags"],
1853
+ value: createArrayShape(createStringShape()),
1854
+ readOnly: true,
1855
+ },
1856
+ subscriptions: {
1857
+ armPath: ["subscriptions"],
1858
+ value: createArrayShape(createStringShape()),
1859
+ readOnly: true,
1860
+ },
1861
+ });
1862
+ export const nspConfigAssociationShape = createFlatModelShape({
1863
+ accessMode: { armPath: ["accessMode"], value: createStringShape(), readOnly: true },
1864
+ name: { armPath: ["name"], value: createStringShape(), readOnly: true },
1865
+ });
1866
+ export const nspConfigNetworkSecurityPerimeterRuleShape = createFlatModelShape({
1867
+ id: { armPath: ["id"], value: createStringShape(), readOnly: true },
1868
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
1869
+ perimeterGuid: { armPath: ["perimeterGuid"], value: createStringShape(), readOnly: true },
1870
+ });
1871
+ export const nspConfigPerimeterShape = createFlatModelShape({
1872
+ id: { armPath: ["id"], value: createStringShape(), readOnly: true },
1873
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
1874
+ perimeterGuid: { armPath: ["perimeterGuid"], value: createStringShape(), readOnly: true },
1875
+ });
1876
+ export const nspConfigProfileShape = createFlatModelShape({
1877
+ accessRules: {
1878
+ armPath: ["accessRules"],
1879
+ value: createArrayShape(createDeferredShape(() => nspConfigAccessRuleShape)),
1880
+ readOnly: true,
1881
+ },
1882
+ accessRulesVersion: {
1883
+ armPath: ["accessRulesVersion"],
1884
+ value: createStringShape(),
1885
+ readOnly: true,
1886
+ },
1887
+ name: { armPath: ["name"], value: createStringShape(), readOnly: true },
1888
+ });
1889
+ export const nspProvisioningIssueShape = createFlatModelShape({
1890
+ name: { armPath: ["name"], value: createStringShape(), readOnly: true },
1891
+ properties: {
1892
+ armPath: ["properties"],
1893
+ value: createDeferredShape(() => nspProvisioningIssuePropertiesShape),
1894
+ readOnly: true,
1895
+ },
1896
+ });
1897
+ export const nspProvisioningIssuePropertiesShape = createFlatModelShape({
1898
+ description: { armPath: ["description"], value: createStringShape(), readOnly: true },
1899
+ issueType: { armPath: ["issueType"], value: createStringShape(), readOnly: true },
1900
+ severity: { armPath: ["severity"], value: createStringShape(), readOnly: true },
1901
+ suggestedAccessRules: {
1902
+ armPath: ["suggestedAccessRules"],
1903
+ value: createArrayShape(createStringShape()),
1904
+ readOnly: true,
1905
+ },
1906
+ suggestedResourceIds: {
1907
+ armPath: ["suggestedResourceIds"],
1908
+ value: createArrayShape(createStringShape()),
1909
+ readOnly: true,
1910
+ },
1911
+ });
1912
+ export const outboundFirewallRulePropertiesShape = createFlatModelShape({
1913
+ provisioningState: { armPath: ["provisioningState"], value: createStringShape(), readOnly: true },
1914
+ });
1915
+ export const partnerInfoShape = createFlatModelShape({
1916
+ id: { armPath: ["id"], value: createStringShape() },
1917
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
1918
+ replicationRole: { armPath: ["replicationRole"], value: createUnionShape(), readOnly: true },
1919
+ });
1920
+ export const partnerRegionInfoShape = createFlatModelShape({
1921
+ location: { armPath: ["location"], value: createStringShape() },
1922
+ replicationRole: { armPath: ["replicationRole"], value: createUnionShape(), readOnly: true },
1923
+ });
1924
+ export const privateEndpointConnectionPropertiesShape = createFlatModelShape({
1925
+ groupIds: { armPath: ["groupIds"], value: createArrayShape(createStringShape()), readOnly: true },
1926
+ privateEndpoint: {
1927
+ armPath: ["privateEndpoint"],
1928
+ value: createDeferredShape(() => privateEndpointPropertyShape),
1929
+ },
1930
+ privateLinkServiceConnectionState: {
1931
+ armPath: ["privateLinkServiceConnectionState"],
1932
+ value: createDeferredShape(() => privateLinkServiceConnectionStatePropertyShape),
1933
+ },
1934
+ provisioningState: { armPath: ["provisioningState"], value: createUnionShape(), readOnly: true },
1935
+ });
1936
+ export const privateEndpointPropertyShape = createFlatModelShape({
1937
+ id: { armPath: ["id"], value: createStringShape() },
1938
+ });
1939
+ export const privateLinkResourcePropertiesShape = createFlatModelShape({
1940
+ groupId: { armPath: ["groupId"], value: createStringShape(), readOnly: true },
1941
+ requiredMembers: {
1942
+ armPath: ["requiredMembers"],
1943
+ value: createArrayShape(createStringShape()),
1944
+ readOnly: true,
1945
+ },
1946
+ requiredZoneNames: {
1947
+ armPath: ["requiredZoneNames"],
1948
+ value: createArrayShape(createStringShape()),
1949
+ readOnly: true,
1950
+ },
1951
+ });
1952
+ export const privateLinkServiceConnectionStatePropertyShape = createFlatModelShape({
1953
+ actionsRequired: { armPath: ["actionsRequired"], value: createUnionShape(), readOnly: true },
1954
+ description: { armPath: ["description"], value: createStringShape() },
1955
+ status: { armPath: ["status"], value: createUnionShape() },
1956
+ });
1957
+ export const queryCheckShape = createFlatModelShape({
1958
+ columnNames: {
1959
+ armPath: ["columnNames"],
1960
+ value: createArrayShape(createStringShape()),
1961
+ readOnly: true,
1962
+ },
1963
+ expectedResult: {
1964
+ armPath: ["expectedResult"],
1965
+ value: createArrayShape(createArrayShape(createStringShape())),
1966
+ readOnly: true,
1967
+ },
1968
+ query: { armPath: ["query"], value: createStringShape(), readOnly: true },
1969
+ });
1970
+ export const queryPropertiesShape = createFlatModelShape({
1971
+ queryText: { armPath: ["queryText"], value: createStringShape(), readOnly: true },
1972
+ });
1973
+ export const recommendedActionErrorInfoShape = createFlatModelShape({
1974
+ errorCode: { armPath: ["errorCode"], value: createStringShape(), readOnly: true },
1975
+ isRetryable: { armPath: ["isRetryable"], value: createEnumShape(), readOnly: true },
1976
+ });
1977
+ export const recommendedActionImpactRecordShape = createFlatModelShape({
1978
+ absoluteValue: { armPath: ["absoluteValue"], value: createNumberShape(), readOnly: true },
1979
+ changeValueAbsolute: {
1980
+ armPath: ["changeValueAbsolute"],
1981
+ value: createNumberShape(),
1982
+ readOnly: true,
1983
+ },
1984
+ changeValueRelative: {
1985
+ armPath: ["changeValueRelative"],
1986
+ value: createNumberShape(),
1987
+ readOnly: true,
1988
+ },
1989
+ dimensionName: { armPath: ["dimensionName"], value: createStringShape(), readOnly: true },
1990
+ unit: { armPath: ["unit"], value: createStringShape(), readOnly: true },
1991
+ });
1992
+ export const recommendedActionImplementationInfoShape = createFlatModelShape({
1993
+ method: { armPath: ["method"], value: createEnumShape(), readOnly: true },
1994
+ script: { armPath: ["script"], value: createStringShape(), readOnly: true },
1995
+ });
1996
+ export const recommendedActionMetricInfoShape = createFlatModelShape({
1997
+ metricName: { armPath: ["metricName"], value: createStringShape(), readOnly: true },
1998
+ startTime: {
1999
+ armPath: ["startTime"],
2000
+ value: createDateShape({
2001
+ kind: "date-time-text",
2002
+ source: "utcDateTime",
2003
+ format: "rfc3339",
2004
+ clientMode: "client",
2005
+ wire: { kind: "string" },
2006
+ }),
2007
+ readOnly: true,
2008
+ },
2009
+ timeGrain: { armPath: ["timeGrain"], value: createStringShape(), readOnly: true },
2010
+ unit: { armPath: ["unit"], value: createStringShape(), readOnly: true },
2011
+ value: { armPath: ["value"], value: createNumberShape(), readOnly: true },
2012
+ });
2013
+ export const recommendedActionPropertiesShape = createFlatModelShape({
2014
+ details: { armPath: ["details"], value: createRecordShape(createStringShape()), readOnly: true },
2015
+ errorDetails: {
2016
+ armPath: ["errorDetails"],
2017
+ value: createDeferredShape(() => recommendedActionErrorInfoShape),
2018
+ readOnly: true,
2019
+ },
2020
+ estimatedImpact: {
2021
+ armPath: ["estimatedImpact"],
2022
+ value: createArrayShape(createDeferredShape(() => recommendedActionImpactRecordShape)),
2023
+ readOnly: true,
2024
+ },
2025
+ executeActionDuration: {
2026
+ armPath: ["executeActionDuration"],
2027
+ value: createStringShape({
2028
+ kind: "duration-iso8601",
2029
+ source: "duration",
2030
+ clientMode: "wire",
2031
+ wire: { kind: "string" },
2032
+ }),
2033
+ readOnly: true,
2034
+ },
2035
+ executeActionInitiatedBy: {
2036
+ armPath: ["executeActionInitiatedBy"],
2037
+ value: createEnumShape(),
2038
+ readOnly: true,
2039
+ },
2040
+ executeActionInitiatedTime: {
2041
+ armPath: ["executeActionInitiatedTime"],
2042
+ value: createDateShape({
2043
+ kind: "date-time-text",
2044
+ source: "utcDateTime",
2045
+ format: "rfc3339",
2046
+ clientMode: "client",
2047
+ wire: { kind: "string" },
2048
+ }),
2049
+ readOnly: true,
2050
+ },
2051
+ executeActionStartTime: {
2052
+ armPath: ["executeActionStartTime"],
2053
+ value: createDateShape({
2054
+ kind: "date-time-text",
2055
+ source: "utcDateTime",
2056
+ format: "rfc3339",
2057
+ clientMode: "client",
2058
+ wire: { kind: "string" },
2059
+ }),
2060
+ readOnly: true,
2061
+ },
2062
+ implementationDetails: {
2063
+ armPath: ["implementationDetails"],
2064
+ value: createDeferredShape(() => recommendedActionImplementationInfoShape),
2065
+ readOnly: true,
2066
+ },
2067
+ isArchivedAction: { armPath: ["isArchivedAction"], value: createBooleanShape(), readOnly: true },
2068
+ isExecutableAction: {
2069
+ armPath: ["isExecutableAction"],
2070
+ value: createBooleanShape(),
2071
+ readOnly: true,
2072
+ },
2073
+ isRevertableAction: {
2074
+ armPath: ["isRevertableAction"],
2075
+ value: createBooleanShape(),
2076
+ readOnly: true,
2077
+ },
2078
+ lastRefresh: {
2079
+ armPath: ["lastRefresh"],
2080
+ value: createDateShape({
2081
+ kind: "date-time-text",
2082
+ source: "utcDateTime",
2083
+ format: "rfc3339",
2084
+ clientMode: "client",
2085
+ wire: { kind: "string" },
2086
+ }),
2087
+ readOnly: true,
2088
+ },
2089
+ linkedObjects: {
2090
+ armPath: ["linkedObjects"],
2091
+ value: createArrayShape(createStringShape()),
2092
+ readOnly: true,
2093
+ },
2094
+ observedImpact: {
2095
+ armPath: ["observedImpact"],
2096
+ value: createArrayShape(createDeferredShape(() => recommendedActionImpactRecordShape)),
2097
+ readOnly: true,
2098
+ },
2099
+ recommendationReason: {
2100
+ armPath: ["recommendationReason"],
2101
+ value: createStringShape(),
2102
+ readOnly: true,
2103
+ },
2104
+ revertActionDuration: {
2105
+ armPath: ["revertActionDuration"],
2106
+ value: createStringShape({
2107
+ kind: "duration-iso8601",
2108
+ source: "duration",
2109
+ clientMode: "wire",
2110
+ wire: { kind: "string" },
2111
+ }),
2112
+ readOnly: true,
2113
+ },
2114
+ revertActionInitiatedBy: {
2115
+ armPath: ["revertActionInitiatedBy"],
2116
+ value: createEnumShape(),
2117
+ readOnly: true,
2118
+ },
2119
+ revertActionInitiatedTime: {
2120
+ armPath: ["revertActionInitiatedTime"],
2121
+ value: createDateShape({
2122
+ kind: "date-time-text",
2123
+ source: "utcDateTime",
2124
+ format: "rfc3339",
2125
+ clientMode: "client",
2126
+ wire: { kind: "string" },
2127
+ }),
2128
+ readOnly: true,
2129
+ },
2130
+ revertActionStartTime: {
2131
+ armPath: ["revertActionStartTime"],
2132
+ value: createDateShape({
2133
+ kind: "date-time-text",
2134
+ source: "utcDateTime",
2135
+ format: "rfc3339",
2136
+ clientMode: "client",
2137
+ wire: { kind: "string" },
2138
+ }),
2139
+ readOnly: true,
2140
+ },
2141
+ score: { armPath: ["score"], value: createNumberShape(), readOnly: true },
2142
+ state: { armPath: ["state"], value: createDeferredShape(() => recommendedActionStateInfoShape) },
2143
+ timeSeries: {
2144
+ armPath: ["timeSeries"],
2145
+ value: createArrayShape(createDeferredShape(() => recommendedActionMetricInfoShape)),
2146
+ readOnly: true,
2147
+ },
2148
+ validSince: {
2149
+ armPath: ["validSince"],
2150
+ value: createDateShape({
2151
+ kind: "date-time-text",
2152
+ source: "utcDateTime",
2153
+ format: "rfc3339",
2154
+ clientMode: "client",
2155
+ wire: { kind: "string" },
2156
+ }),
2157
+ readOnly: true,
2158
+ },
2159
+ });
2160
+ export const recommendedActionStateInfoShape = createFlatModelShape({
2161
+ actionInitiatedBy: { armPath: ["actionInitiatedBy"], value: createEnumShape(), readOnly: true },
2162
+ currentValue: { armPath: ["currentValue"], value: createUnionShape() },
2163
+ lastModified: {
2164
+ armPath: ["lastModified"],
2165
+ value: createDateShape({
2166
+ kind: "date-time-text",
2167
+ source: "utcDateTime",
2168
+ format: "rfc3339",
2169
+ clientMode: "client",
2170
+ wire: { kind: "string" },
2171
+ }),
2172
+ readOnly: true,
2173
+ },
2174
+ });
2175
+ export const recoverableDatabasePropertiesShape = createFlatModelShape({
2176
+ edition: { armPath: ["edition"], value: createStringShape(), readOnly: true },
2177
+ elasticPoolName: { armPath: ["elasticPoolName"], value: createStringShape(), readOnly: true },
2178
+ keys: {
2179
+ armPath: ["keys"],
2180
+ value: createRecordShape(createDeferredShape(() => databaseKeyShape)),
2181
+ readOnly: true,
2182
+ },
2183
+ lastAvailableBackupDate: {
2184
+ armPath: ["lastAvailableBackupDate"],
2185
+ value: createDateShape({
2186
+ kind: "date-time-text",
2187
+ source: "utcDateTime",
2188
+ format: "rfc3339",
2189
+ clientMode: "client",
2190
+ wire: { kind: "string" },
2191
+ }),
2192
+ readOnly: true,
2193
+ },
2194
+ serviceLevelObjective: {
2195
+ armPath: ["serviceLevelObjective"],
2196
+ value: createStringShape(),
2197
+ readOnly: true,
2198
+ },
2199
+ });
2200
+ export const recoverableManagedDatabasePropertiesShape = createFlatModelShape({
2201
+ lastAvailableBackupDate: {
2202
+ armPath: ["lastAvailableBackupDate"],
2203
+ value: createStringShape(),
2204
+ readOnly: true,
2205
+ },
2206
+ });
2207
+ export const remediationShape = createFlatModelShape({
2208
+ automated: { armPath: ["automated"], value: createBooleanShape(), readOnly: true },
2209
+ description: { armPath: ["description"], value: createStringShape(), readOnly: true },
2210
+ portalLink: { armPath: ["portalLink"], value: createStringShape(), readOnly: true },
2211
+ scripts: { armPath: ["scripts"], value: createArrayShape(createStringShape()), readOnly: true },
2212
+ });
2213
+ export const replicationLinkPropertiesShape = createFlatModelShape({
2214
+ isTerminationAllowed: {
2215
+ armPath: ["isTerminationAllowed"],
2216
+ value: createBooleanShape(),
2217
+ readOnly: true,
2218
+ },
2219
+ linkType: { armPath: ["linkType"], value: createUnionShape() },
2220
+ partnerDatabase: { armPath: ["partnerDatabase"], value: createStringShape(), readOnly: true },
2221
+ partnerDatabaseId: { armPath: ["partnerDatabaseId"], value: createStringShape(), readOnly: true },
2222
+ partnerLocation: { armPath: ["partnerLocation"], value: createStringShape(), readOnly: true },
2223
+ partnerRole: { armPath: ["partnerRole"], value: createEnumShape(), readOnly: true },
2224
+ partnerServer: { armPath: ["partnerServer"], value: createStringShape(), readOnly: true },
2225
+ percentComplete: { armPath: ["percentComplete"], value: createNumberShape(), readOnly: true },
2226
+ replicationMode: { armPath: ["replicationMode"], value: createStringShape(), readOnly: true },
2227
+ replicationState: { armPath: ["replicationState"], value: createUnionShape(), readOnly: true },
2228
+ role: { armPath: ["role"], value: createEnumShape(), readOnly: true },
2229
+ startTime: {
2230
+ armPath: ["startTime"],
2231
+ value: createDateShape({
2232
+ kind: "date-time-text",
2233
+ source: "utcDateTime",
2234
+ format: "rfc3339",
2235
+ clientMode: "client",
2236
+ wire: { kind: "string" },
2237
+ }),
2238
+ readOnly: true,
2239
+ },
2240
+ });
2241
+ export const resourceIdentityShape = createFlatModelShape({
2242
+ principalId: { armPath: ["principalId"], value: createStringShape(), readOnly: true },
2243
+ tenantId: { armPath: ["tenantId"], value: createStringShape(), readOnly: true },
2244
+ type: { armPath: ["type"], value: createUnionShape() },
2245
+ userAssignedIdentities: {
2246
+ armPath: ["userAssignedIdentities"],
2247
+ value: createRecordShape(createDeferredShape(() => userIdentityShape)),
2248
+ },
2249
+ });
2250
+ export const restorableDroppedDatabasePropertiesShape = createFlatModelShape({
2251
+ backupStorageRedundancy: {
2252
+ armPath: ["backupStorageRedundancy"],
2253
+ value: createUnionShape(),
2254
+ readOnly: true,
2255
+ },
2256
+ creationDate: {
2257
+ armPath: ["creationDate"],
2258
+ value: createDateShape({
2259
+ kind: "date-time-text",
2260
+ source: "utcDateTime",
2261
+ format: "rfc3339",
2262
+ clientMode: "client",
2263
+ wire: { kind: "string" },
2264
+ }),
2265
+ readOnly: true,
2266
+ },
2267
+ databaseName: { armPath: ["databaseName"], value: createStringShape(), readOnly: true },
2268
+ deletionDate: {
2269
+ armPath: ["deletionDate"],
2270
+ value: createDateShape({
2271
+ kind: "date-time-text",
2272
+ source: "utcDateTime",
2273
+ format: "rfc3339",
2274
+ clientMode: "client",
2275
+ wire: { kind: "string" },
2276
+ }),
2277
+ readOnly: true,
2278
+ },
2279
+ earliestRestoreDate: {
2280
+ armPath: ["earliestRestoreDate"],
2281
+ value: createDateShape({
2282
+ kind: "date-time-text",
2283
+ source: "utcDateTime",
2284
+ format: "rfc3339",
2285
+ clientMode: "client",
2286
+ wire: { kind: "string" },
2287
+ }),
2288
+ readOnly: true,
2289
+ },
2290
+ keys: {
2291
+ armPath: ["keys"],
2292
+ value: createRecordShape(createDeferredShape(() => databaseKeyShape)),
2293
+ readOnly: true,
2294
+ },
2295
+ maxSizeBytes: { armPath: ["maxSizeBytes"], value: createNumberShape(), readOnly: true },
2296
+ });
2297
+ export const restorableDroppedManagedDatabasePropertiesShape = createFlatModelShape({
2298
+ creationDate: {
2299
+ armPath: ["creationDate"],
2300
+ value: createDateShape({
2301
+ kind: "date-time-text",
2302
+ source: "utcDateTime",
2303
+ format: "rfc3339",
2304
+ clientMode: "client",
2305
+ wire: { kind: "string" },
2306
+ }),
2307
+ readOnly: true,
2308
+ },
2309
+ databaseName: { armPath: ["databaseName"], value: createStringShape(), readOnly: true },
2310
+ deletionDate: {
2311
+ armPath: ["deletionDate"],
2312
+ value: createDateShape({
2313
+ kind: "date-time-text",
2314
+ source: "utcDateTime",
2315
+ format: "rfc3339",
2316
+ clientMode: "client",
2317
+ wire: { kind: "string" },
2318
+ }),
2319
+ readOnly: true,
2320
+ },
2321
+ earliestRestoreDate: {
2322
+ armPath: ["earliestRestoreDate"],
2323
+ value: createDateShape({
2324
+ kind: "date-time-text",
2325
+ source: "utcDateTime",
2326
+ format: "rfc3339",
2327
+ clientMode: "client",
2328
+ wire: { kind: "string" },
2329
+ }),
2330
+ readOnly: true,
2331
+ },
2332
+ });
2333
+ export const restorePointPropertiesShape = createFlatModelShape({
2334
+ earliestRestoreDate: {
2335
+ armPath: ["earliestRestoreDate"],
2336
+ value: createDateShape({
2337
+ kind: "date-time-text",
2338
+ source: "utcDateTime",
2339
+ format: "rfc3339",
2340
+ clientMode: "client",
2341
+ wire: { kind: "string" },
2342
+ }),
2343
+ readOnly: true,
2344
+ },
2345
+ restorePointCreationDate: {
2346
+ armPath: ["restorePointCreationDate"],
2347
+ value: createDateShape({
2348
+ kind: "date-time-text",
2349
+ source: "utcDateTime",
2350
+ format: "rfc3339",
2351
+ clientMode: "client",
2352
+ wire: { kind: "string" },
2353
+ }),
2354
+ readOnly: true,
2355
+ },
2356
+ restorePointLabel: { armPath: ["restorePointLabel"], value: createStringShape(), readOnly: true },
2357
+ restorePointType: { armPath: ["restorePointType"], value: createEnumShape(), readOnly: true },
2358
+ });
2359
+ export const scheduleItemShape = createFlatModelShape({
2360
+ startDay: { armPath: ["startDay"], value: createUnionShape() },
2361
+ startTime: { armPath: ["startTime"], value: createStringShape() },
2362
+ stopDay: { armPath: ["stopDay"], value: createUnionShape() },
2363
+ stopTime: { armPath: ["stopTime"], value: createStringShape() },
2364
+ });
2365
+ export const securityAlertPolicyPropertiesShape = createFlatModelShape({
2366
+ creationTime: {
2367
+ armPath: ["creationTime"],
2368
+ value: createDateShape({
2369
+ kind: "date-time-text",
2370
+ source: "utcDateTime",
2371
+ format: "rfc3339",
2372
+ clientMode: "client",
2373
+ wire: { kind: "string" },
2374
+ }),
2375
+ readOnly: true,
2376
+ },
2377
+ disabledAlerts: { armPath: ["disabledAlerts"], value: createArrayShape(createStringShape()) },
2378
+ emailAccountAdmins: { armPath: ["emailAccountAdmins"], value: createBooleanShape() },
2379
+ emailAddresses: { armPath: ["emailAddresses"], value: createArrayShape(createStringShape()) },
2380
+ retentionDays: { armPath: ["retentionDays"], value: createNumberShape() },
2381
+ state: { armPath: ["state"], value: createEnumShape() },
2382
+ storageAccountAccessKey: { armPath: ["storageAccountAccessKey"], value: createStringShape() },
2383
+ storageEndpoint: { armPath: ["storageEndpoint"], value: createStringShape() },
2384
+ });
2385
+ export const securityAlertsPolicyPropertiesShape = createFlatModelShape({
2386
+ creationTime: {
2387
+ armPath: ["creationTime"],
2388
+ value: createDateShape({
2389
+ kind: "date-time-text",
2390
+ source: "utcDateTime",
2391
+ format: "rfc3339",
2392
+ clientMode: "client",
2393
+ wire: { kind: "string" },
2394
+ }),
2395
+ readOnly: true,
2396
+ },
2397
+ disabledAlerts: { armPath: ["disabledAlerts"], value: createArrayShape(createStringShape()) },
2398
+ emailAccountAdmins: { armPath: ["emailAccountAdmins"], value: createBooleanShape() },
2399
+ emailAddresses: { armPath: ["emailAddresses"], value: createArrayShape(createStringShape()) },
2400
+ retentionDays: { armPath: ["retentionDays"], value: createNumberShape() },
2401
+ state: { armPath: ["state"], value: createEnumShape() },
2402
+ storageAccountAccessKey: { armPath: ["storageAccountAccessKey"], value: createStringShape() },
2403
+ storageEndpoint: { armPath: ["storageEndpoint"], value: createStringShape() },
2404
+ });
2405
+ export const sensitivityLabelPropertiesShape = createFlatModelShape({
2406
+ clientClassificationSource: {
2407
+ armPath: ["clientClassificationSource"],
2408
+ value: createUnionShape(),
2409
+ },
2410
+ columnName: { armPath: ["columnName"], value: createStringShape(), readOnly: true },
2411
+ informationType: { armPath: ["informationType"], value: createStringShape() },
2412
+ informationTypeId: { armPath: ["informationTypeId"], value: createStringShape() },
2413
+ isDisabled: { armPath: ["isDisabled"], value: createBooleanShape(), readOnly: true },
2414
+ labelId: { armPath: ["labelId"], value: createStringShape() },
2415
+ labelName: { armPath: ["labelName"], value: createStringShape() },
2416
+ rank: { armPath: ["rank"], value: createEnumShape() },
2417
+ schemaName: { armPath: ["schemaName"], value: createStringShape(), readOnly: true },
2418
+ tableName: { armPath: ["tableName"], value: createStringShape(), readOnly: true },
2419
+ });
2420
+ export const serverBlobAuditingPolicyPropertiesShape = createFlatModelShape({
2421
+ auditActionsAndGroups: {
2422
+ armPath: ["auditActionsAndGroups"],
2423
+ value: createArrayShape(createStringShape()),
2424
+ },
2425
+ isAzureMonitorTargetEnabled: {
2426
+ armPath: ["isAzureMonitorTargetEnabled"],
2427
+ value: createBooleanShape(),
2428
+ },
2429
+ isDevopsAuditEnabled: { armPath: ["isDevopsAuditEnabled"], value: createBooleanShape() },
2430
+ isManagedIdentityInUse: { armPath: ["isManagedIdentityInUse"], value: createBooleanShape() },
2431
+ isStorageSecondaryKeyInUse: {
2432
+ armPath: ["isStorageSecondaryKeyInUse"],
2433
+ value: createBooleanShape(),
2434
+ },
2435
+ queueDelayMs: { armPath: ["queueDelayMs"], value: createNumberShape() },
2436
+ retentionDays: { armPath: ["retentionDays"], value: createNumberShape() },
2437
+ state: { armPath: ["state"], value: createEnumShape() },
2438
+ storageAccountAccessKey: { armPath: ["storageAccountAccessKey"], value: createStringShape() },
2439
+ storageAccountSubscriptionId: {
2440
+ armPath: ["storageAccountSubscriptionId"],
2441
+ value: createStringShape(),
2442
+ },
2443
+ storageEndpoint: { armPath: ["storageEndpoint"], value: createStringShape() },
2444
+ });
2445
+ export const serverConfigurationOptionPropertiesShape = createFlatModelShape({
2446
+ provisioningState: { armPath: ["provisioningState"], value: createUnionShape(), readOnly: true },
2447
+ serverConfigurationOptionValue: {
2448
+ armPath: ["serverConfigurationOptionValue"],
2449
+ value: createNumberShape(),
2450
+ },
2451
+ });
2452
+ export const serverConnectionPolicyPropertiesShape = createFlatModelShape({
2453
+ connectionType: { armPath: ["connectionType"], value: createUnionShape() },
2454
+ });
2455
+ export const serverDevOpsAuditSettingsPropertiesShape = createFlatModelShape({
2456
+ isAzureMonitorTargetEnabled: {
2457
+ armPath: ["isAzureMonitorTargetEnabled"],
2458
+ value: createBooleanShape(),
2459
+ },
2460
+ isManagedIdentityInUse: { armPath: ["isManagedIdentityInUse"], value: createBooleanShape() },
2461
+ state: { armPath: ["state"], value: createEnumShape() },
2462
+ storageAccountAccessKey: { armPath: ["storageAccountAccessKey"], value: createStringShape() },
2463
+ storageAccountSubscriptionId: {
2464
+ armPath: ["storageAccountSubscriptionId"],
2465
+ value: createStringShape(),
2466
+ },
2467
+ storageEndpoint: { armPath: ["storageEndpoint"], value: createStringShape() },
2468
+ });
2469
+ export const serverDnsAliasPropertiesShape = createFlatModelShape({
2470
+ azureDnsRecord: { armPath: ["azureDnsRecord"], value: createStringShape(), readOnly: true },
2471
+ });
2472
+ export const serverExternalAdministratorShape = createFlatModelShape({
2473
+ administratorType: { armPath: ["administratorType"], value: createUnionShape() },
2474
+ azureAdOnlyAuthentication: {
2475
+ armPath: ["azureADOnlyAuthentication"],
2476
+ value: createBooleanShape(),
2477
+ },
2478
+ login: { armPath: ["login"], value: createStringShape() },
2479
+ principalType: { armPath: ["principalType"], value: createUnionShape() },
2480
+ sid: { armPath: ["sid"], value: createStringShape() },
2481
+ tenantId: { armPath: ["tenantId"], value: createStringShape() },
2482
+ });
2483
+ export const serverFirewallRulePropertiesShape = createFlatModelShape({
2484
+ endIpAddress: { armPath: ["endIpAddress"], value: createStringShape() },
2485
+ startIpAddress: { armPath: ["startIpAddress"], value: createStringShape() },
2486
+ });
2487
+ export const serverInfoShape = createFlatModelShape({
2488
+ serverId: { armPath: ["serverId"], value: createStringShape() },
2489
+ });
2490
+ export const serverKeyPropertiesShape = createFlatModelShape({
2491
+ autoRotationEnabled: {
2492
+ armPath: ["autoRotationEnabled"],
2493
+ value: createBooleanShape(),
2494
+ readOnly: true,
2495
+ },
2496
+ creationDate: {
2497
+ armPath: ["creationDate"],
2498
+ value: createDateShape({
2499
+ kind: "date-time-text",
2500
+ source: "utcDateTime",
2501
+ format: "rfc3339",
2502
+ clientMode: "client",
2503
+ wire: { kind: "string" },
2504
+ }),
2505
+ readOnly: true,
2506
+ },
2507
+ keyVersion: { armPath: ["keyVersion"], value: createStringShape(), readOnly: true },
2508
+ serverKeyType: { armPath: ["serverKeyType"], value: createUnionShape() },
2509
+ subregion: { armPath: ["subregion"], value: createStringShape(), readOnly: true },
2510
+ thumbprint: { armPath: ["thumbprint"], value: createStringShape(), readOnly: true },
2511
+ uri: { armPath: ["uri"], value: createStringShape() },
2512
+ });
2513
+ export const serverPropertiesShape = createFlatModelShape({
2514
+ administratorLogin: { armPath: ["administratorLogin"], value: createStringShape() },
2515
+ administratorLoginPassword: {
2516
+ armPath: ["administratorLoginPassword"],
2517
+ value: createStringShape(),
2518
+ },
2519
+ administrators: {
2520
+ armPath: ["administrators"],
2521
+ value: createDeferredShape(() => serverExternalAdministratorShape),
2522
+ },
2523
+ createMode: { armPath: ["createMode"], value: createUnionShape() },
2524
+ externalGovernanceStatus: {
2525
+ armPath: ["externalGovernanceStatus"],
2526
+ value: createUnionShape(),
2527
+ readOnly: true,
2528
+ },
2529
+ federatedClientId: { armPath: ["federatedClientId"], value: createStringShape() },
2530
+ fullyQualifiedDomainName: {
2531
+ armPath: ["fullyQualifiedDomainName"],
2532
+ value: createStringShape(),
2533
+ readOnly: true,
2534
+ },
2535
+ isIPv6Enabled: { armPath: ["isIPv6Enabled"], value: createUnionShape() },
2536
+ keyId: { armPath: ["keyId"], value: createStringShape() },
2537
+ minimalTlsVersion: { armPath: ["minimalTlsVersion"], value: createUnionShape() },
2538
+ primaryUserAssignedIdentityId: {
2539
+ armPath: ["primaryUserAssignedIdentityId"],
2540
+ value: createStringShape(),
2541
+ },
2542
+ privateEndpointConnections: {
2543
+ armPath: ["privateEndpointConnections"],
2544
+ value: createArrayShape(createDeferredShape(() => sqlServerPrivateEndpointConnectionShape)),
2545
+ readOnly: true,
2546
+ },
2547
+ publicNetworkAccess: { armPath: ["publicNetworkAccess"], value: createUnionShape() },
2548
+ restrictOutboundNetworkAccess: {
2549
+ armPath: ["restrictOutboundNetworkAccess"],
2550
+ value: createUnionShape(),
2551
+ },
2552
+ retentionDays: { armPath: ["retentionDays"], value: createNumberShape() },
2553
+ state: { armPath: ["state"], value: createStringShape(), readOnly: true },
2554
+ version: { armPath: ["version"], value: createStringShape() },
2555
+ workspaceFeature: { armPath: ["workspaceFeature"], value: createUnionShape(), readOnly: true },
2556
+ });
2557
+ export const serverTrustCertificatePropertiesShape = createFlatModelShape({
2558
+ certificateName: { armPath: ["certificateName"], value: createStringShape(), readOnly: true },
2559
+ publicBlob: { armPath: ["publicBlob"], value: createStringShape() },
2560
+ thumbprint: { armPath: ["thumbprint"], value: createStringShape(), readOnly: true },
2561
+ });
2562
+ export const serverTrustGroupPropertiesShape = createFlatModelShape({
2563
+ groupMembers: {
2564
+ armPath: ["groupMembers"],
2565
+ value: createArrayShape(createDeferredShape(() => serverInfoShape)),
2566
+ },
2567
+ trustScopes: { armPath: ["trustScopes"], value: createArrayShape(createUnionShape()) },
2568
+ });
2569
+ export const serverVulnerabilityAssessmentPropertiesShape = createFlatModelShape({
2570
+ recurringScans: {
2571
+ armPath: ["recurringScans"],
2572
+ value: createDeferredShape(() => vulnerabilityAssessmentRecurringScansPropertiesShape),
2573
+ },
2574
+ storageAccountAccessKey: { armPath: ["storageAccountAccessKey"], value: createStringShape() },
2575
+ storageContainerPath: { armPath: ["storageContainerPath"], value: createStringShape() },
2576
+ storageContainerSasKey: { armPath: ["storageContainerSasKey"], value: createStringShape() },
2577
+ });
2578
+ export const servicePrincipalShape = createFlatModelShape({
2579
+ clientId: { armPath: ["clientId"], value: createStringShape(), readOnly: true },
2580
+ principalId: { armPath: ["principalId"], value: createStringShape(), readOnly: true },
2581
+ tenantId: { armPath: ["tenantId"], value: createStringShape(), readOnly: true },
2582
+ type: { armPath: ["type"], value: createUnionShape() },
2583
+ });
2584
+ export const skuShape = createFlatModelShape({
2585
+ capacity: { armPath: ["capacity"], value: createNumberShape() },
2586
+ family: { armPath: ["family"], value: createStringShape() },
2587
+ name: { armPath: ["name"], value: createStringShape() },
2588
+ size: { armPath: ["size"], value: createStringShape() },
2589
+ tier: { armPath: ["tier"], value: createStringShape() },
2590
+ });
2591
+ export const sqlAgentConfigurationPropertiesShape = createFlatModelShape({
2592
+ state: { armPath: ["state"], value: createUnionShape() },
2593
+ });
2594
+ export const sqlRecommendedActionShape = createFlatModelShape({
2595
+ id: { armPath: ["id"], value: createStringShape(), readOnly: true },
2596
+ kind: { armPath: ["kind"], value: createStringShape(), readOnly: true },
2597
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
2598
+ name: { armPath: ["name"], value: createStringShape(), readOnly: true },
2599
+ properties: {
2600
+ armPath: ["properties"],
2601
+ value: createDeferredShape(() => recommendedActionPropertiesShape),
2602
+ },
2603
+ systemData: {
2604
+ armPath: ["systemData"],
2605
+ value: createDeferredShape(() => systemDataShape),
2606
+ readOnly: true,
2607
+ },
2608
+ type: { armPath: ["type"], value: createStringShape(), readOnly: true },
2609
+ });
2610
+ export const sqlServerPrivateEndpointConnectionShape = createFlatModelShape({
2611
+ id: { armPath: ["id"], value: createStringShape(), readOnly: true },
2612
+ properties: {
2613
+ armPath: ["properties"],
2614
+ value: createDeferredShape(() => privateEndpointConnectionPropertiesShape),
2615
+ readOnly: true,
2616
+ },
2617
+ });
2618
+ export const sqlVulnerabilityAssessmentPolicyPropertiesShape = createFlatModelShape({
2619
+ state: { armPath: ["state"], value: createEnumShape() },
2620
+ });
2621
+ export const sqlVulnerabilityAssessmentScanErrorShape = createFlatModelShape({
2622
+ code: { armPath: ["code"], value: createStringShape(), readOnly: true },
2623
+ message: { armPath: ["message"], value: createStringShape(), readOnly: true },
2624
+ });
2625
+ export const sqlVulnerabilityAssessmentScanRecordPropertiesShape = createFlatModelShape({
2626
+ database: { armPath: ["database"], value: createStringShape(), readOnly: true },
2627
+ endTime: {
2628
+ armPath: ["endTime"],
2629
+ value: createDateShape({
2630
+ kind: "date-time-text",
2631
+ source: "utcDateTime",
2632
+ format: "rfc3339",
2633
+ clientMode: "client",
2634
+ wire: { kind: "string" },
2635
+ }),
2636
+ readOnly: true,
2637
+ },
2638
+ errors: {
2639
+ armPath: ["errors"],
2640
+ value: createArrayShape(createDeferredShape(() => sqlVulnerabilityAssessmentScanErrorShape)),
2641
+ readOnly: true,
2642
+ },
2643
+ highSeverityFailedRulesCount: {
2644
+ armPath: ["highSeverityFailedRulesCount"],
2645
+ value: createNumberShape(),
2646
+ readOnly: true,
2647
+ },
2648
+ isBaselineApplied: {
2649
+ armPath: ["isBaselineApplied"],
2650
+ value: createBooleanShape(),
2651
+ readOnly: true,
2652
+ },
2653
+ lastScanTime: {
2654
+ armPath: ["lastScanTime"],
2655
+ value: createDateShape({
2656
+ kind: "date-time-text",
2657
+ source: "utcDateTime",
2658
+ format: "rfc3339",
2659
+ clientMode: "client",
2660
+ wire: { kind: "string" },
2661
+ }),
2662
+ readOnly: true,
2663
+ },
2664
+ lowSeverityFailedRulesCount: {
2665
+ armPath: ["lowSeverityFailedRulesCount"],
2666
+ value: createNumberShape(),
2667
+ readOnly: true,
2668
+ },
2669
+ mediumSeverityFailedRulesCount: {
2670
+ armPath: ["mediumSeverityFailedRulesCount"],
2671
+ value: createNumberShape(),
2672
+ readOnly: true,
2673
+ },
2674
+ scanId: { armPath: ["scanId"], value: createStringShape(), readOnly: true },
2675
+ server: { armPath: ["server"], value: createStringShape(), readOnly: true },
2676
+ sqlVersion: { armPath: ["sqlVersion"], value: createStringShape(), readOnly: true },
2677
+ startTime: {
2678
+ armPath: ["startTime"],
2679
+ value: createDateShape({
2680
+ kind: "date-time-text",
2681
+ source: "utcDateTime",
2682
+ format: "rfc3339",
2683
+ clientMode: "client",
2684
+ wire: { kind: "string" },
2685
+ }),
2686
+ readOnly: true,
2687
+ },
2688
+ state: { armPath: ["state"], value: createUnionShape(), readOnly: true },
2689
+ totalFailedRulesCount: {
2690
+ armPath: ["totalFailedRulesCount"],
2691
+ value: createNumberShape(),
2692
+ readOnly: true,
2693
+ },
2694
+ totalPassedRulesCount: {
2695
+ armPath: ["totalPassedRulesCount"],
2696
+ value: createNumberShape(),
2697
+ readOnly: true,
2698
+ },
2699
+ totalRulesCount: { armPath: ["totalRulesCount"], value: createNumberShape(), readOnly: true },
2700
+ triggerType: { armPath: ["triggerType"], value: createUnionShape(), readOnly: true },
2701
+ });
2702
+ export const sqlVulnerabilityAssessmentScanResultPropertiesShape = createFlatModelShape({
2703
+ baselineAdjustedResult: {
2704
+ armPath: ["baselineAdjustedResult"],
2705
+ value: createDeferredShape(() => baselineAdjustedResultShape),
2706
+ readOnly: true,
2707
+ },
2708
+ errorMessage: { armPath: ["errorMessage"], value: createStringShape(), readOnly: true },
2709
+ isTrimmed: { armPath: ["isTrimmed"], value: createBooleanShape(), readOnly: true },
2710
+ queryResults: {
2711
+ armPath: ["queryResults"],
2712
+ value: createArrayShape(createArrayShape(createStringShape())),
2713
+ readOnly: true,
2714
+ },
2715
+ remediation: {
2716
+ armPath: ["remediation"],
2717
+ value: createDeferredShape(() => remediationShape),
2718
+ readOnly: true,
2719
+ },
2720
+ ruleId: { armPath: ["ruleId"], value: createStringShape(), readOnly: true },
2721
+ ruleMetadata: {
2722
+ armPath: ["ruleMetadata"],
2723
+ value: createDeferredShape(() => vaRuleShape),
2724
+ readOnly: true,
2725
+ },
2726
+ status: { armPath: ["status"], value: createUnionShape(), readOnly: true },
2727
+ });
2728
+ export const startStopManagedInstanceSchedulePropertiesShape = createFlatModelShape({
2729
+ description: { armPath: ["description"], value: createStringShape() },
2730
+ nextExecutionTime: {
2731
+ armPath: ["nextExecutionTime"],
2732
+ value: createStringShape(),
2733
+ readOnly: true,
2734
+ },
2735
+ nextRunAction: { armPath: ["nextRunAction"], value: createStringShape(), readOnly: true },
2736
+ scheduleList: {
2737
+ armPath: ["scheduleList"],
2738
+ value: createArrayShape(createDeferredShape(() => scheduleItemShape)),
2739
+ },
2740
+ timeZoneId: { armPath: ["timeZoneId"], value: createStringShape() },
2741
+ });
2742
+ export const subscriptionUsagePropertiesShape = createFlatModelShape({
2743
+ currentValue: { armPath: ["currentValue"], value: createNumberShape(), readOnly: true },
2744
+ displayName: { armPath: ["displayName"], value: createStringShape(), readOnly: true },
2745
+ limit: { armPath: ["limit"], value: createNumberShape(), readOnly: true },
2746
+ unit: { armPath: ["unit"], value: createStringShape(), readOnly: true },
2747
+ });
2748
+ export const syncAgentPropertiesShape = createFlatModelShape({
2749
+ expiryTime: {
2750
+ armPath: ["expiryTime"],
2751
+ value: createDateShape({
2752
+ kind: "date-time-text",
2753
+ source: "utcDateTime",
2754
+ format: "rfc3339",
2755
+ clientMode: "client",
2756
+ wire: { kind: "string" },
2757
+ }),
2758
+ readOnly: true,
2759
+ },
2760
+ isUpToDate: { armPath: ["isUpToDate"], value: createBooleanShape(), readOnly: true },
2761
+ lastAliveTime: {
2762
+ armPath: ["lastAliveTime"],
2763
+ value: createDateShape({
2764
+ kind: "date-time-text",
2765
+ source: "utcDateTime",
2766
+ format: "rfc3339",
2767
+ clientMode: "client",
2768
+ wire: { kind: "string" },
2769
+ }),
2770
+ readOnly: true,
2771
+ },
2772
+ name: { armPath: ["name"], value: createStringShape(), readOnly: true },
2773
+ state: { armPath: ["state"], value: createUnionShape(), readOnly: true },
2774
+ syncDatabaseId: { armPath: ["syncDatabaseId"], value: createStringShape() },
2775
+ version: { armPath: ["version"], value: createStringShape(), readOnly: true },
2776
+ });
2777
+ export const syncGroupPropertiesShape = createFlatModelShape({
2778
+ conflictLoggingRetentionInDays: {
2779
+ armPath: ["conflictLoggingRetentionInDays"],
2780
+ value: createNumberShape(),
2781
+ },
2782
+ conflictResolutionPolicy: { armPath: ["conflictResolutionPolicy"], value: createUnionShape() },
2783
+ enableConflictLogging: { armPath: ["enableConflictLogging"], value: createBooleanShape() },
2784
+ hubDatabasePassword: { armPath: ["hubDatabasePassword"], value: createStringShape() },
2785
+ hubDatabaseUserName: { armPath: ["hubDatabaseUserName"], value: createStringShape() },
2786
+ interval: { armPath: ["interval"], value: createNumberShape() },
2787
+ lastSyncTime: {
2788
+ armPath: ["lastSyncTime"],
2789
+ value: createDateShape({
2790
+ kind: "date-time-text",
2791
+ source: "utcDateTime",
2792
+ format: "rfc3339",
2793
+ clientMode: "client",
2794
+ wire: { kind: "string" },
2795
+ }),
2796
+ readOnly: true,
2797
+ },
2798
+ privateEndpointName: {
2799
+ armPath: ["privateEndpointName"],
2800
+ value: createStringShape(),
2801
+ readOnly: true,
2802
+ },
2803
+ schema: { armPath: ["schema"], value: createDeferredShape(() => syncGroupSchemaShape) },
2804
+ syncDatabaseId: { armPath: ["syncDatabaseId"], value: createStringShape() },
2805
+ syncState: { armPath: ["syncState"], value: createUnionShape(), readOnly: true },
2806
+ usePrivateLinkConnection: { armPath: ["usePrivateLinkConnection"], value: createBooleanShape() },
2807
+ });
2808
+ export const syncGroupSchemaShape = createFlatModelShape({
2809
+ masterSyncMemberName: { armPath: ["masterSyncMemberName"], value: createStringShape() },
2810
+ tables: {
2811
+ armPath: ["tables"],
2812
+ value: createArrayShape(createDeferredShape(() => syncGroupSchemaTableShape)),
2813
+ },
2814
+ });
2815
+ export const syncGroupSchemaTableShape = createFlatModelShape({
2816
+ columns: {
2817
+ armPath: ["columns"],
2818
+ value: createArrayShape(createDeferredShape(() => syncGroupSchemaTableColumnShape)),
2819
+ },
2820
+ quotedName: { armPath: ["quotedName"], value: createStringShape() },
2821
+ });
2822
+ export const syncGroupSchemaTableColumnShape = createFlatModelShape({
2823
+ dataSize: { armPath: ["dataSize"], value: createStringShape() },
2824
+ dataType: { armPath: ["dataType"], value: createStringShape() },
2825
+ quotedName: { armPath: ["quotedName"], value: createStringShape() },
2826
+ });
2827
+ export const syncMemberPropertiesShape = createFlatModelShape({
2828
+ databaseName: { armPath: ["databaseName"], value: createStringShape() },
2829
+ databaseType: { armPath: ["databaseType"], value: createUnionShape() },
2830
+ password: { armPath: ["password"], value: createStringShape() },
2831
+ privateEndpointName: {
2832
+ armPath: ["privateEndpointName"],
2833
+ value: createStringShape(),
2834
+ readOnly: true,
2835
+ },
2836
+ serverName: { armPath: ["serverName"], value: createStringShape() },
2837
+ sqlServerDatabaseId: { armPath: ["sqlServerDatabaseId"], value: createStringShape() },
2838
+ syncAgentId: { armPath: ["syncAgentId"], value: createStringShape() },
2839
+ syncDirection: { armPath: ["syncDirection"], value: createUnionShape() },
2840
+ syncMemberAzureDatabaseResourceId: {
2841
+ armPath: ["syncMemberAzureDatabaseResourceId"],
2842
+ value: createStringShape(),
2843
+ },
2844
+ syncState: { armPath: ["syncState"], value: createUnionShape(), readOnly: true },
2845
+ usePrivateLinkConnection: { armPath: ["usePrivateLinkConnection"], value: createBooleanShape() },
2846
+ userName: { armPath: ["userName"], value: createStringShape() },
2847
+ });
2848
+ export const systemDataShape = createFlatModelShape({
2849
+ createdAt: {
2850
+ armPath: ["createdAt"],
2851
+ value: createDateShape({
2852
+ kind: "date-time-text",
2853
+ source: "utcDateTime",
2854
+ format: "rfc3339",
2855
+ clientMode: "client",
2856
+ wire: { kind: "string" },
2857
+ }),
2858
+ readOnly: true,
2859
+ },
2860
+ createdBy: { armPath: ["createdBy"], value: createStringShape(), readOnly: true },
2861
+ createdByType: { armPath: ["createdByType"], value: createUnionShape(), readOnly: true },
2862
+ lastModifiedAt: {
2863
+ armPath: ["lastModifiedAt"],
2864
+ value: createDateShape({
2865
+ kind: "date-time-text",
2866
+ source: "utcDateTime",
2867
+ format: "rfc3339",
2868
+ clientMode: "client",
2869
+ wire: { kind: "string" },
2870
+ }),
2871
+ readOnly: true,
2872
+ },
2873
+ lastModifiedBy: { armPath: ["lastModifiedBy"], value: createStringShape(), readOnly: true },
2874
+ lastModifiedByType: {
2875
+ armPath: ["lastModifiedByType"],
2876
+ value: createUnionShape(),
2877
+ readOnly: true,
2878
+ },
2879
+ });
2880
+ export const timeZonePropertiesShape = createFlatModelShape({
2881
+ displayName: { armPath: ["displayName"], value: createStringShape(), readOnly: true },
2882
+ timeZoneId: { armPath: ["timeZoneId"], value: createStringShape(), readOnly: true },
2883
+ });
2884
+ export const transparentDataEncryptionPropertiesShape = createFlatModelShape({
2885
+ scanState: { armPath: ["scanState"], value: createUnionShape() },
2886
+ state: { armPath: ["state"], value: createEnumShape() },
2887
+ });
2888
+ export const upsertManagedServerOperationParametersShape = createFlatModelShape({
2889
+ family: { armPath: ["family"], value: createStringShape(), readOnly: true },
2890
+ storageSizeInGb: { armPath: ["storageSizeInGB"], value: createNumberShape(), readOnly: true },
2891
+ tier: { armPath: ["tier"], value: createStringShape(), readOnly: true },
2892
+ vCores: { armPath: ["vCores"], value: createNumberShape(), readOnly: true },
2893
+ });
2894
+ export const upsertManagedServerOperationStepWithEstimatesAndDurationShape = createFlatModelShape({
2895
+ name: { armPath: ["name"], value: createStringShape(), readOnly: true },
2896
+ order: { armPath: ["order"], value: createNumberShape(), readOnly: true },
2897
+ status: { armPath: ["status"], value: createUnionShape(), readOnly: true },
2898
+ stepEndTime: {
2899
+ armPath: ["stepEndTime"],
2900
+ value: createDateShape({
2901
+ kind: "date-time-text",
2902
+ source: "utcDateTime",
2903
+ format: "rfc3339",
2904
+ clientMode: "client",
2905
+ wire: { kind: "string" },
2906
+ }),
2907
+ readOnly: true,
2908
+ },
2909
+ stepStartTime: {
2910
+ armPath: ["stepStartTime"],
2911
+ value: createDateShape({
2912
+ kind: "date-time-text",
2913
+ source: "utcDateTime",
2914
+ format: "rfc3339",
2915
+ clientMode: "client",
2916
+ wire: { kind: "string" },
2917
+ }),
2918
+ readOnly: true,
2919
+ },
2920
+ timeElapsed: { armPath: ["timeElapsed"], value: createStringShape(), readOnly: true },
2921
+ });
2922
+ export const userIdentityShape = createFlatModelShape({
2923
+ clientId: { armPath: ["clientId"], value: createStringShape(), readOnly: true },
2924
+ principalId: { armPath: ["principalId"], value: createStringShape(), readOnly: true },
2925
+ });
2926
+ export const vaRuleShape = createFlatModelShape({
2927
+ benchmarkReferences: {
2928
+ armPath: ["benchmarkReferences"],
2929
+ value: createArrayShape(createDeferredShape(() => benchmarkReferenceShape)),
2930
+ readOnly: true,
2931
+ },
2932
+ category: { armPath: ["category"], value: createStringShape(), readOnly: true },
2933
+ description: { armPath: ["description"], value: createStringShape(), readOnly: true },
2934
+ queryCheck: {
2935
+ armPath: ["queryCheck"],
2936
+ value: createDeferredShape(() => queryCheckShape),
2937
+ readOnly: true,
2938
+ },
2939
+ rationale: { armPath: ["rationale"], value: createStringShape(), readOnly: true },
2940
+ ruleId: { armPath: ["ruleId"], value: createStringShape(), readOnly: true },
2941
+ ruleType: { armPath: ["ruleType"], value: createUnionShape(), readOnly: true },
2942
+ severity: { armPath: ["severity"], value: createUnionShape(), readOnly: true },
2943
+ title: { armPath: ["title"], value: createStringShape(), readOnly: true },
2944
+ });
2945
+ export const virtualClusterPropertiesShape = createFlatModelShape({
2946
+ childResources: {
2947
+ armPath: ["childResources"],
2948
+ value: createArrayShape(createStringShape()),
2949
+ readOnly: true,
2950
+ },
2951
+ subnetId: { armPath: ["subnetId"], value: createStringShape(), readOnly: true },
2952
+ version: { armPath: ["version"], value: createStringShape() },
2953
+ });
2954
+ export const virtualNetworkRulePropertiesShape = createFlatModelShape({
2955
+ ignoreMissingVnetServiceEndpoint: {
2956
+ armPath: ["ignoreMissingVnetServiceEndpoint"],
2957
+ value: createBooleanShape(),
2958
+ },
2959
+ state: { armPath: ["state"], value: createUnionShape(), readOnly: true },
2960
+ virtualNetworkSubnetId: { armPath: ["virtualNetworkSubnetId"], value: createStringShape() },
2961
+ });
2962
+ export const vulnerabilityAssessmentRecurringScansPropertiesShape = createFlatModelShape({
2963
+ emails: { armPath: ["emails"], value: createArrayShape(createStringShape()) },
2964
+ emailSubscriptionAdmins: { armPath: ["emailSubscriptionAdmins"], value: createBooleanShape() },
2965
+ isEnabled: { armPath: ["isEnabled"], value: createBooleanShape() },
2966
+ });
2967
+ export const vulnerabilityAssessmentScanErrorShape = createFlatModelShape({
2968
+ code: { armPath: ["code"], value: createStringShape(), readOnly: true },
2969
+ message: { armPath: ["message"], value: createStringShape(), readOnly: true },
2970
+ });
2971
+ export const vulnerabilityAssessmentScanRecordPropertiesShape = createFlatModelShape({
2972
+ endTime: {
2973
+ armPath: ["endTime"],
2974
+ value: createDateShape({
2975
+ kind: "date-time-text",
2976
+ source: "utcDateTime",
2977
+ format: "rfc3339",
2978
+ clientMode: "client",
2979
+ wire: { kind: "string" },
2980
+ }),
2981
+ readOnly: true,
2982
+ },
2983
+ errors: {
2984
+ armPath: ["errors"],
2985
+ value: createArrayShape(createDeferredShape(() => vulnerabilityAssessmentScanErrorShape)),
2986
+ readOnly: true,
2987
+ },
2988
+ numberOfFailedSecurityChecks: {
2989
+ armPath: ["numberOfFailedSecurityChecks"],
2990
+ value: createNumberShape(),
2991
+ readOnly: true,
2992
+ },
2993
+ scanId: { armPath: ["scanId"], value: createStringShape(), readOnly: true },
2994
+ startTime: {
2995
+ armPath: ["startTime"],
2996
+ value: createDateShape({
2997
+ kind: "date-time-text",
2998
+ source: "utcDateTime",
2999
+ format: "rfc3339",
3000
+ clientMode: "client",
3001
+ wire: { kind: "string" },
3002
+ }),
3003
+ readOnly: true,
3004
+ },
3005
+ state: { armPath: ["state"], value: createUnionShape(), readOnly: true },
3006
+ storageContainerPath: {
3007
+ armPath: ["storageContainerPath"],
3008
+ value: createStringShape(),
3009
+ readOnly: true,
3010
+ },
3011
+ triggerType: { armPath: ["triggerType"], value: createUnionShape(), readOnly: true },
3012
+ });
3013
+ export const workloadClassifierPropertiesShape = createFlatModelShape({
3014
+ context: { armPath: ["context"], value: createStringShape() },
3015
+ endTime: { armPath: ["endTime"], value: createStringShape() },
3016
+ importance: { armPath: ["importance"], value: createStringShape() },
3017
+ label: { armPath: ["label"], value: createStringShape() },
3018
+ memberName: { armPath: ["memberName"], value: createStringShape() },
3019
+ startTime: { armPath: ["startTime"], value: createStringShape() },
3020
+ });
3021
+ export const workloadGroupPropertiesShape = createFlatModelShape({
3022
+ importance: { armPath: ["importance"], value: createStringShape() },
3023
+ maxResourcePercent: { armPath: ["maxResourcePercent"], value: createNumberShape() },
3024
+ maxResourcePercentPerRequest: {
3025
+ armPath: ["maxResourcePercentPerRequest"],
3026
+ value: createNumberShape(),
3027
+ },
3028
+ minResourcePercent: { armPath: ["minResourcePercent"], value: createNumberShape() },
3029
+ minResourcePercentPerRequest: {
3030
+ armPath: ["minResourcePercentPerRequest"],
3031
+ value: createNumberShape(),
3032
+ },
3033
+ queryExecutionTimeout: { armPath: ["queryExecutionTimeout"], value: createNumberShape() },
3034
+ });
3035
+ //# sourceMappingURL=types.js.map