@azure/arm-sqlvirtualmachine 3.1.0 → 5.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 (159) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +72 -78
  4. package/dist/index.js +2827 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +783 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +103 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +31 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +366 -340
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +18 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +143 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/availabilityGroupListeners.d.ts +89 -0
  29. package/dist-esm/src/operations/availabilityGroupListeners.d.ts.map +1 -0
  30. package/dist-esm/src/operations/availabilityGroupListeners.js +338 -0
  31. package/dist-esm/src/operations/availabilityGroupListeners.js.map +1 -0
  32. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  33. package/dist-esm/src/operations/index.d.ts.map +1 -0
  34. package/{esm → dist-esm/src}/operations/index.js +3 -5
  35. package/dist-esm/src/operations/index.js.map +1 -0
  36. package/dist-esm/src/operations/operations.d.ts +32 -0
  37. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/operations.js +116 -0
  39. package/dist-esm/src/operations/operations.js.map +1 -0
  40. package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts +117 -0
  41. package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts.map +1 -0
  42. package/dist-esm/src/operations/sqlVirtualMachineGroups.js +487 -0
  43. package/dist-esm/src/operations/sqlVirtualMachineGroups.js.map +1 -0
  44. package/dist-esm/src/operations/sqlVirtualMachines.d.ts +144 -0
  45. package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -0
  46. package/dist-esm/src/operations/sqlVirtualMachines.js +598 -0
  47. package/dist-esm/src/operations/sqlVirtualMachines.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.d.ts +62 -0
  49. package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.js +9 -0
  51. package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  53. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  55. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  57. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.d.ts +79 -0
  61. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts +87 -0
  65. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.js.map +1 -0
  68. package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts +21 -0
  69. package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +1 -0
  70. package/dist-esm/src/sqlVirtualMachineManagementClient.js +54 -0
  71. package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +1 -0
  72. package/dist-esm/test/sampleTest.d.ts +2 -0
  73. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  74. package/dist-esm/test/sampleTest.js +40 -0
  75. package/dist-esm/test/sampleTest.js.map +1 -0
  76. package/package.json +65 -31
  77. package/review/arm-sqlvirtualmachine.api.md +678 -0
  78. package/rollup.config.js +181 -30
  79. package/src/index.ts +12 -0
  80. package/src/lroImpl.ts +34 -0
  81. package/src/models/index.ts +641 -985
  82. package/src/models/mappers.ts +380 -351
  83. package/src/models/parameters.ts +106 -41
  84. package/src/operations/availabilityGroupListeners.ts +366 -222
  85. package/src/operations/index.ts +3 -5
  86. package/src/operations/operations.ts +89 -79
  87. package/src/operations/sqlVirtualMachineGroups.ts +517 -344
  88. package/src/operations/sqlVirtualMachines.ts +662 -336
  89. package/src/operationsInterfaces/availabilityGroupListeners.ts +115 -0
  90. package/src/operationsInterfaces/index.ts +12 -0
  91. package/src/operationsInterfaces/operations.ts +22 -0
  92. package/src/operationsInterfaces/sqlVirtualMachineGroups.ts +147 -0
  93. package/src/operationsInterfaces/sqlVirtualMachines.ts +160 -0
  94. package/src/sqlVirtualMachineManagementClient.ts +78 -35
  95. package/tsconfig.json +4 -4
  96. package/types/arm-sqlvirtualmachine.d.ts +1141 -0
  97. package/types/tsdoc-metadata.json +11 -0
  98. package/dist/arm-sqlvirtualmachine.js +0 -2335
  99. package/dist/arm-sqlvirtualmachine.js.map +0 -1
  100. package/dist/arm-sqlvirtualmachine.min.js +0 -1
  101. package/dist/arm-sqlvirtualmachine.min.js.map +0 -1
  102. package/esm/models/availabilityGroupListenersMappers.d.ts +0 -2
  103. package/esm/models/availabilityGroupListenersMappers.d.ts.map +0 -1
  104. package/esm/models/availabilityGroupListenersMappers.js +0 -9
  105. package/esm/models/availabilityGroupListenersMappers.js.map +0 -1
  106. package/esm/models/index.d.ts +0 -1156
  107. package/esm/models/index.d.ts.map +0 -1
  108. package/esm/models/index.js +0 -8
  109. package/esm/models/index.js.map +0 -1
  110. package/esm/models/mappers.d.ts +0 -31
  111. package/esm/models/mappers.d.ts.map +0 -1
  112. package/esm/models/mappers.js.map +0 -1
  113. package/esm/models/operationsMappers.d.ts +0 -2
  114. package/esm/models/operationsMappers.d.ts.map +0 -1
  115. package/esm/models/operationsMappers.js +0 -9
  116. package/esm/models/operationsMappers.js.map +0 -1
  117. package/esm/models/parameters.d.ts +0 -11
  118. package/esm/models/parameters.d.ts.map +0 -1
  119. package/esm/models/parameters.js +0 -103
  120. package/esm/models/parameters.js.map +0 -1
  121. package/esm/models/sqlVirtualMachineGroupsMappers.d.ts +0 -2
  122. package/esm/models/sqlVirtualMachineGroupsMappers.d.ts.map +0 -1
  123. package/esm/models/sqlVirtualMachineGroupsMappers.js +0 -9
  124. package/esm/models/sqlVirtualMachineGroupsMappers.js.map +0 -1
  125. package/esm/models/sqlVirtualMachinesMappers.d.ts +0 -2
  126. package/esm/models/sqlVirtualMachinesMappers.d.ts.map +0 -1
  127. package/esm/models/sqlVirtualMachinesMappers.js +0 -9
  128. package/esm/models/sqlVirtualMachinesMappers.js.map +0 -1
  129. package/esm/operations/availabilityGroupListeners.d.ts +0 -125
  130. package/esm/operations/availabilityGroupListeners.d.ts.map +0 -1
  131. package/esm/operations/availabilityGroupListeners.js +0 -238
  132. package/esm/operations/availabilityGroupListeners.js.map +0 -1
  133. package/esm/operations/index.d.ts.map +0 -1
  134. package/esm/operations/index.js.map +0 -1
  135. package/esm/operations/operations.d.ts +0 -46
  136. package/esm/operations/operations.d.ts.map +0 -1
  137. package/esm/operations/operations.js +0 -77
  138. package/esm/operations/operations.js.map +0 -1
  139. package/esm/operations/sqlVirtualMachineGroups.d.ts +0 -168
  140. package/esm/operations/sqlVirtualMachineGroups.d.ts.map +0 -1
  141. package/esm/operations/sqlVirtualMachineGroups.js +0 -337
  142. package/esm/operations/sqlVirtualMachineGroups.js.map +0 -1
  143. package/esm/operations/sqlVirtualMachines.d.ts +0 -168
  144. package/esm/operations/sqlVirtualMachines.d.ts.map +0 -1
  145. package/esm/operations/sqlVirtualMachines.js +0 -338
  146. package/esm/operations/sqlVirtualMachines.js.map +0 -1
  147. package/esm/sqlVirtualMachineManagementClient.d.ts +0 -21
  148. package/esm/sqlVirtualMachineManagementClient.d.ts.map +0 -1
  149. package/esm/sqlVirtualMachineManagementClient.js +0 -36
  150. package/esm/sqlVirtualMachineManagementClient.js.map +0 -1
  151. package/esm/sqlVirtualMachineManagementClientContext.d.ts +0 -16
  152. package/esm/sqlVirtualMachineManagementClientContext.d.ts.map +0 -1
  153. package/esm/sqlVirtualMachineManagementClientContext.js +0 -56
  154. package/esm/sqlVirtualMachineManagementClientContext.js.map +0 -1
  155. package/src/models/availabilityGroupListenersMappers.ts +0 -32
  156. package/src/models/operationsMappers.ts +0 -14
  157. package/src/models/sqlVirtualMachineGroupsMappers.ts +0 -33
  158. package/src/models/sqlVirtualMachinesMappers.ts +0 -33
  159. package/src/sqlVirtualMachineManagementClientContext.ts +0 -62
@@ -0,0 +1,1141 @@
1
+ import * as coreAuth from '@azure/core-auth';
2
+ import * as coreClient from '@azure/core-client';
3
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
+ import { PollerLike } from '@azure/core-lro';
5
+ import { PollOperationState } from '@azure/core-lro';
6
+
7
+ /** Additional SQL Server feature settings. */
8
+ export declare interface AdditionalFeaturesServerConfigurations {
9
+ /** Enable or disable R services (SQL 2016 onwards). */
10
+ isRServicesEnabled?: boolean;
11
+ }
12
+
13
+ /** Configure backups for databases in your SQL virtual machine. */
14
+ export declare interface AutoBackupSettings {
15
+ /** Enable or disable autobackup on SQL virtual machine. */
16
+ enable?: boolean;
17
+ /** Enable or disable encryption for backup on SQL virtual machine. */
18
+ enableEncryption?: boolean;
19
+ /** Retention period of backup: 1-30 days. */
20
+ retentionPeriod?: number;
21
+ /** Storage account url where backup will be taken to. */
22
+ storageAccountUrl?: string;
23
+ /** Storage account key where backup will be taken to. */
24
+ storageAccessKey?: string;
25
+ /** Password for encryption on backup. */
26
+ password?: string;
27
+ /** Include or exclude system databases from auto backup. */
28
+ backupSystemDbs?: boolean;
29
+ /** Backup schedule type. */
30
+ backupScheduleType?: BackupScheduleType;
31
+ /** Frequency of full backups. In both cases, full backups begin during the next scheduled time window. */
32
+ fullBackupFrequency?: FullBackupFrequencyType;
33
+ /** Start time of a given day during which full backups can take place. 0-23 hours. */
34
+ fullBackupStartTime?: number;
35
+ /** Duration of the time window of a given day during which full backups can take place. 1-23 hours. */
36
+ fullBackupWindowHours?: number;
37
+ /** Frequency of log backups. 5-60 minutes. */
38
+ logBackupFrequency?: number;
39
+ }
40
+
41
+ /** Set a patching window during which Windows and SQL patches will be applied. */
42
+ export declare interface AutoPatchingSettings {
43
+ /** Enable or disable autopatching on SQL virtual machine. */
44
+ enable?: boolean;
45
+ /** Day of week to apply the patch on. */
46
+ dayOfWeek?: DayOfWeek;
47
+ /** Hour of the day when patching is initiated. Local VM time. */
48
+ maintenanceWindowStartingHour?: number;
49
+ /** Duration of patching. */
50
+ maintenanceWindowDuration?: number;
51
+ }
52
+
53
+ /** A SQL Server availability group listener. */
54
+ export declare type AvailabilityGroupListener = ProxyResource & {
55
+ /**
56
+ * Provisioning state to track the async operation status.
57
+ * NOTE: This property will not be serialized. It can only be populated by the server.
58
+ */
59
+ readonly provisioningState?: string;
60
+ /** Name of the availability group. */
61
+ availabilityGroupName?: string;
62
+ /** List of load balancer configurations for an availability group listener. */
63
+ loadBalancerConfigurations?: LoadBalancerConfiguration[];
64
+ /** Create a default availability group if it does not exist. */
65
+ createDefaultAvailabilityGroupIfNotExist?: boolean;
66
+ /** Listener port. */
67
+ port?: number;
68
+ };
69
+
70
+ /** A list of availability group listeners. */
71
+ export declare interface AvailabilityGroupListenerListResult {
72
+ /**
73
+ * Array of results.
74
+ * NOTE: This property will not be serialized. It can only be populated by the server.
75
+ */
76
+ readonly value?: AvailabilityGroupListener[];
77
+ /**
78
+ * Link to retrieve next page of results.
79
+ * NOTE: This property will not be serialized. It can only be populated by the server.
80
+ */
81
+ readonly nextLink?: string;
82
+ }
83
+
84
+ /** Interface representing a AvailabilityGroupListeners. */
85
+ export declare interface AvailabilityGroupListeners {
86
+ /**
87
+ * Lists all availability group listeners in a SQL virtual machine group.
88
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
89
+ * value from the Azure Resource Manager API or the portal.
90
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
91
+ * @param options The options parameters.
92
+ */
93
+ listByGroup(resourceGroupName: string, sqlVirtualMachineGroupName: string, options?: AvailabilityGroupListenersListByGroupOptionalParams): PagedAsyncIterableIterator<AvailabilityGroupListener>;
94
+ /**
95
+ * Gets an availability group listener.
96
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
97
+ * value from the Azure Resource Manager API or the portal.
98
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
99
+ * @param availabilityGroupListenerName Name of the availability group listener.
100
+ * @param options The options parameters.
101
+ */
102
+ get(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, options?: AvailabilityGroupListenersGetOptionalParams): Promise<AvailabilityGroupListenersGetResponse>;
103
+ /**
104
+ * Creates or updates an availability group listener.
105
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
106
+ * value from the Azure Resource Manager API or the portal.
107
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
108
+ * @param availabilityGroupListenerName Name of the availability group listener.
109
+ * @param parameters The availability group listener.
110
+ * @param options The options parameters.
111
+ */
112
+ beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, parameters: AvailabilityGroupListener, options?: AvailabilityGroupListenersCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<AvailabilityGroupListenersCreateOrUpdateResponse>, AvailabilityGroupListenersCreateOrUpdateResponse>>;
113
+ /**
114
+ * Creates or updates an availability group listener.
115
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
116
+ * value from the Azure Resource Manager API or the portal.
117
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
118
+ * @param availabilityGroupListenerName Name of the availability group listener.
119
+ * @param parameters The availability group listener.
120
+ * @param options The options parameters.
121
+ */
122
+ beginCreateOrUpdateAndWait(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, parameters: AvailabilityGroupListener, options?: AvailabilityGroupListenersCreateOrUpdateOptionalParams): Promise<AvailabilityGroupListenersCreateOrUpdateResponse>;
123
+ /**
124
+ * Deletes an availability group listener.
125
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
126
+ * value from the Azure Resource Manager API or the portal.
127
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
128
+ * @param availabilityGroupListenerName Name of the availability group listener.
129
+ * @param options The options parameters.
130
+ */
131
+ beginDelete(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, options?: AvailabilityGroupListenersDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
132
+ /**
133
+ * Deletes an availability group listener.
134
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
135
+ * value from the Azure Resource Manager API or the portal.
136
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
137
+ * @param availabilityGroupListenerName Name of the availability group listener.
138
+ * @param options The options parameters.
139
+ */
140
+ beginDeleteAndWait(resourceGroupName: string, sqlVirtualMachineGroupName: string, availabilityGroupListenerName: string, options?: AvailabilityGroupListenersDeleteOptionalParams): Promise<void>;
141
+ }
142
+
143
+ /** Optional parameters. */
144
+ export declare interface AvailabilityGroupListenersCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
145
+ /** Delay to wait until next poll, in milliseconds. */
146
+ updateIntervalInMs?: number;
147
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
148
+ resumeFrom?: string;
149
+ }
150
+
151
+ /** Contains response data for the createOrUpdate operation. */
152
+ export declare type AvailabilityGroupListenersCreateOrUpdateResponse = AvailabilityGroupListener;
153
+
154
+ /** Optional parameters. */
155
+ export declare interface AvailabilityGroupListenersDeleteOptionalParams extends coreClient.OperationOptions {
156
+ /** Delay to wait until next poll, in milliseconds. */
157
+ updateIntervalInMs?: number;
158
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
159
+ resumeFrom?: string;
160
+ }
161
+
162
+ /** Optional parameters. */
163
+ export declare interface AvailabilityGroupListenersGetOptionalParams extends coreClient.OperationOptions {
164
+ }
165
+
166
+ /** Contains response data for the get operation. */
167
+ export declare type AvailabilityGroupListenersGetResponse = AvailabilityGroupListener;
168
+
169
+ /** Optional parameters. */
170
+ export declare interface AvailabilityGroupListenersListByGroupNextOptionalParams extends coreClient.OperationOptions {
171
+ }
172
+
173
+ /** Contains response data for the listByGroupNext operation. */
174
+ export declare type AvailabilityGroupListenersListByGroupNextResponse = AvailabilityGroupListenerListResult;
175
+
176
+ /** Optional parameters. */
177
+ export declare interface AvailabilityGroupListenersListByGroupOptionalParams extends coreClient.OperationOptions {
178
+ }
179
+
180
+ /** Contains response data for the listByGroup operation. */
181
+ export declare type AvailabilityGroupListenersListByGroupResponse = AvailabilityGroupListenerListResult;
182
+
183
+ /**
184
+ * Defines values for BackupScheduleType. \
185
+ * {@link KnownBackupScheduleType} can be used interchangeably with BackupScheduleType,
186
+ * this enum contains the known values that the service supports.
187
+ * ### Known values supported by the service
188
+ * **Manual** \
189
+ * **Automated**
190
+ */
191
+ export declare type BackupScheduleType = string;
192
+
193
+ /**
194
+ * Defines values for ClusterConfiguration. \
195
+ * {@link KnownClusterConfiguration} can be used interchangeably with ClusterConfiguration,
196
+ * this enum contains the known values that the service supports.
197
+ * ### Known values supported by the service
198
+ * **Domainful**
199
+ */
200
+ export declare type ClusterConfiguration = string;
201
+
202
+ /**
203
+ * Defines values for ClusterManagerType. \
204
+ * {@link KnownClusterManagerType} can be used interchangeably with ClusterManagerType,
205
+ * this enum contains the known values that the service supports.
206
+ * ### Known values supported by the service
207
+ * **WSFC**
208
+ */
209
+ export declare type ClusterManagerType = string;
210
+
211
+ /**
212
+ * Defines values for ConnectivityType. \
213
+ * {@link KnownConnectivityType} can be used interchangeably with ConnectivityType,
214
+ * this enum contains the known values that the service supports.
215
+ * ### Known values supported by the service
216
+ * **LOCAL** \
217
+ * **PRIVATE** \
218
+ * **PUBLIC**
219
+ */
220
+ export declare type ConnectivityType = string;
221
+
222
+ /** Defines values for DayOfWeek. */
223
+ export declare type DayOfWeek = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday";
224
+
225
+ /**
226
+ * Defines values for DiskConfigurationType. \
227
+ * {@link KnownDiskConfigurationType} can be used interchangeably with DiskConfigurationType,
228
+ * this enum contains the known values that the service supports.
229
+ * ### Known values supported by the service
230
+ * **NEW** \
231
+ * **EXTEND** \
232
+ * **ADD**
233
+ */
234
+ export declare type DiskConfigurationType = string;
235
+
236
+ /**
237
+ * Defines values for FullBackupFrequencyType. \
238
+ * {@link KnownFullBackupFrequencyType} can be used interchangeably with FullBackupFrequencyType,
239
+ * this enum contains the known values that the service supports.
240
+ * ### Known values supported by the service
241
+ * **Daily** \
242
+ * **Weekly**
243
+ */
244
+ export declare type FullBackupFrequencyType = string;
245
+
246
+ /**
247
+ * Defines values for IdentityType. \
248
+ * {@link KnownIdentityType} can be used interchangeably with IdentityType,
249
+ * this enum contains the known values that the service supports.
250
+ * ### Known values supported by the service
251
+ * **SystemAssigned**
252
+ */
253
+ export declare type IdentityType = string;
254
+
255
+ /** Configure your SQL virtual machine to be able to connect to the Azure Key Vault service. */
256
+ export declare interface KeyVaultCredentialSettings {
257
+ /** Enable or disable key vault credential setting. */
258
+ enable?: boolean;
259
+ /** Credential name. */
260
+ credentialName?: string;
261
+ /** Azure Key Vault url. */
262
+ azureKeyVaultUrl?: string;
263
+ /** Service principal name to access key vault. */
264
+ servicePrincipalName?: string;
265
+ /** Service principal name secret to access key vault. */
266
+ servicePrincipalSecret?: string;
267
+ }
268
+
269
+ /** Known values of {@link BackupScheduleType} that the service accepts. */
270
+ export declare enum KnownBackupScheduleType {
271
+ Manual = "Manual",
272
+ Automated = "Automated"
273
+ }
274
+
275
+ /** Known values of {@link ClusterConfiguration} that the service accepts. */
276
+ export declare enum KnownClusterConfiguration {
277
+ Domainful = "Domainful"
278
+ }
279
+
280
+ /** Known values of {@link ClusterManagerType} that the service accepts. */
281
+ export declare enum KnownClusterManagerType {
282
+ Wsfc = "WSFC"
283
+ }
284
+
285
+ /** Known values of {@link ConnectivityType} that the service accepts. */
286
+ export declare enum KnownConnectivityType {
287
+ Local = "LOCAL",
288
+ Private = "PRIVATE",
289
+ Public = "PUBLIC"
290
+ }
291
+
292
+ /** Known values of {@link DiskConfigurationType} that the service accepts. */
293
+ export declare enum KnownDiskConfigurationType {
294
+ NEW = "NEW",
295
+ Extend = "EXTEND",
296
+ ADD = "ADD"
297
+ }
298
+
299
+ /** Known values of {@link FullBackupFrequencyType} that the service accepts. */
300
+ export declare enum KnownFullBackupFrequencyType {
301
+ Daily = "Daily",
302
+ Weekly = "Weekly"
303
+ }
304
+
305
+ /** Known values of {@link IdentityType} that the service accepts. */
306
+ export declare enum KnownIdentityType {
307
+ SystemAssigned = "SystemAssigned"
308
+ }
309
+
310
+ /** Known values of {@link OperationOrigin} that the service accepts. */
311
+ export declare enum KnownOperationOrigin {
312
+ User = "user",
313
+ System = "system"
314
+ }
315
+
316
+ /** Known values of {@link ScaleType} that the service accepts. */
317
+ export declare enum KnownScaleType {
318
+ HA = "HA"
319
+ }
320
+
321
+ /** Known values of {@link SqlImageSku} that the service accepts. */
322
+ export declare enum KnownSqlImageSku {
323
+ Developer = "Developer",
324
+ Express = "Express",
325
+ Standard = "Standard",
326
+ Enterprise = "Enterprise",
327
+ Web = "Web"
328
+ }
329
+
330
+ /** Known values of {@link SqlManagementMode} that the service accepts. */
331
+ export declare enum KnownSqlManagementMode {
332
+ Full = "Full",
333
+ LightWeight = "LightWeight",
334
+ NoAgent = "NoAgent"
335
+ }
336
+
337
+ /** Known values of {@link SqlServerLicenseType} that the service accepts. */
338
+ export declare enum KnownSqlServerLicenseType {
339
+ Payg = "PAYG",
340
+ Ahub = "AHUB",
341
+ DR = "DR"
342
+ }
343
+
344
+ /** Known values of {@link SqlVmGroupImageSku} that the service accepts. */
345
+ export declare enum KnownSqlVmGroupImageSku {
346
+ Developer = "Developer",
347
+ Enterprise = "Enterprise"
348
+ }
349
+
350
+ /** Known values of {@link SqlWorkloadType} that the service accepts. */
351
+ export declare enum KnownSqlWorkloadType {
352
+ General = "GENERAL",
353
+ Oltp = "OLTP",
354
+ DW = "DW"
355
+ }
356
+
357
+ /** Known values of {@link StorageWorkloadType} that the service accepts. */
358
+ export declare enum KnownStorageWorkloadType {
359
+ General = "GENERAL",
360
+ Oltp = "OLTP",
361
+ DW = "DW"
362
+ }
363
+
364
+ /** A load balancer configuration for an availability group listener. */
365
+ export declare interface LoadBalancerConfiguration {
366
+ /** Private IP address. */
367
+ privateIpAddress?: PrivateIPAddress;
368
+ /** Resource id of the public IP. */
369
+ publicIpAddressResourceId?: string;
370
+ /** Resource id of the load balancer. */
371
+ loadBalancerResourceId?: string;
372
+ /** Probe port. */
373
+ probePort?: number;
374
+ /** List of the SQL virtual machine instance resource id's that are enrolled into the availability group listener. */
375
+ sqlVirtualMachineInstances?: string[];
376
+ }
377
+
378
+ /** SQL REST API operation definition. */
379
+ export declare interface Operation {
380
+ /**
381
+ * The name of the operation being performed on this particular object.
382
+ * NOTE: This property will not be serialized. It can only be populated by the server.
383
+ */
384
+ readonly name?: string;
385
+ /**
386
+ * The localized display information for this particular operation / action.
387
+ * NOTE: This property will not be serialized. It can only be populated by the server.
388
+ */
389
+ readonly display?: OperationDisplay;
390
+ /**
391
+ * The intended executor of the operation.
392
+ * NOTE: This property will not be serialized. It can only be populated by the server.
393
+ */
394
+ readonly origin?: OperationOrigin;
395
+ /**
396
+ * Additional descriptions for the operation.
397
+ * NOTE: This property will not be serialized. It can only be populated by the server.
398
+ */
399
+ readonly properties?: {
400
+ [propertyName: string]: Record<string, unknown>;
401
+ };
402
+ }
403
+
404
+ /** Display metadata associated with the operation. */
405
+ export declare interface OperationDisplay {
406
+ /**
407
+ * The localized friendly form of the resource provider name.
408
+ * NOTE: This property will not be serialized. It can only be populated by the server.
409
+ */
410
+ readonly provider?: string;
411
+ /**
412
+ * The localized friendly form of the resource type related to this action/operation.
413
+ * NOTE: This property will not be serialized. It can only be populated by the server.
414
+ */
415
+ readonly resource?: string;
416
+ /**
417
+ * The localized friendly name for the operation.
418
+ * NOTE: This property will not be serialized. It can only be populated by the server.
419
+ */
420
+ readonly operation?: string;
421
+ /**
422
+ * The localized friendly description for the operation.
423
+ * NOTE: This property will not be serialized. It can only be populated by the server.
424
+ */
425
+ readonly description?: string;
426
+ }
427
+
428
+ /** Result of the request to list SQL operations. */
429
+ export declare interface OperationListResult {
430
+ /**
431
+ * Array of results.
432
+ * NOTE: This property will not be serialized. It can only be populated by the server.
433
+ */
434
+ readonly value?: Operation[];
435
+ /**
436
+ * Link to retrieve next page of results.
437
+ * NOTE: This property will not be serialized. It can only be populated by the server.
438
+ */
439
+ readonly nextLink?: string;
440
+ }
441
+
442
+ /**
443
+ * Defines values for OperationOrigin. \
444
+ * {@link KnownOperationOrigin} can be used interchangeably with OperationOrigin,
445
+ * this enum contains the known values that the service supports.
446
+ * ### Known values supported by the service
447
+ * **user** \
448
+ * **system**
449
+ */
450
+ export declare type OperationOrigin = string;
451
+
452
+ /** Interface representing a Operations. */
453
+ export declare interface Operations {
454
+ /**
455
+ * Lists all of the available SQL Rest API operations.
456
+ * @param options The options parameters.
457
+ */
458
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
459
+ }
460
+
461
+ /** Optional parameters. */
462
+ export declare interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
463
+ }
464
+
465
+ /** Contains response data for the listNext operation. */
466
+ export declare type OperationsListNextResponse = OperationListResult;
467
+
468
+ /** Optional parameters. */
469
+ export declare interface OperationsListOptionalParams extends coreClient.OperationOptions {
470
+ }
471
+
472
+ /** Contains response data for the list operation. */
473
+ export declare type OperationsListResponse = OperationListResult;
474
+
475
+ /** A private IP address bound to the availability group listener. */
476
+ export declare interface PrivateIPAddress {
477
+ /** Private IP address bound to the availability group listener. */
478
+ ipAddress?: string;
479
+ /** Subnet used to include private IP. */
480
+ subnetResourceId?: string;
481
+ }
482
+
483
+ /** ARM proxy resource. */
484
+ export declare type ProxyResource = Resource & {};
485
+
486
+ /** ARM resource. */
487
+ export declare interface Resource {
488
+ /**
489
+ * Resource ID.
490
+ * NOTE: This property will not be serialized. It can only be populated by the server.
491
+ */
492
+ readonly id?: string;
493
+ /**
494
+ * Resource name.
495
+ * NOTE: This property will not be serialized. It can only be populated by the server.
496
+ */
497
+ readonly name?: string;
498
+ /**
499
+ * Resource type.
500
+ * NOTE: This property will not be serialized. It can only be populated by the server.
501
+ */
502
+ readonly type?: string;
503
+ }
504
+
505
+ /** Azure Active Directory identity configuration for a resource. */
506
+ export declare interface ResourceIdentity {
507
+ /**
508
+ * The Azure Active Directory principal id.
509
+ * NOTE: This property will not be serialized. It can only be populated by the server.
510
+ */
511
+ readonly principalId?: string;
512
+ /** The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. */
513
+ type?: IdentityType;
514
+ /**
515
+ * The Azure Active Directory tenant id.
516
+ * NOTE: This property will not be serialized. It can only be populated by the server.
517
+ */
518
+ readonly tenantId?: string;
519
+ }
520
+
521
+ /**
522
+ * Defines values for ScaleType. \
523
+ * {@link KnownScaleType} can be used interchangeably with ScaleType,
524
+ * this enum contains the known values that the service supports.
525
+ * ### Known values supported by the service
526
+ * **HA**
527
+ */
528
+ export declare type ScaleType = string;
529
+
530
+ /** Set the connectivity, storage and workload settings. */
531
+ export declare interface ServerConfigurationsManagementSettings {
532
+ /** SQL connectivity type settings. */
533
+ sqlConnectivityUpdateSettings?: SqlConnectivityUpdateSettings;
534
+ /** SQL workload type settings. */
535
+ sqlWorkloadTypeUpdateSettings?: SqlWorkloadTypeUpdateSettings;
536
+ /** SQL storage update settings. */
537
+ sqlStorageUpdateSettings?: SqlStorageUpdateSettings;
538
+ /** Additional SQL feature settings. */
539
+ additionalFeaturesServerConfigurations?: AdditionalFeaturesServerConfigurations;
540
+ }
541
+
542
+ /** Set the access level and network port settings for SQL Server. */
543
+ export declare interface SqlConnectivityUpdateSettings {
544
+ /** SQL Server connectivity option. */
545
+ connectivityType?: ConnectivityType;
546
+ /** SQL Server port. */
547
+ port?: number;
548
+ /** SQL Server sysadmin login to create. */
549
+ sqlAuthUpdateUserName?: string;
550
+ /** SQL Server sysadmin login password. */
551
+ sqlAuthUpdatePassword?: string;
552
+ }
553
+
554
+ /**
555
+ * Defines values for SqlImageSku. \
556
+ * {@link KnownSqlImageSku} can be used interchangeably with SqlImageSku,
557
+ * this enum contains the known values that the service supports.
558
+ * ### Known values supported by the service
559
+ * **Developer** \
560
+ * **Express** \
561
+ * **Standard** \
562
+ * **Enterprise** \
563
+ * **Web**
564
+ */
565
+ export declare type SqlImageSku = string;
566
+
567
+ /**
568
+ * Defines values for SqlManagementMode. \
569
+ * {@link KnownSqlManagementMode} can be used interchangeably with SqlManagementMode,
570
+ * this enum contains the known values that the service supports.
571
+ * ### Known values supported by the service
572
+ * **Full** \
573
+ * **LightWeight** \
574
+ * **NoAgent**
575
+ */
576
+ export declare type SqlManagementMode = string;
577
+
578
+ /**
579
+ * Defines values for SqlServerLicenseType. \
580
+ * {@link KnownSqlServerLicenseType} can be used interchangeably with SqlServerLicenseType,
581
+ * this enum contains the known values that the service supports.
582
+ * ### Known values supported by the service
583
+ * **PAYG** \
584
+ * **AHUB** \
585
+ * **DR**
586
+ */
587
+ export declare type SqlServerLicenseType = string;
588
+
589
+ /** Set disk storage settings for SQL Server. */
590
+ export declare interface SQLStorageSettings {
591
+ /** Logical Unit Numbers for the disks. */
592
+ luns?: number[];
593
+ /** SQL Server default file path */
594
+ defaultFilePath?: string;
595
+ }
596
+
597
+ /** Set disk storage settings for SQL Server. */
598
+ export declare interface SqlStorageUpdateSettings {
599
+ /** Virtual machine disk count. */
600
+ diskCount?: number;
601
+ /** Device id of the first disk to be updated. */
602
+ startingDeviceId?: number;
603
+ /** Disk configuration to apply to SQL Server. */
604
+ diskConfigurationType?: DiskConfigurationType;
605
+ }
606
+
607
+ /** A SQL virtual machine. */
608
+ export declare type SqlVirtualMachine = TrackedResource & {
609
+ /** Azure Active Directory identity of the server. */
610
+ identity?: ResourceIdentity;
611
+ /** ARM Resource id of underlying virtual machine created from SQL marketplace image. */
612
+ virtualMachineResourceId?: string;
613
+ /**
614
+ * Provisioning state to track the async operation status.
615
+ * NOTE: This property will not be serialized. It can only be populated by the server.
616
+ */
617
+ readonly provisioningState?: string;
618
+ /** SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016. */
619
+ sqlImageOffer?: string;
620
+ /** SQL Server license type. */
621
+ sqlServerLicenseType?: SqlServerLicenseType;
622
+ /** SQL Server Management type. */
623
+ sqlManagement?: SqlManagementMode;
624
+ /** SQL Server edition type. */
625
+ sqlImageSku?: SqlImageSku;
626
+ /** ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of. */
627
+ sqlVirtualMachineGroupResourceId?: string;
628
+ /** Domain credentials for setting up Windows Server Failover Cluster for SQL availability group. */
629
+ wsfcDomainCredentials?: WsfcDomainCredentials;
630
+ /** Auto patching settings for applying critical security updates to SQL virtual machine. */
631
+ autoPatchingSettings?: AutoPatchingSettings;
632
+ /** Auto backup settings for SQL Server. */
633
+ autoBackupSettings?: AutoBackupSettings;
634
+ /** Key vault credential settings. */
635
+ keyVaultCredentialSettings?: KeyVaultCredentialSettings;
636
+ /** SQL Server configuration management settings. */
637
+ serverConfigurationsManagementSettings?: ServerConfigurationsManagementSettings;
638
+ /** Storage Configuration Settings. */
639
+ storageConfigurationSettings?: StorageConfigurationSettings;
640
+ };
641
+
642
+ /** A SQL virtual machine group. */
643
+ export declare type SqlVirtualMachineGroup = TrackedResource & {
644
+ /**
645
+ * Provisioning state to track the async operation status.
646
+ * NOTE: This property will not be serialized. It can only be populated by the server.
647
+ */
648
+ readonly provisioningState?: string;
649
+ /** SQL image offer. Examples may include SQL2016-WS2016, SQL2017-WS2016. */
650
+ sqlImageOffer?: string;
651
+ /** SQL image sku. */
652
+ sqlImageSku?: SqlVmGroupImageSku;
653
+ /**
654
+ * Scale type.
655
+ * NOTE: This property will not be serialized. It can only be populated by the server.
656
+ */
657
+ readonly scaleType?: ScaleType;
658
+ /**
659
+ * Type of cluster manager: Windows Server Failover Cluster (WSFC), implied by the scale type of the group and the OS type.
660
+ * NOTE: This property will not be serialized. It can only be populated by the server.
661
+ */
662
+ readonly clusterManagerType?: ClusterManagerType;
663
+ /**
664
+ * Cluster type.
665
+ * NOTE: This property will not be serialized. It can only be populated by the server.
666
+ */
667
+ readonly clusterConfiguration?: ClusterConfiguration;
668
+ /** Cluster Active Directory domain profile. */
669
+ wsfcDomainProfile?: WsfcDomainProfile;
670
+ };
671
+
672
+ /** A list of SQL virtual machine groups. */
673
+ export declare interface SqlVirtualMachineGroupListResult {
674
+ /**
675
+ * Array of results.
676
+ * NOTE: This property will not be serialized. It can only be populated by the server.
677
+ */
678
+ readonly value?: SqlVirtualMachineGroup[];
679
+ /**
680
+ * Link to retrieve next page of results.
681
+ * NOTE: This property will not be serialized. It can only be populated by the server.
682
+ */
683
+ readonly nextLink?: string;
684
+ }
685
+
686
+ /** Interface representing a SqlVirtualMachineGroups. */
687
+ export declare interface SqlVirtualMachineGroups {
688
+ /**
689
+ * Gets all SQL virtual machine groups in a resource group.
690
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
691
+ * value from the Azure Resource Manager API or the portal.
692
+ * @param options The options parameters.
693
+ */
694
+ listByResourceGroup(resourceGroupName: string, options?: SqlVirtualMachineGroupsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<SqlVirtualMachineGroup>;
695
+ /**
696
+ * Gets all SQL virtual machine groups in a subscription.
697
+ * @param options The options parameters.
698
+ */
699
+ list(options?: SqlVirtualMachineGroupsListOptionalParams): PagedAsyncIterableIterator<SqlVirtualMachineGroup>;
700
+ /**
701
+ * Gets a SQL virtual machine group.
702
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
703
+ * value from the Azure Resource Manager API or the portal.
704
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
705
+ * @param options The options parameters.
706
+ */
707
+ get(resourceGroupName: string, sqlVirtualMachineGroupName: string, options?: SqlVirtualMachineGroupsGetOptionalParams): Promise<SqlVirtualMachineGroupsGetResponse>;
708
+ /**
709
+ * Creates or updates a SQL virtual machine group.
710
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
711
+ * value from the Azure Resource Manager API or the portal.
712
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
713
+ * @param parameters The SQL virtual machine group.
714
+ * @param options The options parameters.
715
+ */
716
+ beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineGroupName: string, parameters: SqlVirtualMachineGroup, options?: SqlVirtualMachineGroupsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<SqlVirtualMachineGroupsCreateOrUpdateResponse>, SqlVirtualMachineGroupsCreateOrUpdateResponse>>;
717
+ /**
718
+ * Creates or updates a SQL virtual machine group.
719
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
720
+ * value from the Azure Resource Manager API or the portal.
721
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
722
+ * @param parameters The SQL virtual machine group.
723
+ * @param options The options parameters.
724
+ */
725
+ beginCreateOrUpdateAndWait(resourceGroupName: string, sqlVirtualMachineGroupName: string, parameters: SqlVirtualMachineGroup, options?: SqlVirtualMachineGroupsCreateOrUpdateOptionalParams): Promise<SqlVirtualMachineGroupsCreateOrUpdateResponse>;
726
+ /**
727
+ * Deletes a SQL virtual machine group.
728
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
729
+ * value from the Azure Resource Manager API or the portal.
730
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
731
+ * @param options The options parameters.
732
+ */
733
+ beginDelete(resourceGroupName: string, sqlVirtualMachineGroupName: string, options?: SqlVirtualMachineGroupsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
734
+ /**
735
+ * Deletes a SQL virtual machine group.
736
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
737
+ * value from the Azure Resource Manager API or the portal.
738
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
739
+ * @param options The options parameters.
740
+ */
741
+ beginDeleteAndWait(resourceGroupName: string, sqlVirtualMachineGroupName: string, options?: SqlVirtualMachineGroupsDeleteOptionalParams): Promise<void>;
742
+ /**
743
+ * Updates SQL virtual machine group tags.
744
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
745
+ * value from the Azure Resource Manager API or the portal.
746
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
747
+ * @param parameters The SQL virtual machine group.
748
+ * @param options The options parameters.
749
+ */
750
+ beginUpdate(resourceGroupName: string, sqlVirtualMachineGroupName: string, parameters: SqlVirtualMachineGroupUpdate, options?: SqlVirtualMachineGroupsUpdateOptionalParams): Promise<PollerLike<PollOperationState<SqlVirtualMachineGroupsUpdateResponse>, SqlVirtualMachineGroupsUpdateResponse>>;
751
+ /**
752
+ * Updates SQL virtual machine group tags.
753
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
754
+ * value from the Azure Resource Manager API or the portal.
755
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
756
+ * @param parameters The SQL virtual machine group.
757
+ * @param options The options parameters.
758
+ */
759
+ beginUpdateAndWait(resourceGroupName: string, sqlVirtualMachineGroupName: string, parameters: SqlVirtualMachineGroupUpdate, options?: SqlVirtualMachineGroupsUpdateOptionalParams): Promise<SqlVirtualMachineGroupsUpdateResponse>;
760
+ }
761
+
762
+ /** Optional parameters. */
763
+ export declare interface SqlVirtualMachineGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
764
+ /** Delay to wait until next poll, in milliseconds. */
765
+ updateIntervalInMs?: number;
766
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
767
+ resumeFrom?: string;
768
+ }
769
+
770
+ /** Contains response data for the createOrUpdate operation. */
771
+ export declare type SqlVirtualMachineGroupsCreateOrUpdateResponse = SqlVirtualMachineGroup;
772
+
773
+ /** Optional parameters. */
774
+ export declare interface SqlVirtualMachineGroupsDeleteOptionalParams extends coreClient.OperationOptions {
775
+ /** Delay to wait until next poll, in milliseconds. */
776
+ updateIntervalInMs?: number;
777
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
778
+ resumeFrom?: string;
779
+ }
780
+
781
+ /** Optional parameters. */
782
+ export declare interface SqlVirtualMachineGroupsGetOptionalParams extends coreClient.OperationOptions {
783
+ }
784
+
785
+ /** Contains response data for the get operation. */
786
+ export declare type SqlVirtualMachineGroupsGetResponse = SqlVirtualMachineGroup;
787
+
788
+ /** Optional parameters. */
789
+ export declare interface SqlVirtualMachineGroupsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
790
+ }
791
+
792
+ /** Contains response data for the listByResourceGroupNext operation. */
793
+ export declare type SqlVirtualMachineGroupsListByResourceGroupNextResponse = SqlVirtualMachineGroupListResult;
794
+
795
+ /** Optional parameters. */
796
+ export declare interface SqlVirtualMachineGroupsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
797
+ }
798
+
799
+ /** Contains response data for the listByResourceGroup operation. */
800
+ export declare type SqlVirtualMachineGroupsListByResourceGroupResponse = SqlVirtualMachineGroupListResult;
801
+
802
+ /** Optional parameters. */
803
+ export declare interface SqlVirtualMachineGroupsListNextOptionalParams extends coreClient.OperationOptions {
804
+ }
805
+
806
+ /** Contains response data for the listNext operation. */
807
+ export declare type SqlVirtualMachineGroupsListNextResponse = SqlVirtualMachineGroupListResult;
808
+
809
+ /** Optional parameters. */
810
+ export declare interface SqlVirtualMachineGroupsListOptionalParams extends coreClient.OperationOptions {
811
+ }
812
+
813
+ /** Contains response data for the list operation. */
814
+ export declare type SqlVirtualMachineGroupsListResponse = SqlVirtualMachineGroupListResult;
815
+
816
+ /** Optional parameters. */
817
+ export declare interface SqlVirtualMachineGroupsUpdateOptionalParams extends coreClient.OperationOptions {
818
+ /** Delay to wait until next poll, in milliseconds. */
819
+ updateIntervalInMs?: number;
820
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
821
+ resumeFrom?: string;
822
+ }
823
+
824
+ /** Contains response data for the update operation. */
825
+ export declare type SqlVirtualMachineGroupsUpdateResponse = SqlVirtualMachineGroup;
826
+
827
+ /** An update to a SQL virtual machine group. */
828
+ export declare interface SqlVirtualMachineGroupUpdate {
829
+ /** Resource tags. */
830
+ tags?: {
831
+ [propertyName: string]: string;
832
+ };
833
+ }
834
+
835
+ /** A list of SQL virtual machines. */
836
+ export declare interface SqlVirtualMachineListResult {
837
+ /**
838
+ * Array of results.
839
+ * NOTE: This property will not be serialized. It can only be populated by the server.
840
+ */
841
+ readonly value?: SqlVirtualMachine[];
842
+ /**
843
+ * Link to retrieve next page of results.
844
+ * NOTE: This property will not be serialized. It can only be populated by the server.
845
+ */
846
+ readonly nextLink?: string;
847
+ }
848
+
849
+ export declare class SqlVirtualMachineManagementClient extends coreClient.ServiceClient {
850
+ $host: string;
851
+ subscriptionId: string;
852
+ apiVersion: string;
853
+ /**
854
+ * Initializes a new instance of the SqlVirtualMachineManagementClient class.
855
+ * @param credentials Subscription credentials which uniquely identify client subscription.
856
+ * @param subscriptionId Subscription ID that identifies an Azure subscription.
857
+ * @param options The parameter options
858
+ */
859
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: SqlVirtualMachineManagementClientOptionalParams);
860
+ availabilityGroupListeners: AvailabilityGroupListeners;
861
+ operations: Operations;
862
+ sqlVirtualMachineGroups: SqlVirtualMachineGroups;
863
+ sqlVirtualMachines: SqlVirtualMachines;
864
+ }
865
+
866
+ /** Optional parameters. */
867
+ export declare interface SqlVirtualMachineManagementClientOptionalParams extends coreClient.ServiceClientOptions {
868
+ /** server parameter */
869
+ $host?: string;
870
+ /** Api Version */
871
+ apiVersion?: string;
872
+ /** Overrides client endpoint. */
873
+ endpoint?: string;
874
+ }
875
+
876
+ /** Interface representing a SqlVirtualMachines. */
877
+ export declare interface SqlVirtualMachines {
878
+ /**
879
+ * Gets the list of sql virtual machines in a SQL virtual machine group.
880
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
881
+ * value from the Azure Resource Manager API or the portal.
882
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
883
+ * @param options The options parameters.
884
+ */
885
+ listBySqlVmGroup(resourceGroupName: string, sqlVirtualMachineGroupName: string, options?: SqlVirtualMachinesListBySqlVmGroupOptionalParams): PagedAsyncIterableIterator<SqlVirtualMachine>;
886
+ /**
887
+ * Gets all SQL virtual machines in a subscription.
888
+ * @param options The options parameters.
889
+ */
890
+ list(options?: SqlVirtualMachinesListOptionalParams): PagedAsyncIterableIterator<SqlVirtualMachine>;
891
+ /**
892
+ * Gets all SQL virtual machines in a resource group.
893
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
894
+ * value from the Azure Resource Manager API or the portal.
895
+ * @param options The options parameters.
896
+ */
897
+ listByResourceGroup(resourceGroupName: string, options?: SqlVirtualMachinesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<SqlVirtualMachine>;
898
+ /**
899
+ * Gets a SQL virtual machine.
900
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
901
+ * value from the Azure Resource Manager API or the portal.
902
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
903
+ * @param options The options parameters.
904
+ */
905
+ get(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesGetOptionalParams): Promise<SqlVirtualMachinesGetResponse>;
906
+ /**
907
+ * Creates or updates a SQL virtual machine.
908
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
909
+ * value from the Azure Resource Manager API or the portal.
910
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
911
+ * @param parameters The SQL virtual machine.
912
+ * @param options The options parameters.
913
+ */
914
+ beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachine, options?: SqlVirtualMachinesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<SqlVirtualMachinesCreateOrUpdateResponse>, SqlVirtualMachinesCreateOrUpdateResponse>>;
915
+ /**
916
+ * Creates or updates a SQL virtual machine.
917
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
918
+ * value from the Azure Resource Manager API or the portal.
919
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
920
+ * @param parameters The SQL virtual machine.
921
+ * @param options The options parameters.
922
+ */
923
+ beginCreateOrUpdateAndWait(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachine, options?: SqlVirtualMachinesCreateOrUpdateOptionalParams): Promise<SqlVirtualMachinesCreateOrUpdateResponse>;
924
+ /**
925
+ * Deletes a SQL virtual machine.
926
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
927
+ * value from the Azure Resource Manager API or the portal.
928
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
929
+ * @param options The options parameters.
930
+ */
931
+ beginDelete(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
932
+ /**
933
+ * Deletes a SQL virtual machine.
934
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
935
+ * value from the Azure Resource Manager API or the portal.
936
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
937
+ * @param options The options parameters.
938
+ */
939
+ beginDeleteAndWait(resourceGroupName: string, sqlVirtualMachineName: string, options?: SqlVirtualMachinesDeleteOptionalParams): Promise<void>;
940
+ /**
941
+ * Updates a SQL virtual machine.
942
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
943
+ * value from the Azure Resource Manager API or the portal.
944
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
945
+ * @param parameters The SQL virtual machine.
946
+ * @param options The options parameters.
947
+ */
948
+ beginUpdate(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachineUpdate, options?: SqlVirtualMachinesUpdateOptionalParams): Promise<PollerLike<PollOperationState<SqlVirtualMachinesUpdateResponse>, SqlVirtualMachinesUpdateResponse>>;
949
+ /**
950
+ * Updates a SQL virtual machine.
951
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
952
+ * value from the Azure Resource Manager API or the portal.
953
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
954
+ * @param parameters The SQL virtual machine.
955
+ * @param options The options parameters.
956
+ */
957
+ beginUpdateAndWait(resourceGroupName: string, sqlVirtualMachineName: string, parameters: SqlVirtualMachineUpdate, options?: SqlVirtualMachinesUpdateOptionalParams): Promise<SqlVirtualMachinesUpdateResponse>;
958
+ }
959
+
960
+ /** Optional parameters. */
961
+ export declare interface SqlVirtualMachinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
962
+ /** Delay to wait until next poll, in milliseconds. */
963
+ updateIntervalInMs?: number;
964
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
965
+ resumeFrom?: string;
966
+ }
967
+
968
+ /** Contains response data for the createOrUpdate operation. */
969
+ export declare type SqlVirtualMachinesCreateOrUpdateResponse = SqlVirtualMachine;
970
+
971
+ /** Optional parameters. */
972
+ export declare interface SqlVirtualMachinesDeleteOptionalParams extends coreClient.OperationOptions {
973
+ /** Delay to wait until next poll, in milliseconds. */
974
+ updateIntervalInMs?: number;
975
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
976
+ resumeFrom?: string;
977
+ }
978
+
979
+ /** Optional parameters. */
980
+ export declare interface SqlVirtualMachinesGetOptionalParams extends coreClient.OperationOptions {
981
+ /** The child resources to include in the response. */
982
+ expand?: string;
983
+ }
984
+
985
+ /** Contains response data for the get operation. */
986
+ export declare type SqlVirtualMachinesGetResponse = SqlVirtualMachine;
987
+
988
+ /** Optional parameters. */
989
+ export declare interface SqlVirtualMachinesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
990
+ }
991
+
992
+ /** Contains response data for the listByResourceGroupNext operation. */
993
+ export declare type SqlVirtualMachinesListByResourceGroupNextResponse = SqlVirtualMachineListResult;
994
+
995
+ /** Optional parameters. */
996
+ export declare interface SqlVirtualMachinesListByResourceGroupOptionalParams extends coreClient.OperationOptions {
997
+ }
998
+
999
+ /** Contains response data for the listByResourceGroup operation. */
1000
+ export declare type SqlVirtualMachinesListByResourceGroupResponse = SqlVirtualMachineListResult;
1001
+
1002
+ /** Optional parameters. */
1003
+ export declare interface SqlVirtualMachinesListBySqlVmGroupNextOptionalParams extends coreClient.OperationOptions {
1004
+ }
1005
+
1006
+ /** Contains response data for the listBySqlVmGroupNext operation. */
1007
+ export declare type SqlVirtualMachinesListBySqlVmGroupNextResponse = SqlVirtualMachineListResult;
1008
+
1009
+ /** Optional parameters. */
1010
+ export declare interface SqlVirtualMachinesListBySqlVmGroupOptionalParams extends coreClient.OperationOptions {
1011
+ }
1012
+
1013
+ /** Contains response data for the listBySqlVmGroup operation. */
1014
+ export declare type SqlVirtualMachinesListBySqlVmGroupResponse = SqlVirtualMachineListResult;
1015
+
1016
+ /** Optional parameters. */
1017
+ export declare interface SqlVirtualMachinesListNextOptionalParams extends coreClient.OperationOptions {
1018
+ }
1019
+
1020
+ /** Contains response data for the listNext operation. */
1021
+ export declare type SqlVirtualMachinesListNextResponse = SqlVirtualMachineListResult;
1022
+
1023
+ /** Optional parameters. */
1024
+ export declare interface SqlVirtualMachinesListOptionalParams extends coreClient.OperationOptions {
1025
+ }
1026
+
1027
+ /** Contains response data for the list operation. */
1028
+ export declare type SqlVirtualMachinesListResponse = SqlVirtualMachineListResult;
1029
+
1030
+ /** Optional parameters. */
1031
+ export declare interface SqlVirtualMachinesUpdateOptionalParams extends coreClient.OperationOptions {
1032
+ /** Delay to wait until next poll, in milliseconds. */
1033
+ updateIntervalInMs?: number;
1034
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1035
+ resumeFrom?: string;
1036
+ }
1037
+
1038
+ /** Contains response data for the update operation. */
1039
+ export declare type SqlVirtualMachinesUpdateResponse = SqlVirtualMachine;
1040
+
1041
+ /** An update to a SQL virtual machine. */
1042
+ export declare interface SqlVirtualMachineUpdate {
1043
+ /** Resource tags. */
1044
+ tags?: {
1045
+ [propertyName: string]: string;
1046
+ };
1047
+ }
1048
+
1049
+ /**
1050
+ * Defines values for SqlVmGroupImageSku. \
1051
+ * {@link KnownSqlVmGroupImageSku} can be used interchangeably with SqlVmGroupImageSku,
1052
+ * this enum contains the known values that the service supports.
1053
+ * ### Known values supported by the service
1054
+ * **Developer** \
1055
+ * **Enterprise**
1056
+ */
1057
+ export declare type SqlVmGroupImageSku = string;
1058
+
1059
+ /**
1060
+ * Defines values for SqlWorkloadType. \
1061
+ * {@link KnownSqlWorkloadType} can be used interchangeably with SqlWorkloadType,
1062
+ * this enum contains the known values that the service supports.
1063
+ * ### Known values supported by the service
1064
+ * **GENERAL** \
1065
+ * **OLTP** \
1066
+ * **DW**
1067
+ */
1068
+ export declare type SqlWorkloadType = string;
1069
+
1070
+ /** Set workload type to optimize storage for SQL Server. */
1071
+ export declare interface SqlWorkloadTypeUpdateSettings {
1072
+ /** SQL Server workload type. */
1073
+ sqlWorkloadType?: SqlWorkloadType;
1074
+ }
1075
+
1076
+ /** Storage Configurations for SQL Data, Log and TempDb. */
1077
+ export declare interface StorageConfigurationSettings {
1078
+ /** SQL Server Data Storage Settings. */
1079
+ sqlDataSettings?: SQLStorageSettings;
1080
+ /** SQL Server Log Storage Settings. */
1081
+ sqlLogSettings?: SQLStorageSettings;
1082
+ /** SQL Server TempDb Storage Settings. */
1083
+ sqlTempDbSettings?: SQLStorageSettings;
1084
+ /** Disk configuration to apply to SQL Server. */
1085
+ diskConfigurationType?: DiskConfigurationType;
1086
+ /** Storage workload type. */
1087
+ storageWorkloadType?: StorageWorkloadType;
1088
+ }
1089
+
1090
+ /**
1091
+ * Defines values for StorageWorkloadType. \
1092
+ * {@link KnownStorageWorkloadType} can be used interchangeably with StorageWorkloadType,
1093
+ * this enum contains the known values that the service supports.
1094
+ * ### Known values supported by the service
1095
+ * **GENERAL** \
1096
+ * **OLTP** \
1097
+ * **DW**
1098
+ */
1099
+ export declare type StorageWorkloadType = string;
1100
+
1101
+ /** ARM tracked top level resource. */
1102
+ export declare type TrackedResource = Resource & {
1103
+ /** Resource location. */
1104
+ location: string;
1105
+ /** Resource tags. */
1106
+ tags?: {
1107
+ [propertyName: string]: string;
1108
+ };
1109
+ };
1110
+
1111
+ /** Domain credentials for setting up Windows Server Failover Cluster for SQL availability group. */
1112
+ export declare interface WsfcDomainCredentials {
1113
+ /** Cluster bootstrap account password. */
1114
+ clusterBootstrapAccountPassword?: string;
1115
+ /** Cluster operator account password. */
1116
+ clusterOperatorAccountPassword?: string;
1117
+ /** SQL service account password. */
1118
+ sqlServiceAccountPassword?: string;
1119
+ }
1120
+
1121
+ /** Active Directory account details to operate Windows Server Failover Cluster. */
1122
+ export declare interface WsfcDomainProfile {
1123
+ /** Fully qualified name of the domain. */
1124
+ domainFqdn?: string;
1125
+ /** Organizational Unit path in which the nodes and cluster will be present. */
1126
+ ouPath?: string;
1127
+ /** Account name used for creating cluster (at minimum needs permissions to 'Create Computer Objects' in domain). */
1128
+ clusterBootstrapAccount?: string;
1129
+ /** Account name used for operating cluster i.e. will be part of administrators group on all the participating virtual machines in the cluster. */
1130
+ clusterOperatorAccount?: string;
1131
+ /** Account name under which SQL service will run on all participating SQL virtual machines in the cluster. */
1132
+ sqlServiceAccount?: string;
1133
+ /** Optional path for fileshare witness. */
1134
+ fileShareWitnessPath?: string;
1135
+ /** Fully qualified ARM resource id of the witness storage account. */
1136
+ storageAccountUrl?: string;
1137
+ /** Primary key of the witness storage account. */
1138
+ storageAccountPrimaryKey?: string;
1139
+ }
1140
+
1141
+ export { }