@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,2234 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { Resource, } from "@azure/provisioning-core";
4
+ import { createAnyShape, createBooleanShape, createDeferredShape, createEnumShape, createFlatModelShape, createRecordShape, createStringLiteralShape, createStringShape, createUnionShape, } from "@azure/provisioning-core/internal";
5
+ import { advancedThreatProtectionPropertiesShape, databaseColumnPropertiesShape, databaseTablePropertiesShape, databaseVulnerabilityAssessmentPropertiesShape, databaseVulnerabilityAssessmentRuleBaselinePropertiesShape, distributedAvailabilityGroupPropertiesShape, endpointCertificatePropertiesShape, managedBackupShortTermRetentionPolicyPropertiesShape, managedDatabasePropertiesShape, managedDatabaseRestoreDetailsPropertiesShape, managedInstanceAdministratorPropertiesShape, managedInstanceAzureAdOnlyAuthPropertiesShape, managedInstanceDtcPropertiesShape, managedInstanceEncryptionProtectorPropertiesShape, managedInstanceKeyPropertiesShape, managedInstanceLongTermRetentionPolicyPropertiesShape, managedInstanceOperationPropertiesShape, managedInstancePrivateEndpointConnectionPropertiesShape, managedInstancePrivateLinkPropertiesShape, managedInstancePropertiesShape, managedInstanceVulnerabilityAssessmentPropertiesShape, managedLedgerDigestUploadsPropertiesShape, managedServerDnsAliasPropertiesShape, managedTransparentDataEncryptionPropertiesShape, queryPropertiesShape, recoverableManagedDatabasePropertiesShape, resourceIdentityShape, restorableDroppedManagedDatabasePropertiesShape, securityAlertPolicyPropertiesShape, securityAlertsPolicyPropertiesShape, sensitivityLabelPropertiesShape, serverConfigurationOptionPropertiesShape, serverTrustCertificatePropertiesShape, skuShape, sqlAgentConfigurationPropertiesShape, startStopManagedInstanceSchedulePropertiesShape, vulnerabilityAssessmentScanRecordPropertiesShape, } from "./types.js";
6
+ const API_VERSION = "2025-01-01";
7
+ /**
8
+ * An Azure SQL managed instance administrator.
9
+ */
10
+ export class ManagedInstanceAdministrator extends Resource {
11
+ static resourceType = "Microsoft.Sql/managedInstances/administrators";
12
+ static apiVersion = API_VERSION;
13
+ static namingRules = {
14
+ abbreviation: "a",
15
+ pattern: {
16
+ regex: "",
17
+ },
18
+ scope: "parent",
19
+ };
20
+ static {
21
+ this.registerShape(createFlatModelShape({
22
+ name: { armPath: ["name"], value: createUnionShape() },
23
+ properties: {
24
+ armPath: ["properties"],
25
+ value: createDeferredShape(() => managedInstanceAdministratorPropertiesShape),
26
+ },
27
+ }));
28
+ this.register();
29
+ }
30
+ /**
31
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
32
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
33
+ *
34
+ * @param props - Resource properties to normalize for the base constructor.
35
+ */
36
+ static buildResourceProps(props) {
37
+ return {
38
+ ...props,
39
+ type: ManagedInstanceAdministrator.resourceType,
40
+ apiVersion: ManagedInstanceAdministrator.apiVersion,
41
+ };
42
+ }
43
+ constructor(context, props, options) {
44
+ super(context, ManagedInstanceAdministrator.buildResourceProps(props), options);
45
+ }
46
+ get name() {
47
+ return this.expr("name");
48
+ }
49
+ set name(value) {
50
+ this.setProperty("name", value);
51
+ }
52
+ /**
53
+ * Resource properties.
54
+ */
55
+ get properties() {
56
+ return this.expr("properties");
57
+ }
58
+ set properties(value) {
59
+ this.setProperty("properties", value);
60
+ }
61
+ }
62
+ /**
63
+ * A managed instance Advanced Threat Protection.
64
+ */
65
+ export class ManagedInstanceAdvancedThreatProtection extends Resource {
66
+ static resourceType = "Microsoft.Sql/managedInstances/advancedThreatProtectionSettings";
67
+ static apiVersion = API_VERSION;
68
+ static namingRules = {
69
+ abbreviation: "atps",
70
+ pattern: {
71
+ regex: "",
72
+ },
73
+ scope: "parent",
74
+ };
75
+ static {
76
+ this.registerShape(createFlatModelShape({
77
+ name: { armPath: ["name"], value: createUnionShape() },
78
+ properties: {
79
+ armPath: ["properties"],
80
+ value: createDeferredShape(() => advancedThreatProtectionPropertiesShape),
81
+ },
82
+ }));
83
+ this.register();
84
+ }
85
+ /**
86
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
87
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
88
+ *
89
+ * @param props - Resource properties to normalize for the base constructor.
90
+ */
91
+ static buildResourceProps(props) {
92
+ return {
93
+ ...props,
94
+ type: ManagedInstanceAdvancedThreatProtection.resourceType,
95
+ apiVersion: ManagedInstanceAdvancedThreatProtection.apiVersion,
96
+ };
97
+ }
98
+ constructor(context, props, options) {
99
+ super(context, ManagedInstanceAdvancedThreatProtection.buildResourceProps(props), options);
100
+ }
101
+ /**
102
+ * The name of the Advanced Threat Protection state.
103
+ */
104
+ get name() {
105
+ return this.expr("name");
106
+ }
107
+ set name(value) {
108
+ this.setProperty("name", value);
109
+ }
110
+ /**
111
+ * Resource properties.
112
+ */
113
+ get properties() {
114
+ return this.expr("properties");
115
+ }
116
+ set properties(value) {
117
+ this.setProperty("properties", value);
118
+ }
119
+ }
120
+ /**
121
+ * Azure Active Directory only authentication.
122
+ */
123
+ export class ManagedInstanceAzureAdOnlyAuthentication extends Resource {
124
+ static resourceType = "Microsoft.Sql/managedInstances/azureADOnlyAuthentications";
125
+ static apiVersion = API_VERSION;
126
+ static namingRules = {
127
+ abbreviation: "aaa",
128
+ pattern: {
129
+ regex: "",
130
+ },
131
+ scope: "parent",
132
+ };
133
+ static {
134
+ this.registerShape(createFlatModelShape({
135
+ name: { armPath: ["name"], value: createUnionShape() },
136
+ properties: {
137
+ armPath: ["properties"],
138
+ value: createDeferredShape(() => managedInstanceAzureAdOnlyAuthPropertiesShape),
139
+ },
140
+ }));
141
+ this.register();
142
+ }
143
+ /**
144
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
145
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
146
+ *
147
+ * @param props - Resource properties to normalize for the base constructor.
148
+ */
149
+ static buildResourceProps(props) {
150
+ return {
151
+ ...props,
152
+ type: ManagedInstanceAzureAdOnlyAuthentication.resourceType,
153
+ apiVersion: ManagedInstanceAzureAdOnlyAuthentication.apiVersion,
154
+ };
155
+ }
156
+ constructor(context, props, options) {
157
+ super(context, ManagedInstanceAzureAdOnlyAuthentication.buildResourceProps(props), options);
158
+ }
159
+ /**
160
+ * The name of server azure active directory only authentication.
161
+ */
162
+ get name() {
163
+ return this.expr("name");
164
+ }
165
+ set name(value) {
166
+ this.setProperty("name", value);
167
+ }
168
+ /**
169
+ * Resource properties.
170
+ */
171
+ get properties() {
172
+ return this.expr("properties");
173
+ }
174
+ set properties(value) {
175
+ this.setProperty("properties", value);
176
+ }
177
+ }
178
+ /**
179
+ * A managed database Advanced Threat Protection.
180
+ */
181
+ export class ManagedDatabaseAdvancedThreatProtection extends Resource {
182
+ static resourceType = "Microsoft.Sql/managedInstances/databases/advancedThreatProtectionSettings";
183
+ static apiVersion = API_VERSION;
184
+ static namingRules = {
185
+ abbreviation: "atps",
186
+ pattern: {
187
+ regex: "",
188
+ },
189
+ scope: "parent",
190
+ };
191
+ static {
192
+ this.registerShape(createFlatModelShape({
193
+ name: { armPath: ["name"], value: createUnionShape() },
194
+ properties: {
195
+ armPath: ["properties"],
196
+ value: createDeferredShape(() => advancedThreatProtectionPropertiesShape),
197
+ },
198
+ }));
199
+ this.register();
200
+ }
201
+ /**
202
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
203
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
204
+ *
205
+ * @param props - Resource properties to normalize for the base constructor.
206
+ */
207
+ static buildResourceProps(props) {
208
+ return {
209
+ ...props,
210
+ type: ManagedDatabaseAdvancedThreatProtection.resourceType,
211
+ apiVersion: ManagedDatabaseAdvancedThreatProtection.apiVersion,
212
+ };
213
+ }
214
+ constructor(context, props, options) {
215
+ super(context, ManagedDatabaseAdvancedThreatProtection.buildResourceProps(props), options);
216
+ }
217
+ /**
218
+ * The name of the Advanced Threat Protection state.
219
+ */
220
+ get name() {
221
+ return this.expr("name");
222
+ }
223
+ set name(value) {
224
+ this.setProperty("name", value);
225
+ }
226
+ /**
227
+ * Resource properties.
228
+ */
229
+ get properties() {
230
+ return this.expr("properties");
231
+ }
232
+ set properties(value) {
233
+ this.setProperty("properties", value);
234
+ }
235
+ }
236
+ /**
237
+ * A long term retention policy.
238
+ */
239
+ export class ManagedInstanceLongTermRetentionPolicy extends Resource {
240
+ static resourceType = "Microsoft.Sql/managedInstances/databases/backupLongTermRetentionPolicies";
241
+ static apiVersion = API_VERSION;
242
+ static namingRules = {
243
+ abbreviation: "bltrp",
244
+ pattern: {
245
+ regex: "",
246
+ },
247
+ scope: "parent",
248
+ };
249
+ static {
250
+ this.registerShape(createFlatModelShape({
251
+ name: { armPath: ["name"], value: createUnionShape() },
252
+ properties: {
253
+ armPath: ["properties"],
254
+ value: createDeferredShape(() => managedInstanceLongTermRetentionPolicyPropertiesShape),
255
+ },
256
+ }));
257
+ this.register();
258
+ }
259
+ /**
260
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
261
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
262
+ *
263
+ * @param props - Resource properties to normalize for the base constructor.
264
+ */
265
+ static buildResourceProps(props) {
266
+ return {
267
+ ...props,
268
+ type: ManagedInstanceLongTermRetentionPolicy.resourceType,
269
+ apiVersion: ManagedInstanceLongTermRetentionPolicy.apiVersion,
270
+ };
271
+ }
272
+ constructor(context, props, options) {
273
+ super(context, ManagedInstanceLongTermRetentionPolicy.buildResourceProps(props), options);
274
+ }
275
+ /**
276
+ * The policy name. Should always be Default.
277
+ */
278
+ get name() {
279
+ return this.expr("name");
280
+ }
281
+ set name(value) {
282
+ this.setProperty("name", value);
283
+ }
284
+ /**
285
+ * Resource properties.
286
+ */
287
+ get properties() {
288
+ return this.expr("properties");
289
+ }
290
+ set properties(value) {
291
+ this.setProperty("properties", value);
292
+ }
293
+ }
294
+ /**
295
+ * A short term retention policy.
296
+ */
297
+ export class ManagedBackupShortTermRetentionPolicy extends Resource {
298
+ static resourceType = "Microsoft.Sql/managedInstances/databases/backupShortTermRetentionPolicies";
299
+ static apiVersion = API_VERSION;
300
+ static namingRules = {
301
+ abbreviation: "bstrp",
302
+ scope: "parent",
303
+ };
304
+ static {
305
+ this.registerShape(createFlatModelShape({
306
+ name: { armPath: ["name"], value: createUnionShape() },
307
+ properties: {
308
+ armPath: ["properties"],
309
+ value: createDeferredShape(() => managedBackupShortTermRetentionPolicyPropertiesShape),
310
+ },
311
+ }));
312
+ this.register();
313
+ }
314
+ /**
315
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
316
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
317
+ *
318
+ * @param props - Resource properties to normalize for the base constructor.
319
+ */
320
+ static buildResourceProps(props) {
321
+ return {
322
+ ...props,
323
+ type: ManagedBackupShortTermRetentionPolicy.resourceType,
324
+ apiVersion: ManagedBackupShortTermRetentionPolicy.apiVersion,
325
+ };
326
+ }
327
+ constructor(context, props, options) {
328
+ super(context, ManagedBackupShortTermRetentionPolicy.buildResourceProps(props), options);
329
+ }
330
+ /**
331
+ * The policy name.
332
+ */
333
+ get name() {
334
+ return this.expr("name");
335
+ }
336
+ set name(value) {
337
+ this.setProperty("name", value);
338
+ }
339
+ /**
340
+ * Resource properties.
341
+ */
342
+ get properties() {
343
+ return this.expr("properties");
344
+ }
345
+ set properties(value) {
346
+ this.setProperty("properties", value);
347
+ }
348
+ }
349
+ /**
350
+ * Azure SQL Database ledger digest upload settings.
351
+ */
352
+ export class ManagedInstanceDatabaseLedgerDigestUpload extends Resource {
353
+ static resourceType = "Microsoft.Sql/managedInstances/databases/ledgerDigestUploads";
354
+ static apiVersion = API_VERSION;
355
+ static namingRules = {
356
+ abbreviation: "ldu",
357
+ pattern: {
358
+ regex: "",
359
+ },
360
+ scope: "parent",
361
+ };
362
+ static {
363
+ this.registerShape(createFlatModelShape({
364
+ name: { armPath: ["name"], value: createUnionShape() },
365
+ properties: {
366
+ armPath: ["properties"],
367
+ value: createDeferredShape(() => managedLedgerDigestUploadsPropertiesShape),
368
+ },
369
+ }));
370
+ this.register();
371
+ }
372
+ /**
373
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
374
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
375
+ *
376
+ * @param props - Resource properties to normalize for the base constructor.
377
+ */
378
+ static buildResourceProps(props) {
379
+ return {
380
+ ...props,
381
+ type: ManagedInstanceDatabaseLedgerDigestUpload.resourceType,
382
+ apiVersion: ManagedInstanceDatabaseLedgerDigestUpload.apiVersion,
383
+ };
384
+ }
385
+ constructor(context, props, options) {
386
+ super(context, ManagedInstanceDatabaseLedgerDigestUpload.buildResourceProps(props), options);
387
+ }
388
+ get name() {
389
+ return this.expr("name");
390
+ }
391
+ set name(value) {
392
+ this.setProperty("name", value);
393
+ }
394
+ /**
395
+ * Resource properties.
396
+ */
397
+ get properties() {
398
+ return this.expr("properties");
399
+ }
400
+ set properties(value) {
401
+ this.setProperty("properties", value);
402
+ }
403
+ }
404
+ /**
405
+ * Database query.
406
+ */
407
+ export class Query extends Resource {
408
+ static resourceType = "Microsoft.Sql/managedInstances/databases/queries";
409
+ static apiVersion = API_VERSION;
410
+ static namingRules = {
411
+ abbreviation: "q",
412
+ pattern: {
413
+ regex: "",
414
+ },
415
+ scope: "parent",
416
+ };
417
+ static {
418
+ this.registerShape(createFlatModelShape({
419
+ name: { armPath: ["name"], value: createStringShape() },
420
+ properties: {
421
+ armPath: ["properties"],
422
+ value: createDeferredShape(() => queryPropertiesShape),
423
+ readOnly: true,
424
+ },
425
+ }));
426
+ this.register();
427
+ }
428
+ /**
429
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
430
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
431
+ *
432
+ * @param props - Resource properties to normalize for the base constructor.
433
+ */
434
+ static buildResourceProps(props) {
435
+ return {
436
+ ...props,
437
+ type: Query.resourceType,
438
+ apiVersion: Query.apiVersion,
439
+ };
440
+ }
441
+ constructor(context, props, options) {
442
+ super(context, Query.buildResourceProps(props), options);
443
+ }
444
+ get name() {
445
+ return this.expr("name");
446
+ }
447
+ set name(value) {
448
+ this.setProperty("name", value);
449
+ }
450
+ /**
451
+ * Resource properties.
452
+ */
453
+ get properties() {
454
+ return this.expr("properties");
455
+ }
456
+ }
457
+ /**
458
+ * A managed database restore details.
459
+ */
460
+ export class RestoreDetail extends Resource {
461
+ static resourceType = "Microsoft.Sql/managedInstances/databases/restoreDetails";
462
+ static apiVersion = API_VERSION;
463
+ static namingRules = {
464
+ abbreviation: "rd",
465
+ pattern: {
466
+ regex: "",
467
+ },
468
+ scope: "parent",
469
+ };
470
+ static {
471
+ this.registerShape(createFlatModelShape({
472
+ name: { armPath: ["name"], value: createUnionShape() },
473
+ properties: {
474
+ armPath: ["properties"],
475
+ value: createDeferredShape(() => managedDatabaseRestoreDetailsPropertiesShape),
476
+ readOnly: true,
477
+ },
478
+ }));
479
+ this.register();
480
+ }
481
+ /**
482
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
483
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
484
+ *
485
+ * @param props - Resource properties to normalize for the base constructor.
486
+ */
487
+ static buildResourceProps(props) {
488
+ return {
489
+ ...props,
490
+ type: RestoreDetail.resourceType,
491
+ apiVersion: RestoreDetail.apiVersion,
492
+ };
493
+ }
494
+ constructor(context, props, options) {
495
+ super(context, RestoreDetail.buildResourceProps(props), options);
496
+ }
497
+ /**
498
+ * The name of the restore details to retrieve.
499
+ */
500
+ get name() {
501
+ return this.expr("name");
502
+ }
503
+ set name(value) {
504
+ this.setProperty("name", value);
505
+ }
506
+ /**
507
+ * Resource properties.
508
+ */
509
+ get properties() {
510
+ return this.expr("properties");
511
+ }
512
+ }
513
+ /**
514
+ * A sensitivity label.
515
+ */
516
+ export class ManagedDatabaseSensitivityLabel extends Resource {
517
+ static resourceType = "Microsoft.Sql/managedInstances/databases/schemas/tables/columns/sensitivityLabels";
518
+ static apiVersion = API_VERSION;
519
+ static namingRules = {
520
+ abbreviation: "sl",
521
+ scope: "parent",
522
+ };
523
+ static {
524
+ this.registerShape(createFlatModelShape({
525
+ managedBy: { armPath: ["managedBy"], value: createStringShape(), readOnly: true },
526
+ name: { armPath: ["name"], value: createEnumShape() },
527
+ properties: {
528
+ armPath: ["properties"],
529
+ value: createDeferredShape(() => sensitivityLabelPropertiesShape),
530
+ },
531
+ }));
532
+ this.register();
533
+ }
534
+ /**
535
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
536
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
537
+ *
538
+ * @param props - Resource properties to normalize for the base constructor.
539
+ */
540
+ static buildResourceProps(props) {
541
+ return {
542
+ ...props,
543
+ type: ManagedDatabaseSensitivityLabel.resourceType,
544
+ apiVersion: ManagedDatabaseSensitivityLabel.apiVersion,
545
+ };
546
+ }
547
+ constructor(context, props, options) {
548
+ super(context, ManagedDatabaseSensitivityLabel.buildResourceProps(props), options);
549
+ }
550
+ /**
551
+ * Resource that manages the sensitivity label.
552
+ */
553
+ get managedBy() {
554
+ return this.expr("managedBy");
555
+ }
556
+ /**
557
+ * The source of the sensitivity label.
558
+ */
559
+ get name() {
560
+ return this.expr("name");
561
+ }
562
+ set name(value) {
563
+ this.setProperty("name", value);
564
+ }
565
+ /**
566
+ * Resource properties.
567
+ */
568
+ get properties() {
569
+ return this.expr("properties");
570
+ }
571
+ set properties(value) {
572
+ this.setProperty("properties", value);
573
+ }
574
+ }
575
+ /**
576
+ * A database column resource.
577
+ */
578
+ export class ManagedDatabaseColumn extends Resource {
579
+ static resourceType = "Microsoft.Sql/managedInstances/databases/schemas/tables/columns";
580
+ static apiVersion = API_VERSION;
581
+ static namingRules = {
582
+ abbreviation: "c",
583
+ scope: "parent",
584
+ };
585
+ static {
586
+ this.registerShape(createFlatModelShape({
587
+ name: { armPath: ["name"], value: createStringShape() },
588
+ properties: {
589
+ armPath: ["properties"],
590
+ value: createDeferredShape(() => databaseColumnPropertiesShape),
591
+ readOnly: true,
592
+ },
593
+ }));
594
+ this.register();
595
+ }
596
+ /**
597
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
598
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
599
+ *
600
+ * @param props - Resource properties to normalize for the base constructor.
601
+ */
602
+ static buildResourceProps(props) {
603
+ return {
604
+ ...props,
605
+ type: ManagedDatabaseColumn.resourceType,
606
+ apiVersion: ManagedDatabaseColumn.apiVersion,
607
+ };
608
+ }
609
+ constructor(context, props, options) {
610
+ super(context, ManagedDatabaseColumn.buildResourceProps(props), options);
611
+ }
612
+ /**
613
+ * The name of the column.
614
+ */
615
+ get name() {
616
+ return this.expr("name");
617
+ }
618
+ set name(value) {
619
+ this.setProperty("name", value);
620
+ }
621
+ /**
622
+ * Resource properties.
623
+ */
624
+ get properties() {
625
+ return this.expr("properties");
626
+ }
627
+ }
628
+ /**
629
+ * A database table resource.
630
+ */
631
+ export class ManagedDatabaseTable extends Resource {
632
+ static resourceType = "Microsoft.Sql/managedInstances/databases/schemas/tables";
633
+ static apiVersion = API_VERSION;
634
+ static namingRules = {
635
+ abbreviation: "t",
636
+ scope: "parent",
637
+ };
638
+ static {
639
+ this.registerShape(createFlatModelShape({
640
+ name: { armPath: ["name"], value: createStringShape() },
641
+ properties: {
642
+ armPath: ["properties"],
643
+ value: createDeferredShape(() => databaseTablePropertiesShape),
644
+ readOnly: true,
645
+ },
646
+ }));
647
+ this.register();
648
+ }
649
+ /**
650
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
651
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
652
+ *
653
+ * @param props - Resource properties to normalize for the base constructor.
654
+ */
655
+ static buildResourceProps(props) {
656
+ return {
657
+ ...props,
658
+ type: ManagedDatabaseTable.resourceType,
659
+ apiVersion: ManagedDatabaseTable.apiVersion,
660
+ };
661
+ }
662
+ constructor(context, props, options) {
663
+ super(context, ManagedDatabaseTable.buildResourceProps(props), options);
664
+ }
665
+ /**
666
+ * The name of the table.
667
+ */
668
+ get name() {
669
+ return this.expr("name");
670
+ }
671
+ set name(value) {
672
+ this.setProperty("name", value);
673
+ }
674
+ /**
675
+ * Resource properties.
676
+ */
677
+ get properties() {
678
+ return this.expr("properties");
679
+ }
680
+ }
681
+ /**
682
+ * A database schema resource.
683
+ */
684
+ export class ManagedDatabaseSchema extends Resource {
685
+ static resourceType = "Microsoft.Sql/managedInstances/databases/schemas";
686
+ static apiVersion = API_VERSION;
687
+ static namingRules = {
688
+ abbreviation: "s",
689
+ scope: "parent",
690
+ };
691
+ static {
692
+ this.registerShape(createFlatModelShape({
693
+ name: { armPath: ["name"], value: createStringShape() },
694
+ properties: { armPath: ["properties"], value: createAnyShape(), readOnly: true },
695
+ }));
696
+ this.register();
697
+ }
698
+ /**
699
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
700
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
701
+ *
702
+ * @param props - Resource properties to normalize for the base constructor.
703
+ */
704
+ static buildResourceProps(props) {
705
+ return {
706
+ ...props,
707
+ type: ManagedDatabaseSchema.resourceType,
708
+ apiVersion: ManagedDatabaseSchema.apiVersion,
709
+ };
710
+ }
711
+ constructor(context, props, options) {
712
+ super(context, ManagedDatabaseSchema.buildResourceProps(props), options);
713
+ }
714
+ /**
715
+ * The name of the schema.
716
+ */
717
+ get name() {
718
+ return this.expr("name");
719
+ }
720
+ set name(value) {
721
+ this.setProperty("name", value);
722
+ }
723
+ /**
724
+ * The resource-specific properties for this resource.
725
+ */
726
+ get properties() {
727
+ return this.expr("properties");
728
+ }
729
+ }
730
+ /**
731
+ * A managed database security alert policy.
732
+ */
733
+ export class ManagedInstanceDatabaseSecurityAlertPolicy extends Resource {
734
+ static resourceType = "Microsoft.Sql/managedInstances/databases/securityAlertPolicies";
735
+ static apiVersion = API_VERSION;
736
+ static namingRules = {
737
+ abbreviation: "sap",
738
+ pattern: {
739
+ regex: "",
740
+ },
741
+ scope: "parent",
742
+ };
743
+ static {
744
+ this.registerShape(createFlatModelShape({
745
+ name: { armPath: ["name"], value: createUnionShape() },
746
+ properties: {
747
+ armPath: ["properties"],
748
+ value: createDeferredShape(() => securityAlertPolicyPropertiesShape),
749
+ },
750
+ }));
751
+ this.register();
752
+ }
753
+ /**
754
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
755
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
756
+ *
757
+ * @param props - Resource properties to normalize for the base constructor.
758
+ */
759
+ static buildResourceProps(props) {
760
+ return {
761
+ ...props,
762
+ type: ManagedInstanceDatabaseSecurityAlertPolicy.resourceType,
763
+ apiVersion: ManagedInstanceDatabaseSecurityAlertPolicy.apiVersion,
764
+ };
765
+ }
766
+ constructor(context, props, options) {
767
+ super(context, ManagedInstanceDatabaseSecurityAlertPolicy.buildResourceProps(props), options);
768
+ }
769
+ /**
770
+ * The name of the security alert policy.
771
+ */
772
+ get name() {
773
+ return this.expr("name");
774
+ }
775
+ set name(value) {
776
+ this.setProperty("name", value);
777
+ }
778
+ /**
779
+ * Resource properties.
780
+ */
781
+ get properties() {
782
+ return this.expr("properties");
783
+ }
784
+ set properties(value) {
785
+ this.setProperty("properties", value);
786
+ }
787
+ }
788
+ /**
789
+ * A managed database transparent data encryption state.
790
+ */
791
+ export class ManagedInstanceDatabaseTransparentDataEncryption extends Resource {
792
+ static resourceType = "Microsoft.Sql/managedInstances/databases/transparentDataEncryption";
793
+ static apiVersion = API_VERSION;
794
+ static namingRules = {
795
+ abbreviation: "tde",
796
+ pattern: {
797
+ regex: "",
798
+ },
799
+ scope: "parent",
800
+ };
801
+ static {
802
+ this.registerShape(createFlatModelShape({
803
+ name: { armPath: ["name"], value: createUnionShape() },
804
+ properties: {
805
+ armPath: ["properties"],
806
+ value: createDeferredShape(() => managedTransparentDataEncryptionPropertiesShape),
807
+ },
808
+ }));
809
+ this.register();
810
+ }
811
+ /**
812
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
813
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
814
+ *
815
+ * @param props - Resource properties to normalize for the base constructor.
816
+ */
817
+ static buildResourceProps(props) {
818
+ return {
819
+ ...props,
820
+ type: ManagedInstanceDatabaseTransparentDataEncryption.resourceType,
821
+ apiVersion: ManagedInstanceDatabaseTransparentDataEncryption.apiVersion,
822
+ };
823
+ }
824
+ constructor(context, props, options) {
825
+ super(context, ManagedInstanceDatabaseTransparentDataEncryption.buildResourceProps(props), options);
826
+ }
827
+ /**
828
+ * The name of the transparent data encryption configuration.
829
+ */
830
+ get name() {
831
+ return this.expr("name");
832
+ }
833
+ set name(value) {
834
+ this.setProperty("name", value);
835
+ }
836
+ /**
837
+ * Resource properties.
838
+ */
839
+ get properties() {
840
+ return this.expr("properties");
841
+ }
842
+ set properties(value) {
843
+ this.setProperty("properties", value);
844
+ }
845
+ }
846
+ /**
847
+ * A database vulnerability assessment rule baseline.
848
+ */
849
+ export class ManagedDatabaseVulnerabilityAssessmentRuleBaseline extends Resource {
850
+ static resourceType = "Microsoft.Sql/managedInstances/databases/vulnerabilityAssessments/rules/baselines";
851
+ static apiVersion = API_VERSION;
852
+ static namingRules = {
853
+ abbreviation: "b",
854
+ nameSegments: 2,
855
+ scope: "parent",
856
+ };
857
+ static {
858
+ this.registerShape(createFlatModelShape({
859
+ name: { armPath: ["name"], value: createEnumShape() },
860
+ properties: {
861
+ armPath: ["properties"],
862
+ value: createDeferredShape(() => databaseVulnerabilityAssessmentRuleBaselinePropertiesShape),
863
+ },
864
+ }));
865
+ this.register();
866
+ }
867
+ /**
868
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
869
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
870
+ *
871
+ * @param props - Resource properties to normalize for the base constructor.
872
+ */
873
+ static buildResourceProps(props) {
874
+ return {
875
+ ...props,
876
+ type: ManagedDatabaseVulnerabilityAssessmentRuleBaseline.resourceType,
877
+ apiVersion: ManagedDatabaseVulnerabilityAssessmentRuleBaseline.apiVersion,
878
+ };
879
+ }
880
+ constructor(context, props, options) {
881
+ super(context, ManagedDatabaseVulnerabilityAssessmentRuleBaseline.buildResourceProps(props), options);
882
+ }
883
+ /**
884
+ * The name of the vulnerability assessment rule baseline (default implies a baseline on a
885
+ * database level rule and master for server level rule).
886
+ */
887
+ get name() {
888
+ return this.expr("name");
889
+ }
890
+ set name(value) {
891
+ this.setProperty("name", value);
892
+ }
893
+ /**
894
+ * Resource properties.
895
+ */
896
+ get properties() {
897
+ return this.expr("properties");
898
+ }
899
+ set properties(value) {
900
+ this.setProperty("properties", value);
901
+ }
902
+ }
903
+ /**
904
+ * A vulnerability assessment scan record.
905
+ */
906
+ export class ManagedDatabaseVulnerabilityAssessmentScan extends Resource {
907
+ static resourceType = "Microsoft.Sql/managedInstances/databases/vulnerabilityAssessments/scans";
908
+ static apiVersion = API_VERSION;
909
+ static namingRules = {
910
+ abbreviation: "s",
911
+ scope: "parent",
912
+ };
913
+ static {
914
+ this.registerShape(createFlatModelShape({
915
+ name: { armPath: ["name"], value: createStringShape() },
916
+ properties: {
917
+ armPath: ["properties"],
918
+ value: createDeferredShape(() => vulnerabilityAssessmentScanRecordPropertiesShape),
919
+ readOnly: true,
920
+ },
921
+ }));
922
+ this.register();
923
+ }
924
+ /**
925
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
926
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
927
+ *
928
+ * @param props - Resource properties to normalize for the base constructor.
929
+ */
930
+ static buildResourceProps(props) {
931
+ return {
932
+ ...props,
933
+ type: ManagedDatabaseVulnerabilityAssessmentScan.resourceType,
934
+ apiVersion: ManagedDatabaseVulnerabilityAssessmentScan.apiVersion,
935
+ };
936
+ }
937
+ constructor(context, props, options) {
938
+ super(context, ManagedDatabaseVulnerabilityAssessmentScan.buildResourceProps(props), options);
939
+ }
940
+ /**
941
+ * The vulnerability assessment scan Id of the scan to retrieve.
942
+ */
943
+ get name() {
944
+ return this.expr("name");
945
+ }
946
+ set name(value) {
947
+ this.setProperty("name", value);
948
+ }
949
+ /**
950
+ * Resource properties.
951
+ */
952
+ get properties() {
953
+ return this.expr("properties");
954
+ }
955
+ }
956
+ /**
957
+ * A database vulnerability assessment.
958
+ */
959
+ export class ManagedDatabaseVulnerabilityAssessment extends Resource {
960
+ static resourceType = "Microsoft.Sql/managedInstances/databases/vulnerabilityAssessments";
961
+ static apiVersion = API_VERSION;
962
+ static namingRules = {
963
+ abbreviation: "va",
964
+ scope: "parent",
965
+ };
966
+ static {
967
+ this.registerShape(createFlatModelShape({
968
+ name: { armPath: ["name"], value: createUnionShape() },
969
+ properties: {
970
+ armPath: ["properties"],
971
+ value: createDeferredShape(() => databaseVulnerabilityAssessmentPropertiesShape),
972
+ },
973
+ }));
974
+ this.register();
975
+ }
976
+ /**
977
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
978
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
979
+ *
980
+ * @param props - Resource properties to normalize for the base constructor.
981
+ */
982
+ static buildResourceProps(props) {
983
+ return {
984
+ ...props,
985
+ type: ManagedDatabaseVulnerabilityAssessment.resourceType,
986
+ apiVersion: ManagedDatabaseVulnerabilityAssessment.apiVersion,
987
+ };
988
+ }
989
+ constructor(context, props, options) {
990
+ super(context, ManagedDatabaseVulnerabilityAssessment.buildResourceProps(props), options);
991
+ }
992
+ /**
993
+ * The name of the vulnerability assessment.
994
+ */
995
+ get name() {
996
+ return this.expr("name");
997
+ }
998
+ set name(value) {
999
+ this.setProperty("name", value);
1000
+ }
1001
+ /**
1002
+ * Resource properties.
1003
+ */
1004
+ get properties() {
1005
+ return this.expr("properties");
1006
+ }
1007
+ set properties(value) {
1008
+ this.setProperty("properties", value);
1009
+ }
1010
+ }
1011
+ /**
1012
+ * A managed database resource.
1013
+ */
1014
+ export class ManagedInstanceDatabase extends Resource {
1015
+ static resourceType = "Microsoft.Sql/managedInstances/databases";
1016
+ static apiVersion = API_VERSION;
1017
+ static namingRules = {
1018
+ abbreviation: "d",
1019
+ pattern: {
1020
+ regex: "",
1021
+ },
1022
+ scope: "parent",
1023
+ };
1024
+ static {
1025
+ this.registerShape(createFlatModelShape({
1026
+ location: { armPath: ["location"], value: createStringShape() },
1027
+ name: { armPath: ["name"], value: createStringShape() },
1028
+ properties: {
1029
+ armPath: ["properties"],
1030
+ value: createDeferredShape(() => managedDatabasePropertiesShape),
1031
+ },
1032
+ tags: { armPath: ["tags"], value: createRecordShape(createStringShape()) },
1033
+ }));
1034
+ this.register();
1035
+ }
1036
+ /**
1037
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1038
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1039
+ *
1040
+ * @param props - Resource properties to normalize for the base constructor.
1041
+ */
1042
+ static buildResourceProps(props) {
1043
+ return {
1044
+ ...props,
1045
+ type: ManagedInstanceDatabase.resourceType,
1046
+ apiVersion: ManagedInstanceDatabase.apiVersion,
1047
+ };
1048
+ }
1049
+ constructor(context, props, options) {
1050
+ super(context, ManagedInstanceDatabase.buildResourceProps(props), options);
1051
+ }
1052
+ /**
1053
+ * The geo-location where the resource lives
1054
+ */
1055
+ get location() {
1056
+ return this.expr("location");
1057
+ }
1058
+ set location(value) {
1059
+ this.setProperty("location", value);
1060
+ }
1061
+ /**
1062
+ * The name of the database.
1063
+ */
1064
+ get name() {
1065
+ return this.expr("name");
1066
+ }
1067
+ set name(value) {
1068
+ this.setProperty("name", value);
1069
+ }
1070
+ /**
1071
+ * Resource properties.
1072
+ */
1073
+ get properties() {
1074
+ return this.expr("properties");
1075
+ }
1076
+ set properties(value) {
1077
+ this.setProperty("properties", value);
1078
+ }
1079
+ /**
1080
+ * Resource tags.
1081
+ */
1082
+ get tags() {
1083
+ return this.expr("tags");
1084
+ }
1085
+ set tags(value) {
1086
+ this.setProperty("tags", value);
1087
+ }
1088
+ }
1089
+ /**
1090
+ * Distributed availability group between box and Sql Managed Instance.
1091
+ */
1092
+ export class DistributedAvailabilityGroup extends Resource {
1093
+ static resourceType = "Microsoft.Sql/managedInstances/distributedAvailabilityGroups";
1094
+ static apiVersion = API_VERSION;
1095
+ static namingRules = {
1096
+ abbreviation: "dag",
1097
+ pattern: {
1098
+ regex: "",
1099
+ },
1100
+ scope: "parent",
1101
+ };
1102
+ static {
1103
+ this.registerShape(createFlatModelShape({
1104
+ name: { armPath: ["name"], value: createStringShape() },
1105
+ properties: {
1106
+ armPath: ["properties"],
1107
+ value: createDeferredShape(() => distributedAvailabilityGroupPropertiesShape),
1108
+ },
1109
+ }));
1110
+ this.register();
1111
+ }
1112
+ /**
1113
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1114
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1115
+ *
1116
+ * @param props - Resource properties to normalize for the base constructor.
1117
+ */
1118
+ static buildResourceProps(props) {
1119
+ return {
1120
+ ...props,
1121
+ type: DistributedAvailabilityGroup.resourceType,
1122
+ apiVersion: DistributedAvailabilityGroup.apiVersion,
1123
+ };
1124
+ }
1125
+ constructor(context, props, options) {
1126
+ super(context, DistributedAvailabilityGroup.buildResourceProps(props), options);
1127
+ }
1128
+ /**
1129
+ * The distributed availability group name.
1130
+ */
1131
+ get name() {
1132
+ return this.expr("name");
1133
+ }
1134
+ set name(value) {
1135
+ this.setProperty("name", value);
1136
+ }
1137
+ /**
1138
+ * Resource properties.
1139
+ */
1140
+ get properties() {
1141
+ return this.expr("properties");
1142
+ }
1143
+ set properties(value) {
1144
+ this.setProperty("properties", value);
1145
+ }
1146
+ }
1147
+ /**
1148
+ * A managed server DNS alias.
1149
+ */
1150
+ export class ManagedInstanceDnsAlias extends Resource {
1151
+ static resourceType = "Microsoft.Sql/managedInstances/dnsAliases";
1152
+ static apiVersion = API_VERSION;
1153
+ static namingRules = {
1154
+ abbreviation: "da",
1155
+ pattern: {
1156
+ regex: "",
1157
+ },
1158
+ scope: "parent",
1159
+ };
1160
+ static {
1161
+ this.registerShape(createFlatModelShape({
1162
+ createDnsRecord: { armPath: ["createDnsRecord"], value: createBooleanShape() },
1163
+ name: { armPath: ["name"], value: createStringShape() },
1164
+ properties: {
1165
+ armPath: ["properties"],
1166
+ value: createDeferredShape(() => managedServerDnsAliasPropertiesShape),
1167
+ readOnly: true,
1168
+ },
1169
+ }));
1170
+ this.register();
1171
+ }
1172
+ /**
1173
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1174
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1175
+ *
1176
+ * @param props - Resource properties to normalize for the base constructor.
1177
+ */
1178
+ static buildResourceProps(props) {
1179
+ return {
1180
+ ...props,
1181
+ type: ManagedInstanceDnsAlias.resourceType,
1182
+ apiVersion: ManagedInstanceDnsAlias.apiVersion,
1183
+ };
1184
+ }
1185
+ constructor(context, props, options) {
1186
+ super(context, ManagedInstanceDnsAlias.buildResourceProps(props), options);
1187
+ }
1188
+ /**
1189
+ * Whether or not DNS record should be created for this alias.
1190
+ */
1191
+ get createDnsRecord() {
1192
+ return this.expr("createDnsRecord");
1193
+ }
1194
+ set createDnsRecord(value) {
1195
+ this.setProperty("createDnsRecord", value);
1196
+ }
1197
+ get name() {
1198
+ return this.expr("name");
1199
+ }
1200
+ set name(value) {
1201
+ this.setProperty("name", value);
1202
+ }
1203
+ /**
1204
+ * Resource properties.
1205
+ */
1206
+ get properties() {
1207
+ return this.expr("properties");
1208
+ }
1209
+ }
1210
+ /**
1211
+ * SQL Managed Instance DTC
1212
+ */
1213
+ export class Dtc extends Resource {
1214
+ static resourceType = "Microsoft.Sql/managedInstances/dtc";
1215
+ static apiVersion = API_VERSION;
1216
+ static namingRules = {
1217
+ abbreviation: "d",
1218
+ pattern: {
1219
+ regex: "",
1220
+ },
1221
+ scope: "parent",
1222
+ };
1223
+ static {
1224
+ this.registerShape(createFlatModelShape({
1225
+ name: { armPath: ["name"], value: createUnionShape() },
1226
+ properties: {
1227
+ armPath: ["properties"],
1228
+ value: createDeferredShape(() => managedInstanceDtcPropertiesShape),
1229
+ },
1230
+ }));
1231
+ this.register();
1232
+ }
1233
+ /**
1234
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1235
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1236
+ *
1237
+ * @param props - Resource properties to normalize for the base constructor.
1238
+ */
1239
+ static buildResourceProps(props) {
1240
+ return {
1241
+ ...props,
1242
+ type: Dtc.resourceType,
1243
+ apiVersion: Dtc.apiVersion,
1244
+ };
1245
+ }
1246
+ constructor(context, props, options) {
1247
+ super(context, Dtc.buildResourceProps(props), options);
1248
+ }
1249
+ /**
1250
+ * The name of the managed instance DTC.
1251
+ */
1252
+ get name() {
1253
+ return this.expr("name");
1254
+ }
1255
+ set name(value) {
1256
+ this.setProperty("name", value);
1257
+ }
1258
+ /**
1259
+ * Resource properties.
1260
+ */
1261
+ get properties() {
1262
+ return this.expr("properties");
1263
+ }
1264
+ set properties(value) {
1265
+ this.setProperty("properties", value);
1266
+ }
1267
+ }
1268
+ /**
1269
+ * The managed instance encryption protector.
1270
+ */
1271
+ export class ManagedInstanceEncryptionProtector extends Resource {
1272
+ static resourceType = "Microsoft.Sql/managedInstances/encryptionProtector";
1273
+ static apiVersion = API_VERSION;
1274
+ static namingRules = {
1275
+ abbreviation: "ep",
1276
+ pattern: {
1277
+ regex: "",
1278
+ },
1279
+ scope: "parent",
1280
+ };
1281
+ static {
1282
+ this.registerShape(createFlatModelShape({
1283
+ kind: { armPath: ["kind"], value: createStringShape(), readOnly: true },
1284
+ name: { armPath: ["name"], value: createUnionShape() },
1285
+ properties: {
1286
+ armPath: ["properties"],
1287
+ value: createDeferredShape(() => managedInstanceEncryptionProtectorPropertiesShape),
1288
+ },
1289
+ }));
1290
+ this.register();
1291
+ }
1292
+ /**
1293
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1294
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1295
+ *
1296
+ * @param props - Resource properties to normalize for the base constructor.
1297
+ */
1298
+ static buildResourceProps(props) {
1299
+ return {
1300
+ ...props,
1301
+ type: ManagedInstanceEncryptionProtector.resourceType,
1302
+ apiVersion: ManagedInstanceEncryptionProtector.apiVersion,
1303
+ };
1304
+ }
1305
+ constructor(context, props, options) {
1306
+ super(context, ManagedInstanceEncryptionProtector.buildResourceProps(props), options);
1307
+ }
1308
+ /**
1309
+ * Kind of encryption protector. This is metadata used for the Azure portal experience.
1310
+ */
1311
+ get kind() {
1312
+ return this.expr("kind");
1313
+ }
1314
+ /**
1315
+ * The name of the encryption protector to be retrieved.
1316
+ */
1317
+ get name() {
1318
+ return this.expr("name");
1319
+ }
1320
+ set name(value) {
1321
+ this.setProperty("name", value);
1322
+ }
1323
+ /**
1324
+ * Resource properties.
1325
+ */
1326
+ get properties() {
1327
+ return this.expr("properties");
1328
+ }
1329
+ set properties(value) {
1330
+ this.setProperty("properties", value);
1331
+ }
1332
+ }
1333
+ /**
1334
+ * Certificate used on an endpoint on the Managed Instance.
1335
+ */
1336
+ export class EndpointCertificate extends Resource {
1337
+ static resourceType = "Microsoft.Sql/managedInstances/endpointCertificates";
1338
+ static apiVersion = API_VERSION;
1339
+ static namingRules = {
1340
+ abbreviation: "ec",
1341
+ pattern: {
1342
+ regex: "",
1343
+ },
1344
+ scope: "parent",
1345
+ };
1346
+ static {
1347
+ this.registerShape(createFlatModelShape({
1348
+ name: { armPath: ["name"], value: createStringShape() },
1349
+ properties: {
1350
+ armPath: ["properties"],
1351
+ value: createDeferredShape(() => endpointCertificatePropertiesShape),
1352
+ readOnly: true,
1353
+ },
1354
+ }));
1355
+ this.register();
1356
+ }
1357
+ /**
1358
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1359
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1360
+ *
1361
+ * @param props - Resource properties to normalize for the base constructor.
1362
+ */
1363
+ static buildResourceProps(props) {
1364
+ return {
1365
+ ...props,
1366
+ type: EndpointCertificate.resourceType,
1367
+ apiVersion: EndpointCertificate.apiVersion,
1368
+ };
1369
+ }
1370
+ constructor(context, props, options) {
1371
+ super(context, EndpointCertificate.buildResourceProps(props), options);
1372
+ }
1373
+ /**
1374
+ * Type of the endpoint whose certificate the customer is looking for.
1375
+ */
1376
+ get name() {
1377
+ return this.expr("name");
1378
+ }
1379
+ set name(value) {
1380
+ this.setProperty("name", value);
1381
+ }
1382
+ /**
1383
+ * Resource properties.
1384
+ */
1385
+ get properties() {
1386
+ return this.expr("properties");
1387
+ }
1388
+ }
1389
+ /**
1390
+ * A managed instance key.
1391
+ */
1392
+ export class ManagedInstanceKey extends Resource {
1393
+ static resourceType = "Microsoft.Sql/managedInstances/keys";
1394
+ static apiVersion = API_VERSION;
1395
+ static namingRules = {
1396
+ abbreviation: "k",
1397
+ pattern: {
1398
+ regex: "",
1399
+ },
1400
+ scope: "parent",
1401
+ };
1402
+ static {
1403
+ this.registerShape(createFlatModelShape({
1404
+ kind: { armPath: ["kind"], value: createStringShape(), readOnly: true },
1405
+ name: { armPath: ["name"], value: createStringShape() },
1406
+ properties: {
1407
+ armPath: ["properties"],
1408
+ value: createDeferredShape(() => managedInstanceKeyPropertiesShape),
1409
+ },
1410
+ }));
1411
+ this.register();
1412
+ }
1413
+ /**
1414
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1415
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1416
+ *
1417
+ * @param props - Resource properties to normalize for the base constructor.
1418
+ */
1419
+ static buildResourceProps(props) {
1420
+ return {
1421
+ ...props,
1422
+ type: ManagedInstanceKey.resourceType,
1423
+ apiVersion: ManagedInstanceKey.apiVersion,
1424
+ };
1425
+ }
1426
+ constructor(context, props, options) {
1427
+ super(context, ManagedInstanceKey.buildResourceProps(props), options);
1428
+ }
1429
+ /**
1430
+ * Kind of encryption protector. This is metadata used for the Azure portal experience.
1431
+ */
1432
+ get kind() {
1433
+ return this.expr("kind");
1434
+ }
1435
+ /**
1436
+ * The name of the managed instance key to be retrieved.
1437
+ */
1438
+ get name() {
1439
+ return this.expr("name");
1440
+ }
1441
+ set name(value) {
1442
+ this.setProperty("name", value);
1443
+ }
1444
+ /**
1445
+ * Resource properties.
1446
+ */
1447
+ get properties() {
1448
+ return this.expr("properties");
1449
+ }
1450
+ set properties(value) {
1451
+ this.setProperty("properties", value);
1452
+ }
1453
+ }
1454
+ /**
1455
+ * A managed instance operation.
1456
+ */
1457
+ export class ManagedInstanceOperation extends Resource {
1458
+ static resourceType = "Microsoft.Sql/managedInstances/operations";
1459
+ static apiVersion = API_VERSION;
1460
+ static namingRules = {
1461
+ abbreviation: "o",
1462
+ pattern: {
1463
+ regex: "",
1464
+ },
1465
+ scope: "parent",
1466
+ };
1467
+ static {
1468
+ this.registerShape(createFlatModelShape({
1469
+ name: { armPath: ["name"], value: createStringShape() },
1470
+ properties: {
1471
+ armPath: ["properties"],
1472
+ value: createDeferredShape(() => managedInstanceOperationPropertiesShape),
1473
+ readOnly: true,
1474
+ },
1475
+ }));
1476
+ this.register();
1477
+ }
1478
+ /**
1479
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1480
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1481
+ *
1482
+ * @param props - Resource properties to normalize for the base constructor.
1483
+ */
1484
+ static buildResourceProps(props) {
1485
+ return {
1486
+ ...props,
1487
+ type: ManagedInstanceOperation.resourceType,
1488
+ apiVersion: ManagedInstanceOperation.apiVersion,
1489
+ };
1490
+ }
1491
+ constructor(context, props, options) {
1492
+ super(context, ManagedInstanceOperation.buildResourceProps(props), options);
1493
+ }
1494
+ get name() {
1495
+ return this.expr("name");
1496
+ }
1497
+ set name(value) {
1498
+ this.setProperty("name", value);
1499
+ }
1500
+ /**
1501
+ * Resource properties.
1502
+ */
1503
+ get properties() {
1504
+ return this.expr("properties");
1505
+ }
1506
+ }
1507
+ /**
1508
+ * A private endpoint connection
1509
+ */
1510
+ export class ManagedInstancePrivateEndpointConnection extends Resource {
1511
+ static resourceType = "Microsoft.Sql/managedInstances/privateEndpointConnections";
1512
+ static apiVersion = API_VERSION;
1513
+ static namingRules = {
1514
+ abbreviation: "pec",
1515
+ pattern: {
1516
+ regex: "",
1517
+ },
1518
+ scope: "parent",
1519
+ };
1520
+ static {
1521
+ this.registerShape(createFlatModelShape({
1522
+ name: { armPath: ["name"], value: createStringShape() },
1523
+ properties: {
1524
+ armPath: ["properties"],
1525
+ value: createDeferredShape(() => managedInstancePrivateEndpointConnectionPropertiesShape),
1526
+ },
1527
+ }));
1528
+ this.register();
1529
+ }
1530
+ /**
1531
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1532
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1533
+ *
1534
+ * @param props - Resource properties to normalize for the base constructor.
1535
+ */
1536
+ static buildResourceProps(props) {
1537
+ return {
1538
+ ...props,
1539
+ type: ManagedInstancePrivateEndpointConnection.resourceType,
1540
+ apiVersion: ManagedInstancePrivateEndpointConnection.apiVersion,
1541
+ };
1542
+ }
1543
+ constructor(context, props, options) {
1544
+ super(context, ManagedInstancePrivateEndpointConnection.buildResourceProps(props), options);
1545
+ }
1546
+ /**
1547
+ * The name of the private endpoint connection.
1548
+ */
1549
+ get name() {
1550
+ return this.expr("name");
1551
+ }
1552
+ set name(value) {
1553
+ this.setProperty("name", value);
1554
+ }
1555
+ /**
1556
+ * Resource properties.
1557
+ */
1558
+ get properties() {
1559
+ return this.expr("properties");
1560
+ }
1561
+ set properties(value) {
1562
+ this.setProperty("properties", value);
1563
+ }
1564
+ }
1565
+ /**
1566
+ * A private link resource
1567
+ */
1568
+ export class ManagedInstancePrivateLink extends Resource {
1569
+ static resourceType = "Microsoft.Sql/managedInstances/privateLinkResources";
1570
+ static apiVersion = API_VERSION;
1571
+ static namingRules = {
1572
+ abbreviation: "plr",
1573
+ pattern: {
1574
+ regex: "",
1575
+ },
1576
+ scope: "parent",
1577
+ };
1578
+ static {
1579
+ this.registerShape(createFlatModelShape({
1580
+ name: { armPath: ["name"], value: createStringShape() },
1581
+ properties: {
1582
+ armPath: ["properties"],
1583
+ value: createDeferredShape(() => managedInstancePrivateLinkPropertiesShape),
1584
+ readOnly: true,
1585
+ },
1586
+ }));
1587
+ this.register();
1588
+ }
1589
+ /**
1590
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1591
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1592
+ *
1593
+ * @param props - Resource properties to normalize for the base constructor.
1594
+ */
1595
+ static buildResourceProps(props) {
1596
+ return {
1597
+ ...props,
1598
+ type: ManagedInstancePrivateLink.resourceType,
1599
+ apiVersion: ManagedInstancePrivateLink.apiVersion,
1600
+ };
1601
+ }
1602
+ constructor(context, props, options) {
1603
+ super(context, ManagedInstancePrivateLink.buildResourceProps(props), options);
1604
+ }
1605
+ /**
1606
+ * The name of the private link resource.
1607
+ */
1608
+ get name() {
1609
+ return this.expr("name");
1610
+ }
1611
+ set name(value) {
1612
+ this.setProperty("name", value);
1613
+ }
1614
+ /**
1615
+ * The private link resource group id.
1616
+ */
1617
+ get properties() {
1618
+ return this.expr("properties");
1619
+ }
1620
+ }
1621
+ /**
1622
+ * A recoverable managed database resource.
1623
+ */
1624
+ export class RecoverableManagedDatabase extends Resource {
1625
+ static resourceType = "Microsoft.Sql/managedInstances/recoverableDatabases";
1626
+ static apiVersion = API_VERSION;
1627
+ static namingRules = {
1628
+ abbreviation: "rd",
1629
+ pattern: {
1630
+ regex: "",
1631
+ },
1632
+ scope: "parent",
1633
+ };
1634
+ static {
1635
+ this.registerShape(createFlatModelShape({
1636
+ name: { armPath: ["name"], value: createStringShape() },
1637
+ properties: {
1638
+ armPath: ["properties"],
1639
+ value: createDeferredShape(() => recoverableManagedDatabasePropertiesShape),
1640
+ readOnly: true,
1641
+ },
1642
+ }));
1643
+ this.register();
1644
+ }
1645
+ /**
1646
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1647
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1648
+ *
1649
+ * @param props - Resource properties to normalize for the base constructor.
1650
+ */
1651
+ static buildResourceProps(props) {
1652
+ return {
1653
+ ...props,
1654
+ type: RecoverableManagedDatabase.resourceType,
1655
+ apiVersion: RecoverableManagedDatabase.apiVersion,
1656
+ };
1657
+ }
1658
+ constructor(context, props, options) {
1659
+ super(context, RecoverableManagedDatabase.buildResourceProps(props), options);
1660
+ }
1661
+ get name() {
1662
+ return this.expr("name");
1663
+ }
1664
+ set name(value) {
1665
+ this.setProperty("name", value);
1666
+ }
1667
+ /**
1668
+ * Resource properties.
1669
+ */
1670
+ get properties() {
1671
+ return this.expr("properties");
1672
+ }
1673
+ }
1674
+ /**
1675
+ * A short term retention policy.
1676
+ */
1677
+ export class ManagedRestorableDroppedDbBackupShortTermRetentionPolicy extends Resource {
1678
+ static resourceType = "Microsoft.Sql/managedInstances/restorableDroppedDatabases/backupShortTermRetentionPolicies";
1679
+ static apiVersion = API_VERSION;
1680
+ static namingRules = {
1681
+ abbreviation: "bstrp",
1682
+ scope: "parent",
1683
+ };
1684
+ static {
1685
+ this.registerShape(createFlatModelShape({
1686
+ name: { armPath: ["name"], value: createUnionShape() },
1687
+ properties: {
1688
+ armPath: ["properties"],
1689
+ value: createDeferredShape(() => managedBackupShortTermRetentionPolicyPropertiesShape),
1690
+ },
1691
+ }));
1692
+ this.register();
1693
+ }
1694
+ /**
1695
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1696
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1697
+ *
1698
+ * @param props - Resource properties to normalize for the base constructor.
1699
+ */
1700
+ static buildResourceProps(props) {
1701
+ return {
1702
+ ...props,
1703
+ type: ManagedRestorableDroppedDbBackupShortTermRetentionPolicy.resourceType,
1704
+ apiVersion: ManagedRestorableDroppedDbBackupShortTermRetentionPolicy.apiVersion,
1705
+ };
1706
+ }
1707
+ constructor(context, props, options) {
1708
+ super(context, ManagedRestorableDroppedDbBackupShortTermRetentionPolicy.buildResourceProps(props), options);
1709
+ }
1710
+ /**
1711
+ * The policy name.
1712
+ */
1713
+ get name() {
1714
+ return this.expr("name");
1715
+ }
1716
+ set name(value) {
1717
+ this.setProperty("name", value);
1718
+ }
1719
+ /**
1720
+ * Resource properties.
1721
+ */
1722
+ get properties() {
1723
+ return this.expr("properties");
1724
+ }
1725
+ set properties(value) {
1726
+ this.setProperty("properties", value);
1727
+ }
1728
+ }
1729
+ /**
1730
+ * A restorable dropped managed database resource.
1731
+ */
1732
+ export class RestorableDroppedManagedDatabase extends Resource {
1733
+ static resourceType = "Microsoft.Sql/managedInstances/restorableDroppedDatabases";
1734
+ static apiVersion = API_VERSION;
1735
+ static namingRules = {
1736
+ abbreviation: "rdd",
1737
+ pattern: {
1738
+ regex: "",
1739
+ },
1740
+ scope: "parent",
1741
+ };
1742
+ static {
1743
+ this.registerShape(createFlatModelShape({
1744
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
1745
+ name: { armPath: ["name"], value: createStringShape() },
1746
+ properties: {
1747
+ armPath: ["properties"],
1748
+ value: createDeferredShape(() => restorableDroppedManagedDatabasePropertiesShape),
1749
+ readOnly: true,
1750
+ },
1751
+ tags: { armPath: ["tags"], value: createRecordShape(createStringShape()), readOnly: true },
1752
+ }));
1753
+ this.register();
1754
+ }
1755
+ /**
1756
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1757
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1758
+ *
1759
+ * @param props - Resource properties to normalize for the base constructor.
1760
+ */
1761
+ static buildResourceProps(props) {
1762
+ return {
1763
+ ...props,
1764
+ type: RestorableDroppedManagedDatabase.resourceType,
1765
+ apiVersion: RestorableDroppedManagedDatabase.apiVersion,
1766
+ };
1767
+ }
1768
+ constructor(context, props, options) {
1769
+ super(context, RestorableDroppedManagedDatabase.buildResourceProps(props), options);
1770
+ }
1771
+ /**
1772
+ * The geo-location where the resource lives
1773
+ */
1774
+ get location() {
1775
+ return this.expr("location");
1776
+ }
1777
+ get name() {
1778
+ return this.expr("name");
1779
+ }
1780
+ set name(value) {
1781
+ this.setProperty("name", value);
1782
+ }
1783
+ /**
1784
+ * Resource properties.
1785
+ */
1786
+ get properties() {
1787
+ return this.expr("properties");
1788
+ }
1789
+ /**
1790
+ * Resource tags.
1791
+ */
1792
+ get tags() {
1793
+ return this.expr("tags");
1794
+ }
1795
+ }
1796
+ /**
1797
+ * A managed server security alert policy.
1798
+ */
1799
+ export class ManagedInstanceSecurityAlertPolicy extends Resource {
1800
+ static resourceType = "Microsoft.Sql/managedInstances/securityAlertPolicies";
1801
+ static apiVersion = API_VERSION;
1802
+ static namingRules = {
1803
+ abbreviation: "sap",
1804
+ pattern: {
1805
+ regex: "",
1806
+ },
1807
+ scope: "parent",
1808
+ };
1809
+ static {
1810
+ this.registerShape(createFlatModelShape({
1811
+ name: { armPath: ["name"], value: createUnionShape() },
1812
+ properties: {
1813
+ armPath: ["properties"],
1814
+ value: createDeferredShape(() => securityAlertsPolicyPropertiesShape),
1815
+ },
1816
+ }));
1817
+ this.register();
1818
+ }
1819
+ /**
1820
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1821
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1822
+ *
1823
+ * @param props - Resource properties to normalize for the base constructor.
1824
+ */
1825
+ static buildResourceProps(props) {
1826
+ return {
1827
+ ...props,
1828
+ type: ManagedInstanceSecurityAlertPolicy.resourceType,
1829
+ apiVersion: ManagedInstanceSecurityAlertPolicy.apiVersion,
1830
+ };
1831
+ }
1832
+ constructor(context, props, options) {
1833
+ super(context, ManagedInstanceSecurityAlertPolicy.buildResourceProps(props), options);
1834
+ }
1835
+ /**
1836
+ * The name of the security alert policy.
1837
+ */
1838
+ get name() {
1839
+ return this.expr("name");
1840
+ }
1841
+ set name(value) {
1842
+ this.setProperty("name", value);
1843
+ }
1844
+ /**
1845
+ * Resource properties.
1846
+ */
1847
+ get properties() {
1848
+ return this.expr("properties");
1849
+ }
1850
+ set properties(value) {
1851
+ this.setProperty("properties", value);
1852
+ }
1853
+ }
1854
+ /**
1855
+ * A server configuration option
1856
+ */
1857
+ export class ServerConfigurationOption extends Resource {
1858
+ static resourceType = "Microsoft.Sql/managedInstances/serverConfigurationOptions";
1859
+ static apiVersion = API_VERSION;
1860
+ static namingRules = {
1861
+ abbreviation: "sco",
1862
+ pattern: {
1863
+ regex: "",
1864
+ },
1865
+ scope: "parent",
1866
+ };
1867
+ static {
1868
+ this.registerShape(createFlatModelShape({
1869
+ name: { armPath: ["name"], value: createUnionShape() },
1870
+ properties: {
1871
+ armPath: ["properties"],
1872
+ value: createDeferredShape(() => serverConfigurationOptionPropertiesShape),
1873
+ },
1874
+ }));
1875
+ this.register();
1876
+ }
1877
+ /**
1878
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1879
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1880
+ *
1881
+ * @param props - Resource properties to normalize for the base constructor.
1882
+ */
1883
+ static buildResourceProps(props) {
1884
+ return {
1885
+ ...props,
1886
+ type: ServerConfigurationOption.resourceType,
1887
+ apiVersion: ServerConfigurationOption.apiVersion,
1888
+ };
1889
+ }
1890
+ constructor(context, props, options) {
1891
+ super(context, ServerConfigurationOption.buildResourceProps(props), options);
1892
+ }
1893
+ /**
1894
+ * The name of the server configuration option.
1895
+ */
1896
+ get name() {
1897
+ return this.expr("name");
1898
+ }
1899
+ set name(value) {
1900
+ this.setProperty("name", value);
1901
+ }
1902
+ /**
1903
+ * Resource properties.
1904
+ */
1905
+ get properties() {
1906
+ return this.expr("properties");
1907
+ }
1908
+ set properties(value) {
1909
+ this.setProperty("properties", value);
1910
+ }
1911
+ }
1912
+ /**
1913
+ * Server trust certificate imported from box to enable connection between box and Sql Managed Instance.
1914
+ */
1915
+ export class ManagedInstanceServerTrustCertificate extends Resource {
1916
+ static resourceType = "Microsoft.Sql/managedInstances/serverTrustCertificates";
1917
+ static apiVersion = API_VERSION;
1918
+ static namingRules = {
1919
+ abbreviation: "stc",
1920
+ scope: "parent",
1921
+ };
1922
+ static {
1923
+ this.registerShape(createFlatModelShape({
1924
+ name: { armPath: ["name"], value: createStringShape() },
1925
+ properties: {
1926
+ armPath: ["properties"],
1927
+ value: createDeferredShape(() => serverTrustCertificatePropertiesShape),
1928
+ },
1929
+ }));
1930
+ this.register();
1931
+ }
1932
+ /**
1933
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1934
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1935
+ *
1936
+ * @param props - Resource properties to normalize for the base constructor.
1937
+ */
1938
+ static buildResourceProps(props) {
1939
+ return {
1940
+ ...props,
1941
+ type: ManagedInstanceServerTrustCertificate.resourceType,
1942
+ apiVersion: ManagedInstanceServerTrustCertificate.apiVersion,
1943
+ };
1944
+ }
1945
+ constructor(context, props, options) {
1946
+ super(context, ManagedInstanceServerTrustCertificate.buildResourceProps(props), options);
1947
+ }
1948
+ /**
1949
+ * Name of of the certificate to get.
1950
+ */
1951
+ get name() {
1952
+ return this.expr("name");
1953
+ }
1954
+ set name(value) {
1955
+ this.setProperty("name", value);
1956
+ }
1957
+ /**
1958
+ * Resource properties.
1959
+ */
1960
+ get properties() {
1961
+ return this.expr("properties");
1962
+ }
1963
+ set properties(value) {
1964
+ this.setProperty("properties", value);
1965
+ }
1966
+ }
1967
+ /**
1968
+ * A recoverable managed database resource.
1969
+ */
1970
+ export class SqlAgent extends Resource {
1971
+ static resourceType = "Microsoft.Sql/managedInstances/sqlAgent";
1972
+ static apiVersion = API_VERSION;
1973
+ static {
1974
+ this.registerShape(createFlatModelShape({
1975
+ name: { armPath: ["name"], value: createStringLiteralShape(), readOnly: true },
1976
+ properties: {
1977
+ armPath: ["properties"],
1978
+ value: createDeferredShape(() => sqlAgentConfigurationPropertiesShape),
1979
+ },
1980
+ }));
1981
+ this.register();
1982
+ }
1983
+ /**
1984
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1985
+ * resource metadata and the fixed singleton `name`. Shared by ordinary construction and internal
1986
+ * resource reconstruction.
1987
+ *
1988
+ * @param props - Resource properties to normalize for the base constructor.
1989
+ */
1990
+ static buildResourceProps(props) {
1991
+ return {
1992
+ ...props,
1993
+ type: SqlAgent.resourceType,
1994
+ apiVersion: SqlAgent.apiVersion,
1995
+ name: "current",
1996
+ };
1997
+ }
1998
+ constructor(context, props, options) {
1999
+ super(context, SqlAgent.buildResourceProps(props), options);
2000
+ }
2001
+ get name() {
2002
+ return this.expr("name");
2003
+ }
2004
+ /**
2005
+ * Resource properties.
2006
+ */
2007
+ get properties() {
2008
+ return this.expr("properties");
2009
+ }
2010
+ set properties(value) {
2011
+ this.setProperty("properties", value);
2012
+ }
2013
+ }
2014
+ /**
2015
+ * Managed instance's Start/Stop schedule.
2016
+ */
2017
+ export class StartStopManagedInstanceSchedule extends Resource {
2018
+ static resourceType = "Microsoft.Sql/managedInstances/startStopSchedules";
2019
+ static apiVersion = API_VERSION;
2020
+ static namingRules = {
2021
+ abbreviation: "sss",
2022
+ pattern: {
2023
+ regex: "",
2024
+ },
2025
+ scope: "parent",
2026
+ };
2027
+ static {
2028
+ this.registerShape(createFlatModelShape({
2029
+ name: { armPath: ["name"], value: createUnionShape() },
2030
+ properties: {
2031
+ armPath: ["properties"],
2032
+ value: createDeferredShape(() => startStopManagedInstanceSchedulePropertiesShape),
2033
+ },
2034
+ }));
2035
+ this.register();
2036
+ }
2037
+ /**
2038
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2039
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2040
+ *
2041
+ * @param props - Resource properties to normalize for the base constructor.
2042
+ */
2043
+ static buildResourceProps(props) {
2044
+ return {
2045
+ ...props,
2046
+ type: StartStopManagedInstanceSchedule.resourceType,
2047
+ apiVersion: StartStopManagedInstanceSchedule.apiVersion,
2048
+ };
2049
+ }
2050
+ constructor(context, props, options) {
2051
+ super(context, StartStopManagedInstanceSchedule.buildResourceProps(props), options);
2052
+ }
2053
+ /**
2054
+ * Name of the managed instance Start/Stop schedule.
2055
+ */
2056
+ get name() {
2057
+ return this.expr("name");
2058
+ }
2059
+ set name(value) {
2060
+ this.setProperty("name", value);
2061
+ }
2062
+ /**
2063
+ * Resource properties.
2064
+ */
2065
+ get properties() {
2066
+ return this.expr("properties");
2067
+ }
2068
+ set properties(value) {
2069
+ this.setProperty("properties", value);
2070
+ }
2071
+ }
2072
+ /**
2073
+ * A managed instance vulnerability assessment.
2074
+ */
2075
+ export class ManagedInstanceVulnerabilityAssessment extends Resource {
2076
+ static resourceType = "Microsoft.Sql/managedInstances/vulnerabilityAssessments";
2077
+ static apiVersion = API_VERSION;
2078
+ static namingRules = {
2079
+ abbreviation: "va",
2080
+ pattern: {
2081
+ regex: "",
2082
+ },
2083
+ scope: "parent",
2084
+ };
2085
+ static {
2086
+ this.registerShape(createFlatModelShape({
2087
+ name: { armPath: ["name"], value: createUnionShape() },
2088
+ properties: {
2089
+ armPath: ["properties"],
2090
+ value: createDeferredShape(() => managedInstanceVulnerabilityAssessmentPropertiesShape),
2091
+ },
2092
+ }));
2093
+ this.register();
2094
+ }
2095
+ /**
2096
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2097
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2098
+ *
2099
+ * @param props - Resource properties to normalize for the base constructor.
2100
+ */
2101
+ static buildResourceProps(props) {
2102
+ return {
2103
+ ...props,
2104
+ type: ManagedInstanceVulnerabilityAssessment.resourceType,
2105
+ apiVersion: ManagedInstanceVulnerabilityAssessment.apiVersion,
2106
+ };
2107
+ }
2108
+ constructor(context, props, options) {
2109
+ super(context, ManagedInstanceVulnerabilityAssessment.buildResourceProps(props), options);
2110
+ }
2111
+ /**
2112
+ * The name of the vulnerability assessment.
2113
+ */
2114
+ get name() {
2115
+ return this.expr("name");
2116
+ }
2117
+ set name(value) {
2118
+ this.setProperty("name", value);
2119
+ }
2120
+ /**
2121
+ * Resource properties.
2122
+ */
2123
+ get properties() {
2124
+ return this.expr("properties");
2125
+ }
2126
+ set properties(value) {
2127
+ this.setProperty("properties", value);
2128
+ }
2129
+ }
2130
+ /**
2131
+ * An Azure SQL managed instance.
2132
+ */
2133
+ export class ManagedInstance extends Resource {
2134
+ static resourceType = "Microsoft.Sql/managedInstances";
2135
+ static apiVersion = API_VERSION;
2136
+ static namingRules = {
2137
+ abbreviation: "mi",
2138
+ pattern: {
2139
+ regex: "",
2140
+ },
2141
+ scope: "global",
2142
+ };
2143
+ static {
2144
+ this.registerShape(createFlatModelShape({
2145
+ identity: {
2146
+ armPath: ["identity"],
2147
+ value: createDeferredShape(() => resourceIdentityShape),
2148
+ },
2149
+ location: { armPath: ["location"], value: createStringShape() },
2150
+ name: { armPath: ["name"], value: createStringShape() },
2151
+ properties: {
2152
+ armPath: ["properties"],
2153
+ value: createDeferredShape(() => managedInstancePropertiesShape),
2154
+ },
2155
+ sku: { armPath: ["sku"], value: createDeferredShape(() => skuShape) },
2156
+ tags: { armPath: ["tags"], value: createRecordShape(createStringShape()) },
2157
+ }));
2158
+ this.register();
2159
+ }
2160
+ /**
2161
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2162
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2163
+ *
2164
+ * @param props - Resource properties to normalize for the base constructor.
2165
+ */
2166
+ static buildResourceProps(props) {
2167
+ return {
2168
+ ...props,
2169
+ type: ManagedInstance.resourceType,
2170
+ apiVersion: ManagedInstance.apiVersion,
2171
+ };
2172
+ }
2173
+ constructor(context, props, options) {
2174
+ super(context, ManagedInstance.buildResourceProps(props), options);
2175
+ }
2176
+ /**
2177
+ * The Azure Active Directory identity of the managed instance.
2178
+ */
2179
+ get identity() {
2180
+ return this.expr("identity");
2181
+ }
2182
+ set identity(value) {
2183
+ this.setProperty("identity", value);
2184
+ }
2185
+ /**
2186
+ * The geo-location where the resource lives
2187
+ */
2188
+ get location() {
2189
+ return this.expr("location");
2190
+ }
2191
+ set location(value) {
2192
+ this.setProperty("location", value);
2193
+ }
2194
+ /**
2195
+ * The name of the managed instance.
2196
+ */
2197
+ get name() {
2198
+ return this.expr("name");
2199
+ }
2200
+ set name(value) {
2201
+ this.setProperty("name", value);
2202
+ }
2203
+ /**
2204
+ * Resource properties.
2205
+ */
2206
+ get properties() {
2207
+ return this.expr("properties");
2208
+ }
2209
+ set properties(value) {
2210
+ this.setProperty("properties", value);
2211
+ }
2212
+ /**
2213
+ * Managed instance SKU. Allowed values for sku.name: GP_Gen5 (General Purpose, Standard-series);
2214
+ * GP_G8IM (General Purpose, Premium-series); GP_G8IH (General Purpose, Premium-series memory
2215
+ * optimized); BC_Gen5 (Business Critical, Standard-Series); BC_G8IM (Business Critical,
2216
+ * Premium-series); BC_G8IH (Business Critical, Premium-series memory optimized).
2217
+ */
2218
+ get sku() {
2219
+ return this.expr("sku");
2220
+ }
2221
+ set sku(value) {
2222
+ this.setProperty("sku", value);
2223
+ }
2224
+ /**
2225
+ * Resource tags.
2226
+ */
2227
+ get tags() {
2228
+ return this.expr("tags");
2229
+ }
2230
+ set tags(value) {
2231
+ this.setProperty("tags", value);
2232
+ }
2233
+ }
2234
+ //# sourceMappingURL=managed-instance.js.map