@azure/arm-sqlvirtualmachine 4.1.1 → 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 +69 -85
  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 +320 -368
  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 -32
  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 +629 -1065
  82. package/src/models/mappers.ts +328 -376
  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 +641 -424
  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 -41
  95. package/tsconfig.json +3 -3
  96. package/types/arm-sqlvirtualmachine.d.ts +1141 -0
  97. package/types/tsdoc-metadata.json +11 -0
  98. package/dist/arm-sqlvirtualmachine.js +0 -2479
  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 -1241
  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 -33
  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 -210
  144. package/esm/operations/sqlVirtualMachines.d.ts.map +0 -1
  145. package/esm/operations/sqlVirtualMachines.js +0 -395
  146. package/esm/operations/sqlVirtualMachines.js.map +0 -1
  147. package/esm/sqlVirtualMachineManagementClient.d.ts +0 -27
  148. package/esm/sqlVirtualMachineManagementClient.d.ts.map +0 -1
  149. package/esm/sqlVirtualMachineManagementClient.js +0 -41
  150. package/esm/sqlVirtualMachineManagementClient.js.map +0 -1
  151. package/esm/sqlVirtualMachineManagementClientContext.d.ts +0 -22
  152. package/esm/sqlVirtualMachineManagementClientContext.d.ts.map +0 -1
  153. package/esm/sqlVirtualMachineManagementClientContext.js +0 -61
  154. package/esm/sqlVirtualMachineManagementClientContext.js.map +0 -1
  155. package/src/models/availabilityGroupListenersMappers.ts +0 -34
  156. package/src/models/operationsMappers.ts +0 -14
  157. package/src/models/sqlVirtualMachineGroupsMappers.ts +0 -35
  158. package/src/models/sqlVirtualMachinesMappers.ts +0 -35
  159. package/src/sqlVirtualMachineManagementClientContext.ts +0 -68
@@ -0,0 +1,115 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ AvailabilityGroupListener,
13
+ AvailabilityGroupListenersListByGroupOptionalParams,
14
+ AvailabilityGroupListenersGetOptionalParams,
15
+ AvailabilityGroupListenersGetResponse,
16
+ AvailabilityGroupListenersCreateOrUpdateOptionalParams,
17
+ AvailabilityGroupListenersCreateOrUpdateResponse,
18
+ AvailabilityGroupListenersDeleteOptionalParams
19
+ } from "../models";
20
+
21
+ /// <reference lib="esnext.asynciterable" />
22
+ /** Interface representing a AvailabilityGroupListeners. */
23
+ export interface AvailabilityGroupListeners {
24
+ /**
25
+ * Lists all availability group listeners in a SQL virtual machine group.
26
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
27
+ * value from the Azure Resource Manager API or the portal.
28
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
29
+ * @param options The options parameters.
30
+ */
31
+ listByGroup(
32
+ resourceGroupName: string,
33
+ sqlVirtualMachineGroupName: string,
34
+ options?: AvailabilityGroupListenersListByGroupOptionalParams
35
+ ): PagedAsyncIterableIterator<AvailabilityGroupListener>;
36
+ /**
37
+ * Gets an availability group listener.
38
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
39
+ * value from the Azure Resource Manager API or the portal.
40
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
41
+ * @param availabilityGroupListenerName Name of the availability group listener.
42
+ * @param options The options parameters.
43
+ */
44
+ get(
45
+ resourceGroupName: string,
46
+ sqlVirtualMachineGroupName: string,
47
+ availabilityGroupListenerName: string,
48
+ options?: AvailabilityGroupListenersGetOptionalParams
49
+ ): Promise<AvailabilityGroupListenersGetResponse>;
50
+ /**
51
+ * Creates or updates an availability group listener.
52
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
53
+ * value from the Azure Resource Manager API or the portal.
54
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
55
+ * @param availabilityGroupListenerName Name of the availability group listener.
56
+ * @param parameters The availability group listener.
57
+ * @param options The options parameters.
58
+ */
59
+ beginCreateOrUpdate(
60
+ resourceGroupName: string,
61
+ sqlVirtualMachineGroupName: string,
62
+ availabilityGroupListenerName: string,
63
+ parameters: AvailabilityGroupListener,
64
+ options?: AvailabilityGroupListenersCreateOrUpdateOptionalParams
65
+ ): Promise<
66
+ PollerLike<
67
+ PollOperationState<AvailabilityGroupListenersCreateOrUpdateResponse>,
68
+ AvailabilityGroupListenersCreateOrUpdateResponse
69
+ >
70
+ >;
71
+ /**
72
+ * Creates or updates an availability group listener.
73
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
74
+ * value from the Azure Resource Manager API or the portal.
75
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
76
+ * @param availabilityGroupListenerName Name of the availability group listener.
77
+ * @param parameters The availability group listener.
78
+ * @param options The options parameters.
79
+ */
80
+ beginCreateOrUpdateAndWait(
81
+ resourceGroupName: string,
82
+ sqlVirtualMachineGroupName: string,
83
+ availabilityGroupListenerName: string,
84
+ parameters: AvailabilityGroupListener,
85
+ options?: AvailabilityGroupListenersCreateOrUpdateOptionalParams
86
+ ): Promise<AvailabilityGroupListenersCreateOrUpdateResponse>;
87
+ /**
88
+ * Deletes an availability group listener.
89
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
90
+ * value from the Azure Resource Manager API or the portal.
91
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
92
+ * @param availabilityGroupListenerName Name of the availability group listener.
93
+ * @param options The options parameters.
94
+ */
95
+ beginDelete(
96
+ resourceGroupName: string,
97
+ sqlVirtualMachineGroupName: string,
98
+ availabilityGroupListenerName: string,
99
+ options?: AvailabilityGroupListenersDeleteOptionalParams
100
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
101
+ /**
102
+ * Deletes an availability group listener.
103
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
104
+ * value from the Azure Resource Manager API or the portal.
105
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
106
+ * @param availabilityGroupListenerName Name of the availability group listener.
107
+ * @param options The options parameters.
108
+ */
109
+ beginDeleteAndWait(
110
+ resourceGroupName: string,
111
+ sqlVirtualMachineGroupName: string,
112
+ availabilityGroupListenerName: string,
113
+ options?: AvailabilityGroupListenersDeleteOptionalParams
114
+ ): Promise<void>;
115
+ }
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ export * from "./availabilityGroupListeners";
10
+ export * from "./operations";
11
+ export * from "./sqlVirtualMachineGroups";
12
+ export * from "./sqlVirtualMachines";
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Operation, OperationsListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Operations. */
14
+ export interface Operations {
15
+ /**
16
+ * Lists all of the available SQL Rest API operations.
17
+ * @param options The options parameters.
18
+ */
19
+ list(
20
+ options?: OperationsListOptionalParams
21
+ ): PagedAsyncIterableIterator<Operation>;
22
+ }
@@ -0,0 +1,147 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ SqlVirtualMachineGroup,
13
+ SqlVirtualMachineGroupsListByResourceGroupOptionalParams,
14
+ SqlVirtualMachineGroupsListOptionalParams,
15
+ SqlVirtualMachineGroupsGetOptionalParams,
16
+ SqlVirtualMachineGroupsGetResponse,
17
+ SqlVirtualMachineGroupsCreateOrUpdateOptionalParams,
18
+ SqlVirtualMachineGroupsCreateOrUpdateResponse,
19
+ SqlVirtualMachineGroupsDeleteOptionalParams,
20
+ SqlVirtualMachineGroupUpdate,
21
+ SqlVirtualMachineGroupsUpdateOptionalParams,
22
+ SqlVirtualMachineGroupsUpdateResponse
23
+ } from "../models";
24
+
25
+ /// <reference lib="esnext.asynciterable" />
26
+ /** Interface representing a SqlVirtualMachineGroups. */
27
+ export interface SqlVirtualMachineGroups {
28
+ /**
29
+ * Gets all SQL virtual machine groups in a resource group.
30
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
31
+ * value from the Azure Resource Manager API or the portal.
32
+ * @param options The options parameters.
33
+ */
34
+ listByResourceGroup(
35
+ resourceGroupName: string,
36
+ options?: SqlVirtualMachineGroupsListByResourceGroupOptionalParams
37
+ ): PagedAsyncIterableIterator<SqlVirtualMachineGroup>;
38
+ /**
39
+ * Gets all SQL virtual machine groups in a subscription.
40
+ * @param options The options parameters.
41
+ */
42
+ list(
43
+ options?: SqlVirtualMachineGroupsListOptionalParams
44
+ ): PagedAsyncIterableIterator<SqlVirtualMachineGroup>;
45
+ /**
46
+ * Gets a SQL virtual machine group.
47
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
48
+ * value from the Azure Resource Manager API or the portal.
49
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
50
+ * @param options The options parameters.
51
+ */
52
+ get(
53
+ resourceGroupName: string,
54
+ sqlVirtualMachineGroupName: string,
55
+ options?: SqlVirtualMachineGroupsGetOptionalParams
56
+ ): Promise<SqlVirtualMachineGroupsGetResponse>;
57
+ /**
58
+ * Creates or updates a SQL virtual machine group.
59
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
60
+ * value from the Azure Resource Manager API or the portal.
61
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
62
+ * @param parameters The SQL virtual machine group.
63
+ * @param options The options parameters.
64
+ */
65
+ beginCreateOrUpdate(
66
+ resourceGroupName: string,
67
+ sqlVirtualMachineGroupName: string,
68
+ parameters: SqlVirtualMachineGroup,
69
+ options?: SqlVirtualMachineGroupsCreateOrUpdateOptionalParams
70
+ ): Promise<
71
+ PollerLike<
72
+ PollOperationState<SqlVirtualMachineGroupsCreateOrUpdateResponse>,
73
+ SqlVirtualMachineGroupsCreateOrUpdateResponse
74
+ >
75
+ >;
76
+ /**
77
+ * Creates or updates a SQL virtual machine group.
78
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
79
+ * value from the Azure Resource Manager API or the portal.
80
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
81
+ * @param parameters The SQL virtual machine group.
82
+ * @param options The options parameters.
83
+ */
84
+ beginCreateOrUpdateAndWait(
85
+ resourceGroupName: string,
86
+ sqlVirtualMachineGroupName: string,
87
+ parameters: SqlVirtualMachineGroup,
88
+ options?: SqlVirtualMachineGroupsCreateOrUpdateOptionalParams
89
+ ): Promise<SqlVirtualMachineGroupsCreateOrUpdateResponse>;
90
+ /**
91
+ * Deletes a SQL virtual machine group.
92
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
93
+ * value from the Azure Resource Manager API or the portal.
94
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
95
+ * @param options The options parameters.
96
+ */
97
+ beginDelete(
98
+ resourceGroupName: string,
99
+ sqlVirtualMachineGroupName: string,
100
+ options?: SqlVirtualMachineGroupsDeleteOptionalParams
101
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
102
+ /**
103
+ * Deletes a SQL virtual machine group.
104
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
105
+ * value from the Azure Resource Manager API or the portal.
106
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
107
+ * @param options The options parameters.
108
+ */
109
+ beginDeleteAndWait(
110
+ resourceGroupName: string,
111
+ sqlVirtualMachineGroupName: string,
112
+ options?: SqlVirtualMachineGroupsDeleteOptionalParams
113
+ ): Promise<void>;
114
+ /**
115
+ * Updates SQL virtual machine group tags.
116
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
117
+ * value from the Azure Resource Manager API or the portal.
118
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
119
+ * @param parameters The SQL virtual machine group.
120
+ * @param options The options parameters.
121
+ */
122
+ beginUpdate(
123
+ resourceGroupName: string,
124
+ sqlVirtualMachineGroupName: string,
125
+ parameters: SqlVirtualMachineGroupUpdate,
126
+ options?: SqlVirtualMachineGroupsUpdateOptionalParams
127
+ ): Promise<
128
+ PollerLike<
129
+ PollOperationState<SqlVirtualMachineGroupsUpdateResponse>,
130
+ SqlVirtualMachineGroupsUpdateResponse
131
+ >
132
+ >;
133
+ /**
134
+ * Updates SQL virtual machine group tags.
135
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
136
+ * value from the Azure Resource Manager API or the portal.
137
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
138
+ * @param parameters The SQL virtual machine group.
139
+ * @param options The options parameters.
140
+ */
141
+ beginUpdateAndWait(
142
+ resourceGroupName: string,
143
+ sqlVirtualMachineGroupName: string,
144
+ parameters: SqlVirtualMachineGroupUpdate,
145
+ options?: SqlVirtualMachineGroupsUpdateOptionalParams
146
+ ): Promise<SqlVirtualMachineGroupsUpdateResponse>;
147
+ }
@@ -0,0 +1,160 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ SqlVirtualMachine,
13
+ SqlVirtualMachinesListBySqlVmGroupOptionalParams,
14
+ SqlVirtualMachinesListOptionalParams,
15
+ SqlVirtualMachinesListByResourceGroupOptionalParams,
16
+ SqlVirtualMachinesGetOptionalParams,
17
+ SqlVirtualMachinesGetResponse,
18
+ SqlVirtualMachinesCreateOrUpdateOptionalParams,
19
+ SqlVirtualMachinesCreateOrUpdateResponse,
20
+ SqlVirtualMachinesDeleteOptionalParams,
21
+ SqlVirtualMachineUpdate,
22
+ SqlVirtualMachinesUpdateOptionalParams,
23
+ SqlVirtualMachinesUpdateResponse
24
+ } from "../models";
25
+
26
+ /// <reference lib="esnext.asynciterable" />
27
+ /** Interface representing a SqlVirtualMachines. */
28
+ export interface SqlVirtualMachines {
29
+ /**
30
+ * Gets the list of sql virtual machines in a SQL virtual machine group.
31
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
32
+ * value from the Azure Resource Manager API or the portal.
33
+ * @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
34
+ * @param options The options parameters.
35
+ */
36
+ listBySqlVmGroup(
37
+ resourceGroupName: string,
38
+ sqlVirtualMachineGroupName: string,
39
+ options?: SqlVirtualMachinesListBySqlVmGroupOptionalParams
40
+ ): PagedAsyncIterableIterator<SqlVirtualMachine>;
41
+ /**
42
+ * Gets all SQL virtual machines in a subscription.
43
+ * @param options The options parameters.
44
+ */
45
+ list(
46
+ options?: SqlVirtualMachinesListOptionalParams
47
+ ): PagedAsyncIterableIterator<SqlVirtualMachine>;
48
+ /**
49
+ * Gets all SQL virtual machines in a resource group.
50
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
51
+ * value from the Azure Resource Manager API or the portal.
52
+ * @param options The options parameters.
53
+ */
54
+ listByResourceGroup(
55
+ resourceGroupName: string,
56
+ options?: SqlVirtualMachinesListByResourceGroupOptionalParams
57
+ ): PagedAsyncIterableIterator<SqlVirtualMachine>;
58
+ /**
59
+ * Gets a SQL virtual machine.
60
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
61
+ * value from the Azure Resource Manager API or the portal.
62
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
63
+ * @param options The options parameters.
64
+ */
65
+ get(
66
+ resourceGroupName: string,
67
+ sqlVirtualMachineName: string,
68
+ options?: SqlVirtualMachinesGetOptionalParams
69
+ ): Promise<SqlVirtualMachinesGetResponse>;
70
+ /**
71
+ * Creates or updates a SQL virtual machine.
72
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
73
+ * value from the Azure Resource Manager API or the portal.
74
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
75
+ * @param parameters The SQL virtual machine.
76
+ * @param options The options parameters.
77
+ */
78
+ beginCreateOrUpdate(
79
+ resourceGroupName: string,
80
+ sqlVirtualMachineName: string,
81
+ parameters: SqlVirtualMachine,
82
+ options?: SqlVirtualMachinesCreateOrUpdateOptionalParams
83
+ ): Promise<
84
+ PollerLike<
85
+ PollOperationState<SqlVirtualMachinesCreateOrUpdateResponse>,
86
+ SqlVirtualMachinesCreateOrUpdateResponse
87
+ >
88
+ >;
89
+ /**
90
+ * Creates or updates a SQL virtual machine.
91
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
92
+ * value from the Azure Resource Manager API or the portal.
93
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
94
+ * @param parameters The SQL virtual machine.
95
+ * @param options The options parameters.
96
+ */
97
+ beginCreateOrUpdateAndWait(
98
+ resourceGroupName: string,
99
+ sqlVirtualMachineName: string,
100
+ parameters: SqlVirtualMachine,
101
+ options?: SqlVirtualMachinesCreateOrUpdateOptionalParams
102
+ ): Promise<SqlVirtualMachinesCreateOrUpdateResponse>;
103
+ /**
104
+ * Deletes a SQL virtual machine.
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 sqlVirtualMachineName Name of the SQL virtual machine.
108
+ * @param options The options parameters.
109
+ */
110
+ beginDelete(
111
+ resourceGroupName: string,
112
+ sqlVirtualMachineName: string,
113
+ options?: SqlVirtualMachinesDeleteOptionalParams
114
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
115
+ /**
116
+ * Deletes a SQL virtual machine.
117
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
118
+ * value from the Azure Resource Manager API or the portal.
119
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
120
+ * @param options The options parameters.
121
+ */
122
+ beginDeleteAndWait(
123
+ resourceGroupName: string,
124
+ sqlVirtualMachineName: string,
125
+ options?: SqlVirtualMachinesDeleteOptionalParams
126
+ ): Promise<void>;
127
+ /**
128
+ * Updates a SQL virtual machine.
129
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
130
+ * value from the Azure Resource Manager API or the portal.
131
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
132
+ * @param parameters The SQL virtual machine.
133
+ * @param options The options parameters.
134
+ */
135
+ beginUpdate(
136
+ resourceGroupName: string,
137
+ sqlVirtualMachineName: string,
138
+ parameters: SqlVirtualMachineUpdate,
139
+ options?: SqlVirtualMachinesUpdateOptionalParams
140
+ ): Promise<
141
+ PollerLike<
142
+ PollOperationState<SqlVirtualMachinesUpdateResponse>,
143
+ SqlVirtualMachinesUpdateResponse
144
+ >
145
+ >;
146
+ /**
147
+ * Updates a SQL virtual machine.
148
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
149
+ * value from the Azure Resource Manager API or the portal.
150
+ * @param sqlVirtualMachineName Name of the SQL virtual machine.
151
+ * @param parameters The SQL virtual machine.
152
+ * @param options The options parameters.
153
+ */
154
+ beginUpdateAndWait(
155
+ resourceGroupName: string,
156
+ sqlVirtualMachineName: string,
157
+ parameters: SqlVirtualMachineUpdate,
158
+ options?: SqlVirtualMachinesUpdateOptionalParams
159
+ ): Promise<SqlVirtualMachinesUpdateResponse>;
160
+ }
@@ -1,54 +1,91 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import { TokenCredential } from "@azure/core-auth";
13
- import * as Models from "./models";
14
- import * as Mappers from "./models/mappers";
15
- import * as operations from "./operations";
16
- import { SqlVirtualMachineManagementClientContext } from "./sqlVirtualMachineManagementClientContext";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as coreAuth from "@azure/core-auth";
11
+ import {
12
+ AvailabilityGroupListenersImpl,
13
+ OperationsImpl,
14
+ SqlVirtualMachineGroupsImpl,
15
+ SqlVirtualMachinesImpl
16
+ } from "./operations";
17
+ import {
18
+ AvailabilityGroupListeners,
19
+ Operations,
20
+ SqlVirtualMachineGroups,
21
+ SqlVirtualMachines
22
+ } from "./operationsInterfaces";
23
+ import { SqlVirtualMachineManagementClientOptionalParams } from "./models";
17
24
 
18
-
19
- class SqlVirtualMachineManagementClient extends SqlVirtualMachineManagementClientContext {
20
- // Operation groups
21
- availabilityGroupListeners: operations.AvailabilityGroupListeners;
22
- operations: operations.Operations;
23
- sqlVirtualMachineGroups: operations.SqlVirtualMachineGroups;
24
- sqlVirtualMachines: operations.SqlVirtualMachines;
25
+ export class SqlVirtualMachineManagementClient extends coreClient.ServiceClient {
26
+ $host: string;
27
+ subscriptionId: string;
28
+ apiVersion: string;
25
29
 
26
30
  /**
27
31
  * Initializes a new instance of the SqlVirtualMachineManagementClient class.
28
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
29
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
30
- * more information about these credentials, see
31
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
32
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
33
- * @azure/ms-rest-browserauth are also supported.
32
+ * @param credentials Subscription credentials which uniquely identify client subscription.
34
33
  * @param subscriptionId Subscription ID that identifies an Azure subscription.
35
- * @param [options] The parameter options
34
+ * @param options The parameter options
36
35
  */
37
- constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.SqlVirtualMachineManagementClientOptions) {
38
- super(credentials, subscriptionId, options);
39
- this.availabilityGroupListeners = new operations.AvailabilityGroupListeners(this);
40
- this.operations = new operations.Operations(this);
41
- this.sqlVirtualMachineGroups = new operations.SqlVirtualMachineGroups(this);
42
- this.sqlVirtualMachines = new operations.SqlVirtualMachines(this);
43
- }
44
- }
36
+ constructor(
37
+ credentials: coreAuth.TokenCredential,
38
+ subscriptionId: string,
39
+ options?: SqlVirtualMachineManagementClientOptionalParams
40
+ ) {
41
+ if (credentials === undefined) {
42
+ throw new Error("'credentials' cannot be null");
43
+ }
44
+ if (subscriptionId === undefined) {
45
+ throw new Error("'subscriptionId' cannot be null");
46
+ }
47
+
48
+ // Initializing default values for options
49
+ if (!options) {
50
+ options = {};
51
+ }
52
+ const defaults: SqlVirtualMachineManagementClientOptionalParams = {
53
+ requestContentType: "application/json; charset=utf-8",
54
+ credential: credentials
55
+ };
45
56
 
46
- // Operation Specifications
57
+ const packageDetails = `azsdk-js-arm-sqlvirtualmachine/1.0.0-beta.1`;
58
+ const userAgentPrefix =
59
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
60
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
61
+ : `${packageDetails}`;
47
62
 
48
- export {
49
- SqlVirtualMachineManagementClient,
50
- SqlVirtualMachineManagementClientContext,
51
- Models as SqlVirtualMachineManagementModels,
52
- Mappers as SqlVirtualMachineManagementMappers
53
- };
54
- export * from "./operations";
63
+ if (!options.credentialScopes) {
64
+ options.credentialScopes = ["https://management.azure.com/.default"];
65
+ }
66
+ const optionsWithDefaults = {
67
+ ...defaults,
68
+ ...options,
69
+ userAgentOptions: {
70
+ userAgentPrefix
71
+ },
72
+ baseUri: options.endpoint || "https://management.azure.com"
73
+ };
74
+ super(optionsWithDefaults);
75
+ // Parameter assignments
76
+ this.subscriptionId = subscriptionId;
77
+
78
+ // Assigning values to Constant parameters
79
+ this.$host = options.$host || "https://management.azure.com";
80
+ this.apiVersion = options.apiVersion || "2017-03-01-preview";
81
+ this.availabilityGroupListeners = new AvailabilityGroupListenersImpl(this);
82
+ this.operations = new OperationsImpl(this);
83
+ this.sqlVirtualMachineGroups = new SqlVirtualMachineGroupsImpl(this);
84
+ this.sqlVirtualMachines = new SqlVirtualMachinesImpl(this);
85
+ }
86
+
87
+ availabilityGroupListeners: AvailabilityGroupListeners;
88
+ operations: Operations;
89
+ sqlVirtualMachineGroups: SqlVirtualMachineGroups;
90
+ sqlVirtualMachines: SqlVirtualMachines;
91
+ }
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "module": "es6",
4
4
  "moduleResolution": "node",
5
5
  "strict": true,
6
- "target": "es5",
6
+ "target": "es6",
7
7
  "sourceMap": true,
8
8
  "declarationMap": true,
9
9
  "esModuleInterop": true,
@@ -11,9 +11,9 @@
11
11
  "forceConsistentCasingInFileNames": true,
12
12
  "lib": ["es6", "dom"],
13
13
  "declaration": true,
14
- "outDir": "./esm",
14
+ "outDir": "./dist-esm",
15
15
  "importHelpers": true
16
16
  },
17
- "include": ["./src/**/*.ts"],
17
+ "include": ["./src/**/*.ts", "./test/**/*.ts"],
18
18
  "exclude": ["node_modules"]
19
19
  }