@azure/arm-storagemover 1.0.0-beta.1 → 1.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/CHANGELOG.md +1 -1
- package/README.md +1 -1
- package/dist/index.js +65 -53
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/agentsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/agentsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/agentsGetSample.js +1 -1
- package/dist-esm/samples-dev/agentsListSample.js +1 -1
- package/dist-esm/samples-dev/agentsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/endpointsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/endpointsGetSample.js +1 -1
- package/dist-esm/samples-dev/endpointsListSample.js +1 -1
- package/dist-esm/samples-dev/endpointsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/jobDefinitionsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/jobDefinitionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/jobDefinitionsGetSample.js +1 -1
- package/dist-esm/samples-dev/jobDefinitionsListSample.js +1 -1
- package/dist-esm/samples-dev/jobDefinitionsStartJobSample.js +1 -1
- package/dist-esm/samples-dev/jobDefinitionsStopJobSample.js +1 -1
- package/dist-esm/samples-dev/jobDefinitionsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/jobRunsGetSample.js +1 -1
- package/dist-esm/samples-dev/jobRunsListSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/projectsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/projectsGetSample.js +1 -1
- package/dist-esm/samples-dev/projectsListSample.js +1 -1
- package/dist-esm/samples-dev/projectsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/storageMoversCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/storageMoversDeleteSample.js +1 -1
- package/dist-esm/samples-dev/storageMoversGetSample.js +1 -1
- package/dist-esm/samples-dev/storageMoversListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/storageMoversListSample.js +1 -1
- package/dist-esm/samples-dev/storageMoversUpdateSample.js +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/agents.d.ts +2 -2
- package/dist-esm/src/operations/agents.d.ts.map +1 -1
- package/dist-esm/src/operations/agents.js +11 -7
- package/dist-esm/src/operations/agents.js.map +1 -1
- package/dist-esm/src/operations/endpoints.d.ts +2 -2
- package/dist-esm/src/operations/endpoints.d.ts.map +1 -1
- package/dist-esm/src/operations/endpoints.js +11 -7
- package/dist-esm/src/operations/endpoints.js.map +1 -1
- package/dist-esm/src/operations/jobDefinitions.d.ts +2 -2
- package/dist-esm/src/operations/jobDefinitions.d.ts.map +1 -1
- package/dist-esm/src/operations/jobDefinitions.js +17 -13
- package/dist-esm/src/operations/jobDefinitions.js.map +1 -1
- package/dist-esm/src/operations/projects.d.ts +2 -2
- package/dist-esm/src/operations/projects.d.ts.map +1 -1
- package/dist-esm/src/operations/projects.js +11 -7
- package/dist-esm/src/operations/projects.js.map +1 -1
- package/dist-esm/src/operations/storageMovers.d.ts +2 -2
- package/dist-esm/src/operations/storageMovers.d.ts.map +1 -1
- package/dist-esm/src/operations/storageMovers.js +11 -7
- package/dist-esm/src/operations/storageMovers.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/agents.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/agents.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/endpoints.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/endpoints.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/jobDefinitions.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/jobDefinitions.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/projects.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/projects.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/storageMovers.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/storageMovers.d.ts.map +1 -1
- package/dist-esm/src/storageMoverClient.js +2 -2
- package/dist-esm/src/storageMoverClient.js.map +1 -1
- package/dist-esm/test/storagemover_operations_test.spec.js +259 -5
- package/dist-esm/test/storagemover_operations_test.spec.js.map +1 -1
- package/package.json +9 -9
- package/review/arm-storagemover.api.md +7 -7
- package/src/lroImpl.ts +31 -23
- package/src/models/parameters.ts +1 -1
- package/src/operations/agents.ts +16 -12
- package/src/operations/endpoints.ts +16 -12
- package/src/operations/jobDefinitions.ts +16 -12
- package/src/operations/projects.ts +16 -12
- package/src/operations/storageMovers.ts +16 -12
- package/src/operationsInterfaces/agents.ts +2 -2
- package/src/operationsInterfaces/endpoints.ts +2 -2
- package/src/operationsInterfaces/jobDefinitions.ts +2 -2
- package/src/operationsInterfaces/projects.ts +2 -2
- package/src/operationsInterfaces/storageMovers.ts +2 -2
- package/src/storageMoverClient.ts +2 -2
- package/types/arm-storagemover.d.ts +7 -7
- package/types/tsdoc-metadata.json +1 -1
|
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
|
|
|
13
13
|
import * as Mappers from "../models/mappers";
|
|
14
14
|
import * as Parameters from "../models/parameters";
|
|
15
15
|
import { StorageMoverClient } from "../storageMoverClient";
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
18
22
|
import {
|
|
19
23
|
Endpoint,
|
|
20
24
|
EndpointsListNextOptionalParams,
|
|
@@ -215,14 +219,14 @@ export class EndpointsImpl implements Endpoints {
|
|
|
215
219
|
storageMoverName: string,
|
|
216
220
|
endpointName: string,
|
|
217
221
|
options?: EndpointsDeleteOptionalParams
|
|
218
|
-
): Promise<
|
|
222
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
219
223
|
const directSendOperation = async (
|
|
220
224
|
args: coreClient.OperationArguments,
|
|
221
225
|
spec: coreClient.OperationSpec
|
|
222
226
|
): Promise<void> => {
|
|
223
227
|
return this.client.sendOperationRequest(args, spec);
|
|
224
228
|
};
|
|
225
|
-
const
|
|
229
|
+
const sendOperationFn = async (
|
|
226
230
|
args: coreClient.OperationArguments,
|
|
227
231
|
spec: coreClient.OperationSpec
|
|
228
232
|
) => {
|
|
@@ -255,15 +259,15 @@ export class EndpointsImpl implements Endpoints {
|
|
|
255
259
|
};
|
|
256
260
|
};
|
|
257
261
|
|
|
258
|
-
const lro =
|
|
259
|
-
|
|
260
|
-
{ resourceGroupName, storageMoverName, endpointName, options },
|
|
261
|
-
deleteOperationSpec
|
|
262
|
-
);
|
|
263
|
-
const poller =
|
|
264
|
-
|
|
262
|
+
const lro = createLroSpec({
|
|
263
|
+
sendOperationFn,
|
|
264
|
+
args: { resourceGroupName, storageMoverName, endpointName, options },
|
|
265
|
+
spec: deleteOperationSpec
|
|
266
|
+
});
|
|
267
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
268
|
+
restoreFrom: options?.resumeFrom,
|
|
265
269
|
intervalInMs: options?.updateIntervalInMs,
|
|
266
|
-
|
|
270
|
+
resourceLocationConfig: "location"
|
|
267
271
|
});
|
|
268
272
|
await poller.poll();
|
|
269
273
|
return poller;
|
|
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
|
|
|
13
13
|
import * as Mappers from "../models/mappers";
|
|
14
14
|
import * as Parameters from "../models/parameters";
|
|
15
15
|
import { StorageMoverClient } from "../storageMoverClient";
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
18
22
|
import {
|
|
19
23
|
JobDefinition,
|
|
20
24
|
JobDefinitionsListNextOptionalParams,
|
|
@@ -263,14 +267,14 @@ export class JobDefinitionsImpl implements JobDefinitions {
|
|
|
263
267
|
projectName: string,
|
|
264
268
|
jobDefinitionName: string,
|
|
265
269
|
options?: JobDefinitionsDeleteOptionalParams
|
|
266
|
-
): Promise<
|
|
270
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
267
271
|
const directSendOperation = async (
|
|
268
272
|
args: coreClient.OperationArguments,
|
|
269
273
|
spec: coreClient.OperationSpec
|
|
270
274
|
): Promise<void> => {
|
|
271
275
|
return this.client.sendOperationRequest(args, spec);
|
|
272
276
|
};
|
|
273
|
-
const
|
|
277
|
+
const sendOperationFn = async (
|
|
274
278
|
args: coreClient.OperationArguments,
|
|
275
279
|
spec: coreClient.OperationSpec
|
|
276
280
|
) => {
|
|
@@ -303,21 +307,21 @@ export class JobDefinitionsImpl implements JobDefinitions {
|
|
|
303
307
|
};
|
|
304
308
|
};
|
|
305
309
|
|
|
306
|
-
const lro =
|
|
307
|
-
|
|
308
|
-
{
|
|
310
|
+
const lro = createLroSpec({
|
|
311
|
+
sendOperationFn,
|
|
312
|
+
args: {
|
|
309
313
|
resourceGroupName,
|
|
310
314
|
storageMoverName,
|
|
311
315
|
projectName,
|
|
312
316
|
jobDefinitionName,
|
|
313
317
|
options
|
|
314
318
|
},
|
|
315
|
-
deleteOperationSpec
|
|
316
|
-
);
|
|
317
|
-
const poller =
|
|
318
|
-
|
|
319
|
+
spec: deleteOperationSpec
|
|
320
|
+
});
|
|
321
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
322
|
+
restoreFrom: options?.resumeFrom,
|
|
319
323
|
intervalInMs: options?.updateIntervalInMs,
|
|
320
|
-
|
|
324
|
+
resourceLocationConfig: "location"
|
|
321
325
|
});
|
|
322
326
|
await poller.poll();
|
|
323
327
|
return poller;
|
|
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
|
|
|
13
13
|
import * as Mappers from "../models/mappers";
|
|
14
14
|
import * as Parameters from "../models/parameters";
|
|
15
15
|
import { StorageMoverClient } from "../storageMoverClient";
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
18
22
|
import {
|
|
19
23
|
Project,
|
|
20
24
|
ProjectsListNextOptionalParams,
|
|
@@ -215,14 +219,14 @@ export class ProjectsImpl implements Projects {
|
|
|
215
219
|
storageMoverName: string,
|
|
216
220
|
projectName: string,
|
|
217
221
|
options?: ProjectsDeleteOptionalParams
|
|
218
|
-
): Promise<
|
|
222
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
219
223
|
const directSendOperation = async (
|
|
220
224
|
args: coreClient.OperationArguments,
|
|
221
225
|
spec: coreClient.OperationSpec
|
|
222
226
|
): Promise<void> => {
|
|
223
227
|
return this.client.sendOperationRequest(args, spec);
|
|
224
228
|
};
|
|
225
|
-
const
|
|
229
|
+
const sendOperationFn = async (
|
|
226
230
|
args: coreClient.OperationArguments,
|
|
227
231
|
spec: coreClient.OperationSpec
|
|
228
232
|
) => {
|
|
@@ -255,15 +259,15 @@ export class ProjectsImpl implements Projects {
|
|
|
255
259
|
};
|
|
256
260
|
};
|
|
257
261
|
|
|
258
|
-
const lro =
|
|
259
|
-
|
|
260
|
-
{ resourceGroupName, storageMoverName, projectName, options },
|
|
261
|
-
deleteOperationSpec
|
|
262
|
-
);
|
|
263
|
-
const poller =
|
|
264
|
-
|
|
262
|
+
const lro = createLroSpec({
|
|
263
|
+
sendOperationFn,
|
|
264
|
+
args: { resourceGroupName, storageMoverName, projectName, options },
|
|
265
|
+
spec: deleteOperationSpec
|
|
266
|
+
});
|
|
267
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
268
|
+
restoreFrom: options?.resumeFrom,
|
|
265
269
|
intervalInMs: options?.updateIntervalInMs,
|
|
266
|
-
|
|
270
|
+
resourceLocationConfig: "location"
|
|
267
271
|
});
|
|
268
272
|
await poller.poll();
|
|
269
273
|
return poller;
|
|
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
|
|
|
13
13
|
import * as Mappers from "../models/mappers";
|
|
14
14
|
import * as Parameters from "../models/parameters";
|
|
15
15
|
import { StorageMoverClient } from "../storageMoverClient";
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
18
22
|
import {
|
|
19
23
|
StorageMover,
|
|
20
24
|
StorageMoversListBySubscriptionNextOptionalParams,
|
|
@@ -259,14 +263,14 @@ export class StorageMoversImpl implements StorageMovers {
|
|
|
259
263
|
resourceGroupName: string,
|
|
260
264
|
storageMoverName: string,
|
|
261
265
|
options?: StorageMoversDeleteOptionalParams
|
|
262
|
-
): Promise<
|
|
266
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
263
267
|
const directSendOperation = async (
|
|
264
268
|
args: coreClient.OperationArguments,
|
|
265
269
|
spec: coreClient.OperationSpec
|
|
266
270
|
): Promise<void> => {
|
|
267
271
|
return this.client.sendOperationRequest(args, spec);
|
|
268
272
|
};
|
|
269
|
-
const
|
|
273
|
+
const sendOperationFn = async (
|
|
270
274
|
args: coreClient.OperationArguments,
|
|
271
275
|
spec: coreClient.OperationSpec
|
|
272
276
|
) => {
|
|
@@ -299,15 +303,15 @@ export class StorageMoversImpl implements StorageMovers {
|
|
|
299
303
|
};
|
|
300
304
|
};
|
|
301
305
|
|
|
302
|
-
const lro =
|
|
303
|
-
|
|
304
|
-
{ resourceGroupName, storageMoverName, options },
|
|
305
|
-
deleteOperationSpec
|
|
306
|
-
);
|
|
307
|
-
const poller =
|
|
308
|
-
|
|
306
|
+
const lro = createLroSpec({
|
|
307
|
+
sendOperationFn,
|
|
308
|
+
args: { resourceGroupName, storageMoverName, options },
|
|
309
|
+
spec: deleteOperationSpec
|
|
310
|
+
});
|
|
311
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
312
|
+
restoreFrom: options?.resumeFrom,
|
|
309
313
|
intervalInMs: options?.updateIntervalInMs,
|
|
310
|
-
|
|
314
|
+
resourceLocationConfig: "location"
|
|
311
315
|
});
|
|
312
316
|
await poller.poll();
|
|
313
317
|
return poller;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
Agent,
|
|
13
13
|
AgentsListOptionalParams,
|
|
@@ -90,7 +90,7 @@ export interface Agents {
|
|
|
90
90
|
storageMoverName: string,
|
|
91
91
|
agentName: string,
|
|
92
92
|
options?: AgentsDeleteOptionalParams
|
|
93
|
-
): Promise<
|
|
93
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
94
94
|
/**
|
|
95
95
|
* Deletes an Agent resource.
|
|
96
96
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
Endpoint,
|
|
13
13
|
EndpointsListOptionalParams,
|
|
@@ -91,7 +91,7 @@ export interface Endpoints {
|
|
|
91
91
|
storageMoverName: string,
|
|
92
92
|
endpointName: string,
|
|
93
93
|
options?: EndpointsDeleteOptionalParams
|
|
94
|
-
): Promise<
|
|
94
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
95
95
|
/**
|
|
96
96
|
* Deletes an Endpoint resource.
|
|
97
97
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
JobDefinition,
|
|
13
13
|
JobDefinitionsListOptionalParams,
|
|
@@ -106,7 +106,7 @@ export interface JobDefinitions {
|
|
|
106
106
|
projectName: string,
|
|
107
107
|
jobDefinitionName: string,
|
|
108
108
|
options?: JobDefinitionsDeleteOptionalParams
|
|
109
|
-
): Promise<
|
|
109
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
110
110
|
/**
|
|
111
111
|
* Deletes a Job Definition resource.
|
|
112
112
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
Project,
|
|
13
13
|
ProjectsListOptionalParams,
|
|
@@ -91,7 +91,7 @@ export interface Projects {
|
|
|
91
91
|
storageMoverName: string,
|
|
92
92
|
projectName: string,
|
|
93
93
|
options?: ProjectsDeleteOptionalParams
|
|
94
|
-
): Promise<
|
|
94
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
95
95
|
/**
|
|
96
96
|
* Deletes a Project resource.
|
|
97
97
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
StorageMover,
|
|
13
13
|
StorageMoversListBySubscriptionOptionalParams,
|
|
@@ -90,7 +90,7 @@ export interface StorageMovers {
|
|
|
90
90
|
resourceGroupName: string,
|
|
91
91
|
storageMoverName: string,
|
|
92
92
|
options?: StorageMoversDeleteOptionalParams
|
|
93
|
-
): Promise<
|
|
93
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
94
94
|
/**
|
|
95
95
|
* Deletes a Storage Mover resource.
|
|
96
96
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -66,7 +66,7 @@ export class StorageMoverClient extends coreClient.ServiceClient {
|
|
|
66
66
|
credential: credentials
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
const packageDetails = `azsdk-js-arm-storagemover/1.0.0
|
|
69
|
+
const packageDetails = `azsdk-js-arm-storagemover/1.0.0`;
|
|
70
70
|
const userAgentPrefix =
|
|
71
71
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
72
72
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -119,7 +119,7 @@ export class StorageMoverClient extends coreClient.ServiceClient {
|
|
|
119
119
|
|
|
120
120
|
// Assigning values to Constant parameters
|
|
121
121
|
this.$host = options.$host || "https://management.azure.com";
|
|
122
|
-
this.apiVersion = options.apiVersion || "
|
|
122
|
+
this.apiVersion = options.apiVersion || "2023-03-01";
|
|
123
123
|
this.operations = new OperationsImpl(this);
|
|
124
124
|
this.storageMovers = new StorageMoversImpl(this);
|
|
125
125
|
this.agents = new AgentsImpl(this);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as coreAuth from '@azure/core-auth';
|
|
2
2
|
import * as coreClient from '@azure/core-client';
|
|
3
|
+
import { OperationState } from '@azure/core-lro';
|
|
3
4
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
4
|
-
import {
|
|
5
|
-
import { PollOperationState } from '@azure/core-lro';
|
|
5
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Defines values for ActionType. \
|
|
@@ -130,7 +130,7 @@ export declare interface Agents {
|
|
|
130
130
|
* @param agentName The name of the Agent resource.
|
|
131
131
|
* @param options The options parameters.
|
|
132
132
|
*/
|
|
133
|
-
beginDelete(resourceGroupName: string, storageMoverName: string, agentName: string, options?: AgentsDeleteOptionalParams): Promise<
|
|
133
|
+
beginDelete(resourceGroupName: string, storageMoverName: string, agentName: string, options?: AgentsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
134
134
|
/**
|
|
135
135
|
* Deletes an Agent resource.
|
|
136
136
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -330,7 +330,7 @@ export declare interface Endpoints {
|
|
|
330
330
|
* @param endpointName The name of the Endpoint resource.
|
|
331
331
|
* @param options The options parameters.
|
|
332
332
|
*/
|
|
333
|
-
beginDelete(resourceGroupName: string, storageMoverName: string, endpointName: string, options?: EndpointsDeleteOptionalParams): Promise<
|
|
333
|
+
beginDelete(resourceGroupName: string, storageMoverName: string, endpointName: string, options?: EndpointsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
334
334
|
/**
|
|
335
335
|
* Deletes an Endpoint resource.
|
|
336
336
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -570,7 +570,7 @@ export declare interface JobDefinitions {
|
|
|
570
570
|
* @param jobDefinitionName The name of the Job Definition resource.
|
|
571
571
|
* @param options The options parameters.
|
|
572
572
|
*/
|
|
573
|
-
beginDelete(resourceGroupName: string, storageMoverName: string, projectName: string, jobDefinitionName: string, options?: JobDefinitionsDeleteOptionalParams): Promise<
|
|
573
|
+
beginDelete(resourceGroupName: string, storageMoverName: string, projectName: string, jobDefinitionName: string, options?: JobDefinitionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
574
574
|
/**
|
|
575
575
|
* Deletes a Job Definition resource.
|
|
576
576
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -1216,7 +1216,7 @@ export declare interface Projects {
|
|
|
1216
1216
|
* @param projectName The name of the Project resource.
|
|
1217
1217
|
* @param options The options parameters.
|
|
1218
1218
|
*/
|
|
1219
|
-
beginDelete(resourceGroupName: string, storageMoverName: string, projectName: string, options?: ProjectsDeleteOptionalParams): Promise<
|
|
1219
|
+
beginDelete(resourceGroupName: string, storageMoverName: string, projectName: string, options?: ProjectsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
1220
1220
|
/**
|
|
1221
1221
|
* Deletes a Project resource.
|
|
1222
1222
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -1411,7 +1411,7 @@ export declare interface StorageMovers {
|
|
|
1411
1411
|
* @param storageMoverName The name of the Storage Mover resource.
|
|
1412
1412
|
* @param options The options parameters.
|
|
1413
1413
|
*/
|
|
1414
|
-
beginDelete(resourceGroupName: string, storageMoverName: string, options?: StorageMoversDeleteOptionalParams): Promise<
|
|
1414
|
+
beginDelete(resourceGroupName: string, storageMoverName: string, options?: StorageMoversDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
1415
1415
|
/**
|
|
1416
1416
|
* Deletes a Storage Mover resource.
|
|
1417
1417
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|