@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.
- package/CHANGELOG.md +14 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +72 -78
- package/dist/index.js +2827 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +783 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +103 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +31 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +366 -340
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +18 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +143 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/availabilityGroupListeners.d.ts +89 -0
- package/dist-esm/src/operations/availabilityGroupListeners.d.ts.map +1 -0
- package/dist-esm/src/operations/availabilityGroupListeners.js +338 -0
- package/dist-esm/src/operations/availabilityGroupListeners.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +116 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts +117 -0
- package/dist-esm/src/operations/sqlVirtualMachineGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/sqlVirtualMachineGroups.js +487 -0
- package/dist-esm/src/operations/sqlVirtualMachineGroups.js.map +1 -0
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts +144 -0
- package/dist-esm/src/operations/sqlVirtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operations/sqlVirtualMachines.js +598 -0
- package/dist-esm/src/operations/sqlVirtualMachines.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.js +9 -0
- package/dist-esm/src/operationsInterfaces/availabilityGroupListeners.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.d.ts +79 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.js +9 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachineGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts +87 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.js +9 -0
- package/dist-esm/src/operationsInterfaces/sqlVirtualMachines.js.map +1 -0
- package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts +21 -0
- package/dist-esm/src/sqlVirtualMachineManagementClient.d.ts.map +1 -0
- package/dist-esm/src/sqlVirtualMachineManagementClient.js +54 -0
- package/dist-esm/src/sqlVirtualMachineManagementClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -31
- package/review/arm-sqlvirtualmachine.api.md +678 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +641 -985
- package/src/models/mappers.ts +380 -351
- package/src/models/parameters.ts +106 -41
- package/src/operations/availabilityGroupListeners.ts +366 -222
- package/src/operations/index.ts +3 -5
- package/src/operations/operations.ts +89 -79
- package/src/operations/sqlVirtualMachineGroups.ts +517 -344
- package/src/operations/sqlVirtualMachines.ts +662 -336
- package/src/operationsInterfaces/availabilityGroupListeners.ts +115 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/sqlVirtualMachineGroups.ts +147 -0
- package/src/operationsInterfaces/sqlVirtualMachines.ts +160 -0
- package/src/sqlVirtualMachineManagementClient.ts +78 -35
- package/tsconfig.json +4 -4
- package/types/arm-sqlvirtualmachine.d.ts +1141 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-sqlvirtualmachine.js +0 -2335
- package/dist/arm-sqlvirtualmachine.js.map +0 -1
- package/dist/arm-sqlvirtualmachine.min.js +0 -1
- package/dist/arm-sqlvirtualmachine.min.js.map +0 -1
- package/esm/models/availabilityGroupListenersMappers.d.ts +0 -2
- package/esm/models/availabilityGroupListenersMappers.d.ts.map +0 -1
- package/esm/models/availabilityGroupListenersMappers.js +0 -9
- package/esm/models/availabilityGroupListenersMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -1156
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -31
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -11
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -103
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/sqlVirtualMachineGroupsMappers.d.ts +0 -2
- package/esm/models/sqlVirtualMachineGroupsMappers.d.ts.map +0 -1
- package/esm/models/sqlVirtualMachineGroupsMappers.js +0 -9
- package/esm/models/sqlVirtualMachineGroupsMappers.js.map +0 -1
- package/esm/models/sqlVirtualMachinesMappers.d.ts +0 -2
- package/esm/models/sqlVirtualMachinesMappers.d.ts.map +0 -1
- package/esm/models/sqlVirtualMachinesMappers.js +0 -9
- package/esm/models/sqlVirtualMachinesMappers.js.map +0 -1
- package/esm/operations/availabilityGroupListeners.d.ts +0 -125
- package/esm/operations/availabilityGroupListeners.d.ts.map +0 -1
- package/esm/operations/availabilityGroupListeners.js +0 -238
- package/esm/operations/availabilityGroupListeners.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/sqlVirtualMachineGroups.d.ts +0 -168
- package/esm/operations/sqlVirtualMachineGroups.d.ts.map +0 -1
- package/esm/operations/sqlVirtualMachineGroups.js +0 -337
- package/esm/operations/sqlVirtualMachineGroups.js.map +0 -1
- package/esm/operations/sqlVirtualMachines.d.ts +0 -168
- package/esm/operations/sqlVirtualMachines.d.ts.map +0 -1
- package/esm/operations/sqlVirtualMachines.js +0 -338
- package/esm/operations/sqlVirtualMachines.js.map +0 -1
- package/esm/sqlVirtualMachineManagementClient.d.ts +0 -21
- package/esm/sqlVirtualMachineManagementClient.d.ts.map +0 -1
- package/esm/sqlVirtualMachineManagementClient.js +0 -36
- package/esm/sqlVirtualMachineManagementClient.js.map +0 -1
- package/esm/sqlVirtualMachineManagementClientContext.d.ts +0 -16
- package/esm/sqlVirtualMachineManagementClientContext.d.ts.map +0 -1
- package/esm/sqlVirtualMachineManagementClientContext.js +0 -56
- package/esm/sqlVirtualMachineManagementClientContext.js.map +0 -1
- package/src/models/availabilityGroupListenersMappers.ts +0 -32
- package/src/models/operationsMappers.ts +0 -14
- package/src/models/sqlVirtualMachineGroupsMappers.ts +0 -33
- package/src/models/sqlVirtualMachinesMappers.ts +0 -33
- package/src/sqlVirtualMachineManagementClientContext.ts +0 -62
|
@@ -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,48 +1,91 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
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
|
|
12
|
-
import * as
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
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";
|
|
16
24
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
operations: operations.Operations;
|
|
22
|
-
sqlVirtualMachineGroups: operations.SqlVirtualMachineGroups;
|
|
23
|
-
sqlVirtualMachines: operations.SqlVirtualMachines;
|
|
25
|
+
export class SqlVirtualMachineManagementClient extends coreClient.ServiceClient {
|
|
26
|
+
$host: string;
|
|
27
|
+
subscriptionId: string;
|
|
28
|
+
apiVersion: string;
|
|
24
29
|
|
|
25
30
|
/**
|
|
26
31
|
* Initializes a new instance of the SqlVirtualMachineManagementClient class.
|
|
27
|
-
* @param credentials
|
|
32
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
28
33
|
* @param subscriptionId Subscription ID that identifies an Azure subscription.
|
|
29
|
-
* @param
|
|
34
|
+
* @param options The parameter options
|
|
30
35
|
*/
|
|
31
|
-
constructor(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
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
|
+
};
|
|
39
56
|
|
|
40
|
-
|
|
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}`;
|
|
41
62
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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,17 +3,17 @@
|
|
|
3
3
|
"module": "es6",
|
|
4
4
|
"moduleResolution": "node",
|
|
5
5
|
"strict": true,
|
|
6
|
-
"target": "
|
|
6
|
+
"target": "es6",
|
|
7
7
|
"sourceMap": true,
|
|
8
8
|
"declarationMap": true,
|
|
9
9
|
"esModuleInterop": true,
|
|
10
10
|
"allowSyntheticDefaultImports": true,
|
|
11
11
|
"forceConsistentCasingInFileNames": true,
|
|
12
|
-
"lib": ["es6"],
|
|
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
|
}
|