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