@azure/arm-storagemover 1.0.0-alpha.20230228.1 → 1.0.0-alpha.20230303.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 +2 -12
- 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/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
# Release History
|
|
2
|
-
|
|
3
|
-
## 1.0.0
|
|
4
|
-
|
|
5
|
-
### Features Added
|
|
6
|
-
|
|
7
|
-
### Breaking Changes
|
|
8
|
-
|
|
9
|
-
### Bugs Fixed
|
|
10
|
-
|
|
11
|
-
### Other Changes
|
|
12
|
-
|
|
13
|
-
## 1.0.0-beta.1 (2023-02-07)
|
|
2
|
+
|
|
3
|
+
## 1.0.0 (2023-03-07)
|
|
14
4
|
|
|
15
5
|
The package of @azure/arm-storagemover is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The Azure Storage Mover REST API.
|
|
|
6
6
|
|
|
7
7
|
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storagemover/arm-storagemover) |
|
|
8
8
|
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-storagemover) |
|
|
9
|
-
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-storagemover
|
|
9
|
+
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-storagemover) |
|
|
10
10
|
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
|
11
11
|
|
|
12
12
|
## Getting started
|
package/dist/index.js
CHANGED
|
@@ -1416,7 +1416,7 @@ const $host = {
|
|
|
1416
1416
|
const apiVersion = {
|
|
1417
1417
|
parameterPath: "apiVersion",
|
|
1418
1418
|
mapper: {
|
|
1419
|
-
defaultValue: "
|
|
1419
|
+
defaultValue: "2023-03-01",
|
|
1420
1420
|
isConstant: true,
|
|
1421
1421
|
serializedName: "api-version",
|
|
1422
1422
|
type: {
|
|
@@ -1707,25 +1707,17 @@ const listNextOperationSpec$6 = {
|
|
|
1707
1707
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1708
1708
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1709
1709
|
*/
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
});
|
|
1722
|
-
}
|
|
1723
|
-
sendPollRequest(path) {
|
|
1724
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1725
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1726
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1727
|
-
});
|
|
1728
|
-
}
|
|
1710
|
+
function createLroSpec(inputs) {
|
|
1711
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
1712
|
+
return {
|
|
1713
|
+
requestMethod: spec.httpMethod,
|
|
1714
|
+
requestPath: spec.path,
|
|
1715
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
1716
|
+
sendPollRequest: (path, options) => {
|
|
1717
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
1718
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
1719
|
+
}
|
|
1720
|
+
};
|
|
1729
1721
|
}
|
|
1730
1722
|
|
|
1731
1723
|
/*
|
|
@@ -1921,7 +1913,7 @@ class StorageMoversImpl {
|
|
|
1921
1913
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1922
1914
|
return this.client.sendOperationRequest(args, spec);
|
|
1923
1915
|
});
|
|
1924
|
-
const
|
|
1916
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1925
1917
|
var _a;
|
|
1926
1918
|
let currentRawResponse = undefined;
|
|
1927
1919
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -1940,11 +1932,15 @@ class StorageMoversImpl {
|
|
|
1940
1932
|
}
|
|
1941
1933
|
};
|
|
1942
1934
|
});
|
|
1943
|
-
const lro =
|
|
1944
|
-
|
|
1945
|
-
|
|
1935
|
+
const lro = createLroSpec({
|
|
1936
|
+
sendOperationFn,
|
|
1937
|
+
args: { resourceGroupName, storageMoverName, options },
|
|
1938
|
+
spec: deleteOperationSpec$4
|
|
1939
|
+
});
|
|
1940
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1941
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1946
1942
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1947
|
-
|
|
1943
|
+
resourceLocationConfig: "location"
|
|
1948
1944
|
});
|
|
1949
1945
|
yield poller.poll();
|
|
1950
1946
|
return poller;
|
|
@@ -2278,7 +2274,7 @@ class AgentsImpl {
|
|
|
2278
2274
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2279
2275
|
return this.client.sendOperationRequest(args, spec);
|
|
2280
2276
|
});
|
|
2281
|
-
const
|
|
2277
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2282
2278
|
var _a;
|
|
2283
2279
|
let currentRawResponse = undefined;
|
|
2284
2280
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2297,11 +2293,15 @@ class AgentsImpl {
|
|
|
2297
2293
|
}
|
|
2298
2294
|
};
|
|
2299
2295
|
});
|
|
2300
|
-
const lro =
|
|
2301
|
-
|
|
2302
|
-
|
|
2296
|
+
const lro = createLroSpec({
|
|
2297
|
+
sendOperationFn,
|
|
2298
|
+
args: { resourceGroupName, storageMoverName, agentName, options },
|
|
2299
|
+
spec: deleteOperationSpec$3
|
|
2300
|
+
});
|
|
2301
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2302
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2303
2303
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2304
|
-
|
|
2304
|
+
resourceLocationConfig: "location"
|
|
2305
2305
|
});
|
|
2306
2306
|
yield poller.poll();
|
|
2307
2307
|
return poller;
|
|
@@ -2601,7 +2601,7 @@ class EndpointsImpl {
|
|
|
2601
2601
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2602
2602
|
return this.client.sendOperationRequest(args, spec);
|
|
2603
2603
|
});
|
|
2604
|
-
const
|
|
2604
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2605
2605
|
var _a;
|
|
2606
2606
|
let currentRawResponse = undefined;
|
|
2607
2607
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2620,11 +2620,15 @@ class EndpointsImpl {
|
|
|
2620
2620
|
}
|
|
2621
2621
|
};
|
|
2622
2622
|
});
|
|
2623
|
-
const lro =
|
|
2624
|
-
|
|
2625
|
-
|
|
2623
|
+
const lro = createLroSpec({
|
|
2624
|
+
sendOperationFn,
|
|
2625
|
+
args: { resourceGroupName, storageMoverName, endpointName, options },
|
|
2626
|
+
spec: deleteOperationSpec$2
|
|
2627
|
+
});
|
|
2628
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2629
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2626
2630
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2627
|
-
|
|
2631
|
+
resourceLocationConfig: "location"
|
|
2628
2632
|
});
|
|
2629
2633
|
yield poller.poll();
|
|
2630
2634
|
return poller;
|
|
@@ -2924,7 +2928,7 @@ class ProjectsImpl {
|
|
|
2924
2928
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2925
2929
|
return this.client.sendOperationRequest(args, spec);
|
|
2926
2930
|
});
|
|
2927
|
-
const
|
|
2931
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2928
2932
|
var _a;
|
|
2929
2933
|
let currentRawResponse = undefined;
|
|
2930
2934
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -2943,11 +2947,15 @@ class ProjectsImpl {
|
|
|
2943
2947
|
}
|
|
2944
2948
|
};
|
|
2945
2949
|
});
|
|
2946
|
-
const lro =
|
|
2947
|
-
|
|
2948
|
-
|
|
2950
|
+
const lro = createLroSpec({
|
|
2951
|
+
sendOperationFn,
|
|
2952
|
+
args: { resourceGroupName, storageMoverName, projectName, options },
|
|
2953
|
+
spec: deleteOperationSpec$1
|
|
2954
|
+
});
|
|
2955
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2956
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2949
2957
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2950
|
-
|
|
2958
|
+
resourceLocationConfig: "location"
|
|
2951
2959
|
});
|
|
2952
2960
|
yield poller.poll();
|
|
2953
2961
|
return poller;
|
|
@@ -3274,7 +3282,7 @@ class JobDefinitionsImpl {
|
|
|
3274
3282
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3275
3283
|
return this.client.sendOperationRequest(args, spec);
|
|
3276
3284
|
});
|
|
3277
|
-
const
|
|
3285
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3278
3286
|
var _a;
|
|
3279
3287
|
let currentRawResponse = undefined;
|
|
3280
3288
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -3293,17 +3301,21 @@ class JobDefinitionsImpl {
|
|
|
3293
3301
|
}
|
|
3294
3302
|
};
|
|
3295
3303
|
});
|
|
3296
|
-
const lro =
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3304
|
+
const lro = createLroSpec({
|
|
3305
|
+
sendOperationFn,
|
|
3306
|
+
args: {
|
|
3307
|
+
resourceGroupName,
|
|
3308
|
+
storageMoverName,
|
|
3309
|
+
projectName,
|
|
3310
|
+
jobDefinitionName,
|
|
3311
|
+
options
|
|
3312
|
+
},
|
|
3313
|
+
spec: deleteOperationSpec
|
|
3314
|
+
});
|
|
3315
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3316
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3305
3317
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3306
|
-
|
|
3318
|
+
resourceLocationConfig: "location"
|
|
3307
3319
|
});
|
|
3308
3320
|
yield poller.poll();
|
|
3309
3321
|
return poller;
|
|
@@ -3798,7 +3810,7 @@ class StorageMoverClient extends coreClient__namespace.ServiceClient {
|
|
|
3798
3810
|
requestContentType: "application/json; charset=utf-8",
|
|
3799
3811
|
credential: credentials
|
|
3800
3812
|
};
|
|
3801
|
-
const packageDetails = `azsdk-js-arm-storagemover/1.0.0
|
|
3813
|
+
const packageDetails = `azsdk-js-arm-storagemover/1.0.0`;
|
|
3802
3814
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3803
3815
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3804
3816
|
: `${packageDetails}`;
|
|
@@ -3831,7 +3843,7 @@ class StorageMoverClient extends coreClient__namespace.ServiceClient {
|
|
|
3831
3843
|
this.subscriptionId = subscriptionId;
|
|
3832
3844
|
// Assigning values to Constant parameters
|
|
3833
3845
|
this.$host = options.$host || "https://management.azure.com";
|
|
3834
|
-
this.apiVersion = options.apiVersion || "
|
|
3846
|
+
this.apiVersion = options.apiVersion || "2023-03-01";
|
|
3835
3847
|
this.operations = new OperationsImpl(this);
|
|
3836
3848
|
this.storageMovers = new StorageMoversImpl(this);
|
|
3837
3849
|
this.agents = new AgentsImpl(this);
|