@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,4486 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { Resource, } from "@azure/provisioning-core";
4
+ import { createAnyShape, createDeferredShape, createEnumShape, createFlatModelShape, createRecordShape, createStringLiteralShape, createStringShape, createUnionShape, } from "@azure/provisioning-core/internal";
5
+ import { administratorPropertiesShape, advancedThreatProtectionPropertiesShape, advisorPropertiesShape, automaticTuningServerPropertiesShape, azureAdOnlyAuthPropertiesShape, backupShortTermRetentionPolicyPropertiesShape, databaseAutomaticTuningPropertiesShape, databaseBlobAuditingPolicyPropertiesShape, databaseColumnPropertiesShape, databaseExtensionsPropertiesShape, databaseIdentityShape, databasePropertiesShape, databaseSqlVulnerabilityAssessmentBaselineSetPropertiesShape, databaseSqlVulnerabilityAssessmentRuleBaselinePropertiesShape, databaseTablePropertiesShape, databaseVulnerabilityAssessmentPropertiesShape, databaseVulnerabilityAssessmentRuleBaselinePropertiesShape, dataMaskingPolicyPropertiesShape, dataMaskingRulePropertiesShape, dataWarehouseUserActivitiesPropertiesShape, elasticPoolPropertiesShape, encryptionProtectorPropertiesShape, extendedDatabaseBlobAuditingPolicyPropertiesShape, extendedServerBlobAuditingPolicyPropertiesShape, failoverGroupPropertiesShape, geoBackupPolicyPropertiesShape, iPv6ServerFirewallRulePropertiesShape, jobAgentIdentityShape, jobAgentPropertiesShape, jobCredentialPropertiesShape, jobExecutionPropertiesShape, jobPrivateEndpointPropertiesShape, jobPropertiesShape, jobStepPropertiesShape, jobTargetGroupPropertiesShape, ledgerDigestUploadsPropertiesShape, longTermRetentionPolicyPropertiesShape, networkSecurityPerimeterConfigurationPropertiesShape, outboundFirewallRulePropertiesShape, privateEndpointConnectionPropertiesShape, privateLinkResourcePropertiesShape, recommendedActionPropertiesShape, recoverableDatabasePropertiesShape, replicationLinkPropertiesShape, resourceIdentityShape, restorableDroppedDatabasePropertiesShape, restorePointPropertiesShape, securityAlertsPolicyPropertiesShape, sensitivityLabelPropertiesShape, serverBlobAuditingPolicyPropertiesShape, serverConnectionPolicyPropertiesShape, serverDevOpsAuditSettingsPropertiesShape, serverDnsAliasPropertiesShape, serverFirewallRulePropertiesShape, serverKeyPropertiesShape, serverPropertiesShape, serverVulnerabilityAssessmentPropertiesShape, skuShape, sqlVulnerabilityAssessmentPolicyPropertiesShape, sqlVulnerabilityAssessmentScanRecordPropertiesShape, sqlVulnerabilityAssessmentScanResultPropertiesShape, syncAgentPropertiesShape, syncGroupPropertiesShape, syncMemberPropertiesShape, transparentDataEncryptionPropertiesShape, virtualNetworkRulePropertiesShape, vulnerabilityAssessmentScanRecordPropertiesShape, workloadClassifierPropertiesShape, workloadGroupPropertiesShape, } from "./types.js";
6
+ const API_VERSION = "2025-01-01";
7
+ /**
8
+ * Azure Active Directory administrator.
9
+ */
10
+ export class ServerAdministrator extends Resource {
11
+ static resourceType = "Microsoft.Sql/servers/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(() => administratorPropertiesShape),
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: ServerAdministrator.resourceType,
40
+ apiVersion: ServerAdministrator.apiVersion,
41
+ };
42
+ }
43
+ constructor(context, props, options) {
44
+ super(context, ServerAdministrator.buildResourceProps(props), options);
45
+ }
46
+ /**
47
+ * The name of server active directory administrator.
48
+ */
49
+ get name() {
50
+ return this.expr("name");
51
+ }
52
+ set name(value) {
53
+ this.setProperty("name", value);
54
+ }
55
+ /**
56
+ * Resource properties.
57
+ */
58
+ get properties() {
59
+ return this.expr("properties");
60
+ }
61
+ set properties(value) {
62
+ this.setProperty("properties", value);
63
+ }
64
+ }
65
+ /**
66
+ * A server Advanced Threat Protection.
67
+ */
68
+ export class ServerAdvancedThreatProtection extends Resource {
69
+ static resourceType = "Microsoft.Sql/servers/advancedThreatProtectionSettings";
70
+ static apiVersion = API_VERSION;
71
+ static namingRules = {
72
+ abbreviation: "atps",
73
+ pattern: {
74
+ regex: "",
75
+ },
76
+ scope: "parent",
77
+ };
78
+ static {
79
+ this.registerShape(createFlatModelShape({
80
+ name: { armPath: ["name"], value: createUnionShape() },
81
+ properties: {
82
+ armPath: ["properties"],
83
+ value: createDeferredShape(() => advancedThreatProtectionPropertiesShape),
84
+ },
85
+ }));
86
+ this.register();
87
+ }
88
+ /**
89
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
90
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
91
+ *
92
+ * @param props - Resource properties to normalize for the base constructor.
93
+ */
94
+ static buildResourceProps(props) {
95
+ return {
96
+ ...props,
97
+ type: ServerAdvancedThreatProtection.resourceType,
98
+ apiVersion: ServerAdvancedThreatProtection.apiVersion,
99
+ };
100
+ }
101
+ constructor(context, props, options) {
102
+ super(context, ServerAdvancedThreatProtection.buildResourceProps(props), options);
103
+ }
104
+ /**
105
+ * The name of the Advanced Threat Protection state.
106
+ */
107
+ get name() {
108
+ return this.expr("name");
109
+ }
110
+ set name(value) {
111
+ this.setProperty("name", value);
112
+ }
113
+ /**
114
+ * Resource properties.
115
+ */
116
+ get properties() {
117
+ return this.expr("properties");
118
+ }
119
+ set properties(value) {
120
+ this.setProperty("properties", value);
121
+ }
122
+ }
123
+ /**
124
+ * Database, Server or Elastic Pool Advisor.
125
+ */
126
+ export class SqlServerAdvisor extends Resource {
127
+ static resourceType = "Microsoft.Sql/servers/advisors";
128
+ static apiVersion = API_VERSION;
129
+ static namingRules = {
130
+ abbreviation: "a",
131
+ scope: "parent",
132
+ };
133
+ static {
134
+ this.registerShape(createFlatModelShape({
135
+ kind: { armPath: ["kind"], value: createStringShape(), readOnly: true },
136
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
137
+ name: { armPath: ["name"], value: createStringShape() },
138
+ properties: {
139
+ armPath: ["properties"],
140
+ value: createDeferredShape(() => advisorPropertiesShape),
141
+ readOnly: true,
142
+ },
143
+ }));
144
+ this.register();
145
+ }
146
+ /**
147
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
148
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
149
+ *
150
+ * @param props - Resource properties to normalize for the base constructor.
151
+ */
152
+ static buildResourceProps(props) {
153
+ return {
154
+ ...props,
155
+ type: SqlServerAdvisor.resourceType,
156
+ apiVersion: SqlServerAdvisor.apiVersion,
157
+ };
158
+ }
159
+ constructor(context, props, options) {
160
+ super(context, SqlServerAdvisor.buildResourceProps(props), options);
161
+ }
162
+ /**
163
+ * Resource kind.
164
+ */
165
+ get kind() {
166
+ return this.expr("kind");
167
+ }
168
+ /**
169
+ * Resource location.
170
+ */
171
+ get location() {
172
+ return this.expr("location");
173
+ }
174
+ /**
175
+ * The name of the Database Advisor.
176
+ */
177
+ get name() {
178
+ return this.expr("name");
179
+ }
180
+ set name(value) {
181
+ this.setProperty("name", value);
182
+ }
183
+ /**
184
+ * Resource properties.
185
+ */
186
+ get properties() {
187
+ return this.expr("properties");
188
+ }
189
+ }
190
+ /**
191
+ * A server blob auditing policy.
192
+ */
193
+ export class SqlServerBlobAuditingPolicy extends Resource {
194
+ static resourceType = "Microsoft.Sql/servers/auditingSettings";
195
+ static apiVersion = API_VERSION;
196
+ static namingRules = {
197
+ abbreviation: "as",
198
+ scope: "parent",
199
+ };
200
+ static {
201
+ this.registerShape(createFlatModelShape({
202
+ name: { armPath: ["name"], value: createEnumShape() },
203
+ properties: {
204
+ armPath: ["properties"],
205
+ value: createDeferredShape(() => serverBlobAuditingPolicyPropertiesShape),
206
+ },
207
+ }));
208
+ this.register();
209
+ }
210
+ /**
211
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
212
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
213
+ *
214
+ * @param props - Resource properties to normalize for the base constructor.
215
+ */
216
+ static buildResourceProps(props) {
217
+ return {
218
+ ...props,
219
+ type: SqlServerBlobAuditingPolicy.resourceType,
220
+ apiVersion: SqlServerBlobAuditingPolicy.apiVersion,
221
+ };
222
+ }
223
+ constructor(context, props, options) {
224
+ super(context, SqlServerBlobAuditingPolicy.buildResourceProps(props), options);
225
+ }
226
+ get name() {
227
+ return this.expr("name");
228
+ }
229
+ set name(value) {
230
+ this.setProperty("name", value);
231
+ }
232
+ /**
233
+ * Resource properties.
234
+ */
235
+ get properties() {
236
+ return this.expr("properties");
237
+ }
238
+ set properties(value) {
239
+ this.setProperty("properties", value);
240
+ }
241
+ }
242
+ /**
243
+ * Server-level Automatic Tuning.
244
+ */
245
+ export class ServerAutomaticTuning extends Resource {
246
+ static resourceType = "Microsoft.Sql/servers/automaticTuning";
247
+ static apiVersion = API_VERSION;
248
+ static {
249
+ this.registerShape(createFlatModelShape({
250
+ name: { armPath: ["name"], value: createStringLiteralShape(), readOnly: true },
251
+ properties: {
252
+ armPath: ["properties"],
253
+ value: createDeferredShape(() => automaticTuningServerPropertiesShape),
254
+ readOnly: true,
255
+ },
256
+ }));
257
+ this.register();
258
+ }
259
+ /**
260
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
261
+ * resource metadata and the fixed singleton `name`. Shared by ordinary construction and internal
262
+ * resource reconstruction.
263
+ *
264
+ * @param props - Resource properties to normalize for the base constructor.
265
+ */
266
+ static buildResourceProps(props) {
267
+ return {
268
+ ...props,
269
+ type: ServerAutomaticTuning.resourceType,
270
+ apiVersion: ServerAutomaticTuning.apiVersion,
271
+ name: "current",
272
+ };
273
+ }
274
+ constructor(context, props, options) {
275
+ super(context, ServerAutomaticTuning.buildResourceProps(props), options);
276
+ }
277
+ get name() {
278
+ return this.expr("name");
279
+ }
280
+ /**
281
+ * Resource properties.
282
+ */
283
+ get properties() {
284
+ return this.expr("properties");
285
+ }
286
+ }
287
+ /**
288
+ * Azure Active Directory only authentication.
289
+ */
290
+ export class ServerAzureAdOnlyAuthentication extends Resource {
291
+ static resourceType = "Microsoft.Sql/servers/azureADOnlyAuthentications";
292
+ static apiVersion = API_VERSION;
293
+ static namingRules = {
294
+ abbreviation: "aaa",
295
+ pattern: {
296
+ regex: "",
297
+ },
298
+ scope: "parent",
299
+ };
300
+ static {
301
+ this.registerShape(createFlatModelShape({
302
+ name: { armPath: ["name"], value: createUnionShape() },
303
+ properties: {
304
+ armPath: ["properties"],
305
+ value: createDeferredShape(() => azureAdOnlyAuthPropertiesShape),
306
+ },
307
+ }));
308
+ this.register();
309
+ }
310
+ /**
311
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
312
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
313
+ *
314
+ * @param props - Resource properties to normalize for the base constructor.
315
+ */
316
+ static buildResourceProps(props) {
317
+ return {
318
+ ...props,
319
+ type: ServerAzureAdOnlyAuthentication.resourceType,
320
+ apiVersion: ServerAzureAdOnlyAuthentication.apiVersion,
321
+ };
322
+ }
323
+ constructor(context, props, options) {
324
+ super(context, ServerAzureAdOnlyAuthentication.buildResourceProps(props), options);
325
+ }
326
+ /**
327
+ * The name of server azure active directory only authentication.
328
+ */
329
+ get name() {
330
+ return this.expr("name");
331
+ }
332
+ set name(value) {
333
+ this.setProperty("name", value);
334
+ }
335
+ /**
336
+ * Resource properties.
337
+ */
338
+ get properties() {
339
+ return this.expr("properties");
340
+ }
341
+ set properties(value) {
342
+ this.setProperty("properties", value);
343
+ }
344
+ }
345
+ /**
346
+ * A server connection policy
347
+ */
348
+ export class ConnectionPolicy extends Resource {
349
+ static resourceType = "Microsoft.Sql/servers/connectionPolicies";
350
+ static apiVersion = API_VERSION;
351
+ static namingRules = {
352
+ abbreviation: "cp",
353
+ pattern: {
354
+ regex: "",
355
+ },
356
+ scope: "parent",
357
+ };
358
+ static {
359
+ this.registerShape(createFlatModelShape({
360
+ kind: { armPath: ["kind"], value: createStringShape(), readOnly: true },
361
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
362
+ name: { armPath: ["name"], value: createUnionShape() },
363
+ properties: {
364
+ armPath: ["properties"],
365
+ value: createDeferredShape(() => serverConnectionPolicyPropertiesShape),
366
+ },
367
+ }));
368
+ this.register();
369
+ }
370
+ /**
371
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
372
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
373
+ *
374
+ * @param props - Resource properties to normalize for the base constructor.
375
+ */
376
+ static buildResourceProps(props) {
377
+ return {
378
+ ...props,
379
+ type: ConnectionPolicy.resourceType,
380
+ apiVersion: ConnectionPolicy.apiVersion,
381
+ };
382
+ }
383
+ constructor(context, props, options) {
384
+ super(context, ConnectionPolicy.buildResourceProps(props), options);
385
+ }
386
+ /**
387
+ * Metadata used for the Azure portal experience.
388
+ */
389
+ get kind() {
390
+ return this.expr("kind");
391
+ }
392
+ /**
393
+ * Resource location.
394
+ */
395
+ get location() {
396
+ return this.expr("location");
397
+ }
398
+ /**
399
+ * The name of the connection policy.
400
+ */
401
+ get name() {
402
+ return this.expr("name");
403
+ }
404
+ set name(value) {
405
+ this.setProperty("name", value);
406
+ }
407
+ /**
408
+ * Resource properties.
409
+ */
410
+ get properties() {
411
+ return this.expr("properties");
412
+ }
413
+ set properties(value) {
414
+ this.setProperty("properties", value);
415
+ }
416
+ }
417
+ /**
418
+ * A database Advanced Threat Protection.
419
+ */
420
+ export class DatabaseAdvancedThreatProtection extends Resource {
421
+ static resourceType = "Microsoft.Sql/servers/databases/advancedThreatProtectionSettings";
422
+ static apiVersion = API_VERSION;
423
+ static namingRules = {
424
+ abbreviation: "atps",
425
+ pattern: {
426
+ regex: "",
427
+ },
428
+ scope: "parent",
429
+ };
430
+ static {
431
+ this.registerShape(createFlatModelShape({
432
+ name: { armPath: ["name"], value: createUnionShape() },
433
+ properties: {
434
+ armPath: ["properties"],
435
+ value: createDeferredShape(() => advancedThreatProtectionPropertiesShape),
436
+ },
437
+ }));
438
+ this.register();
439
+ }
440
+ /**
441
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
442
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
443
+ *
444
+ * @param props - Resource properties to normalize for the base constructor.
445
+ */
446
+ static buildResourceProps(props) {
447
+ return {
448
+ ...props,
449
+ type: DatabaseAdvancedThreatProtection.resourceType,
450
+ apiVersion: DatabaseAdvancedThreatProtection.apiVersion,
451
+ };
452
+ }
453
+ constructor(context, props, options) {
454
+ super(context, DatabaseAdvancedThreatProtection.buildResourceProps(props), options);
455
+ }
456
+ /**
457
+ * The name of the Advanced Threat Protection state.
458
+ */
459
+ get name() {
460
+ return this.expr("name");
461
+ }
462
+ set name(value) {
463
+ this.setProperty("name", value);
464
+ }
465
+ /**
466
+ * Resource properties.
467
+ */
468
+ get properties() {
469
+ return this.expr("properties");
470
+ }
471
+ set properties(value) {
472
+ this.setProperty("properties", value);
473
+ }
474
+ }
475
+ /**
476
+ * Database, Server or Elastic Pool Recommended Action.
477
+ */
478
+ export class RecommendedAction extends Resource {
479
+ static resourceType = "Microsoft.Sql/servers/databases/advisors/recommendedActions";
480
+ static apiVersion = API_VERSION;
481
+ static namingRules = {
482
+ abbreviation: "ra",
483
+ pattern: {
484
+ regex: "",
485
+ },
486
+ scope: "parent",
487
+ };
488
+ static {
489
+ this.registerShape(createFlatModelShape({
490
+ kind: { armPath: ["kind"], value: createStringShape(), readOnly: true },
491
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
492
+ name: { armPath: ["name"], value: createStringShape() },
493
+ properties: {
494
+ armPath: ["properties"],
495
+ value: createDeferredShape(() => recommendedActionPropertiesShape),
496
+ readOnly: true,
497
+ },
498
+ }));
499
+ this.register();
500
+ }
501
+ /**
502
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
503
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
504
+ *
505
+ * @param props - Resource properties to normalize for the base constructor.
506
+ */
507
+ static buildResourceProps(props) {
508
+ return {
509
+ ...props,
510
+ type: RecommendedAction.resourceType,
511
+ apiVersion: RecommendedAction.apiVersion,
512
+ };
513
+ }
514
+ constructor(context, props, options) {
515
+ super(context, RecommendedAction.buildResourceProps(props), options);
516
+ }
517
+ /**
518
+ * Resource kind.
519
+ */
520
+ get kind() {
521
+ return this.expr("kind");
522
+ }
523
+ /**
524
+ * Resource location.
525
+ */
526
+ get location() {
527
+ return this.expr("location");
528
+ }
529
+ /**
530
+ * The name of Database Recommended Action.
531
+ */
532
+ get name() {
533
+ return this.expr("name");
534
+ }
535
+ set name(value) {
536
+ this.setProperty("name", value);
537
+ }
538
+ /**
539
+ * Resource properties.
540
+ */
541
+ get properties() {
542
+ return this.expr("properties");
543
+ }
544
+ }
545
+ /**
546
+ * Database, Server or Elastic Pool Advisor.
547
+ */
548
+ export class SqlDatabaseAdvisor extends Resource {
549
+ static resourceType = "Microsoft.Sql/servers/databases/advisors";
550
+ static apiVersion = API_VERSION;
551
+ static namingRules = {
552
+ abbreviation: "a",
553
+ scope: "parent",
554
+ };
555
+ static {
556
+ this.registerShape(createFlatModelShape({
557
+ kind: { armPath: ["kind"], value: createStringShape(), readOnly: true },
558
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
559
+ name: { armPath: ["name"], value: createStringShape() },
560
+ properties: {
561
+ armPath: ["properties"],
562
+ value: createDeferredShape(() => advisorPropertiesShape),
563
+ readOnly: true,
564
+ },
565
+ }));
566
+ this.register();
567
+ }
568
+ /**
569
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
570
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
571
+ *
572
+ * @param props - Resource properties to normalize for the base constructor.
573
+ */
574
+ static buildResourceProps(props) {
575
+ return {
576
+ ...props,
577
+ type: SqlDatabaseAdvisor.resourceType,
578
+ apiVersion: SqlDatabaseAdvisor.apiVersion,
579
+ };
580
+ }
581
+ constructor(context, props, options) {
582
+ super(context, SqlDatabaseAdvisor.buildResourceProps(props), options);
583
+ }
584
+ /**
585
+ * Resource kind.
586
+ */
587
+ get kind() {
588
+ return this.expr("kind");
589
+ }
590
+ /**
591
+ * Resource location.
592
+ */
593
+ get location() {
594
+ return this.expr("location");
595
+ }
596
+ /**
597
+ * The name of the Database Advisor.
598
+ */
599
+ get name() {
600
+ return this.expr("name");
601
+ }
602
+ set name(value) {
603
+ this.setProperty("name", value);
604
+ }
605
+ /**
606
+ * Resource properties.
607
+ */
608
+ get properties() {
609
+ return this.expr("properties");
610
+ }
611
+ }
612
+ /**
613
+ * A database blob auditing policy.
614
+ */
615
+ export class DatabaseBlobAuditingPolicy extends Resource {
616
+ static resourceType = "Microsoft.Sql/servers/databases/auditingSettings";
617
+ static apiVersion = API_VERSION;
618
+ static namingRules = {
619
+ abbreviation: "as",
620
+ scope: "parent",
621
+ };
622
+ static {
623
+ this.registerShape(createFlatModelShape({
624
+ kind: { armPath: ["kind"], value: createStringShape(), readOnly: true },
625
+ name: { armPath: ["name"], value: createEnumShape() },
626
+ properties: {
627
+ armPath: ["properties"],
628
+ value: createDeferredShape(() => databaseBlobAuditingPolicyPropertiesShape),
629
+ },
630
+ }));
631
+ this.register();
632
+ }
633
+ /**
634
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
635
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
636
+ *
637
+ * @param props - Resource properties to normalize for the base constructor.
638
+ */
639
+ static buildResourceProps(props) {
640
+ return {
641
+ ...props,
642
+ type: DatabaseBlobAuditingPolicy.resourceType,
643
+ apiVersion: DatabaseBlobAuditingPolicy.apiVersion,
644
+ };
645
+ }
646
+ constructor(context, props, options) {
647
+ super(context, DatabaseBlobAuditingPolicy.buildResourceProps(props), options);
648
+ }
649
+ /**
650
+ * Resource kind.
651
+ */
652
+ get kind() {
653
+ return this.expr("kind");
654
+ }
655
+ get name() {
656
+ return this.expr("name");
657
+ }
658
+ set name(value) {
659
+ this.setProperty("name", value);
660
+ }
661
+ /**
662
+ * Resource properties.
663
+ */
664
+ get properties() {
665
+ return this.expr("properties");
666
+ }
667
+ set properties(value) {
668
+ this.setProperty("properties", value);
669
+ }
670
+ }
671
+ /**
672
+ * Database-level Automatic Tuning.
673
+ */
674
+ export class DatabaseAutomaticTuning extends Resource {
675
+ static resourceType = "Microsoft.Sql/servers/databases/automaticTuning";
676
+ static apiVersion = API_VERSION;
677
+ static {
678
+ this.registerShape(createFlatModelShape({
679
+ name: { armPath: ["name"], value: createStringLiteralShape(), readOnly: true },
680
+ properties: {
681
+ armPath: ["properties"],
682
+ value: createDeferredShape(() => databaseAutomaticTuningPropertiesShape),
683
+ readOnly: true,
684
+ },
685
+ }));
686
+ this.register();
687
+ }
688
+ /**
689
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
690
+ * resource metadata and the fixed singleton `name`. Shared by ordinary construction and internal
691
+ * resource reconstruction.
692
+ *
693
+ * @param props - Resource properties to normalize for the base constructor.
694
+ */
695
+ static buildResourceProps(props) {
696
+ return {
697
+ ...props,
698
+ type: DatabaseAutomaticTuning.resourceType,
699
+ apiVersion: DatabaseAutomaticTuning.apiVersion,
700
+ name: "current",
701
+ };
702
+ }
703
+ constructor(context, props, options) {
704
+ super(context, DatabaseAutomaticTuning.buildResourceProps(props), options);
705
+ }
706
+ get name() {
707
+ return this.expr("name");
708
+ }
709
+ /**
710
+ * Resource properties.
711
+ */
712
+ get properties() {
713
+ return this.expr("properties");
714
+ }
715
+ }
716
+ /**
717
+ * A long term retention policy.
718
+ */
719
+ export class LongTermRetentionPolicy extends Resource {
720
+ static resourceType = "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies";
721
+ static apiVersion = API_VERSION;
722
+ static namingRules = {
723
+ abbreviation: "bltrp",
724
+ pattern: {
725
+ regex: "",
726
+ },
727
+ scope: "parent",
728
+ };
729
+ static {
730
+ this.registerShape(createFlatModelShape({
731
+ name: { armPath: ["name"], value: createUnionShape() },
732
+ properties: {
733
+ armPath: ["properties"],
734
+ value: createDeferredShape(() => longTermRetentionPolicyPropertiesShape),
735
+ },
736
+ }));
737
+ this.register();
738
+ }
739
+ /**
740
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
741
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
742
+ *
743
+ * @param props - Resource properties to normalize for the base constructor.
744
+ */
745
+ static buildResourceProps(props) {
746
+ return {
747
+ ...props,
748
+ type: LongTermRetentionPolicy.resourceType,
749
+ apiVersion: LongTermRetentionPolicy.apiVersion,
750
+ };
751
+ }
752
+ constructor(context, props, options) {
753
+ super(context, LongTermRetentionPolicy.buildResourceProps(props), options);
754
+ }
755
+ /**
756
+ * The policy name. Should always be Default.
757
+ */
758
+ get name() {
759
+ return this.expr("name");
760
+ }
761
+ set name(value) {
762
+ this.setProperty("name", value);
763
+ }
764
+ /**
765
+ * Resource properties.
766
+ */
767
+ get properties() {
768
+ return this.expr("properties");
769
+ }
770
+ set properties(value) {
771
+ this.setProperty("properties", value);
772
+ }
773
+ }
774
+ /**
775
+ * A short term retention policy.
776
+ */
777
+ export class BackupShortTermRetentionPolicy extends Resource {
778
+ static resourceType = "Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies";
779
+ static apiVersion = API_VERSION;
780
+ static namingRules = {
781
+ abbreviation: "bstrp",
782
+ pattern: {
783
+ regex: "",
784
+ },
785
+ scope: "parent",
786
+ };
787
+ static {
788
+ this.registerShape(createFlatModelShape({
789
+ name: { armPath: ["name"], value: createUnionShape() },
790
+ properties: {
791
+ armPath: ["properties"],
792
+ value: createDeferredShape(() => backupShortTermRetentionPolicyPropertiesShape),
793
+ },
794
+ }));
795
+ this.register();
796
+ }
797
+ /**
798
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
799
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
800
+ *
801
+ * @param props - Resource properties to normalize for the base constructor.
802
+ */
803
+ static buildResourceProps(props) {
804
+ return {
805
+ ...props,
806
+ type: BackupShortTermRetentionPolicy.resourceType,
807
+ apiVersion: BackupShortTermRetentionPolicy.apiVersion,
808
+ };
809
+ }
810
+ constructor(context, props, options) {
811
+ super(context, BackupShortTermRetentionPolicy.buildResourceProps(props), options);
812
+ }
813
+ /**
814
+ * The policy name. Should always be default.
815
+ */
816
+ get name() {
817
+ return this.expr("name");
818
+ }
819
+ set name(value) {
820
+ this.setProperty("name", value);
821
+ }
822
+ /**
823
+ * Resource properties.
824
+ */
825
+ get properties() {
826
+ return this.expr("properties");
827
+ }
828
+ set properties(value) {
829
+ this.setProperty("properties", value);
830
+ }
831
+ }
832
+ /**
833
+ * A database data masking rule.
834
+ */
835
+ export class Rule extends Resource {
836
+ static resourceType = "Microsoft.Sql/servers/databases/dataMaskingPolicies/rules";
837
+ static apiVersion = API_VERSION;
838
+ static namingRules = {
839
+ abbreviation: "r",
840
+ scope: "parent",
841
+ };
842
+ static {
843
+ this.registerShape(createFlatModelShape({
844
+ kind: { armPath: ["kind"], value: createStringShape(), readOnly: true },
845
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
846
+ name: { armPath: ["name"], value: createStringShape() },
847
+ properties: {
848
+ armPath: ["properties"],
849
+ value: createDeferredShape(() => dataMaskingRulePropertiesShape),
850
+ },
851
+ }));
852
+ this.register();
853
+ }
854
+ /**
855
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
856
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
857
+ *
858
+ * @param props - Resource properties to normalize for the base constructor.
859
+ */
860
+ static buildResourceProps(props) {
861
+ return {
862
+ ...props,
863
+ type: Rule.resourceType,
864
+ apiVersion: Rule.apiVersion,
865
+ };
866
+ }
867
+ constructor(context, props, options) {
868
+ super(context, Rule.buildResourceProps(props), options);
869
+ }
870
+ /**
871
+ * The kind of Data Masking Rule. Metadata, used for Azure portal.
872
+ */
873
+ get kind() {
874
+ return this.expr("kind");
875
+ }
876
+ /**
877
+ * The location of the data masking rule.
878
+ */
879
+ get location() {
880
+ return this.expr("location");
881
+ }
882
+ /**
883
+ * The name of the resource
884
+ */
885
+ get name() {
886
+ return this.expr("name");
887
+ }
888
+ set name(value) {
889
+ this.setProperty("name", value);
890
+ }
891
+ /**
892
+ * Resource properties.
893
+ */
894
+ get properties() {
895
+ return this.expr("properties");
896
+ }
897
+ set properties(value) {
898
+ this.setProperty("properties", value);
899
+ }
900
+ }
901
+ /**
902
+ * A database data masking policy.
903
+ */
904
+ export class DataMaskingPolicy extends Resource {
905
+ static resourceType = "Microsoft.Sql/servers/databases/dataMaskingPolicies";
906
+ static apiVersion = API_VERSION;
907
+ static namingRules = {
908
+ abbreviation: "dmp",
909
+ pattern: {
910
+ regex: "",
911
+ },
912
+ scope: "parent",
913
+ };
914
+ static {
915
+ this.registerShape(createFlatModelShape({
916
+ kind: { armPath: ["kind"], value: createStringShape(), readOnly: true },
917
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
918
+ name: { armPath: ["name"], value: createUnionShape() },
919
+ properties: {
920
+ armPath: ["properties"],
921
+ value: createDeferredShape(() => dataMaskingPolicyPropertiesShape),
922
+ },
923
+ }));
924
+ this.register();
925
+ }
926
+ /**
927
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
928
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
929
+ *
930
+ * @param props - Resource properties to normalize for the base constructor.
931
+ */
932
+ static buildResourceProps(props) {
933
+ return {
934
+ ...props,
935
+ type: DataMaskingPolicy.resourceType,
936
+ apiVersion: DataMaskingPolicy.apiVersion,
937
+ };
938
+ }
939
+ constructor(context, props, options) {
940
+ super(context, DataMaskingPolicy.buildResourceProps(props), options);
941
+ }
942
+ /**
943
+ * The kind of Data Masking Policy. Metadata, used for Azure portal.
944
+ */
945
+ get kind() {
946
+ return this.expr("kind");
947
+ }
948
+ /**
949
+ * The location of the data masking policy.
950
+ */
951
+ get location() {
952
+ return this.expr("location");
953
+ }
954
+ /**
955
+ * The name of the database for which the data masking policy applies.
956
+ */
957
+ get name() {
958
+ return this.expr("name");
959
+ }
960
+ set name(value) {
961
+ this.setProperty("name", value);
962
+ }
963
+ /**
964
+ * Resource properties.
965
+ */
966
+ get properties() {
967
+ return this.expr("properties");
968
+ }
969
+ set properties(value) {
970
+ this.setProperty("properties", value);
971
+ }
972
+ }
973
+ /**
974
+ * User activities of a data warehouse
975
+ */
976
+ export class DataWarehouseUserActivities extends Resource {
977
+ static resourceType = "Microsoft.Sql/servers/databases/dataWarehouseUserActivities";
978
+ static apiVersion = API_VERSION;
979
+ static namingRules = {
980
+ abbreviation: "dwua",
981
+ pattern: {
982
+ regex: "",
983
+ },
984
+ scope: "parent",
985
+ };
986
+ static {
987
+ this.registerShape(createFlatModelShape({
988
+ name: { armPath: ["name"], value: createUnionShape() },
989
+ properties: {
990
+ armPath: ["properties"],
991
+ value: createDeferredShape(() => dataWarehouseUserActivitiesPropertiesShape),
992
+ readOnly: true,
993
+ },
994
+ }));
995
+ this.register();
996
+ }
997
+ /**
998
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
999
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1000
+ *
1001
+ * @param props - Resource properties to normalize for the base constructor.
1002
+ */
1003
+ static buildResourceProps(props) {
1004
+ return {
1005
+ ...props,
1006
+ type: DataWarehouseUserActivities.resourceType,
1007
+ apiVersion: DataWarehouseUserActivities.apiVersion,
1008
+ };
1009
+ }
1010
+ constructor(context, props, options) {
1011
+ super(context, DataWarehouseUserActivities.buildResourceProps(props), options);
1012
+ }
1013
+ /**
1014
+ * The activity name of the data warehouse.
1015
+ */
1016
+ get name() {
1017
+ return this.expr("name");
1018
+ }
1019
+ set name(value) {
1020
+ this.setProperty("name", value);
1021
+ }
1022
+ /**
1023
+ * Resource properties.
1024
+ */
1025
+ get properties() {
1026
+ return this.expr("properties");
1027
+ }
1028
+ }
1029
+ /**
1030
+ * An extended database blob auditing policy.
1031
+ */
1032
+ export class ExtendedDatabaseBlobAuditingPolicy extends Resource {
1033
+ static resourceType = "Microsoft.Sql/servers/databases/extendedAuditingSettings";
1034
+ static apiVersion = API_VERSION;
1035
+ static namingRules = {
1036
+ abbreviation: "eas",
1037
+ scope: "parent",
1038
+ };
1039
+ static {
1040
+ this.registerShape(createFlatModelShape({
1041
+ name: { armPath: ["name"], value: createEnumShape() },
1042
+ properties: {
1043
+ armPath: ["properties"],
1044
+ value: createDeferredShape(() => extendedDatabaseBlobAuditingPolicyPropertiesShape),
1045
+ },
1046
+ }));
1047
+ this.register();
1048
+ }
1049
+ /**
1050
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1051
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1052
+ *
1053
+ * @param props - Resource properties to normalize for the base constructor.
1054
+ */
1055
+ static buildResourceProps(props) {
1056
+ return {
1057
+ ...props,
1058
+ type: ExtendedDatabaseBlobAuditingPolicy.resourceType,
1059
+ apiVersion: ExtendedDatabaseBlobAuditingPolicy.apiVersion,
1060
+ };
1061
+ }
1062
+ constructor(context, props, options) {
1063
+ super(context, ExtendedDatabaseBlobAuditingPolicy.buildResourceProps(props), options);
1064
+ }
1065
+ get name() {
1066
+ return this.expr("name");
1067
+ }
1068
+ set name(value) {
1069
+ this.setProperty("name", value);
1070
+ }
1071
+ /**
1072
+ * Resource properties.
1073
+ */
1074
+ get properties() {
1075
+ return this.expr("properties");
1076
+ }
1077
+ set properties(value) {
1078
+ this.setProperty("properties", value);
1079
+ }
1080
+ }
1081
+ /**
1082
+ * An Import, Export, or PolybaseImport resource.
1083
+ */
1084
+ export class Extension extends Resource {
1085
+ static resourceType = "Microsoft.Sql/servers/databases/extensions";
1086
+ static apiVersion = API_VERSION;
1087
+ static namingRules = {
1088
+ abbreviation: "e",
1089
+ pattern: {
1090
+ regex: "",
1091
+ },
1092
+ scope: "parent",
1093
+ };
1094
+ static {
1095
+ this.registerShape(createFlatModelShape({
1096
+ name: { armPath: ["name"], value: createStringShape() },
1097
+ properties: {
1098
+ armPath: ["properties"],
1099
+ value: createDeferredShape(() => databaseExtensionsPropertiesShape),
1100
+ },
1101
+ }));
1102
+ this.register();
1103
+ }
1104
+ /**
1105
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1106
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1107
+ *
1108
+ * @param props - Resource properties to normalize for the base constructor.
1109
+ */
1110
+ static buildResourceProps(props) {
1111
+ return {
1112
+ ...props,
1113
+ type: Extension.resourceType,
1114
+ apiVersion: Extension.apiVersion,
1115
+ };
1116
+ }
1117
+ constructor(context, props, options) {
1118
+ super(context, Extension.buildResourceProps(props), options);
1119
+ }
1120
+ /**
1121
+ * The name of the resource
1122
+ */
1123
+ get name() {
1124
+ return this.expr("name");
1125
+ }
1126
+ set name(value) {
1127
+ this.setProperty("name", value);
1128
+ }
1129
+ /**
1130
+ * Resource properties.
1131
+ */
1132
+ get properties() {
1133
+ return this.expr("properties");
1134
+ }
1135
+ set properties(value) {
1136
+ this.setProperty("properties", value);
1137
+ }
1138
+ }
1139
+ /**
1140
+ * A Geo backup policy.
1141
+ */
1142
+ export class GeoBackupPolicy extends Resource {
1143
+ static resourceType = "Microsoft.Sql/servers/databases/geoBackupPolicies";
1144
+ static apiVersion = API_VERSION;
1145
+ static namingRules = {
1146
+ abbreviation: "gbp",
1147
+ pattern: {
1148
+ regex: "",
1149
+ },
1150
+ scope: "parent",
1151
+ };
1152
+ static {
1153
+ this.registerShape(createFlatModelShape({
1154
+ kind: { armPath: ["kind"], value: createStringShape(), readOnly: true },
1155
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
1156
+ name: { armPath: ["name"], value: createUnionShape() },
1157
+ properties: {
1158
+ armPath: ["properties"],
1159
+ value: createDeferredShape(() => geoBackupPolicyPropertiesShape),
1160
+ },
1161
+ }));
1162
+ this.register();
1163
+ }
1164
+ /**
1165
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1166
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1167
+ *
1168
+ * @param props - Resource properties to normalize for the base constructor.
1169
+ */
1170
+ static buildResourceProps(props) {
1171
+ return {
1172
+ ...props,
1173
+ type: GeoBackupPolicy.resourceType,
1174
+ apiVersion: GeoBackupPolicy.apiVersion,
1175
+ };
1176
+ }
1177
+ constructor(context, props, options) {
1178
+ super(context, GeoBackupPolicy.buildResourceProps(props), options);
1179
+ }
1180
+ /**
1181
+ * Kind of geo backup policy. This is metadata used for the Azure portal experience.
1182
+ */
1183
+ get kind() {
1184
+ return this.expr("kind");
1185
+ }
1186
+ /**
1187
+ * Backup policy location.
1188
+ */
1189
+ get location() {
1190
+ return this.expr("location");
1191
+ }
1192
+ /**
1193
+ * The name of the Geo backup policy. This should always be 'Default'.
1194
+ */
1195
+ get name() {
1196
+ return this.expr("name");
1197
+ }
1198
+ set name(value) {
1199
+ this.setProperty("name", value);
1200
+ }
1201
+ /**
1202
+ * Resource properties.
1203
+ */
1204
+ get properties() {
1205
+ return this.expr("properties");
1206
+ }
1207
+ set properties(value) {
1208
+ this.setProperty("properties", value);
1209
+ }
1210
+ }
1211
+ /**
1212
+ * Azure SQL Database ledger digest upload settings.
1213
+ */
1214
+ export class ServerDatabaseLedgerDigestUpload extends Resource {
1215
+ static resourceType = "Microsoft.Sql/servers/databases/ledgerDigestUploads";
1216
+ static apiVersion = API_VERSION;
1217
+ static namingRules = {
1218
+ abbreviation: "ldu",
1219
+ pattern: {
1220
+ regex: "",
1221
+ },
1222
+ scope: "parent",
1223
+ };
1224
+ static {
1225
+ this.registerShape(createFlatModelShape({
1226
+ name: { armPath: ["name"], value: createUnionShape() },
1227
+ properties: {
1228
+ armPath: ["properties"],
1229
+ value: createDeferredShape(() => ledgerDigestUploadsPropertiesShape),
1230
+ },
1231
+ }));
1232
+ this.register();
1233
+ }
1234
+ /**
1235
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1236
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1237
+ *
1238
+ * @param props - Resource properties to normalize for the base constructor.
1239
+ */
1240
+ static buildResourceProps(props) {
1241
+ return {
1242
+ ...props,
1243
+ type: ServerDatabaseLedgerDigestUpload.resourceType,
1244
+ apiVersion: ServerDatabaseLedgerDigestUpload.apiVersion,
1245
+ };
1246
+ }
1247
+ constructor(context, props, options) {
1248
+ super(context, ServerDatabaseLedgerDigestUpload.buildResourceProps(props), options);
1249
+ }
1250
+ get name() {
1251
+ return this.expr("name");
1252
+ }
1253
+ set name(value) {
1254
+ this.setProperty("name", value);
1255
+ }
1256
+ /**
1257
+ * Resource properties.
1258
+ */
1259
+ get properties() {
1260
+ return this.expr("properties");
1261
+ }
1262
+ set properties(value) {
1263
+ this.setProperty("properties", value);
1264
+ }
1265
+ }
1266
+ /**
1267
+ * A replication link.
1268
+ */
1269
+ export class ReplicationLink extends Resource {
1270
+ static resourceType = "Microsoft.Sql/servers/databases/replicationLinks";
1271
+ static apiVersion = API_VERSION;
1272
+ static namingRules = {
1273
+ abbreviation: "rl",
1274
+ pattern: {
1275
+ regex: "",
1276
+ },
1277
+ scope: "parent",
1278
+ };
1279
+ static {
1280
+ this.registerShape(createFlatModelShape({
1281
+ name: { armPath: ["name"], value: createStringShape() },
1282
+ properties: {
1283
+ armPath: ["properties"],
1284
+ value: createDeferredShape(() => replicationLinkPropertiesShape),
1285
+ },
1286
+ }));
1287
+ this.register();
1288
+ }
1289
+ /**
1290
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1291
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1292
+ *
1293
+ * @param props - Resource properties to normalize for the base constructor.
1294
+ */
1295
+ static buildResourceProps(props) {
1296
+ return {
1297
+ ...props,
1298
+ type: ReplicationLink.resourceType,
1299
+ apiVersion: ReplicationLink.apiVersion,
1300
+ };
1301
+ }
1302
+ constructor(context, props, options) {
1303
+ super(context, ReplicationLink.buildResourceProps(props), options);
1304
+ }
1305
+ /**
1306
+ * The name of the replication link.
1307
+ */
1308
+ get name() {
1309
+ return this.expr("name");
1310
+ }
1311
+ set name(value) {
1312
+ this.setProperty("name", value);
1313
+ }
1314
+ /**
1315
+ * Resource properties.
1316
+ */
1317
+ get properties() {
1318
+ return this.expr("properties");
1319
+ }
1320
+ set properties(value) {
1321
+ this.setProperty("properties", value);
1322
+ }
1323
+ }
1324
+ /**
1325
+ * Database restore points.
1326
+ */
1327
+ export class RestorePoint extends Resource {
1328
+ static resourceType = "Microsoft.Sql/servers/databases/restorePoints";
1329
+ static apiVersion = API_VERSION;
1330
+ static namingRules = {
1331
+ abbreviation: "rp",
1332
+ pattern: {
1333
+ regex: "",
1334
+ },
1335
+ scope: "parent",
1336
+ };
1337
+ static {
1338
+ this.registerShape(createFlatModelShape({
1339
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
1340
+ name: { armPath: ["name"], value: createStringShape() },
1341
+ properties: {
1342
+ armPath: ["properties"],
1343
+ value: createDeferredShape(() => restorePointPropertiesShape),
1344
+ readOnly: true,
1345
+ },
1346
+ }));
1347
+ this.register();
1348
+ }
1349
+ /**
1350
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1351
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1352
+ *
1353
+ * @param props - Resource properties to normalize for the base constructor.
1354
+ */
1355
+ static buildResourceProps(props) {
1356
+ return {
1357
+ ...props,
1358
+ type: RestorePoint.resourceType,
1359
+ apiVersion: RestorePoint.apiVersion,
1360
+ };
1361
+ }
1362
+ constructor(context, props, options) {
1363
+ super(context, RestorePoint.buildResourceProps(props), options);
1364
+ }
1365
+ /**
1366
+ * Resource location.
1367
+ */
1368
+ get location() {
1369
+ return this.expr("location");
1370
+ }
1371
+ /**
1372
+ * The name of the restore point.
1373
+ */
1374
+ get name() {
1375
+ return this.expr("name");
1376
+ }
1377
+ set name(value) {
1378
+ this.setProperty("name", value);
1379
+ }
1380
+ /**
1381
+ * Resource properties.
1382
+ */
1383
+ get properties() {
1384
+ return this.expr("properties");
1385
+ }
1386
+ }
1387
+ /**
1388
+ * A sensitivity label.
1389
+ */
1390
+ export class SqlDatabaseSensitivityLabel extends Resource {
1391
+ static resourceType = "Microsoft.Sql/servers/databases/schemas/tables/columns/sensitivityLabels";
1392
+ static apiVersion = API_VERSION;
1393
+ static namingRules = {
1394
+ abbreviation: "sl",
1395
+ scope: "parent",
1396
+ };
1397
+ static {
1398
+ this.registerShape(createFlatModelShape({
1399
+ managedBy: { armPath: ["managedBy"], value: createStringShape(), readOnly: true },
1400
+ name: { armPath: ["name"], value: createEnumShape() },
1401
+ properties: {
1402
+ armPath: ["properties"],
1403
+ value: createDeferredShape(() => sensitivityLabelPropertiesShape),
1404
+ },
1405
+ }));
1406
+ this.register();
1407
+ }
1408
+ /**
1409
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1410
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1411
+ *
1412
+ * @param props - Resource properties to normalize for the base constructor.
1413
+ */
1414
+ static buildResourceProps(props) {
1415
+ return {
1416
+ ...props,
1417
+ type: SqlDatabaseSensitivityLabel.resourceType,
1418
+ apiVersion: SqlDatabaseSensitivityLabel.apiVersion,
1419
+ };
1420
+ }
1421
+ constructor(context, props, options) {
1422
+ super(context, SqlDatabaseSensitivityLabel.buildResourceProps(props), options);
1423
+ }
1424
+ /**
1425
+ * Resource that manages the sensitivity label.
1426
+ */
1427
+ get managedBy() {
1428
+ return this.expr("managedBy");
1429
+ }
1430
+ /**
1431
+ * The source of the sensitivity label.
1432
+ */
1433
+ get name() {
1434
+ return this.expr("name");
1435
+ }
1436
+ set name(value) {
1437
+ this.setProperty("name", value);
1438
+ }
1439
+ /**
1440
+ * Resource properties.
1441
+ */
1442
+ get properties() {
1443
+ return this.expr("properties");
1444
+ }
1445
+ set properties(value) {
1446
+ this.setProperty("properties", value);
1447
+ }
1448
+ }
1449
+ /**
1450
+ * A database column resource.
1451
+ */
1452
+ export class SqlDatabaseColumn extends Resource {
1453
+ static resourceType = "Microsoft.Sql/servers/databases/schemas/tables/columns";
1454
+ static apiVersion = API_VERSION;
1455
+ static namingRules = {
1456
+ abbreviation: "c",
1457
+ scope: "parent",
1458
+ };
1459
+ static {
1460
+ this.registerShape(createFlatModelShape({
1461
+ name: { armPath: ["name"], value: createStringShape() },
1462
+ properties: {
1463
+ armPath: ["properties"],
1464
+ value: createDeferredShape(() => databaseColumnPropertiesShape),
1465
+ readOnly: true,
1466
+ },
1467
+ }));
1468
+ this.register();
1469
+ }
1470
+ /**
1471
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1472
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1473
+ *
1474
+ * @param props - Resource properties to normalize for the base constructor.
1475
+ */
1476
+ static buildResourceProps(props) {
1477
+ return {
1478
+ ...props,
1479
+ type: SqlDatabaseColumn.resourceType,
1480
+ apiVersion: SqlDatabaseColumn.apiVersion,
1481
+ };
1482
+ }
1483
+ constructor(context, props, options) {
1484
+ super(context, SqlDatabaseColumn.buildResourceProps(props), options);
1485
+ }
1486
+ /**
1487
+ * The name of the column.
1488
+ */
1489
+ get name() {
1490
+ return this.expr("name");
1491
+ }
1492
+ set name(value) {
1493
+ this.setProperty("name", value);
1494
+ }
1495
+ /**
1496
+ * Resource properties.
1497
+ */
1498
+ get properties() {
1499
+ return this.expr("properties");
1500
+ }
1501
+ }
1502
+ /**
1503
+ * A database table resource.
1504
+ */
1505
+ export class SqlDatabaseTable extends Resource {
1506
+ static resourceType = "Microsoft.Sql/servers/databases/schemas/tables";
1507
+ static apiVersion = API_VERSION;
1508
+ static namingRules = {
1509
+ abbreviation: "t",
1510
+ scope: "parent",
1511
+ };
1512
+ static {
1513
+ this.registerShape(createFlatModelShape({
1514
+ name: { armPath: ["name"], value: createStringShape() },
1515
+ properties: {
1516
+ armPath: ["properties"],
1517
+ value: createDeferredShape(() => databaseTablePropertiesShape),
1518
+ readOnly: true,
1519
+ },
1520
+ }));
1521
+ this.register();
1522
+ }
1523
+ /**
1524
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1525
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1526
+ *
1527
+ * @param props - Resource properties to normalize for the base constructor.
1528
+ */
1529
+ static buildResourceProps(props) {
1530
+ return {
1531
+ ...props,
1532
+ type: SqlDatabaseTable.resourceType,
1533
+ apiVersion: SqlDatabaseTable.apiVersion,
1534
+ };
1535
+ }
1536
+ constructor(context, props, options) {
1537
+ super(context, SqlDatabaseTable.buildResourceProps(props), options);
1538
+ }
1539
+ /**
1540
+ * The name of the table.
1541
+ */
1542
+ get name() {
1543
+ return this.expr("name");
1544
+ }
1545
+ set name(value) {
1546
+ this.setProperty("name", value);
1547
+ }
1548
+ /**
1549
+ * Resource properties.
1550
+ */
1551
+ get properties() {
1552
+ return this.expr("properties");
1553
+ }
1554
+ }
1555
+ /**
1556
+ * A database schema resource.
1557
+ */
1558
+ export class SqlDatabaseSchema extends Resource {
1559
+ static resourceType = "Microsoft.Sql/servers/databases/schemas";
1560
+ static apiVersion = API_VERSION;
1561
+ static namingRules = {
1562
+ abbreviation: "s",
1563
+ scope: "parent",
1564
+ };
1565
+ static {
1566
+ this.registerShape(createFlatModelShape({
1567
+ name: { armPath: ["name"], value: createStringShape() },
1568
+ properties: { armPath: ["properties"], value: createAnyShape(), readOnly: true },
1569
+ }));
1570
+ this.register();
1571
+ }
1572
+ /**
1573
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1574
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1575
+ *
1576
+ * @param props - Resource properties to normalize for the base constructor.
1577
+ */
1578
+ static buildResourceProps(props) {
1579
+ return {
1580
+ ...props,
1581
+ type: SqlDatabaseSchema.resourceType,
1582
+ apiVersion: SqlDatabaseSchema.apiVersion,
1583
+ };
1584
+ }
1585
+ constructor(context, props, options) {
1586
+ super(context, SqlDatabaseSchema.buildResourceProps(props), options);
1587
+ }
1588
+ /**
1589
+ * The name of the schema.
1590
+ */
1591
+ get name() {
1592
+ return this.expr("name");
1593
+ }
1594
+ set name(value) {
1595
+ this.setProperty("name", value);
1596
+ }
1597
+ /**
1598
+ * The resource-specific properties for this resource.
1599
+ */
1600
+ get properties() {
1601
+ return this.expr("properties");
1602
+ }
1603
+ }
1604
+ /**
1605
+ * A database security alert policy.
1606
+ */
1607
+ export class ServerDatabaseSecurityAlertPolicy extends Resource {
1608
+ static resourceType = "Microsoft.Sql/servers/databases/securityAlertPolicies";
1609
+ static apiVersion = API_VERSION;
1610
+ static namingRules = {
1611
+ abbreviation: "sap",
1612
+ pattern: {
1613
+ regex: "",
1614
+ },
1615
+ scope: "parent",
1616
+ };
1617
+ static {
1618
+ this.registerShape(createFlatModelShape({
1619
+ name: { armPath: ["name"], value: createUnionShape() },
1620
+ properties: {
1621
+ armPath: ["properties"],
1622
+ value: createDeferredShape(() => securityAlertsPolicyPropertiesShape),
1623
+ },
1624
+ }));
1625
+ this.register();
1626
+ }
1627
+ /**
1628
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1629
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1630
+ *
1631
+ * @param props - Resource properties to normalize for the base constructor.
1632
+ */
1633
+ static buildResourceProps(props) {
1634
+ return {
1635
+ ...props,
1636
+ type: ServerDatabaseSecurityAlertPolicy.resourceType,
1637
+ apiVersion: ServerDatabaseSecurityAlertPolicy.apiVersion,
1638
+ };
1639
+ }
1640
+ constructor(context, props, options) {
1641
+ super(context, ServerDatabaseSecurityAlertPolicy.buildResourceProps(props), options);
1642
+ }
1643
+ /**
1644
+ * The name of the security alert policy.
1645
+ */
1646
+ get name() {
1647
+ return this.expr("name");
1648
+ }
1649
+ set name(value) {
1650
+ this.setProperty("name", value);
1651
+ }
1652
+ /**
1653
+ * Resource properties.
1654
+ */
1655
+ get properties() {
1656
+ return this.expr("properties");
1657
+ }
1658
+ set properties(value) {
1659
+ this.setProperty("properties", value);
1660
+ }
1661
+ }
1662
+ /**
1663
+ * A database sql vulnerability assessment rule baseline.
1664
+ */
1665
+ export class SqlDatabaseSqlVulnerabilityAssessmentBaselineRule extends Resource {
1666
+ static resourceType = "Microsoft.Sql/servers/databases/sqlVulnerabilityAssessments/baselines/rules";
1667
+ static apiVersion = API_VERSION;
1668
+ static namingRules = {
1669
+ abbreviation: "r",
1670
+ scope: "parent",
1671
+ };
1672
+ static {
1673
+ this.registerShape(createFlatModelShape({
1674
+ name: { armPath: ["name"], value: createStringShape() },
1675
+ properties: {
1676
+ armPath: ["properties"],
1677
+ value: createDeferredShape(() => databaseSqlVulnerabilityAssessmentRuleBaselinePropertiesShape),
1678
+ },
1679
+ }));
1680
+ this.register();
1681
+ }
1682
+ /**
1683
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1684
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1685
+ *
1686
+ * @param props - Resource properties to normalize for the base constructor.
1687
+ */
1688
+ static buildResourceProps(props) {
1689
+ return {
1690
+ ...props,
1691
+ type: SqlDatabaseSqlVulnerabilityAssessmentBaselineRule.resourceType,
1692
+ apiVersion: SqlDatabaseSqlVulnerabilityAssessmentBaselineRule.apiVersion,
1693
+ };
1694
+ }
1695
+ constructor(context, props, options) {
1696
+ super(context, SqlDatabaseSqlVulnerabilityAssessmentBaselineRule.buildResourceProps(props), options);
1697
+ }
1698
+ /**
1699
+ * The vulnerability assessment rule ID.
1700
+ */
1701
+ get name() {
1702
+ return this.expr("name");
1703
+ }
1704
+ set name(value) {
1705
+ this.setProperty("name", value);
1706
+ }
1707
+ /**
1708
+ * Resource properties.
1709
+ */
1710
+ get properties() {
1711
+ return this.expr("properties");
1712
+ }
1713
+ set properties(value) {
1714
+ this.setProperty("properties", value);
1715
+ }
1716
+ }
1717
+ /**
1718
+ * A database sql vulnerability assessment baseline set.
1719
+ */
1720
+ export class SqlDatabaseSqlVulnerabilityAssessmentBaseline extends Resource {
1721
+ static resourceType = "Microsoft.Sql/servers/databases/sqlVulnerabilityAssessments/baselines";
1722
+ static apiVersion = API_VERSION;
1723
+ static namingRules = {
1724
+ abbreviation: "b",
1725
+ scope: "parent",
1726
+ };
1727
+ static {
1728
+ this.registerShape(createFlatModelShape({
1729
+ name: { armPath: ["name"], value: createUnionShape() },
1730
+ properties: {
1731
+ armPath: ["properties"],
1732
+ value: createDeferredShape(() => databaseSqlVulnerabilityAssessmentBaselineSetPropertiesShape),
1733
+ },
1734
+ }));
1735
+ this.register();
1736
+ }
1737
+ /**
1738
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1739
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1740
+ *
1741
+ * @param props - Resource properties to normalize for the base constructor.
1742
+ */
1743
+ static buildResourceProps(props) {
1744
+ return {
1745
+ ...props,
1746
+ type: SqlDatabaseSqlVulnerabilityAssessmentBaseline.resourceType,
1747
+ apiVersion: SqlDatabaseSqlVulnerabilityAssessmentBaseline.apiVersion,
1748
+ };
1749
+ }
1750
+ constructor(context, props, options) {
1751
+ super(context, SqlDatabaseSqlVulnerabilityAssessmentBaseline.buildResourceProps(props), options);
1752
+ }
1753
+ get name() {
1754
+ return this.expr("name");
1755
+ }
1756
+ set name(value) {
1757
+ this.setProperty("name", value);
1758
+ }
1759
+ /**
1760
+ * Resource properties.
1761
+ */
1762
+ get properties() {
1763
+ return this.expr("properties");
1764
+ }
1765
+ set properties(value) {
1766
+ this.setProperty("properties", value);
1767
+ }
1768
+ }
1769
+ /**
1770
+ * Concrete proxy resource types can be created by aliasing this type using a specific property type.
1771
+ */
1772
+ export class SqlDatabaseSqlVulnerabilityAssessmentScanResult extends Resource {
1773
+ static resourceType = "Microsoft.Sql/servers/databases/sqlVulnerabilityAssessments/scans/scanResults";
1774
+ static apiVersion = API_VERSION;
1775
+ static namingRules = {
1776
+ abbreviation: "sr",
1777
+ scope: "parent",
1778
+ };
1779
+ static {
1780
+ this.registerShape(createFlatModelShape({
1781
+ name: { armPath: ["name"], value: createStringShape() },
1782
+ properties: {
1783
+ armPath: ["properties"],
1784
+ value: createDeferredShape(() => sqlVulnerabilityAssessmentScanResultPropertiesShape),
1785
+ readOnly: true,
1786
+ },
1787
+ }));
1788
+ this.register();
1789
+ }
1790
+ /**
1791
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1792
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1793
+ *
1794
+ * @param props - Resource properties to normalize for the base constructor.
1795
+ */
1796
+ static buildResourceProps(props) {
1797
+ return {
1798
+ ...props,
1799
+ type: SqlDatabaseSqlVulnerabilityAssessmentScanResult.resourceType,
1800
+ apiVersion: SqlDatabaseSqlVulnerabilityAssessmentScanResult.apiVersion,
1801
+ };
1802
+ }
1803
+ constructor(context, props, options) {
1804
+ super(context, SqlDatabaseSqlVulnerabilityAssessmentScanResult.buildResourceProps(props), options);
1805
+ }
1806
+ /**
1807
+ * The scan result id of the specific result to retrieve.
1808
+ */
1809
+ get name() {
1810
+ return this.expr("name");
1811
+ }
1812
+ set name(value) {
1813
+ this.setProperty("name", value);
1814
+ }
1815
+ /**
1816
+ * Resource properties.
1817
+ */
1818
+ get properties() {
1819
+ return this.expr("properties");
1820
+ }
1821
+ }
1822
+ /**
1823
+ * A vulnerability assessment scan record.
1824
+ */
1825
+ export class SqlDatabaseSqlVulnerabilityAssessmentScan extends Resource {
1826
+ static resourceType = "Microsoft.Sql/servers/databases/sqlVulnerabilityAssessments/scans";
1827
+ static apiVersion = API_VERSION;
1828
+ static namingRules = {
1829
+ abbreviation: "s",
1830
+ scope: "parent",
1831
+ };
1832
+ static {
1833
+ this.registerShape(createFlatModelShape({
1834
+ name: { armPath: ["name"], value: createStringShape() },
1835
+ properties: {
1836
+ armPath: ["properties"],
1837
+ value: createDeferredShape(() => sqlVulnerabilityAssessmentScanRecordPropertiesShape),
1838
+ readOnly: true,
1839
+ },
1840
+ }));
1841
+ this.register();
1842
+ }
1843
+ /**
1844
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1845
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1846
+ *
1847
+ * @param props - Resource properties to normalize for the base constructor.
1848
+ */
1849
+ static buildResourceProps(props) {
1850
+ return {
1851
+ ...props,
1852
+ type: SqlDatabaseSqlVulnerabilityAssessmentScan.resourceType,
1853
+ apiVersion: SqlDatabaseSqlVulnerabilityAssessmentScan.apiVersion,
1854
+ };
1855
+ }
1856
+ constructor(context, props, options) {
1857
+ super(context, SqlDatabaseSqlVulnerabilityAssessmentScan.buildResourceProps(props), options);
1858
+ }
1859
+ /**
1860
+ * The vulnerability assessment scan Id of the scan to retrieve.
1861
+ */
1862
+ get name() {
1863
+ return this.expr("name");
1864
+ }
1865
+ set name(value) {
1866
+ this.setProperty("name", value);
1867
+ }
1868
+ /**
1869
+ * Resource properties.
1870
+ */
1871
+ get properties() {
1872
+ return this.expr("properties");
1873
+ }
1874
+ }
1875
+ /**
1876
+ * A SQL Vulnerability Assessment.
1877
+ */
1878
+ export class SqlDatabaseSqlVulnerabilityAssessment extends Resource {
1879
+ static resourceType = "Microsoft.Sql/servers/databases/sqlVulnerabilityAssessments";
1880
+ static apiVersion = API_VERSION;
1881
+ static namingRules = {
1882
+ abbreviation: "sva",
1883
+ scope: "parent",
1884
+ };
1885
+ static {
1886
+ this.registerShape(createFlatModelShape({
1887
+ name: { armPath: ["name"], value: createUnionShape() },
1888
+ properties: {
1889
+ armPath: ["properties"],
1890
+ value: createDeferredShape(() => sqlVulnerabilityAssessmentPolicyPropertiesShape),
1891
+ readOnly: true,
1892
+ },
1893
+ }));
1894
+ this.register();
1895
+ }
1896
+ /**
1897
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1898
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1899
+ *
1900
+ * @param props - Resource properties to normalize for the base constructor.
1901
+ */
1902
+ static buildResourceProps(props) {
1903
+ return {
1904
+ ...props,
1905
+ type: SqlDatabaseSqlVulnerabilityAssessment.resourceType,
1906
+ apiVersion: SqlDatabaseSqlVulnerabilityAssessment.apiVersion,
1907
+ };
1908
+ }
1909
+ constructor(context, props, options) {
1910
+ super(context, SqlDatabaseSqlVulnerabilityAssessment.buildResourceProps(props), options);
1911
+ }
1912
+ /**
1913
+ * The name of the SQL Vulnerability Assessment.
1914
+ */
1915
+ get name() {
1916
+ return this.expr("name");
1917
+ }
1918
+ set name(value) {
1919
+ this.setProperty("name", value);
1920
+ }
1921
+ /**
1922
+ * Resource properties.
1923
+ */
1924
+ get properties() {
1925
+ return this.expr("properties");
1926
+ }
1927
+ }
1928
+ /**
1929
+ * An Azure SQL Database sync member.
1930
+ */
1931
+ export class SyncMember extends Resource {
1932
+ static resourceType = "Microsoft.Sql/servers/databases/syncGroups/syncMembers";
1933
+ static apiVersion = API_VERSION;
1934
+ static namingRules = {
1935
+ abbreviation: "sm",
1936
+ pattern: {
1937
+ regex: "",
1938
+ },
1939
+ scope: "parent",
1940
+ };
1941
+ static {
1942
+ this.registerShape(createFlatModelShape({
1943
+ name: { armPath: ["name"], value: createStringShape() },
1944
+ properties: {
1945
+ armPath: ["properties"],
1946
+ value: createDeferredShape(() => syncMemberPropertiesShape),
1947
+ },
1948
+ }));
1949
+ this.register();
1950
+ }
1951
+ /**
1952
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
1953
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
1954
+ *
1955
+ * @param props - Resource properties to normalize for the base constructor.
1956
+ */
1957
+ static buildResourceProps(props) {
1958
+ return {
1959
+ ...props,
1960
+ type: SyncMember.resourceType,
1961
+ apiVersion: SyncMember.apiVersion,
1962
+ };
1963
+ }
1964
+ constructor(context, props, options) {
1965
+ super(context, SyncMember.buildResourceProps(props), options);
1966
+ }
1967
+ /**
1968
+ * The name of the sync member.
1969
+ */
1970
+ get name() {
1971
+ return this.expr("name");
1972
+ }
1973
+ set name(value) {
1974
+ this.setProperty("name", value);
1975
+ }
1976
+ /**
1977
+ * Resource properties.
1978
+ */
1979
+ get properties() {
1980
+ return this.expr("properties");
1981
+ }
1982
+ set properties(value) {
1983
+ this.setProperty("properties", value);
1984
+ }
1985
+ }
1986
+ /**
1987
+ * An Azure SQL Database sync group.
1988
+ */
1989
+ export class SyncGroup extends Resource {
1990
+ static resourceType = "Microsoft.Sql/servers/databases/syncGroups";
1991
+ static apiVersion = API_VERSION;
1992
+ static namingRules = {
1993
+ abbreviation: "sg",
1994
+ pattern: {
1995
+ regex: "",
1996
+ },
1997
+ scope: "parent",
1998
+ };
1999
+ static {
2000
+ this.registerShape(createFlatModelShape({
2001
+ name: { armPath: ["name"], value: createStringShape() },
2002
+ properties: {
2003
+ armPath: ["properties"],
2004
+ value: createDeferredShape(() => syncGroupPropertiesShape),
2005
+ },
2006
+ sku: { armPath: ["sku"], value: createDeferredShape(() => skuShape) },
2007
+ }));
2008
+ this.register();
2009
+ }
2010
+ /**
2011
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2012
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2013
+ *
2014
+ * @param props - Resource properties to normalize for the base constructor.
2015
+ */
2016
+ static buildResourceProps(props) {
2017
+ return {
2018
+ ...props,
2019
+ type: SyncGroup.resourceType,
2020
+ apiVersion: SyncGroup.apiVersion,
2021
+ };
2022
+ }
2023
+ constructor(context, props, options) {
2024
+ super(context, SyncGroup.buildResourceProps(props), options);
2025
+ }
2026
+ /**
2027
+ * The name of the sync group.
2028
+ */
2029
+ get name() {
2030
+ return this.expr("name");
2031
+ }
2032
+ set name(value) {
2033
+ this.setProperty("name", value);
2034
+ }
2035
+ /**
2036
+ * Resource properties.
2037
+ */
2038
+ get properties() {
2039
+ return this.expr("properties");
2040
+ }
2041
+ set properties(value) {
2042
+ this.setProperty("properties", value);
2043
+ }
2044
+ /**
2045
+ * The name and capacity of the SKU.
2046
+ */
2047
+ get sku() {
2048
+ return this.expr("sku");
2049
+ }
2050
+ set sku(value) {
2051
+ this.setProperty("sku", value);
2052
+ }
2053
+ }
2054
+ /**
2055
+ * A logical database transparent data encryption scan state.
2056
+ */
2057
+ export class ServerDatabaseTransparentDataEncryption extends Resource {
2058
+ static resourceType = "Microsoft.Sql/servers/databases/transparentDataEncryption";
2059
+ static apiVersion = API_VERSION;
2060
+ static namingRules = {
2061
+ abbreviation: "tde",
2062
+ pattern: {
2063
+ regex: "",
2064
+ },
2065
+ scope: "parent",
2066
+ };
2067
+ static {
2068
+ this.registerShape(createFlatModelShape({
2069
+ name: { armPath: ["name"], value: createUnionShape() },
2070
+ properties: {
2071
+ armPath: ["properties"],
2072
+ value: createDeferredShape(() => transparentDataEncryptionPropertiesShape),
2073
+ },
2074
+ }));
2075
+ this.register();
2076
+ }
2077
+ /**
2078
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2079
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2080
+ *
2081
+ * @param props - Resource properties to normalize for the base constructor.
2082
+ */
2083
+ static buildResourceProps(props) {
2084
+ return {
2085
+ ...props,
2086
+ type: ServerDatabaseTransparentDataEncryption.resourceType,
2087
+ apiVersion: ServerDatabaseTransparentDataEncryption.apiVersion,
2088
+ };
2089
+ }
2090
+ constructor(context, props, options) {
2091
+ super(context, ServerDatabaseTransparentDataEncryption.buildResourceProps(props), options);
2092
+ }
2093
+ /**
2094
+ * The name of the transparent data encryption configuration.
2095
+ */
2096
+ get name() {
2097
+ return this.expr("name");
2098
+ }
2099
+ set name(value) {
2100
+ this.setProperty("name", value);
2101
+ }
2102
+ /**
2103
+ * Resource properties.
2104
+ */
2105
+ get properties() {
2106
+ return this.expr("properties");
2107
+ }
2108
+ set properties(value) {
2109
+ this.setProperty("properties", value);
2110
+ }
2111
+ }
2112
+ /**
2113
+ * A database vulnerability assessment rule baseline.
2114
+ */
2115
+ export class SqlDatabaseVulnerabilityAssessmentRuleBaseline extends Resource {
2116
+ static resourceType = "Microsoft.Sql/servers/databases/vulnerabilityAssessments/rules/baselines";
2117
+ static apiVersion = API_VERSION;
2118
+ static namingRules = {
2119
+ abbreviation: "b",
2120
+ nameSegments: 2,
2121
+ scope: "parent",
2122
+ };
2123
+ static {
2124
+ this.registerShape(createFlatModelShape({
2125
+ name: { armPath: ["name"], value: createEnumShape() },
2126
+ properties: {
2127
+ armPath: ["properties"],
2128
+ value: createDeferredShape(() => databaseVulnerabilityAssessmentRuleBaselinePropertiesShape),
2129
+ },
2130
+ }));
2131
+ this.register();
2132
+ }
2133
+ /**
2134
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2135
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2136
+ *
2137
+ * @param props - Resource properties to normalize for the base constructor.
2138
+ */
2139
+ static buildResourceProps(props) {
2140
+ return {
2141
+ ...props,
2142
+ type: SqlDatabaseVulnerabilityAssessmentRuleBaseline.resourceType,
2143
+ apiVersion: SqlDatabaseVulnerabilityAssessmentRuleBaseline.apiVersion,
2144
+ };
2145
+ }
2146
+ constructor(context, props, options) {
2147
+ super(context, SqlDatabaseVulnerabilityAssessmentRuleBaseline.buildResourceProps(props), options);
2148
+ }
2149
+ /**
2150
+ * The name of the vulnerability assessment rule baseline (default implies a baseline on a
2151
+ * database level rule and master for server level rule).
2152
+ */
2153
+ get name() {
2154
+ return this.expr("name");
2155
+ }
2156
+ set name(value) {
2157
+ this.setProperty("name", value);
2158
+ }
2159
+ /**
2160
+ * Resource properties.
2161
+ */
2162
+ get properties() {
2163
+ return this.expr("properties");
2164
+ }
2165
+ set properties(value) {
2166
+ this.setProperty("properties", value);
2167
+ }
2168
+ }
2169
+ /**
2170
+ * A vulnerability assessment scan record.
2171
+ */
2172
+ export class SqlDatabaseVulnerabilityAssessmentScan extends Resource {
2173
+ static resourceType = "Microsoft.Sql/servers/databases/vulnerabilityAssessments/scans";
2174
+ static apiVersion = API_VERSION;
2175
+ static namingRules = {
2176
+ abbreviation: "s",
2177
+ scope: "parent",
2178
+ };
2179
+ static {
2180
+ this.registerShape(createFlatModelShape({
2181
+ name: { armPath: ["name"], value: createStringShape() },
2182
+ properties: {
2183
+ armPath: ["properties"],
2184
+ value: createDeferredShape(() => vulnerabilityAssessmentScanRecordPropertiesShape),
2185
+ readOnly: true,
2186
+ },
2187
+ }));
2188
+ this.register();
2189
+ }
2190
+ /**
2191
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2192
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2193
+ *
2194
+ * @param props - Resource properties to normalize for the base constructor.
2195
+ */
2196
+ static buildResourceProps(props) {
2197
+ return {
2198
+ ...props,
2199
+ type: SqlDatabaseVulnerabilityAssessmentScan.resourceType,
2200
+ apiVersion: SqlDatabaseVulnerabilityAssessmentScan.apiVersion,
2201
+ };
2202
+ }
2203
+ constructor(context, props, options) {
2204
+ super(context, SqlDatabaseVulnerabilityAssessmentScan.buildResourceProps(props), options);
2205
+ }
2206
+ /**
2207
+ * The vulnerability assessment scan Id of the scan to retrieve.
2208
+ */
2209
+ get name() {
2210
+ return this.expr("name");
2211
+ }
2212
+ set name(value) {
2213
+ this.setProperty("name", value);
2214
+ }
2215
+ /**
2216
+ * Resource properties.
2217
+ */
2218
+ get properties() {
2219
+ return this.expr("properties");
2220
+ }
2221
+ }
2222
+ /**
2223
+ * A database vulnerability assessment.
2224
+ */
2225
+ export class SqlDatabaseVulnerabilityAssessment extends Resource {
2226
+ static resourceType = "Microsoft.Sql/servers/databases/vulnerabilityAssessments";
2227
+ static apiVersion = API_VERSION;
2228
+ static namingRules = {
2229
+ abbreviation: "va",
2230
+ scope: "parent",
2231
+ };
2232
+ static {
2233
+ this.registerShape(createFlatModelShape({
2234
+ name: { armPath: ["name"], value: createUnionShape() },
2235
+ properties: {
2236
+ armPath: ["properties"],
2237
+ value: createDeferredShape(() => databaseVulnerabilityAssessmentPropertiesShape),
2238
+ },
2239
+ }));
2240
+ this.register();
2241
+ }
2242
+ /**
2243
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2244
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2245
+ *
2246
+ * @param props - Resource properties to normalize for the base constructor.
2247
+ */
2248
+ static buildResourceProps(props) {
2249
+ return {
2250
+ ...props,
2251
+ type: SqlDatabaseVulnerabilityAssessment.resourceType,
2252
+ apiVersion: SqlDatabaseVulnerabilityAssessment.apiVersion,
2253
+ };
2254
+ }
2255
+ constructor(context, props, options) {
2256
+ super(context, SqlDatabaseVulnerabilityAssessment.buildResourceProps(props), options);
2257
+ }
2258
+ /**
2259
+ * The name of the vulnerability assessment.
2260
+ */
2261
+ get name() {
2262
+ return this.expr("name");
2263
+ }
2264
+ set name(value) {
2265
+ this.setProperty("name", value);
2266
+ }
2267
+ /**
2268
+ * Resource properties.
2269
+ */
2270
+ get properties() {
2271
+ return this.expr("properties");
2272
+ }
2273
+ set properties(value) {
2274
+ this.setProperty("properties", value);
2275
+ }
2276
+ }
2277
+ /**
2278
+ * Workload classifier operations for a data warehouse
2279
+ */
2280
+ export class WorkloadClassifier extends Resource {
2281
+ static resourceType = "Microsoft.Sql/servers/databases/workloadGroups/workloadClassifiers";
2282
+ static apiVersion = API_VERSION;
2283
+ static namingRules = {
2284
+ abbreviation: "wc",
2285
+ pattern: {
2286
+ regex: "",
2287
+ },
2288
+ scope: "parent",
2289
+ };
2290
+ static {
2291
+ this.registerShape(createFlatModelShape({
2292
+ name: { armPath: ["name"], value: createStringShape() },
2293
+ properties: {
2294
+ armPath: ["properties"],
2295
+ value: createDeferredShape(() => workloadClassifierPropertiesShape),
2296
+ },
2297
+ }));
2298
+ this.register();
2299
+ }
2300
+ /**
2301
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2302
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2303
+ *
2304
+ * @param props - Resource properties to normalize for the base constructor.
2305
+ */
2306
+ static buildResourceProps(props) {
2307
+ return {
2308
+ ...props,
2309
+ type: WorkloadClassifier.resourceType,
2310
+ apiVersion: WorkloadClassifier.apiVersion,
2311
+ };
2312
+ }
2313
+ constructor(context, props, options) {
2314
+ super(context, WorkloadClassifier.buildResourceProps(props), options);
2315
+ }
2316
+ /**
2317
+ * The name of the workload classifier.
2318
+ */
2319
+ get name() {
2320
+ return this.expr("name");
2321
+ }
2322
+ set name(value) {
2323
+ this.setProperty("name", value);
2324
+ }
2325
+ /**
2326
+ * Resource properties.
2327
+ */
2328
+ get properties() {
2329
+ return this.expr("properties");
2330
+ }
2331
+ set properties(value) {
2332
+ this.setProperty("properties", value);
2333
+ }
2334
+ }
2335
+ /**
2336
+ * Workload group operations for a data warehouse
2337
+ */
2338
+ export class WorkloadGroup extends Resource {
2339
+ static resourceType = "Microsoft.Sql/servers/databases/workloadGroups";
2340
+ static apiVersion = API_VERSION;
2341
+ static namingRules = {
2342
+ abbreviation: "wg",
2343
+ pattern: {
2344
+ regex: "",
2345
+ },
2346
+ scope: "parent",
2347
+ };
2348
+ static {
2349
+ this.registerShape(createFlatModelShape({
2350
+ name: { armPath: ["name"], value: createStringShape() },
2351
+ properties: {
2352
+ armPath: ["properties"],
2353
+ value: createDeferredShape(() => workloadGroupPropertiesShape),
2354
+ },
2355
+ }));
2356
+ this.register();
2357
+ }
2358
+ /**
2359
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2360
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2361
+ *
2362
+ * @param props - Resource properties to normalize for the base constructor.
2363
+ */
2364
+ static buildResourceProps(props) {
2365
+ return {
2366
+ ...props,
2367
+ type: WorkloadGroup.resourceType,
2368
+ apiVersion: WorkloadGroup.apiVersion,
2369
+ };
2370
+ }
2371
+ constructor(context, props, options) {
2372
+ super(context, WorkloadGroup.buildResourceProps(props), options);
2373
+ }
2374
+ /**
2375
+ * The name of the workload group.
2376
+ */
2377
+ get name() {
2378
+ return this.expr("name");
2379
+ }
2380
+ set name(value) {
2381
+ this.setProperty("name", value);
2382
+ }
2383
+ /**
2384
+ * Resource properties.
2385
+ */
2386
+ get properties() {
2387
+ return this.expr("properties");
2388
+ }
2389
+ set properties(value) {
2390
+ this.setProperty("properties", value);
2391
+ }
2392
+ }
2393
+ /**
2394
+ * A database resource.
2395
+ */
2396
+ export class ServerDatabase extends Resource {
2397
+ static resourceType = "Microsoft.Sql/servers/databases";
2398
+ static apiVersion = API_VERSION;
2399
+ static namingRules = {
2400
+ abbreviation: "d",
2401
+ pattern: {
2402
+ regex: "",
2403
+ },
2404
+ scope: "parent",
2405
+ };
2406
+ static {
2407
+ this.registerShape(createFlatModelShape({
2408
+ identity: {
2409
+ armPath: ["identity"],
2410
+ value: createDeferredShape(() => databaseIdentityShape),
2411
+ },
2412
+ kind: { armPath: ["kind"], value: createStringShape(), readOnly: true },
2413
+ location: { armPath: ["location"], value: createStringShape() },
2414
+ managedBy: { armPath: ["managedBy"], value: createStringShape(), readOnly: true },
2415
+ name: { armPath: ["name"], value: createStringShape() },
2416
+ properties: {
2417
+ armPath: ["properties"],
2418
+ value: createDeferredShape(() => databasePropertiesShape),
2419
+ },
2420
+ sku: { armPath: ["sku"], value: createDeferredShape(() => skuShape) },
2421
+ tags: { armPath: ["tags"], value: createRecordShape(createStringShape()) },
2422
+ }));
2423
+ this.register();
2424
+ }
2425
+ /**
2426
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2427
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2428
+ *
2429
+ * @param props - Resource properties to normalize for the base constructor.
2430
+ */
2431
+ static buildResourceProps(props) {
2432
+ return {
2433
+ ...props,
2434
+ type: ServerDatabase.resourceType,
2435
+ apiVersion: ServerDatabase.apiVersion,
2436
+ };
2437
+ }
2438
+ constructor(context, props, options) {
2439
+ super(context, ServerDatabase.buildResourceProps(props), options);
2440
+ }
2441
+ /**
2442
+ * The Azure Active Directory identity of the database.
2443
+ */
2444
+ get identity() {
2445
+ return this.expr("identity");
2446
+ }
2447
+ set identity(value) {
2448
+ this.setProperty("identity", value);
2449
+ }
2450
+ /**
2451
+ * Kind of database. This is metadata used for the Azure portal experience.
2452
+ */
2453
+ get kind() {
2454
+ return this.expr("kind");
2455
+ }
2456
+ /**
2457
+ * The geo-location where the resource lives
2458
+ */
2459
+ get location() {
2460
+ return this.expr("location");
2461
+ }
2462
+ set location(value) {
2463
+ this.setProperty("location", value);
2464
+ }
2465
+ /**
2466
+ * Resource that manages the database.
2467
+ */
2468
+ get managedBy() {
2469
+ return this.expr("managedBy");
2470
+ }
2471
+ /**
2472
+ * The name of the database.
2473
+ */
2474
+ get name() {
2475
+ return this.expr("name");
2476
+ }
2477
+ set name(value) {
2478
+ this.setProperty("name", value);
2479
+ }
2480
+ /**
2481
+ * Resource properties.
2482
+ */
2483
+ get properties() {
2484
+ return this.expr("properties");
2485
+ }
2486
+ set properties(value) {
2487
+ this.setProperty("properties", value);
2488
+ }
2489
+ /**
2490
+ * The database SKU. The list of SKUs may vary by region and support offer. To determine the SKUs
2491
+ * (including the SKU name, tier/edition, family, and capacity) that are available to your
2492
+ * subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the
2493
+ * following commands: ```azurecli az sql db list-editions -l <location> -o table ```
2494
+ * ```powershell Get-AzSqlServerServiceObjective -Location <location> ```
2495
+ */
2496
+ get sku() {
2497
+ return this.expr("sku");
2498
+ }
2499
+ set sku(value) {
2500
+ this.setProperty("sku", value);
2501
+ }
2502
+ /**
2503
+ * Resource tags.
2504
+ */
2505
+ get tags() {
2506
+ return this.expr("tags");
2507
+ }
2508
+ set tags(value) {
2509
+ this.setProperty("tags", value);
2510
+ }
2511
+ }
2512
+ /**
2513
+ * A server DevOps auditing settings.
2514
+ */
2515
+ export class DevOpsAuditingSetting extends Resource {
2516
+ static resourceType = "Microsoft.Sql/servers/devOpsAuditingSettings";
2517
+ static apiVersion = API_VERSION;
2518
+ static namingRules = {
2519
+ abbreviation: "doas",
2520
+ pattern: {
2521
+ regex: "",
2522
+ },
2523
+ scope: "parent",
2524
+ };
2525
+ static {
2526
+ this.registerShape(createFlatModelShape({
2527
+ name: { armPath: ["name"], value: createUnionShape() },
2528
+ properties: {
2529
+ armPath: ["properties"],
2530
+ value: createDeferredShape(() => serverDevOpsAuditSettingsPropertiesShape),
2531
+ },
2532
+ }));
2533
+ this.register();
2534
+ }
2535
+ /**
2536
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2537
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2538
+ *
2539
+ * @param props - Resource properties to normalize for the base constructor.
2540
+ */
2541
+ static buildResourceProps(props) {
2542
+ return {
2543
+ ...props,
2544
+ type: DevOpsAuditingSetting.resourceType,
2545
+ apiVersion: DevOpsAuditingSetting.apiVersion,
2546
+ };
2547
+ }
2548
+ constructor(context, props, options) {
2549
+ super(context, DevOpsAuditingSetting.buildResourceProps(props), options);
2550
+ }
2551
+ get name() {
2552
+ return this.expr("name");
2553
+ }
2554
+ set name(value) {
2555
+ this.setProperty("name", value);
2556
+ }
2557
+ /**
2558
+ * Resource properties.
2559
+ */
2560
+ get properties() {
2561
+ return this.expr("properties");
2562
+ }
2563
+ set properties(value) {
2564
+ this.setProperty("properties", value);
2565
+ }
2566
+ }
2567
+ /**
2568
+ * A server DNS alias.
2569
+ */
2570
+ export class ServerDnsAlias extends Resource {
2571
+ static resourceType = "Microsoft.Sql/servers/dnsAliases";
2572
+ static apiVersion = API_VERSION;
2573
+ static namingRules = {
2574
+ abbreviation: "da",
2575
+ pattern: {
2576
+ regex: "",
2577
+ },
2578
+ scope: "parent",
2579
+ };
2580
+ static {
2581
+ this.registerShape(createFlatModelShape({
2582
+ name: { armPath: ["name"], value: createStringShape() },
2583
+ properties: {
2584
+ armPath: ["properties"],
2585
+ value: createDeferredShape(() => serverDnsAliasPropertiesShape),
2586
+ readOnly: true,
2587
+ },
2588
+ }));
2589
+ this.register();
2590
+ }
2591
+ /**
2592
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2593
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2594
+ *
2595
+ * @param props - Resource properties to normalize for the base constructor.
2596
+ */
2597
+ static buildResourceProps(props) {
2598
+ return {
2599
+ ...props,
2600
+ type: ServerDnsAlias.resourceType,
2601
+ apiVersion: ServerDnsAlias.apiVersion,
2602
+ };
2603
+ }
2604
+ constructor(context, props, options) {
2605
+ super(context, ServerDnsAlias.buildResourceProps(props), options);
2606
+ }
2607
+ /**
2608
+ * The name of the server dns alias.
2609
+ */
2610
+ get name() {
2611
+ return this.expr("name");
2612
+ }
2613
+ set name(value) {
2614
+ this.setProperty("name", value);
2615
+ }
2616
+ /**
2617
+ * Resource properties.
2618
+ */
2619
+ get properties() {
2620
+ return this.expr("properties");
2621
+ }
2622
+ }
2623
+ /**
2624
+ * An elastic pool.
2625
+ */
2626
+ export class ElasticPool extends Resource {
2627
+ static resourceType = "Microsoft.Sql/servers/elasticPools";
2628
+ static apiVersion = API_VERSION;
2629
+ static namingRules = {
2630
+ abbreviation: "ep",
2631
+ pattern: {
2632
+ regex: "",
2633
+ },
2634
+ scope: "parent",
2635
+ };
2636
+ static {
2637
+ this.registerShape(createFlatModelShape({
2638
+ kind: { armPath: ["kind"], value: createStringShape(), readOnly: true },
2639
+ location: { armPath: ["location"], value: createStringShape() },
2640
+ name: { armPath: ["name"], value: createStringShape() },
2641
+ properties: {
2642
+ armPath: ["properties"],
2643
+ value: createDeferredShape(() => elasticPoolPropertiesShape),
2644
+ },
2645
+ sku: { armPath: ["sku"], value: createDeferredShape(() => skuShape) },
2646
+ tags: { armPath: ["tags"], value: createRecordShape(createStringShape()) },
2647
+ }));
2648
+ this.register();
2649
+ }
2650
+ /**
2651
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2652
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2653
+ *
2654
+ * @param props - Resource properties to normalize for the base constructor.
2655
+ */
2656
+ static buildResourceProps(props) {
2657
+ return {
2658
+ ...props,
2659
+ type: ElasticPool.resourceType,
2660
+ apiVersion: ElasticPool.apiVersion,
2661
+ };
2662
+ }
2663
+ constructor(context, props, options) {
2664
+ super(context, ElasticPool.buildResourceProps(props), options);
2665
+ }
2666
+ /**
2667
+ * Kind of elastic pool. This is metadata used for the Azure portal experience.
2668
+ */
2669
+ get kind() {
2670
+ return this.expr("kind");
2671
+ }
2672
+ /**
2673
+ * The geo-location where the resource lives
2674
+ */
2675
+ get location() {
2676
+ return this.expr("location");
2677
+ }
2678
+ set location(value) {
2679
+ this.setProperty("location", value);
2680
+ }
2681
+ /**
2682
+ * The name of the elastic pool.
2683
+ */
2684
+ get name() {
2685
+ return this.expr("name");
2686
+ }
2687
+ set name(value) {
2688
+ this.setProperty("name", value);
2689
+ }
2690
+ /**
2691
+ * Resource properties.
2692
+ */
2693
+ get properties() {
2694
+ return this.expr("properties");
2695
+ }
2696
+ set properties(value) {
2697
+ this.setProperty("properties", value);
2698
+ }
2699
+ /**
2700
+ * The elastic pool SKU. The list of SKUs may vary by region and support offer. To determine the
2701
+ * SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your
2702
+ * subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or the
2703
+ * following command: ```azurecli az sql elastic-pool list-editions -l <location> -o table ```
2704
+ */
2705
+ get sku() {
2706
+ return this.expr("sku");
2707
+ }
2708
+ set sku(value) {
2709
+ this.setProperty("sku", value);
2710
+ }
2711
+ /**
2712
+ * Resource tags.
2713
+ */
2714
+ get tags() {
2715
+ return this.expr("tags");
2716
+ }
2717
+ set tags(value) {
2718
+ this.setProperty("tags", value);
2719
+ }
2720
+ }
2721
+ /**
2722
+ * The server encryption protector.
2723
+ */
2724
+ export class ServerEncryptionProtector extends Resource {
2725
+ static resourceType = "Microsoft.Sql/servers/encryptionProtector";
2726
+ static apiVersion = API_VERSION;
2727
+ static namingRules = {
2728
+ abbreviation: "ep",
2729
+ pattern: {
2730
+ regex: "",
2731
+ },
2732
+ scope: "parent",
2733
+ };
2734
+ static {
2735
+ this.registerShape(createFlatModelShape({
2736
+ kind: { armPath: ["kind"], value: createStringShape(), readOnly: true },
2737
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
2738
+ name: { armPath: ["name"], value: createUnionShape() },
2739
+ properties: {
2740
+ armPath: ["properties"],
2741
+ value: createDeferredShape(() => encryptionProtectorPropertiesShape),
2742
+ },
2743
+ }));
2744
+ this.register();
2745
+ }
2746
+ /**
2747
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2748
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2749
+ *
2750
+ * @param props - Resource properties to normalize for the base constructor.
2751
+ */
2752
+ static buildResourceProps(props) {
2753
+ return {
2754
+ ...props,
2755
+ type: ServerEncryptionProtector.resourceType,
2756
+ apiVersion: ServerEncryptionProtector.apiVersion,
2757
+ };
2758
+ }
2759
+ constructor(context, props, options) {
2760
+ super(context, ServerEncryptionProtector.buildResourceProps(props), options);
2761
+ }
2762
+ /**
2763
+ * Kind of encryption protector. This is metadata used for the Azure portal experience.
2764
+ */
2765
+ get kind() {
2766
+ return this.expr("kind");
2767
+ }
2768
+ /**
2769
+ * Resource location.
2770
+ */
2771
+ get location() {
2772
+ return this.expr("location");
2773
+ }
2774
+ /**
2775
+ * The name of the encryption protector to be retrieved.
2776
+ */
2777
+ get name() {
2778
+ return this.expr("name");
2779
+ }
2780
+ set name(value) {
2781
+ this.setProperty("name", value);
2782
+ }
2783
+ /**
2784
+ * Resource properties.
2785
+ */
2786
+ get properties() {
2787
+ return this.expr("properties");
2788
+ }
2789
+ set properties(value) {
2790
+ this.setProperty("properties", value);
2791
+ }
2792
+ }
2793
+ /**
2794
+ * An extended server blob auditing policy.
2795
+ */
2796
+ export class ExtendedServerBlobAuditingPolicy extends Resource {
2797
+ static resourceType = "Microsoft.Sql/servers/extendedAuditingSettings";
2798
+ static apiVersion = API_VERSION;
2799
+ static namingRules = {
2800
+ abbreviation: "eas",
2801
+ scope: "parent",
2802
+ };
2803
+ static {
2804
+ this.registerShape(createFlatModelShape({
2805
+ name: { armPath: ["name"], value: createEnumShape() },
2806
+ properties: {
2807
+ armPath: ["properties"],
2808
+ value: createDeferredShape(() => extendedServerBlobAuditingPolicyPropertiesShape),
2809
+ },
2810
+ }));
2811
+ this.register();
2812
+ }
2813
+ /**
2814
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2815
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2816
+ *
2817
+ * @param props - Resource properties to normalize for the base constructor.
2818
+ */
2819
+ static buildResourceProps(props) {
2820
+ return {
2821
+ ...props,
2822
+ type: ExtendedServerBlobAuditingPolicy.resourceType,
2823
+ apiVersion: ExtendedServerBlobAuditingPolicy.apiVersion,
2824
+ };
2825
+ }
2826
+ constructor(context, props, options) {
2827
+ super(context, ExtendedServerBlobAuditingPolicy.buildResourceProps(props), options);
2828
+ }
2829
+ get name() {
2830
+ return this.expr("name");
2831
+ }
2832
+ set name(value) {
2833
+ this.setProperty("name", value);
2834
+ }
2835
+ /**
2836
+ * Resource properties.
2837
+ */
2838
+ get properties() {
2839
+ return this.expr("properties");
2840
+ }
2841
+ set properties(value) {
2842
+ this.setProperty("properties", value);
2843
+ }
2844
+ }
2845
+ /**
2846
+ * A failover group.
2847
+ */
2848
+ export class FailoverGroup extends Resource {
2849
+ static resourceType = "Microsoft.Sql/servers/failoverGroups";
2850
+ static apiVersion = API_VERSION;
2851
+ static namingRules = {
2852
+ abbreviation: "fg",
2853
+ pattern: {
2854
+ regex: "",
2855
+ },
2856
+ scope: "parent",
2857
+ };
2858
+ static {
2859
+ this.registerShape(createFlatModelShape({
2860
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
2861
+ name: { armPath: ["name"], value: createStringShape() },
2862
+ properties: {
2863
+ armPath: ["properties"],
2864
+ value: createDeferredShape(() => failoverGroupPropertiesShape),
2865
+ },
2866
+ tags: { armPath: ["tags"], value: createRecordShape(createStringShape()) },
2867
+ }));
2868
+ this.register();
2869
+ }
2870
+ /**
2871
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2872
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2873
+ *
2874
+ * @param props - Resource properties to normalize for the base constructor.
2875
+ */
2876
+ static buildResourceProps(props) {
2877
+ return {
2878
+ ...props,
2879
+ type: FailoverGroup.resourceType,
2880
+ apiVersion: FailoverGroup.apiVersion,
2881
+ };
2882
+ }
2883
+ constructor(context, props, options) {
2884
+ super(context, FailoverGroup.buildResourceProps(props), options);
2885
+ }
2886
+ /**
2887
+ * Resource location.
2888
+ */
2889
+ get location() {
2890
+ return this.expr("location");
2891
+ }
2892
+ /**
2893
+ * The name of the failover group.
2894
+ */
2895
+ get name() {
2896
+ return this.expr("name");
2897
+ }
2898
+ set name(value) {
2899
+ this.setProperty("name", value);
2900
+ }
2901
+ /**
2902
+ * Resource properties.
2903
+ */
2904
+ get properties() {
2905
+ return this.expr("properties");
2906
+ }
2907
+ set properties(value) {
2908
+ this.setProperty("properties", value);
2909
+ }
2910
+ /**
2911
+ * Resource tags.
2912
+ */
2913
+ get tags() {
2914
+ return this.expr("tags");
2915
+ }
2916
+ set tags(value) {
2917
+ this.setProperty("tags", value);
2918
+ }
2919
+ }
2920
+ /**
2921
+ * A server firewall rule.
2922
+ */
2923
+ export class FirewallRule extends Resource {
2924
+ static resourceType = "Microsoft.Sql/servers/firewallRules";
2925
+ static apiVersion = API_VERSION;
2926
+ static namingRules = {
2927
+ abbreviation: "fr",
2928
+ scope: "parent",
2929
+ };
2930
+ static {
2931
+ this.registerShape(createFlatModelShape({
2932
+ name: { armPath: ["name"], value: createStringShape() },
2933
+ properties: {
2934
+ armPath: ["properties"],
2935
+ value: createDeferredShape(() => serverFirewallRulePropertiesShape),
2936
+ },
2937
+ }));
2938
+ this.register();
2939
+ }
2940
+ /**
2941
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2942
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2943
+ *
2944
+ * @param props - Resource properties to normalize for the base constructor.
2945
+ */
2946
+ static buildResourceProps(props) {
2947
+ return {
2948
+ ...props,
2949
+ type: FirewallRule.resourceType,
2950
+ apiVersion: FirewallRule.apiVersion,
2951
+ };
2952
+ }
2953
+ constructor(context, props, options) {
2954
+ super(context, FirewallRule.buildResourceProps(props), options);
2955
+ }
2956
+ /**
2957
+ * Resource name.
2958
+ */
2959
+ get name() {
2960
+ return this.expr("name");
2961
+ }
2962
+ set name(value) {
2963
+ this.setProperty("name", value);
2964
+ }
2965
+ /**
2966
+ * Resource properties.
2967
+ */
2968
+ get properties() {
2969
+ return this.expr("properties");
2970
+ }
2971
+ set properties(value) {
2972
+ this.setProperty("properties", value);
2973
+ }
2974
+ }
2975
+ /**
2976
+ * An IPv6 server firewall rule.
2977
+ */
2978
+ export class IPv6FirewallRule extends Resource {
2979
+ static resourceType = "Microsoft.Sql/servers/ipv6FirewallRules";
2980
+ static apiVersion = API_VERSION;
2981
+ static namingRules = {
2982
+ abbreviation: "ir",
2983
+ scope: "parent",
2984
+ };
2985
+ static {
2986
+ this.registerShape(createFlatModelShape({
2987
+ name: { armPath: ["name"], value: createStringShape() },
2988
+ properties: {
2989
+ armPath: ["properties"],
2990
+ value: createDeferredShape(() => iPv6ServerFirewallRulePropertiesShape),
2991
+ },
2992
+ }));
2993
+ this.register();
2994
+ }
2995
+ /**
2996
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
2997
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
2998
+ *
2999
+ * @param props - Resource properties to normalize for the base constructor.
3000
+ */
3001
+ static buildResourceProps(props) {
3002
+ return {
3003
+ ...props,
3004
+ type: IPv6FirewallRule.resourceType,
3005
+ apiVersion: IPv6FirewallRule.apiVersion,
3006
+ };
3007
+ }
3008
+ constructor(context, props, options) {
3009
+ super(context, IPv6FirewallRule.buildResourceProps(props), options);
3010
+ }
3011
+ /**
3012
+ * Resource name.
3013
+ */
3014
+ get name() {
3015
+ return this.expr("name");
3016
+ }
3017
+ set name(value) {
3018
+ this.setProperty("name", value);
3019
+ }
3020
+ /**
3021
+ * Resource properties.
3022
+ */
3023
+ get properties() {
3024
+ return this.expr("properties");
3025
+ }
3026
+ set properties(value) {
3027
+ this.setProperty("properties", value);
3028
+ }
3029
+ }
3030
+ /**
3031
+ * A stored credential that can be used by a job to connect to target databases.
3032
+ */
3033
+ export class Credential extends Resource {
3034
+ static resourceType = "Microsoft.Sql/servers/jobAgents/credentials";
3035
+ static apiVersion = API_VERSION;
3036
+ static namingRules = {
3037
+ abbreviation: "c",
3038
+ pattern: {
3039
+ regex: "",
3040
+ },
3041
+ scope: "parent",
3042
+ };
3043
+ static {
3044
+ this.registerShape(createFlatModelShape({
3045
+ name: { armPath: ["name"], value: createStringShape() },
3046
+ properties: {
3047
+ armPath: ["properties"],
3048
+ value: createDeferredShape(() => jobCredentialPropertiesShape),
3049
+ },
3050
+ }));
3051
+ this.register();
3052
+ }
3053
+ /**
3054
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
3055
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
3056
+ *
3057
+ * @param props - Resource properties to normalize for the base constructor.
3058
+ */
3059
+ static buildResourceProps(props) {
3060
+ return {
3061
+ ...props,
3062
+ type: Credential.resourceType,
3063
+ apiVersion: Credential.apiVersion,
3064
+ };
3065
+ }
3066
+ constructor(context, props, options) {
3067
+ super(context, Credential.buildResourceProps(props), options);
3068
+ }
3069
+ /**
3070
+ * The name of the credential.
3071
+ */
3072
+ get name() {
3073
+ return this.expr("name");
3074
+ }
3075
+ set name(value) {
3076
+ this.setProperty("name", value);
3077
+ }
3078
+ /**
3079
+ * Resource properties.
3080
+ */
3081
+ get properties() {
3082
+ return this.expr("properties");
3083
+ }
3084
+ set properties(value) {
3085
+ this.setProperty("properties", value);
3086
+ }
3087
+ }
3088
+ /**
3089
+ * An execution of a job
3090
+ */
3091
+ export class SqlServerJobExecutionStepTarget extends Resource {
3092
+ static resourceType = "Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets";
3093
+ static apiVersion = API_VERSION;
3094
+ static namingRules = {
3095
+ abbreviation: "t",
3096
+ scope: "parent",
3097
+ };
3098
+ static {
3099
+ this.registerShape(createFlatModelShape({
3100
+ name: { armPath: ["name"], value: createStringShape() },
3101
+ properties: {
3102
+ armPath: ["properties"],
3103
+ value: createDeferredShape(() => jobExecutionPropertiesShape),
3104
+ readOnly: true,
3105
+ },
3106
+ }));
3107
+ this.register();
3108
+ }
3109
+ /**
3110
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
3111
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
3112
+ *
3113
+ * @param props - Resource properties to normalize for the base constructor.
3114
+ */
3115
+ static buildResourceProps(props) {
3116
+ return {
3117
+ ...props,
3118
+ type: SqlServerJobExecutionStepTarget.resourceType,
3119
+ apiVersion: SqlServerJobExecutionStepTarget.apiVersion,
3120
+ };
3121
+ }
3122
+ constructor(context, props, options) {
3123
+ super(context, SqlServerJobExecutionStepTarget.buildResourceProps(props), options);
3124
+ }
3125
+ /**
3126
+ * The id of the job execution
3127
+ */
3128
+ get name() {
3129
+ return this.expr("name");
3130
+ }
3131
+ set name(value) {
3132
+ this.setProperty("name", value);
3133
+ }
3134
+ /**
3135
+ * Resource properties.
3136
+ */
3137
+ get properties() {
3138
+ return this.expr("properties");
3139
+ }
3140
+ }
3141
+ /**
3142
+ * An execution of a job
3143
+ */
3144
+ export class SqlServerJobExecutionStep extends Resource {
3145
+ static resourceType = "Microsoft.Sql/servers/jobAgents/jobs/executions/steps";
3146
+ static apiVersion = API_VERSION;
3147
+ static namingRules = {
3148
+ abbreviation: "s",
3149
+ scope: "parent",
3150
+ };
3151
+ static {
3152
+ this.registerShape(createFlatModelShape({
3153
+ name: { armPath: ["name"], value: createStringShape() },
3154
+ properties: {
3155
+ armPath: ["properties"],
3156
+ value: createDeferredShape(() => jobExecutionPropertiesShape),
3157
+ readOnly: true,
3158
+ },
3159
+ }));
3160
+ this.register();
3161
+ }
3162
+ /**
3163
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
3164
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
3165
+ *
3166
+ * @param props - Resource properties to normalize for the base constructor.
3167
+ */
3168
+ static buildResourceProps(props) {
3169
+ return {
3170
+ ...props,
3171
+ type: SqlServerJobExecutionStep.resourceType,
3172
+ apiVersion: SqlServerJobExecutionStep.apiVersion,
3173
+ };
3174
+ }
3175
+ constructor(context, props, options) {
3176
+ super(context, SqlServerJobExecutionStep.buildResourceProps(props), options);
3177
+ }
3178
+ /**
3179
+ * The id of the job execution
3180
+ */
3181
+ get name() {
3182
+ return this.expr("name");
3183
+ }
3184
+ set name(value) {
3185
+ this.setProperty("name", value);
3186
+ }
3187
+ /**
3188
+ * Resource properties.
3189
+ */
3190
+ get properties() {
3191
+ return this.expr("properties");
3192
+ }
3193
+ }
3194
+ /**
3195
+ * An execution of a job
3196
+ */
3197
+ export class SqlServerJobExecution extends Resource {
3198
+ static resourceType = "Microsoft.Sql/servers/jobAgents/jobs/executions";
3199
+ static apiVersion = API_VERSION;
3200
+ static namingRules = {
3201
+ abbreviation: "e",
3202
+ scope: "parent",
3203
+ };
3204
+ static {
3205
+ this.registerShape(createFlatModelShape({
3206
+ name: { armPath: ["name"], value: createStringShape() },
3207
+ properties: {
3208
+ armPath: ["properties"],
3209
+ value: createDeferredShape(() => jobExecutionPropertiesShape),
3210
+ readOnly: true,
3211
+ },
3212
+ }));
3213
+ this.register();
3214
+ }
3215
+ /**
3216
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
3217
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
3218
+ *
3219
+ * @param props - Resource properties to normalize for the base constructor.
3220
+ */
3221
+ static buildResourceProps(props) {
3222
+ return {
3223
+ ...props,
3224
+ type: SqlServerJobExecution.resourceType,
3225
+ apiVersion: SqlServerJobExecution.apiVersion,
3226
+ };
3227
+ }
3228
+ constructor(context, props, options) {
3229
+ super(context, SqlServerJobExecution.buildResourceProps(props), options);
3230
+ }
3231
+ /**
3232
+ * The id of the job execution
3233
+ */
3234
+ get name() {
3235
+ return this.expr("name");
3236
+ }
3237
+ set name(value) {
3238
+ this.setProperty("name", value);
3239
+ }
3240
+ /**
3241
+ * Resource properties.
3242
+ */
3243
+ get properties() {
3244
+ return this.expr("properties");
3245
+ }
3246
+ }
3247
+ /**
3248
+ * A job step.
3249
+ */
3250
+ export class SqlServerJobStep extends Resource {
3251
+ static resourceType = "Microsoft.Sql/servers/jobAgents/jobs/steps";
3252
+ static apiVersion = API_VERSION;
3253
+ static namingRules = {
3254
+ abbreviation: "s",
3255
+ scope: "parent",
3256
+ };
3257
+ static {
3258
+ this.registerShape(createFlatModelShape({
3259
+ name: { armPath: ["name"], value: createStringShape() },
3260
+ properties: {
3261
+ armPath: ["properties"],
3262
+ value: createDeferredShape(() => jobStepPropertiesShape),
3263
+ },
3264
+ }));
3265
+ this.register();
3266
+ }
3267
+ /**
3268
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
3269
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
3270
+ *
3271
+ * @param props - Resource properties to normalize for the base constructor.
3272
+ */
3273
+ static buildResourceProps(props) {
3274
+ return {
3275
+ ...props,
3276
+ type: SqlServerJobStep.resourceType,
3277
+ apiVersion: SqlServerJobStep.apiVersion,
3278
+ };
3279
+ }
3280
+ constructor(context, props, options) {
3281
+ super(context, SqlServerJobStep.buildResourceProps(props), options);
3282
+ }
3283
+ /**
3284
+ * The name of the job step.
3285
+ */
3286
+ get name() {
3287
+ return this.expr("name");
3288
+ }
3289
+ set name(value) {
3290
+ this.setProperty("name", value);
3291
+ }
3292
+ /**
3293
+ * Resource properties.
3294
+ */
3295
+ get properties() {
3296
+ return this.expr("properties");
3297
+ }
3298
+ set properties(value) {
3299
+ this.setProperty("properties", value);
3300
+ }
3301
+ }
3302
+ /**
3303
+ * A job step.
3304
+ */
3305
+ export class SqlServerJobVersionStep extends Resource {
3306
+ static resourceType = "Microsoft.Sql/servers/jobAgents/jobs/versions/steps";
3307
+ static apiVersion = API_VERSION;
3308
+ static namingRules = {
3309
+ abbreviation: "s",
3310
+ scope: "parent",
3311
+ };
3312
+ static {
3313
+ this.registerShape(createFlatModelShape({
3314
+ name: { armPath: ["name"], value: createStringShape() },
3315
+ properties: {
3316
+ armPath: ["properties"],
3317
+ value: createDeferredShape(() => jobStepPropertiesShape),
3318
+ readOnly: true,
3319
+ },
3320
+ }));
3321
+ this.register();
3322
+ }
3323
+ /**
3324
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
3325
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
3326
+ *
3327
+ * @param props - Resource properties to normalize for the base constructor.
3328
+ */
3329
+ static buildResourceProps(props) {
3330
+ return {
3331
+ ...props,
3332
+ type: SqlServerJobVersionStep.resourceType,
3333
+ apiVersion: SqlServerJobVersionStep.apiVersion,
3334
+ };
3335
+ }
3336
+ constructor(context, props, options) {
3337
+ super(context, SqlServerJobVersionStep.buildResourceProps(props), options);
3338
+ }
3339
+ /**
3340
+ * The name of the job step.
3341
+ */
3342
+ get name() {
3343
+ return this.expr("name");
3344
+ }
3345
+ set name(value) {
3346
+ this.setProperty("name", value);
3347
+ }
3348
+ /**
3349
+ * Resource properties.
3350
+ */
3351
+ get properties() {
3352
+ return this.expr("properties");
3353
+ }
3354
+ }
3355
+ /**
3356
+ * A job version.
3357
+ */
3358
+ export class Version extends Resource {
3359
+ static resourceType = "Microsoft.Sql/servers/jobAgents/jobs/versions";
3360
+ static apiVersion = API_VERSION;
3361
+ static namingRules = {
3362
+ abbreviation: "v",
3363
+ scope: "parent",
3364
+ };
3365
+ static {
3366
+ this.registerShape(createFlatModelShape({
3367
+ name: { armPath: ["name"], value: createStringShape() },
3368
+ properties: { armPath: ["properties"], value: createAnyShape(), readOnly: true },
3369
+ }));
3370
+ this.register();
3371
+ }
3372
+ /**
3373
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
3374
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
3375
+ *
3376
+ * @param props - Resource properties to normalize for the base constructor.
3377
+ */
3378
+ static buildResourceProps(props) {
3379
+ return {
3380
+ ...props,
3381
+ type: Version.resourceType,
3382
+ apiVersion: Version.apiVersion,
3383
+ };
3384
+ }
3385
+ constructor(context, props, options) {
3386
+ super(context, Version.buildResourceProps(props), options);
3387
+ }
3388
+ /**
3389
+ * The version of the job to get.
3390
+ */
3391
+ get name() {
3392
+ return this.expr("name");
3393
+ }
3394
+ set name(value) {
3395
+ this.setProperty("name", value);
3396
+ }
3397
+ /**
3398
+ * The resource-specific properties for this resource.
3399
+ */
3400
+ get properties() {
3401
+ return this.expr("properties");
3402
+ }
3403
+ }
3404
+ /**
3405
+ * A job.
3406
+ */
3407
+ export class Job extends Resource {
3408
+ static resourceType = "Microsoft.Sql/servers/jobAgents/jobs";
3409
+ static apiVersion = API_VERSION;
3410
+ static namingRules = {
3411
+ abbreviation: "j",
3412
+ pattern: {
3413
+ regex: "",
3414
+ },
3415
+ scope: "parent",
3416
+ };
3417
+ static {
3418
+ this.registerShape(createFlatModelShape({
3419
+ name: { armPath: ["name"], value: createStringShape() },
3420
+ properties: {
3421
+ armPath: ["properties"],
3422
+ value: createDeferredShape(() => jobPropertiesShape),
3423
+ },
3424
+ }));
3425
+ this.register();
3426
+ }
3427
+ /**
3428
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
3429
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
3430
+ *
3431
+ * @param props - Resource properties to normalize for the base constructor.
3432
+ */
3433
+ static buildResourceProps(props) {
3434
+ return {
3435
+ ...props,
3436
+ type: Job.resourceType,
3437
+ apiVersion: Job.apiVersion,
3438
+ };
3439
+ }
3440
+ constructor(context, props, options) {
3441
+ super(context, Job.buildResourceProps(props), options);
3442
+ }
3443
+ /**
3444
+ * The name of the job to get.
3445
+ */
3446
+ get name() {
3447
+ return this.expr("name");
3448
+ }
3449
+ set name(value) {
3450
+ this.setProperty("name", value);
3451
+ }
3452
+ /**
3453
+ * Resource properties.
3454
+ */
3455
+ get properties() {
3456
+ return this.expr("properties");
3457
+ }
3458
+ set properties(value) {
3459
+ this.setProperty("properties", value);
3460
+ }
3461
+ }
3462
+ /**
3463
+ * A job agent private endpoint.
3464
+ */
3465
+ export class PrivateEndpoint extends Resource {
3466
+ static resourceType = "Microsoft.Sql/servers/jobAgents/privateEndpoints";
3467
+ static apiVersion = API_VERSION;
3468
+ static namingRules = {
3469
+ abbreviation: "pe",
3470
+ pattern: {
3471
+ regex: "",
3472
+ },
3473
+ scope: "parent",
3474
+ };
3475
+ static {
3476
+ this.registerShape(createFlatModelShape({
3477
+ name: { armPath: ["name"], value: createStringShape() },
3478
+ properties: {
3479
+ armPath: ["properties"],
3480
+ value: createDeferredShape(() => jobPrivateEndpointPropertiesShape),
3481
+ },
3482
+ }));
3483
+ this.register();
3484
+ }
3485
+ /**
3486
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
3487
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
3488
+ *
3489
+ * @param props - Resource properties to normalize for the base constructor.
3490
+ */
3491
+ static buildResourceProps(props) {
3492
+ return {
3493
+ ...props,
3494
+ type: PrivateEndpoint.resourceType,
3495
+ apiVersion: PrivateEndpoint.apiVersion,
3496
+ };
3497
+ }
3498
+ constructor(context, props, options) {
3499
+ super(context, PrivateEndpoint.buildResourceProps(props), options);
3500
+ }
3501
+ /**
3502
+ * The name of the private endpoint to get.
3503
+ */
3504
+ get name() {
3505
+ return this.expr("name");
3506
+ }
3507
+ set name(value) {
3508
+ this.setProperty("name", value);
3509
+ }
3510
+ /**
3511
+ * Resource properties.
3512
+ */
3513
+ get properties() {
3514
+ return this.expr("properties");
3515
+ }
3516
+ set properties(value) {
3517
+ this.setProperty("properties", value);
3518
+ }
3519
+ }
3520
+ /**
3521
+ * A group of job targets.
3522
+ */
3523
+ export class TargetGroup extends Resource {
3524
+ static resourceType = "Microsoft.Sql/servers/jobAgents/targetGroups";
3525
+ static apiVersion = API_VERSION;
3526
+ static namingRules = {
3527
+ abbreviation: "tg",
3528
+ pattern: {
3529
+ regex: "",
3530
+ },
3531
+ scope: "parent",
3532
+ };
3533
+ static {
3534
+ this.registerShape(createFlatModelShape({
3535
+ name: { armPath: ["name"], value: createStringShape() },
3536
+ properties: {
3537
+ armPath: ["properties"],
3538
+ value: createDeferredShape(() => jobTargetGroupPropertiesShape),
3539
+ },
3540
+ }));
3541
+ this.register();
3542
+ }
3543
+ /**
3544
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
3545
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
3546
+ *
3547
+ * @param props - Resource properties to normalize for the base constructor.
3548
+ */
3549
+ static buildResourceProps(props) {
3550
+ return {
3551
+ ...props,
3552
+ type: TargetGroup.resourceType,
3553
+ apiVersion: TargetGroup.apiVersion,
3554
+ };
3555
+ }
3556
+ constructor(context, props, options) {
3557
+ super(context, TargetGroup.buildResourceProps(props), options);
3558
+ }
3559
+ /**
3560
+ * The name of the target group.
3561
+ */
3562
+ get name() {
3563
+ return this.expr("name");
3564
+ }
3565
+ set name(value) {
3566
+ this.setProperty("name", value);
3567
+ }
3568
+ /**
3569
+ * Resource properties.
3570
+ */
3571
+ get properties() {
3572
+ return this.expr("properties");
3573
+ }
3574
+ set properties(value) {
3575
+ this.setProperty("properties", value);
3576
+ }
3577
+ }
3578
+ /**
3579
+ * An Azure SQL job agent.
3580
+ */
3581
+ export class JobAgent extends Resource {
3582
+ static resourceType = "Microsoft.Sql/servers/jobAgents";
3583
+ static apiVersion = API_VERSION;
3584
+ static namingRules = {
3585
+ abbreviation: "ja",
3586
+ pattern: {
3587
+ regex: "",
3588
+ },
3589
+ scope: "parent",
3590
+ };
3591
+ static {
3592
+ this.registerShape(createFlatModelShape({
3593
+ identity: {
3594
+ armPath: ["identity"],
3595
+ value: createDeferredShape(() => jobAgentIdentityShape),
3596
+ },
3597
+ location: { armPath: ["location"], value: createStringShape() },
3598
+ name: { armPath: ["name"], value: createStringShape() },
3599
+ properties: {
3600
+ armPath: ["properties"],
3601
+ value: createDeferredShape(() => jobAgentPropertiesShape),
3602
+ },
3603
+ sku: { armPath: ["sku"], value: createDeferredShape(() => skuShape) },
3604
+ tags: { armPath: ["tags"], value: createRecordShape(createStringShape()) },
3605
+ }));
3606
+ this.register();
3607
+ }
3608
+ /**
3609
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
3610
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
3611
+ *
3612
+ * @param props - Resource properties to normalize for the base constructor.
3613
+ */
3614
+ static buildResourceProps(props) {
3615
+ return {
3616
+ ...props,
3617
+ type: JobAgent.resourceType,
3618
+ apiVersion: JobAgent.apiVersion,
3619
+ };
3620
+ }
3621
+ constructor(context, props, options) {
3622
+ super(context, JobAgent.buildResourceProps(props), options);
3623
+ }
3624
+ /**
3625
+ * The identity of the job agent.
3626
+ */
3627
+ get identity() {
3628
+ return this.expr("identity");
3629
+ }
3630
+ set identity(value) {
3631
+ this.setProperty("identity", value);
3632
+ }
3633
+ /**
3634
+ * The geo-location where the resource lives
3635
+ */
3636
+ get location() {
3637
+ return this.expr("location");
3638
+ }
3639
+ set location(value) {
3640
+ this.setProperty("location", value);
3641
+ }
3642
+ /**
3643
+ * The name of the job agent to be retrieved.
3644
+ */
3645
+ get name() {
3646
+ return this.expr("name");
3647
+ }
3648
+ set name(value) {
3649
+ this.setProperty("name", value);
3650
+ }
3651
+ /**
3652
+ * Resource properties.
3653
+ */
3654
+ get properties() {
3655
+ return this.expr("properties");
3656
+ }
3657
+ set properties(value) {
3658
+ this.setProperty("properties", value);
3659
+ }
3660
+ /**
3661
+ * The name and tier of the SKU.
3662
+ */
3663
+ get sku() {
3664
+ return this.expr("sku");
3665
+ }
3666
+ set sku(value) {
3667
+ this.setProperty("sku", value);
3668
+ }
3669
+ /**
3670
+ * Resource tags.
3671
+ */
3672
+ get tags() {
3673
+ return this.expr("tags");
3674
+ }
3675
+ set tags(value) {
3676
+ this.setProperty("tags", value);
3677
+ }
3678
+ }
3679
+ /**
3680
+ * A server key.
3681
+ */
3682
+ export class ServerKey extends Resource {
3683
+ static resourceType = "Microsoft.Sql/servers/keys";
3684
+ static apiVersion = API_VERSION;
3685
+ static namingRules = {
3686
+ abbreviation: "k",
3687
+ pattern: {
3688
+ regex: "",
3689
+ },
3690
+ scope: "parent",
3691
+ };
3692
+ static {
3693
+ this.registerShape(createFlatModelShape({
3694
+ kind: { armPath: ["kind"], value: createStringShape(), readOnly: true },
3695
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
3696
+ name: { armPath: ["name"], value: createStringShape() },
3697
+ properties: {
3698
+ armPath: ["properties"],
3699
+ value: createDeferredShape(() => serverKeyPropertiesShape),
3700
+ },
3701
+ }));
3702
+ this.register();
3703
+ }
3704
+ /**
3705
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
3706
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
3707
+ *
3708
+ * @param props - Resource properties to normalize for the base constructor.
3709
+ */
3710
+ static buildResourceProps(props) {
3711
+ return {
3712
+ ...props,
3713
+ type: ServerKey.resourceType,
3714
+ apiVersion: ServerKey.apiVersion,
3715
+ };
3716
+ }
3717
+ constructor(context, props, options) {
3718
+ super(context, ServerKey.buildResourceProps(props), options);
3719
+ }
3720
+ /**
3721
+ * Kind of encryption protector. This is metadata used for the Azure portal experience.
3722
+ */
3723
+ get kind() {
3724
+ return this.expr("kind");
3725
+ }
3726
+ /**
3727
+ * Resource location.
3728
+ */
3729
+ get location() {
3730
+ return this.expr("location");
3731
+ }
3732
+ /**
3733
+ * The name of the server key to be retrieved.
3734
+ */
3735
+ get name() {
3736
+ return this.expr("name");
3737
+ }
3738
+ set name(value) {
3739
+ this.setProperty("name", value);
3740
+ }
3741
+ /**
3742
+ * Resource properties.
3743
+ */
3744
+ get properties() {
3745
+ return this.expr("properties");
3746
+ }
3747
+ set properties(value) {
3748
+ this.setProperty("properties", value);
3749
+ }
3750
+ }
3751
+ /**
3752
+ * NSP Configuration for a server.
3753
+ */
3754
+ export class NetworkSecurityPerimeterConfiguration extends Resource {
3755
+ static resourceType = "Microsoft.Sql/servers/networkSecurityPerimeterConfigurations";
3756
+ static apiVersion = API_VERSION;
3757
+ static namingRules = {
3758
+ abbreviation: "nspc",
3759
+ pattern: {
3760
+ regex: "",
3761
+ },
3762
+ scope: "parent",
3763
+ };
3764
+ static {
3765
+ this.registerShape(createFlatModelShape({
3766
+ name: { armPath: ["name"], value: createStringShape() },
3767
+ properties: {
3768
+ armPath: ["properties"],
3769
+ value: createDeferredShape(() => networkSecurityPerimeterConfigurationPropertiesShape),
3770
+ readOnly: true,
3771
+ },
3772
+ }));
3773
+ this.register();
3774
+ }
3775
+ /**
3776
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
3777
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
3778
+ *
3779
+ * @param props - Resource properties to normalize for the base constructor.
3780
+ */
3781
+ static buildResourceProps(props) {
3782
+ return {
3783
+ ...props,
3784
+ type: NetworkSecurityPerimeterConfiguration.resourceType,
3785
+ apiVersion: NetworkSecurityPerimeterConfiguration.apiVersion,
3786
+ };
3787
+ }
3788
+ constructor(context, props, options) {
3789
+ super(context, NetworkSecurityPerimeterConfiguration.buildResourceProps(props), options);
3790
+ }
3791
+ get name() {
3792
+ return this.expr("name");
3793
+ }
3794
+ set name(value) {
3795
+ this.setProperty("name", value);
3796
+ }
3797
+ /**
3798
+ * Resource properties.
3799
+ */
3800
+ get properties() {
3801
+ return this.expr("properties");
3802
+ }
3803
+ }
3804
+ /**
3805
+ * An Azure SQL DB Server Outbound Firewall Rule.
3806
+ */
3807
+ export class OutboundFirewallRule extends Resource {
3808
+ static resourceType = "Microsoft.Sql/servers/outboundFirewallRules";
3809
+ static apiVersion = API_VERSION;
3810
+ static namingRules = {
3811
+ abbreviation: "ofr",
3812
+ pattern: {
3813
+ regex: "",
3814
+ },
3815
+ scope: "parent",
3816
+ };
3817
+ static {
3818
+ this.registerShape(createFlatModelShape({
3819
+ name: { armPath: ["name"], value: createStringShape() },
3820
+ properties: {
3821
+ armPath: ["properties"],
3822
+ value: createDeferredShape(() => outboundFirewallRulePropertiesShape),
3823
+ readOnly: true,
3824
+ },
3825
+ }));
3826
+ this.register();
3827
+ }
3828
+ /**
3829
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
3830
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
3831
+ *
3832
+ * @param props - Resource properties to normalize for the base constructor.
3833
+ */
3834
+ static buildResourceProps(props) {
3835
+ return {
3836
+ ...props,
3837
+ type: OutboundFirewallRule.resourceType,
3838
+ apiVersion: OutboundFirewallRule.apiVersion,
3839
+ };
3840
+ }
3841
+ constructor(context, props, options) {
3842
+ super(context, OutboundFirewallRule.buildResourceProps(props), options);
3843
+ }
3844
+ get name() {
3845
+ return this.expr("name");
3846
+ }
3847
+ set name(value) {
3848
+ this.setProperty("name", value);
3849
+ }
3850
+ /**
3851
+ * Resource properties.
3852
+ */
3853
+ get properties() {
3854
+ return this.expr("properties");
3855
+ }
3856
+ }
3857
+ /**
3858
+ * A private endpoint connection
3859
+ */
3860
+ export class ServerPrivateEndpointConnection extends Resource {
3861
+ static resourceType = "Microsoft.Sql/servers/privateEndpointConnections";
3862
+ static apiVersion = API_VERSION;
3863
+ static namingRules = {
3864
+ abbreviation: "pec",
3865
+ pattern: {
3866
+ regex: "",
3867
+ },
3868
+ scope: "parent",
3869
+ };
3870
+ static {
3871
+ this.registerShape(createFlatModelShape({
3872
+ name: { armPath: ["name"], value: createStringShape() },
3873
+ properties: {
3874
+ armPath: ["properties"],
3875
+ value: createDeferredShape(() => privateEndpointConnectionPropertiesShape),
3876
+ },
3877
+ }));
3878
+ this.register();
3879
+ }
3880
+ /**
3881
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
3882
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
3883
+ *
3884
+ * @param props - Resource properties to normalize for the base constructor.
3885
+ */
3886
+ static buildResourceProps(props) {
3887
+ return {
3888
+ ...props,
3889
+ type: ServerPrivateEndpointConnection.resourceType,
3890
+ apiVersion: ServerPrivateEndpointConnection.apiVersion,
3891
+ };
3892
+ }
3893
+ constructor(context, props, options) {
3894
+ super(context, ServerPrivateEndpointConnection.buildResourceProps(props), options);
3895
+ }
3896
+ /**
3897
+ * The name of the private endpoint connection.
3898
+ */
3899
+ get name() {
3900
+ return this.expr("name");
3901
+ }
3902
+ set name(value) {
3903
+ this.setProperty("name", value);
3904
+ }
3905
+ /**
3906
+ * Resource properties.
3907
+ */
3908
+ get properties() {
3909
+ return this.expr("properties");
3910
+ }
3911
+ set properties(value) {
3912
+ this.setProperty("properties", value);
3913
+ }
3914
+ }
3915
+ /**
3916
+ * A private link resource
3917
+ */
3918
+ export class PrivateLinkResource extends Resource {
3919
+ static resourceType = "Microsoft.Sql/servers/privateLinkResources";
3920
+ static apiVersion = API_VERSION;
3921
+ static namingRules = {
3922
+ abbreviation: "plr",
3923
+ pattern: {
3924
+ regex: "",
3925
+ },
3926
+ scope: "parent",
3927
+ };
3928
+ static {
3929
+ this.registerShape(createFlatModelShape({
3930
+ name: { armPath: ["name"], value: createStringShape() },
3931
+ properties: {
3932
+ armPath: ["properties"],
3933
+ value: createDeferredShape(() => privateLinkResourcePropertiesShape),
3934
+ readOnly: true,
3935
+ },
3936
+ }));
3937
+ this.register();
3938
+ }
3939
+ /**
3940
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
3941
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
3942
+ *
3943
+ * @param props - Resource properties to normalize for the base constructor.
3944
+ */
3945
+ static buildResourceProps(props) {
3946
+ return {
3947
+ ...props,
3948
+ type: PrivateLinkResource.resourceType,
3949
+ apiVersion: PrivateLinkResource.apiVersion,
3950
+ };
3951
+ }
3952
+ constructor(context, props, options) {
3953
+ super(context, PrivateLinkResource.buildResourceProps(props), options);
3954
+ }
3955
+ /**
3956
+ * The name of the private link resource.
3957
+ */
3958
+ get name() {
3959
+ return this.expr("name");
3960
+ }
3961
+ set name(value) {
3962
+ this.setProperty("name", value);
3963
+ }
3964
+ /**
3965
+ * The private link resource group id.
3966
+ */
3967
+ get properties() {
3968
+ return this.expr("properties");
3969
+ }
3970
+ }
3971
+ /**
3972
+ * A recoverable database resource.
3973
+ */
3974
+ export class RecoverableDatabase extends Resource {
3975
+ static resourceType = "Microsoft.Sql/servers/recoverableDatabases";
3976
+ static apiVersion = API_VERSION;
3977
+ static namingRules = {
3978
+ abbreviation: "rd",
3979
+ pattern: {
3980
+ regex: "",
3981
+ },
3982
+ scope: "parent",
3983
+ };
3984
+ static {
3985
+ this.registerShape(createFlatModelShape({
3986
+ name: { armPath: ["name"], value: createStringShape() },
3987
+ properties: {
3988
+ armPath: ["properties"],
3989
+ value: createDeferredShape(() => recoverableDatabasePropertiesShape),
3990
+ readOnly: true,
3991
+ },
3992
+ }));
3993
+ this.register();
3994
+ }
3995
+ /**
3996
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
3997
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
3998
+ *
3999
+ * @param props - Resource properties to normalize for the base constructor.
4000
+ */
4001
+ static buildResourceProps(props) {
4002
+ return {
4003
+ ...props,
4004
+ type: RecoverableDatabase.resourceType,
4005
+ apiVersion: RecoverableDatabase.apiVersion,
4006
+ };
4007
+ }
4008
+ constructor(context, props, options) {
4009
+ super(context, RecoverableDatabase.buildResourceProps(props), options);
4010
+ }
4011
+ /**
4012
+ * The name of the database.
4013
+ */
4014
+ get name() {
4015
+ return this.expr("name");
4016
+ }
4017
+ set name(value) {
4018
+ this.setProperty("name", value);
4019
+ }
4020
+ /**
4021
+ * Resource properties.
4022
+ */
4023
+ get properties() {
4024
+ return this.expr("properties");
4025
+ }
4026
+ }
4027
+ /**
4028
+ * A restorable dropped database resource.
4029
+ */
4030
+ export class RestorableDroppedDatabase extends Resource {
4031
+ static resourceType = "Microsoft.Sql/servers/restorableDroppedDatabases";
4032
+ static apiVersion = API_VERSION;
4033
+ static namingRules = {
4034
+ abbreviation: "rdd",
4035
+ pattern: {
4036
+ regex: "",
4037
+ },
4038
+ scope: "parent",
4039
+ };
4040
+ static {
4041
+ this.registerShape(createFlatModelShape({
4042
+ location: { armPath: ["location"], value: createStringShape(), readOnly: true },
4043
+ name: { armPath: ["name"], value: createStringShape() },
4044
+ properties: {
4045
+ armPath: ["properties"],
4046
+ value: createDeferredShape(() => restorableDroppedDatabasePropertiesShape),
4047
+ readOnly: true,
4048
+ },
4049
+ sku: { armPath: ["sku"], value: createDeferredShape(() => skuShape), readOnly: true },
4050
+ tags: { armPath: ["tags"], value: createRecordShape(createStringShape()), readOnly: true },
4051
+ }));
4052
+ this.register();
4053
+ }
4054
+ /**
4055
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
4056
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
4057
+ *
4058
+ * @param props - Resource properties to normalize for the base constructor.
4059
+ */
4060
+ static buildResourceProps(props) {
4061
+ return {
4062
+ ...props,
4063
+ type: RestorableDroppedDatabase.resourceType,
4064
+ apiVersion: RestorableDroppedDatabase.apiVersion,
4065
+ };
4066
+ }
4067
+ constructor(context, props, options) {
4068
+ super(context, RestorableDroppedDatabase.buildResourceProps(props), options);
4069
+ }
4070
+ /**
4071
+ * Resource location.
4072
+ */
4073
+ get location() {
4074
+ return this.expr("location");
4075
+ }
4076
+ get name() {
4077
+ return this.expr("name");
4078
+ }
4079
+ set name(value) {
4080
+ this.setProperty("name", value);
4081
+ }
4082
+ /**
4083
+ * Resource properties.
4084
+ */
4085
+ get properties() {
4086
+ return this.expr("properties");
4087
+ }
4088
+ /**
4089
+ * The name and tier of the SKU.
4090
+ */
4091
+ get sku() {
4092
+ return this.expr("sku");
4093
+ }
4094
+ /**
4095
+ * Resource tags.
4096
+ */
4097
+ get tags() {
4098
+ return this.expr("tags");
4099
+ }
4100
+ }
4101
+ /**
4102
+ * A server security alert policy.
4103
+ */
4104
+ export class ServerSecurityAlertPolicy extends Resource {
4105
+ static resourceType = "Microsoft.Sql/servers/securityAlertPolicies";
4106
+ static apiVersion = API_VERSION;
4107
+ static namingRules = {
4108
+ abbreviation: "sap",
4109
+ pattern: {
4110
+ regex: "",
4111
+ },
4112
+ scope: "parent",
4113
+ };
4114
+ static {
4115
+ this.registerShape(createFlatModelShape({
4116
+ name: { armPath: ["name"], value: createUnionShape() },
4117
+ properties: {
4118
+ armPath: ["properties"],
4119
+ value: createDeferredShape(() => securityAlertsPolicyPropertiesShape),
4120
+ },
4121
+ }));
4122
+ this.register();
4123
+ }
4124
+ /**
4125
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
4126
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
4127
+ *
4128
+ * @param props - Resource properties to normalize for the base constructor.
4129
+ */
4130
+ static buildResourceProps(props) {
4131
+ return {
4132
+ ...props,
4133
+ type: ServerSecurityAlertPolicy.resourceType,
4134
+ apiVersion: ServerSecurityAlertPolicy.apiVersion,
4135
+ };
4136
+ }
4137
+ constructor(context, props, options) {
4138
+ super(context, ServerSecurityAlertPolicy.buildResourceProps(props), options);
4139
+ }
4140
+ /**
4141
+ * The name of the security alert policy.
4142
+ */
4143
+ get name() {
4144
+ return this.expr("name");
4145
+ }
4146
+ set name(value) {
4147
+ this.setProperty("name", value);
4148
+ }
4149
+ /**
4150
+ * Resource properties.
4151
+ */
4152
+ get properties() {
4153
+ return this.expr("properties");
4154
+ }
4155
+ set properties(value) {
4156
+ this.setProperty("properties", value);
4157
+ }
4158
+ }
4159
+ /**
4160
+ * A SQL Vulnerability Assessment.
4161
+ */
4162
+ export class SqlServerSqlVulnerabilityAssessment extends Resource {
4163
+ static resourceType = "Microsoft.Sql/servers/sqlVulnerabilityAssessments";
4164
+ static apiVersion = API_VERSION;
4165
+ static namingRules = {
4166
+ abbreviation: "sva",
4167
+ scope: "parent",
4168
+ };
4169
+ static {
4170
+ this.registerShape(createFlatModelShape({
4171
+ name: { armPath: ["name"], value: createUnionShape() },
4172
+ properties: {
4173
+ armPath: ["properties"],
4174
+ value: createDeferredShape(() => sqlVulnerabilityAssessmentPolicyPropertiesShape),
4175
+ },
4176
+ }));
4177
+ this.register();
4178
+ }
4179
+ /**
4180
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
4181
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
4182
+ *
4183
+ * @param props - Resource properties to normalize for the base constructor.
4184
+ */
4185
+ static buildResourceProps(props) {
4186
+ return {
4187
+ ...props,
4188
+ type: SqlServerSqlVulnerabilityAssessment.resourceType,
4189
+ apiVersion: SqlServerSqlVulnerabilityAssessment.apiVersion,
4190
+ };
4191
+ }
4192
+ constructor(context, props, options) {
4193
+ super(context, SqlServerSqlVulnerabilityAssessment.buildResourceProps(props), options);
4194
+ }
4195
+ /**
4196
+ * The name of the SQL Vulnerability Assessment.
4197
+ */
4198
+ get name() {
4199
+ return this.expr("name");
4200
+ }
4201
+ set name(value) {
4202
+ this.setProperty("name", value);
4203
+ }
4204
+ /**
4205
+ * Resource properties.
4206
+ */
4207
+ get properties() {
4208
+ return this.expr("properties");
4209
+ }
4210
+ set properties(value) {
4211
+ this.setProperty("properties", value);
4212
+ }
4213
+ }
4214
+ /**
4215
+ * An Azure SQL Database sync agent.
4216
+ */
4217
+ export class SyncAgent extends Resource {
4218
+ static resourceType = "Microsoft.Sql/servers/syncAgents";
4219
+ static apiVersion = API_VERSION;
4220
+ static namingRules = {
4221
+ abbreviation: "sa",
4222
+ pattern: {
4223
+ regex: "",
4224
+ },
4225
+ scope: "parent",
4226
+ };
4227
+ static {
4228
+ this.registerShape(createFlatModelShape({
4229
+ name: { armPath: ["name"], value: createStringShape() },
4230
+ properties: {
4231
+ armPath: ["properties"],
4232
+ value: createDeferredShape(() => syncAgentPropertiesShape),
4233
+ },
4234
+ }));
4235
+ this.register();
4236
+ }
4237
+ /**
4238
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
4239
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
4240
+ *
4241
+ * @param props - Resource properties to normalize for the base constructor.
4242
+ */
4243
+ static buildResourceProps(props) {
4244
+ return {
4245
+ ...props,
4246
+ type: SyncAgent.resourceType,
4247
+ apiVersion: SyncAgent.apiVersion,
4248
+ };
4249
+ }
4250
+ constructor(context, props, options) {
4251
+ super(context, SyncAgent.buildResourceProps(props), options);
4252
+ }
4253
+ /**
4254
+ * The name of the sync agent.
4255
+ */
4256
+ get name() {
4257
+ return this.expr("name");
4258
+ }
4259
+ set name(value) {
4260
+ this.setProperty("name", value);
4261
+ }
4262
+ /**
4263
+ * Resource properties.
4264
+ */
4265
+ get properties() {
4266
+ return this.expr("properties");
4267
+ }
4268
+ set properties(value) {
4269
+ this.setProperty("properties", value);
4270
+ }
4271
+ }
4272
+ /**
4273
+ * A virtual network rule.
4274
+ */
4275
+ export class VirtualNetworkRule extends Resource {
4276
+ static resourceType = "Microsoft.Sql/servers/virtualNetworkRules";
4277
+ static apiVersion = API_VERSION;
4278
+ static namingRules = {
4279
+ abbreviation: "vnr",
4280
+ pattern: {
4281
+ regex: "",
4282
+ },
4283
+ scope: "parent",
4284
+ };
4285
+ static {
4286
+ this.registerShape(createFlatModelShape({
4287
+ name: { armPath: ["name"], value: createStringShape() },
4288
+ properties: {
4289
+ armPath: ["properties"],
4290
+ value: createDeferredShape(() => virtualNetworkRulePropertiesShape),
4291
+ },
4292
+ }));
4293
+ this.register();
4294
+ }
4295
+ /**
4296
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
4297
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
4298
+ *
4299
+ * @param props - Resource properties to normalize for the base constructor.
4300
+ */
4301
+ static buildResourceProps(props) {
4302
+ return {
4303
+ ...props,
4304
+ type: VirtualNetworkRule.resourceType,
4305
+ apiVersion: VirtualNetworkRule.apiVersion,
4306
+ };
4307
+ }
4308
+ constructor(context, props, options) {
4309
+ super(context, VirtualNetworkRule.buildResourceProps(props), options);
4310
+ }
4311
+ /**
4312
+ * The name of the virtual network rule.
4313
+ */
4314
+ get name() {
4315
+ return this.expr("name");
4316
+ }
4317
+ set name(value) {
4318
+ this.setProperty("name", value);
4319
+ }
4320
+ /**
4321
+ * Resource properties.
4322
+ */
4323
+ get properties() {
4324
+ return this.expr("properties");
4325
+ }
4326
+ set properties(value) {
4327
+ this.setProperty("properties", value);
4328
+ }
4329
+ }
4330
+ /**
4331
+ * A server vulnerability assessment.
4332
+ */
4333
+ export class ServerVulnerabilityAssessment extends Resource {
4334
+ static resourceType = "Microsoft.Sql/servers/vulnerabilityAssessments";
4335
+ static apiVersion = API_VERSION;
4336
+ static namingRules = {
4337
+ abbreviation: "va",
4338
+ pattern: {
4339
+ regex: "",
4340
+ },
4341
+ scope: "parent",
4342
+ };
4343
+ static {
4344
+ this.registerShape(createFlatModelShape({
4345
+ name: { armPath: ["name"], value: createUnionShape() },
4346
+ properties: {
4347
+ armPath: ["properties"],
4348
+ value: createDeferredShape(() => serverVulnerabilityAssessmentPropertiesShape),
4349
+ },
4350
+ }));
4351
+ this.register();
4352
+ }
4353
+ /**
4354
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
4355
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
4356
+ *
4357
+ * @param props - Resource properties to normalize for the base constructor.
4358
+ */
4359
+ static buildResourceProps(props) {
4360
+ return {
4361
+ ...props,
4362
+ type: ServerVulnerabilityAssessment.resourceType,
4363
+ apiVersion: ServerVulnerabilityAssessment.apiVersion,
4364
+ };
4365
+ }
4366
+ constructor(context, props, options) {
4367
+ super(context, ServerVulnerabilityAssessment.buildResourceProps(props), options);
4368
+ }
4369
+ /**
4370
+ * The name of the vulnerability assessment.
4371
+ */
4372
+ get name() {
4373
+ return this.expr("name");
4374
+ }
4375
+ set name(value) {
4376
+ this.setProperty("name", value);
4377
+ }
4378
+ /**
4379
+ * Resource properties.
4380
+ */
4381
+ get properties() {
4382
+ return this.expr("properties");
4383
+ }
4384
+ set properties(value) {
4385
+ this.setProperty("properties", value);
4386
+ }
4387
+ }
4388
+ /**
4389
+ * An Azure SQL Database server.
4390
+ */
4391
+ export class Server extends Resource {
4392
+ static resourceType = "Microsoft.Sql/servers";
4393
+ static apiVersion = API_VERSION;
4394
+ static namingRules = {
4395
+ abbreviation: "sql",
4396
+ pattern: {
4397
+ regex: "",
4398
+ },
4399
+ scope: "global",
4400
+ };
4401
+ static {
4402
+ this.registerShape(createFlatModelShape({
4403
+ identity: {
4404
+ armPath: ["identity"],
4405
+ value: createDeferredShape(() => resourceIdentityShape),
4406
+ },
4407
+ kind: { armPath: ["kind"], value: createStringShape(), readOnly: true },
4408
+ location: { armPath: ["location"], value: createStringShape() },
4409
+ name: { armPath: ["name"], value: createStringShape() },
4410
+ properties: {
4411
+ armPath: ["properties"],
4412
+ value: createDeferredShape(() => serverPropertiesShape),
4413
+ },
4414
+ tags: { armPath: ["tags"], value: createRecordShape(createStringShape()) },
4415
+ }));
4416
+ this.register();
4417
+ }
4418
+ /**
4419
+ * Assemble the base `Resource` constructor payload. Preserve supplied properties while applying
4420
+ * resource metadata. Shared by ordinary construction and internal resource reconstruction.
4421
+ *
4422
+ * @param props - Resource properties to normalize for the base constructor.
4423
+ */
4424
+ static buildResourceProps(props) {
4425
+ return {
4426
+ ...props,
4427
+ type: Server.resourceType,
4428
+ apiVersion: Server.apiVersion,
4429
+ };
4430
+ }
4431
+ constructor(context, props, options) {
4432
+ super(context, Server.buildResourceProps(props), options);
4433
+ }
4434
+ /**
4435
+ * The Azure Active Directory identity of the server.
4436
+ */
4437
+ get identity() {
4438
+ return this.expr("identity");
4439
+ }
4440
+ set identity(value) {
4441
+ this.setProperty("identity", value);
4442
+ }
4443
+ /**
4444
+ * Kind of sql server. This is metadata used for the Azure portal experience.
4445
+ */
4446
+ get kind() {
4447
+ return this.expr("kind");
4448
+ }
4449
+ /**
4450
+ * The geo-location where the resource lives
4451
+ */
4452
+ get location() {
4453
+ return this.expr("location");
4454
+ }
4455
+ set location(value) {
4456
+ this.setProperty("location", value);
4457
+ }
4458
+ /**
4459
+ * The name of the server.
4460
+ */
4461
+ get name() {
4462
+ return this.expr("name");
4463
+ }
4464
+ set name(value) {
4465
+ this.setProperty("name", value);
4466
+ }
4467
+ /**
4468
+ * Resource properties.
4469
+ */
4470
+ get properties() {
4471
+ return this.expr("properties");
4472
+ }
4473
+ set properties(value) {
4474
+ this.setProperty("properties", value);
4475
+ }
4476
+ /**
4477
+ * Resource tags.
4478
+ */
4479
+ get tags() {
4480
+ return this.expr("tags");
4481
+ }
4482
+ set tags(value) {
4483
+ this.setProperty("tags", value);
4484
+ }
4485
+ }
4486
+ //# sourceMappingURL=server.js.map