@azure/arm-labservices 1.1.1 → 2.0.0
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/LICENSE.txt +1 -1
- package/README.md +11 -14
- package/dist/arm-labservices.js +2913 -3372
- package/dist/arm-labservices.js.map +1 -1
- package/dist/arm-labservices.min.js +1 -1
- package/dist/arm-labservices.min.js.map +1 -1
- package/esm/{managedLabsClient.d.ts → labServicesClient.d.ts} +12 -13
- package/esm/labServicesClient.d.ts.map +1 -0
- package/esm/{managedLabsClient.js → labServicesClient.js} +17 -19
- package/esm/labServicesClient.js.map +1 -0
- package/esm/{managedLabsClientContext.d.ts → labServicesClientContext.d.ts} +6 -6
- package/esm/labServicesClientContext.d.ts.map +1 -0
- package/esm/{managedLabsClientContext.js → labServicesClientContext.js} +12 -13
- package/esm/labServicesClientContext.js.map +1 -0
- package/esm/models/imagesMappers.d.ts +2 -0
- package/esm/models/imagesMappers.d.ts.map +1 -0
- package/esm/models/imagesMappers.js +9 -0
- package/esm/models/imagesMappers.js.map +1 -0
- package/esm/models/index.d.ts +977 -1070
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +2 -2
- package/esm/models/labPlansMappers.d.ts +2 -0
- package/esm/models/labPlansMappers.d.ts.map +1 -0
- package/esm/models/labPlansMappers.js +9 -0
- package/esm/models/labPlansMappers.js.map +1 -0
- package/esm/models/labsMappers.d.ts +1 -1
- package/esm/models/labsMappers.d.ts.map +1 -1
- package/esm/models/labsMappers.js +3 -3
- package/esm/models/labsMappers.js.map +1 -1
- package/esm/models/mappers.d.ts +50 -65
- package/esm/models/mappers.d.ts.map +1 -1
- package/esm/models/mappers.js +1182 -1209
- package/esm/models/mappers.js.map +1 -1
- package/esm/models/operationResultsMappers.d.ts +2 -0
- package/esm/models/operationResultsMappers.d.ts.map +1 -0
- package/esm/models/operationResultsMappers.js +9 -0
- package/esm/models/operationResultsMappers.js.map +1 -0
- package/esm/models/operationsMappers.d.ts +1 -1
- package/esm/models/operationsMappers.d.ts.map +1 -1
- package/esm/models/operationsMappers.js +3 -3
- package/esm/models/operationsMappers.js.map +1 -1
- package/esm/models/parameters.d.ts +5 -9
- package/esm/models/parameters.d.ts.map +1 -1
- package/esm/models/parameters.js +69 -74
- package/esm/models/parameters.js.map +1 -1
- package/esm/models/schedulesMappers.d.ts +2 -0
- package/esm/models/schedulesMappers.d.ts.map +1 -0
- package/esm/models/schedulesMappers.js +9 -0
- package/esm/models/schedulesMappers.js.map +1 -0
- package/esm/models/usersMappers.d.ts +1 -1
- package/esm/models/usersMappers.d.ts.map +1 -1
- package/esm/models/usersMappers.js +3 -3
- package/esm/models/usersMappers.js.map +1 -1
- package/esm/models/virtualMachinesMappers.d.ts +2 -0
- package/esm/models/virtualMachinesMappers.d.ts.map +1 -0
- package/esm/models/virtualMachinesMappers.js +9 -0
- package/esm/models/virtualMachinesMappers.js.map +1 -0
- package/esm/operations/images.d.ts +147 -0
- package/esm/operations/images.d.ts.map +1 -0
- package/esm/operations/images.js +198 -0
- package/esm/operations/images.js.map +1 -0
- package/esm/operations/index.d.ts +5 -6
- package/esm/operations/index.d.ts.map +1 -1
- package/esm/operations/index.js +7 -9
- package/esm/operations/index.js.map +1 -1
- package/esm/operations/labPlans.d.ts +202 -0
- package/esm/operations/labPlans.d.ts.map +1 -0
- package/esm/operations/labPlans.js +419 -0
- package/esm/operations/labPlans.js.map +1 -0
- package/esm/operations/labs.d.ts +135 -117
- package/esm/operations/labs.d.ts.map +1 -1
- package/esm/operations/labs.js +233 -92
- package/esm/operations/labs.js.map +1 -1
- package/esm/operations/operationResults.d.ts +32 -0
- package/esm/operations/operationResults.d.ts.map +1 -0
- package/esm/operations/operationResults.js +56 -0
- package/esm/operations/operationResults.js.map +1 -0
- package/esm/operations/operations.d.ts +28 -14
- package/esm/operations/operations.d.ts.map +1 -1
- package/esm/operations/operations.js +36 -15
- package/esm/operations/operations.js.map +1 -1
- package/esm/operations/schedules.d.ts +181 -0
- package/esm/operations/schedules.d.ts.map +1 -0
- package/esm/operations/schedules.js +260 -0
- package/esm/operations/schedules.js.map +1 -0
- package/esm/operations/users.d.ts +123 -95
- package/esm/operations/users.d.ts.map +1 -1
- package/esm/operations/users.js +190 -69
- package/esm/operations/users.js.map +1 -1
- package/esm/operations/virtualMachines.d.ts +217 -0
- package/esm/operations/virtualMachines.d.ts.map +1 -0
- package/esm/operations/virtualMachines.js +425 -0
- package/esm/operations/virtualMachines.js.map +1 -0
- package/package.json +13 -13
- package/rollup.config.js +4 -4
- package/src/{managedLabsClient.ts → labServicesClient.ts} +21 -24
- package/src/{managedLabsClientContext.ts → labServicesClientContext.ts} +9 -10
- package/src/models/imagesMappers.ts +47 -0
- package/src/models/index.ts +992 -1091
- package/src/models/labPlansMappers.ts +50 -0
- package/src/models/labsMappers.ts +37 -28
- package/src/models/mappers.ts +1192 -1234
- package/src/models/operationResultsMappers.ts +14 -0
- package/src/models/operationsMappers.ts +8 -5
- package/src/models/parameters.ts +69 -74
- package/src/models/schedulesMappers.ts +47 -0
- package/src/models/usersMappers.ts +36 -27
- package/src/models/virtualMachinesMappers.ts +47 -0
- package/src/operations/images.ts +365 -0
- package/src/operations/index.ts +7 -9
- package/src/operations/labPlans.ts +578 -0
- package/src/operations/labs.ts +297 -215
- package/src/operations/operationResults.ts +83 -0
- package/src/operations/operations.ts +70 -30
- package/src/operations/schedules.ts +443 -0
- package/src/operations/users.ts +238 -160
- package/src/operations/virtualMachines.ts +551 -0
- package/tsconfig.json +1 -1
- package/esm/managedLabsClient.d.ts.map +0 -1
- package/esm/managedLabsClient.js.map +0 -1
- package/esm/managedLabsClientContext.d.ts.map +0 -1
- package/esm/managedLabsClientContext.js.map +0 -1
- package/esm/models/environmentSettingsMappers.d.ts +0 -2
- package/esm/models/environmentSettingsMappers.d.ts.map +0 -1
- package/esm/models/environmentSettingsMappers.js +0 -9
- package/esm/models/environmentSettingsMappers.js.map +0 -1
- package/esm/models/environmentsMappers.d.ts +0 -2
- package/esm/models/environmentsMappers.d.ts.map +0 -1
- package/esm/models/environmentsMappers.js +0 -9
- package/esm/models/environmentsMappers.js.map +0 -1
- package/esm/models/galleryImagesMappers.d.ts +0 -2
- package/esm/models/galleryImagesMappers.d.ts.map +0 -1
- package/esm/models/galleryImagesMappers.js +0 -9
- package/esm/models/galleryImagesMappers.js.map +0 -1
- package/esm/models/globalUsersMappers.d.ts +0 -2
- package/esm/models/globalUsersMappers.d.ts.map +0 -1
- package/esm/models/globalUsersMappers.js +0 -9
- package/esm/models/globalUsersMappers.js.map +0 -1
- package/esm/models/labAccountsMappers.d.ts +0 -2
- package/esm/models/labAccountsMappers.d.ts.map +0 -1
- package/esm/models/labAccountsMappers.js +0 -9
- package/esm/models/labAccountsMappers.js.map +0 -1
- package/esm/models/providerOperationsMappers.d.ts +0 -2
- package/esm/models/providerOperationsMappers.d.ts.map +0 -1
- package/esm/models/providerOperationsMappers.js +0 -9
- package/esm/models/providerOperationsMappers.js.map +0 -1
- package/esm/operations/environmentSettings.d.ts +0 -262
- package/esm/operations/environmentSettings.d.ts.map +0 -1
- package/esm/operations/environmentSettings.js +0 -479
- package/esm/operations/environmentSettings.js.map +0 -1
- package/esm/operations/environments.d.ts +0 -279
- package/esm/operations/environments.d.ts.map +0 -1
- package/esm/operations/environments.js +0 -504
- package/esm/operations/environments.js.map +0 -1
- package/esm/operations/galleryImages.d.ts +0 -154
- package/esm/operations/galleryImages.d.ts.map +0 -1
- package/esm/operations/galleryImages.js +0 -234
- package/esm/operations/galleryImages.js.map +0 -1
- package/esm/operations/globalUsers.d.ts +0 -220
- package/esm/operations/globalUsers.d.ts.map +0 -1
- package/esm/operations/globalUsers.js +0 -411
- package/esm/operations/globalUsers.js.map +0 -1
- package/esm/operations/labAccounts.d.ts +0 -216
- package/esm/operations/labAccounts.d.ts.map +0 -1
- package/esm/operations/labAccounts.js +0 -364
- package/esm/operations/labAccounts.js.map +0 -1
- package/esm/operations/providerOperations.d.ts +0 -46
- package/esm/operations/providerOperations.d.ts.map +0 -1
- package/esm/operations/providerOperations.js +0 -77
- package/esm/operations/providerOperations.js.map +0 -1
- package/src/models/environmentSettingsMappers.ts +0 -40
- package/src/models/environmentsMappers.ts +0 -40
- package/src/models/galleryImagesMappers.ts +0 -39
- package/src/models/globalUsersMappers.ts +0 -29
- package/src/models/labAccountsMappers.ts +0 -47
- package/src/models/providerOperationsMappers.ts +0 -14
- package/src/operations/environmentSettings.ts +0 -705
- package/src/operations/environments.ts +0 -741
- package/src/operations/galleryImages.ts +0 -413
- package/src/operations/globalUsers.ts +0 -644
- package/src/operations/labAccounts.ts +0 -613
- package/src/operations/providerOperations.ts +0 -123
|
@@ -1,613 +0,0 @@
|
|
|
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.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
12
|
-
import * as msRestAzure from "@azure/ms-rest-azure-js";
|
|
13
|
-
import * as Models from "../models";
|
|
14
|
-
import * as Mappers from "../models/labAccountsMappers";
|
|
15
|
-
import * as Parameters from "../models/parameters";
|
|
16
|
-
import { ManagedLabsClientContext } from "../managedLabsClientContext";
|
|
17
|
-
|
|
18
|
-
/** Class representing a LabAccounts. */
|
|
19
|
-
export class LabAccounts {
|
|
20
|
-
private readonly client: ManagedLabsClientContext;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Create a LabAccounts.
|
|
24
|
-
* @param {ManagedLabsClientContext} client Reference to the service client.
|
|
25
|
-
*/
|
|
26
|
-
constructor(client: ManagedLabsClientContext) {
|
|
27
|
-
this.client = client;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* List lab accounts in a subscription.
|
|
32
|
-
* @param [options] The optional parameters
|
|
33
|
-
* @returns Promise<Models.LabAccountsListBySubscriptionResponse>
|
|
34
|
-
*/
|
|
35
|
-
listBySubscription(options?: Models.LabAccountsListBySubscriptionOptionalParams): Promise<Models.LabAccountsListBySubscriptionResponse>;
|
|
36
|
-
/**
|
|
37
|
-
* @param callback The callback
|
|
38
|
-
*/
|
|
39
|
-
listBySubscription(callback: msRest.ServiceCallback<Models.ResponseWithContinuationLabAccount>): void;
|
|
40
|
-
/**
|
|
41
|
-
* @param options The optional parameters
|
|
42
|
-
* @param callback The callback
|
|
43
|
-
*/
|
|
44
|
-
listBySubscription(options: Models.LabAccountsListBySubscriptionOptionalParams, callback: msRest.ServiceCallback<Models.ResponseWithContinuationLabAccount>): void;
|
|
45
|
-
listBySubscription(options?: Models.LabAccountsListBySubscriptionOptionalParams | msRest.ServiceCallback<Models.ResponseWithContinuationLabAccount>, callback?: msRest.ServiceCallback<Models.ResponseWithContinuationLabAccount>): Promise<Models.LabAccountsListBySubscriptionResponse> {
|
|
46
|
-
return this.client.sendOperationRequest(
|
|
47
|
-
{
|
|
48
|
-
options
|
|
49
|
-
},
|
|
50
|
-
listBySubscriptionOperationSpec,
|
|
51
|
-
callback) as Promise<Models.LabAccountsListBySubscriptionResponse>;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* List lab accounts in a resource group.
|
|
56
|
-
* @param resourceGroupName The name of the resource group.
|
|
57
|
-
* @param [options] The optional parameters
|
|
58
|
-
* @returns Promise<Models.LabAccountsListByResourceGroupResponse>
|
|
59
|
-
*/
|
|
60
|
-
listByResourceGroup(resourceGroupName: string, options?: Models.LabAccountsListByResourceGroupOptionalParams): Promise<Models.LabAccountsListByResourceGroupResponse>;
|
|
61
|
-
/**
|
|
62
|
-
* @param resourceGroupName The name of the resource group.
|
|
63
|
-
* @param callback The callback
|
|
64
|
-
*/
|
|
65
|
-
listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.ResponseWithContinuationLabAccount>): void;
|
|
66
|
-
/**
|
|
67
|
-
* @param resourceGroupName The name of the resource group.
|
|
68
|
-
* @param options The optional parameters
|
|
69
|
-
* @param callback The callback
|
|
70
|
-
*/
|
|
71
|
-
listByResourceGroup(resourceGroupName: string, options: Models.LabAccountsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback<Models.ResponseWithContinuationLabAccount>): void;
|
|
72
|
-
listByResourceGroup(resourceGroupName: string, options?: Models.LabAccountsListByResourceGroupOptionalParams | msRest.ServiceCallback<Models.ResponseWithContinuationLabAccount>, callback?: msRest.ServiceCallback<Models.ResponseWithContinuationLabAccount>): Promise<Models.LabAccountsListByResourceGroupResponse> {
|
|
73
|
-
return this.client.sendOperationRequest(
|
|
74
|
-
{
|
|
75
|
-
resourceGroupName,
|
|
76
|
-
options
|
|
77
|
-
},
|
|
78
|
-
listByResourceGroupOperationSpec,
|
|
79
|
-
callback) as Promise<Models.LabAccountsListByResourceGroupResponse>;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Get lab account
|
|
84
|
-
* @param resourceGroupName The name of the resource group.
|
|
85
|
-
* @param labAccountName The name of the lab Account.
|
|
86
|
-
* @param [options] The optional parameters
|
|
87
|
-
* @returns Promise<Models.LabAccountsGetResponse>
|
|
88
|
-
*/
|
|
89
|
-
get(resourceGroupName: string, labAccountName: string, options?: Models.LabAccountsGetOptionalParams): Promise<Models.LabAccountsGetResponse>;
|
|
90
|
-
/**
|
|
91
|
-
* @param resourceGroupName The name of the resource group.
|
|
92
|
-
* @param labAccountName The name of the lab Account.
|
|
93
|
-
* @param callback The callback
|
|
94
|
-
*/
|
|
95
|
-
get(resourceGroupName: string, labAccountName: string, callback: msRest.ServiceCallback<Models.LabAccount>): void;
|
|
96
|
-
/**
|
|
97
|
-
* @param resourceGroupName The name of the resource group.
|
|
98
|
-
* @param labAccountName The name of the lab Account.
|
|
99
|
-
* @param options The optional parameters
|
|
100
|
-
* @param callback The callback
|
|
101
|
-
*/
|
|
102
|
-
get(resourceGroupName: string, labAccountName: string, options: Models.LabAccountsGetOptionalParams, callback: msRest.ServiceCallback<Models.LabAccount>): void;
|
|
103
|
-
get(resourceGroupName: string, labAccountName: string, options?: Models.LabAccountsGetOptionalParams | msRest.ServiceCallback<Models.LabAccount>, callback?: msRest.ServiceCallback<Models.LabAccount>): Promise<Models.LabAccountsGetResponse> {
|
|
104
|
-
return this.client.sendOperationRequest(
|
|
105
|
-
{
|
|
106
|
-
resourceGroupName,
|
|
107
|
-
labAccountName,
|
|
108
|
-
options
|
|
109
|
-
},
|
|
110
|
-
getOperationSpec,
|
|
111
|
-
callback) as Promise<Models.LabAccountsGetResponse>;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Create or replace an existing Lab Account.
|
|
116
|
-
* @param resourceGroupName The name of the resource group.
|
|
117
|
-
* @param labAccountName The name of the lab Account.
|
|
118
|
-
* @param labAccount Represents a lab account.
|
|
119
|
-
* @param [options] The optional parameters
|
|
120
|
-
* @returns Promise<Models.LabAccountsCreateOrUpdateResponse>
|
|
121
|
-
*/
|
|
122
|
-
createOrUpdate(resourceGroupName: string, labAccountName: string, labAccount: Models.LabAccount, options?: msRest.RequestOptionsBase): Promise<Models.LabAccountsCreateOrUpdateResponse>;
|
|
123
|
-
/**
|
|
124
|
-
* @param resourceGroupName The name of the resource group.
|
|
125
|
-
* @param labAccountName The name of the lab Account.
|
|
126
|
-
* @param labAccount Represents a lab account.
|
|
127
|
-
* @param callback The callback
|
|
128
|
-
*/
|
|
129
|
-
createOrUpdate(resourceGroupName: string, labAccountName: string, labAccount: Models.LabAccount, callback: msRest.ServiceCallback<Models.LabAccount>): void;
|
|
130
|
-
/**
|
|
131
|
-
* @param resourceGroupName The name of the resource group.
|
|
132
|
-
* @param labAccountName The name of the lab Account.
|
|
133
|
-
* @param labAccount Represents a lab account.
|
|
134
|
-
* @param options The optional parameters
|
|
135
|
-
* @param callback The callback
|
|
136
|
-
*/
|
|
137
|
-
createOrUpdate(resourceGroupName: string, labAccountName: string, labAccount: Models.LabAccount, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.LabAccount>): void;
|
|
138
|
-
createOrUpdate(resourceGroupName: string, labAccountName: string, labAccount: Models.LabAccount, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.LabAccount>, callback?: msRest.ServiceCallback<Models.LabAccount>): Promise<Models.LabAccountsCreateOrUpdateResponse> {
|
|
139
|
-
return this.client.sendOperationRequest(
|
|
140
|
-
{
|
|
141
|
-
resourceGroupName,
|
|
142
|
-
labAccountName,
|
|
143
|
-
labAccount,
|
|
144
|
-
options
|
|
145
|
-
},
|
|
146
|
-
createOrUpdateOperationSpec,
|
|
147
|
-
callback) as Promise<Models.LabAccountsCreateOrUpdateResponse>;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Delete lab account. This operation can take a while to complete
|
|
152
|
-
* @param resourceGroupName The name of the resource group.
|
|
153
|
-
* @param labAccountName The name of the lab Account.
|
|
154
|
-
* @param [options] The optional parameters
|
|
155
|
-
* @returns Promise<msRest.RestResponse>
|
|
156
|
-
*/
|
|
157
|
-
deleteMethod(resourceGroupName: string, labAccountName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
|
|
158
|
-
return this.beginDeleteMethod(resourceGroupName,labAccountName,options)
|
|
159
|
-
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Modify properties of lab accounts.
|
|
164
|
-
* @param resourceGroupName The name of the resource group.
|
|
165
|
-
* @param labAccountName The name of the lab Account.
|
|
166
|
-
* @param labAccount Represents a lab account.
|
|
167
|
-
* @param [options] The optional parameters
|
|
168
|
-
* @returns Promise<Models.LabAccountsUpdateResponse>
|
|
169
|
-
*/
|
|
170
|
-
update(resourceGroupName: string, labAccountName: string, labAccount: Models.LabAccountFragment, options?: msRest.RequestOptionsBase): Promise<Models.LabAccountsUpdateResponse>;
|
|
171
|
-
/**
|
|
172
|
-
* @param resourceGroupName The name of the resource group.
|
|
173
|
-
* @param labAccountName The name of the lab Account.
|
|
174
|
-
* @param labAccount Represents a lab account.
|
|
175
|
-
* @param callback The callback
|
|
176
|
-
*/
|
|
177
|
-
update(resourceGroupName: string, labAccountName: string, labAccount: Models.LabAccountFragment, callback: msRest.ServiceCallback<Models.LabAccount>): void;
|
|
178
|
-
/**
|
|
179
|
-
* @param resourceGroupName The name of the resource group.
|
|
180
|
-
* @param labAccountName The name of the lab Account.
|
|
181
|
-
* @param labAccount Represents a lab account.
|
|
182
|
-
* @param options The optional parameters
|
|
183
|
-
* @param callback The callback
|
|
184
|
-
*/
|
|
185
|
-
update(resourceGroupName: string, labAccountName: string, labAccount: Models.LabAccountFragment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.LabAccount>): void;
|
|
186
|
-
update(resourceGroupName: string, labAccountName: string, labAccount: Models.LabAccountFragment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.LabAccount>, callback?: msRest.ServiceCallback<Models.LabAccount>): Promise<Models.LabAccountsUpdateResponse> {
|
|
187
|
-
return this.client.sendOperationRequest(
|
|
188
|
-
{
|
|
189
|
-
resourceGroupName,
|
|
190
|
-
labAccountName,
|
|
191
|
-
labAccount,
|
|
192
|
-
options
|
|
193
|
-
},
|
|
194
|
-
updateOperationSpec,
|
|
195
|
-
callback) as Promise<Models.LabAccountsUpdateResponse>;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Create a lab in a lab account.
|
|
200
|
-
* @param resourceGroupName The name of the resource group.
|
|
201
|
-
* @param labAccountName The name of the lab Account.
|
|
202
|
-
* @param createLabProperties Properties for creating a managed lab and a default environment
|
|
203
|
-
* setting
|
|
204
|
-
* @param [options] The optional parameters
|
|
205
|
-
* @returns Promise<msRest.RestResponse>
|
|
206
|
-
*/
|
|
207
|
-
createLab(resourceGroupName: string, labAccountName: string, createLabProperties: Models.CreateLabProperties, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
|
|
208
|
-
/**
|
|
209
|
-
* @param resourceGroupName The name of the resource group.
|
|
210
|
-
* @param labAccountName The name of the lab Account.
|
|
211
|
-
* @param createLabProperties Properties for creating a managed lab and a default environment
|
|
212
|
-
* setting
|
|
213
|
-
* @param callback The callback
|
|
214
|
-
*/
|
|
215
|
-
createLab(resourceGroupName: string, labAccountName: string, createLabProperties: Models.CreateLabProperties, callback: msRest.ServiceCallback<void>): void;
|
|
216
|
-
/**
|
|
217
|
-
* @param resourceGroupName The name of the resource group.
|
|
218
|
-
* @param labAccountName The name of the lab Account.
|
|
219
|
-
* @param createLabProperties Properties for creating a managed lab and a default environment
|
|
220
|
-
* setting
|
|
221
|
-
* @param options The optional parameters
|
|
222
|
-
* @param callback The callback
|
|
223
|
-
*/
|
|
224
|
-
createLab(resourceGroupName: string, labAccountName: string, createLabProperties: Models.CreateLabProperties, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
|
|
225
|
-
createLab(resourceGroupName: string, labAccountName: string, createLabProperties: Models.CreateLabProperties, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
|
|
226
|
-
return this.client.sendOperationRequest(
|
|
227
|
-
{
|
|
228
|
-
resourceGroupName,
|
|
229
|
-
labAccountName,
|
|
230
|
-
createLabProperties,
|
|
231
|
-
options
|
|
232
|
-
},
|
|
233
|
-
createLabOperationSpec,
|
|
234
|
-
callback);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* Get regional availability information for each size category configured under a lab account
|
|
239
|
-
* @param resourceGroupName The name of the resource group.
|
|
240
|
-
* @param labAccountName The name of the lab Account.
|
|
241
|
-
* @param [options] The optional parameters
|
|
242
|
-
* @returns Promise<Models.LabAccountsGetRegionalAvailabilityResponse>
|
|
243
|
-
*/
|
|
244
|
-
getRegionalAvailability(resourceGroupName: string, labAccountName: string, options?: msRest.RequestOptionsBase): Promise<Models.LabAccountsGetRegionalAvailabilityResponse>;
|
|
245
|
-
/**
|
|
246
|
-
* @param resourceGroupName The name of the resource group.
|
|
247
|
-
* @param labAccountName The name of the lab Account.
|
|
248
|
-
* @param callback The callback
|
|
249
|
-
*/
|
|
250
|
-
getRegionalAvailability(resourceGroupName: string, labAccountName: string, callback: msRest.ServiceCallback<Models.GetRegionalAvailabilityResponse>): void;
|
|
251
|
-
/**
|
|
252
|
-
* @param resourceGroupName The name of the resource group.
|
|
253
|
-
* @param labAccountName The name of the lab Account.
|
|
254
|
-
* @param options The optional parameters
|
|
255
|
-
* @param callback The callback
|
|
256
|
-
*/
|
|
257
|
-
getRegionalAvailability(resourceGroupName: string, labAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.GetRegionalAvailabilityResponse>): void;
|
|
258
|
-
getRegionalAvailability(resourceGroupName: string, labAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.GetRegionalAvailabilityResponse>, callback?: msRest.ServiceCallback<Models.GetRegionalAvailabilityResponse>): Promise<Models.LabAccountsGetRegionalAvailabilityResponse> {
|
|
259
|
-
return this.client.sendOperationRequest(
|
|
260
|
-
{
|
|
261
|
-
resourceGroupName,
|
|
262
|
-
labAccountName,
|
|
263
|
-
options
|
|
264
|
-
},
|
|
265
|
-
getRegionalAvailabilityOperationSpec,
|
|
266
|
-
callback) as Promise<Models.LabAccountsGetRegionalAvailabilityResponse>;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Delete lab account. This operation can take a while to complete
|
|
271
|
-
* @param resourceGroupName The name of the resource group.
|
|
272
|
-
* @param labAccountName The name of the lab Account.
|
|
273
|
-
* @param [options] The optional parameters
|
|
274
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
275
|
-
*/
|
|
276
|
-
beginDeleteMethod(resourceGroupName: string, labAccountName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
277
|
-
return this.client.sendLRORequest(
|
|
278
|
-
{
|
|
279
|
-
resourceGroupName,
|
|
280
|
-
labAccountName,
|
|
281
|
-
options
|
|
282
|
-
},
|
|
283
|
-
beginDeleteMethodOperationSpec,
|
|
284
|
-
options);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* List lab accounts in a subscription.
|
|
289
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
290
|
-
* @param [options] The optional parameters
|
|
291
|
-
* @returns Promise<Models.LabAccountsListBySubscriptionNextResponse>
|
|
292
|
-
*/
|
|
293
|
-
listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.LabAccountsListBySubscriptionNextResponse>;
|
|
294
|
-
/**
|
|
295
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
296
|
-
* @param callback The callback
|
|
297
|
-
*/
|
|
298
|
-
listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ResponseWithContinuationLabAccount>): void;
|
|
299
|
-
/**
|
|
300
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
301
|
-
* @param options The optional parameters
|
|
302
|
-
* @param callback The callback
|
|
303
|
-
*/
|
|
304
|
-
listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ResponseWithContinuationLabAccount>): void;
|
|
305
|
-
listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ResponseWithContinuationLabAccount>, callback?: msRest.ServiceCallback<Models.ResponseWithContinuationLabAccount>): Promise<Models.LabAccountsListBySubscriptionNextResponse> {
|
|
306
|
-
return this.client.sendOperationRequest(
|
|
307
|
-
{
|
|
308
|
-
nextPageLink,
|
|
309
|
-
options
|
|
310
|
-
},
|
|
311
|
-
listBySubscriptionNextOperationSpec,
|
|
312
|
-
callback) as Promise<Models.LabAccountsListBySubscriptionNextResponse>;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* List lab accounts in a resource group.
|
|
317
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
318
|
-
* @param [options] The optional parameters
|
|
319
|
-
* @returns Promise<Models.LabAccountsListByResourceGroupNextResponse>
|
|
320
|
-
*/
|
|
321
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.LabAccountsListByResourceGroupNextResponse>;
|
|
322
|
-
/**
|
|
323
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
324
|
-
* @param callback The callback
|
|
325
|
-
*/
|
|
326
|
-
listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ResponseWithContinuationLabAccount>): void;
|
|
327
|
-
/**
|
|
328
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
329
|
-
* @param options The optional parameters
|
|
330
|
-
* @param callback The callback
|
|
331
|
-
*/
|
|
332
|
-
listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ResponseWithContinuationLabAccount>): void;
|
|
333
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ResponseWithContinuationLabAccount>, callback?: msRest.ServiceCallback<Models.ResponseWithContinuationLabAccount>): Promise<Models.LabAccountsListByResourceGroupNextResponse> {
|
|
334
|
-
return this.client.sendOperationRequest(
|
|
335
|
-
{
|
|
336
|
-
nextPageLink,
|
|
337
|
-
options
|
|
338
|
-
},
|
|
339
|
-
listByResourceGroupNextOperationSpec,
|
|
340
|
-
callback) as Promise<Models.LabAccountsListByResourceGroupNextResponse>;
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
// Operation Specifications
|
|
345
|
-
const serializer = new msRest.Serializer(Mappers);
|
|
346
|
-
const listBySubscriptionOperationSpec: msRest.OperationSpec = {
|
|
347
|
-
httpMethod: "GET",
|
|
348
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.LabServices/labaccounts",
|
|
349
|
-
urlParameters: [
|
|
350
|
-
Parameters.subscriptionId
|
|
351
|
-
],
|
|
352
|
-
queryParameters: [
|
|
353
|
-
Parameters.expand,
|
|
354
|
-
Parameters.filter,
|
|
355
|
-
Parameters.top,
|
|
356
|
-
Parameters.orderby,
|
|
357
|
-
Parameters.apiVersion
|
|
358
|
-
],
|
|
359
|
-
headerParameters: [
|
|
360
|
-
Parameters.acceptLanguage
|
|
361
|
-
],
|
|
362
|
-
responses: {
|
|
363
|
-
200: {
|
|
364
|
-
bodyMapper: Mappers.ResponseWithContinuationLabAccount
|
|
365
|
-
},
|
|
366
|
-
default: {
|
|
367
|
-
bodyMapper: Mappers.CloudError
|
|
368
|
-
}
|
|
369
|
-
},
|
|
370
|
-
serializer
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
374
|
-
httpMethod: "GET",
|
|
375
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts",
|
|
376
|
-
urlParameters: [
|
|
377
|
-
Parameters.subscriptionId,
|
|
378
|
-
Parameters.resourceGroupName
|
|
379
|
-
],
|
|
380
|
-
queryParameters: [
|
|
381
|
-
Parameters.expand,
|
|
382
|
-
Parameters.filter,
|
|
383
|
-
Parameters.top,
|
|
384
|
-
Parameters.orderby,
|
|
385
|
-
Parameters.apiVersion
|
|
386
|
-
],
|
|
387
|
-
headerParameters: [
|
|
388
|
-
Parameters.acceptLanguage
|
|
389
|
-
],
|
|
390
|
-
responses: {
|
|
391
|
-
200: {
|
|
392
|
-
bodyMapper: Mappers.ResponseWithContinuationLabAccount
|
|
393
|
-
},
|
|
394
|
-
default: {
|
|
395
|
-
bodyMapper: Mappers.CloudError
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
serializer
|
|
399
|
-
};
|
|
400
|
-
|
|
401
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
402
|
-
httpMethod: "GET",
|
|
403
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}",
|
|
404
|
-
urlParameters: [
|
|
405
|
-
Parameters.subscriptionId,
|
|
406
|
-
Parameters.resourceGroupName,
|
|
407
|
-
Parameters.labAccountName
|
|
408
|
-
],
|
|
409
|
-
queryParameters: [
|
|
410
|
-
Parameters.expand,
|
|
411
|
-
Parameters.apiVersion
|
|
412
|
-
],
|
|
413
|
-
headerParameters: [
|
|
414
|
-
Parameters.acceptLanguage
|
|
415
|
-
],
|
|
416
|
-
responses: {
|
|
417
|
-
200: {
|
|
418
|
-
bodyMapper: Mappers.LabAccount
|
|
419
|
-
},
|
|
420
|
-
default: {
|
|
421
|
-
bodyMapper: Mappers.CloudError
|
|
422
|
-
}
|
|
423
|
-
},
|
|
424
|
-
serializer
|
|
425
|
-
};
|
|
426
|
-
|
|
427
|
-
const createOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
428
|
-
httpMethod: "PUT",
|
|
429
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}",
|
|
430
|
-
urlParameters: [
|
|
431
|
-
Parameters.subscriptionId,
|
|
432
|
-
Parameters.resourceGroupName,
|
|
433
|
-
Parameters.labAccountName
|
|
434
|
-
],
|
|
435
|
-
queryParameters: [
|
|
436
|
-
Parameters.apiVersion
|
|
437
|
-
],
|
|
438
|
-
headerParameters: [
|
|
439
|
-
Parameters.acceptLanguage
|
|
440
|
-
],
|
|
441
|
-
requestBody: {
|
|
442
|
-
parameterPath: "labAccount",
|
|
443
|
-
mapper: {
|
|
444
|
-
...Mappers.LabAccount,
|
|
445
|
-
required: true
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
responses: {
|
|
449
|
-
200: {
|
|
450
|
-
bodyMapper: Mappers.LabAccount
|
|
451
|
-
},
|
|
452
|
-
201: {
|
|
453
|
-
bodyMapper: Mappers.LabAccount
|
|
454
|
-
},
|
|
455
|
-
default: {
|
|
456
|
-
bodyMapper: Mappers.CloudError
|
|
457
|
-
}
|
|
458
|
-
},
|
|
459
|
-
serializer
|
|
460
|
-
};
|
|
461
|
-
|
|
462
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
463
|
-
httpMethod: "PATCH",
|
|
464
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}",
|
|
465
|
-
urlParameters: [
|
|
466
|
-
Parameters.subscriptionId,
|
|
467
|
-
Parameters.resourceGroupName,
|
|
468
|
-
Parameters.labAccountName
|
|
469
|
-
],
|
|
470
|
-
queryParameters: [
|
|
471
|
-
Parameters.apiVersion
|
|
472
|
-
],
|
|
473
|
-
headerParameters: [
|
|
474
|
-
Parameters.acceptLanguage
|
|
475
|
-
],
|
|
476
|
-
requestBody: {
|
|
477
|
-
parameterPath: "labAccount",
|
|
478
|
-
mapper: {
|
|
479
|
-
...Mappers.LabAccountFragment,
|
|
480
|
-
required: true
|
|
481
|
-
}
|
|
482
|
-
},
|
|
483
|
-
responses: {
|
|
484
|
-
200: {
|
|
485
|
-
bodyMapper: Mappers.LabAccount
|
|
486
|
-
},
|
|
487
|
-
default: {
|
|
488
|
-
bodyMapper: Mappers.CloudError
|
|
489
|
-
}
|
|
490
|
-
},
|
|
491
|
-
serializer
|
|
492
|
-
};
|
|
493
|
-
|
|
494
|
-
const createLabOperationSpec: msRest.OperationSpec = {
|
|
495
|
-
httpMethod: "POST",
|
|
496
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/createLab",
|
|
497
|
-
urlParameters: [
|
|
498
|
-
Parameters.subscriptionId,
|
|
499
|
-
Parameters.resourceGroupName,
|
|
500
|
-
Parameters.labAccountName
|
|
501
|
-
],
|
|
502
|
-
queryParameters: [
|
|
503
|
-
Parameters.apiVersion
|
|
504
|
-
],
|
|
505
|
-
headerParameters: [
|
|
506
|
-
Parameters.acceptLanguage
|
|
507
|
-
],
|
|
508
|
-
requestBody: {
|
|
509
|
-
parameterPath: "createLabProperties",
|
|
510
|
-
mapper: {
|
|
511
|
-
...Mappers.CreateLabProperties,
|
|
512
|
-
required: true
|
|
513
|
-
}
|
|
514
|
-
},
|
|
515
|
-
responses: {
|
|
516
|
-
200: {},
|
|
517
|
-
default: {
|
|
518
|
-
bodyMapper: Mappers.CloudError
|
|
519
|
-
}
|
|
520
|
-
},
|
|
521
|
-
serializer
|
|
522
|
-
};
|
|
523
|
-
|
|
524
|
-
const getRegionalAvailabilityOperationSpec: msRest.OperationSpec = {
|
|
525
|
-
httpMethod: "POST",
|
|
526
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/getRegionalAvailability",
|
|
527
|
-
urlParameters: [
|
|
528
|
-
Parameters.subscriptionId,
|
|
529
|
-
Parameters.resourceGroupName,
|
|
530
|
-
Parameters.labAccountName
|
|
531
|
-
],
|
|
532
|
-
queryParameters: [
|
|
533
|
-
Parameters.apiVersion
|
|
534
|
-
],
|
|
535
|
-
headerParameters: [
|
|
536
|
-
Parameters.acceptLanguage
|
|
537
|
-
],
|
|
538
|
-
responses: {
|
|
539
|
-
200: {
|
|
540
|
-
bodyMapper: Mappers.GetRegionalAvailabilityResponse
|
|
541
|
-
},
|
|
542
|
-
default: {
|
|
543
|
-
bodyMapper: Mappers.CloudError
|
|
544
|
-
}
|
|
545
|
-
},
|
|
546
|
-
serializer
|
|
547
|
-
};
|
|
548
|
-
|
|
549
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
550
|
-
httpMethod: "DELETE",
|
|
551
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}",
|
|
552
|
-
urlParameters: [
|
|
553
|
-
Parameters.subscriptionId,
|
|
554
|
-
Parameters.resourceGroupName,
|
|
555
|
-
Parameters.labAccountName
|
|
556
|
-
],
|
|
557
|
-
queryParameters: [
|
|
558
|
-
Parameters.apiVersion
|
|
559
|
-
],
|
|
560
|
-
headerParameters: [
|
|
561
|
-
Parameters.acceptLanguage
|
|
562
|
-
],
|
|
563
|
-
responses: {
|
|
564
|
-
202: {},
|
|
565
|
-
204: {},
|
|
566
|
-
default: {
|
|
567
|
-
bodyMapper: Mappers.CloudError
|
|
568
|
-
}
|
|
569
|
-
},
|
|
570
|
-
serializer
|
|
571
|
-
};
|
|
572
|
-
|
|
573
|
-
const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
|
|
574
|
-
httpMethod: "GET",
|
|
575
|
-
baseUrl: "https://management.azure.com",
|
|
576
|
-
path: "{nextLink}",
|
|
577
|
-
urlParameters: [
|
|
578
|
-
Parameters.nextPageLink
|
|
579
|
-
],
|
|
580
|
-
headerParameters: [
|
|
581
|
-
Parameters.acceptLanguage
|
|
582
|
-
],
|
|
583
|
-
responses: {
|
|
584
|
-
200: {
|
|
585
|
-
bodyMapper: Mappers.ResponseWithContinuationLabAccount
|
|
586
|
-
},
|
|
587
|
-
default: {
|
|
588
|
-
bodyMapper: Mappers.CloudError
|
|
589
|
-
}
|
|
590
|
-
},
|
|
591
|
-
serializer
|
|
592
|
-
};
|
|
593
|
-
|
|
594
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
595
|
-
httpMethod: "GET",
|
|
596
|
-
baseUrl: "https://management.azure.com",
|
|
597
|
-
path: "{nextLink}",
|
|
598
|
-
urlParameters: [
|
|
599
|
-
Parameters.nextPageLink
|
|
600
|
-
],
|
|
601
|
-
headerParameters: [
|
|
602
|
-
Parameters.acceptLanguage
|
|
603
|
-
],
|
|
604
|
-
responses: {
|
|
605
|
-
200: {
|
|
606
|
-
bodyMapper: Mappers.ResponseWithContinuationLabAccount
|
|
607
|
-
},
|
|
608
|
-
default: {
|
|
609
|
-
bodyMapper: Mappers.CloudError
|
|
610
|
-
}
|
|
611
|
-
},
|
|
612
|
-
serializer
|
|
613
|
-
};
|