@azure/arm-storagecache 8.1.0 → 8.2.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/README.md +2 -2
- package/dist/browser/models/index.d.ts +185 -2
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +32 -0
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +6 -0
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +183 -0
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +3 -0
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +25 -2
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/expansionJobs.d.ts +120 -0
- package/dist/browser/operations/expansionJobs.d.ts.map +1 -0
- package/dist/browser/operations/expansionJobs.js +473 -0
- package/dist/browser/operations/expansionJobs.js.map +1 -0
- package/dist/browser/operations/index.d.ts +1 -0
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +1 -0
- package/dist/browser/operations/index.js.map +1 -1
- package/dist/browser/operationsInterfaces/expansionJobs.d.ts +93 -0
- package/dist/browser/operationsInterfaces/expansionJobs.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/expansionJobs.js +4 -0
- package/dist/browser/operationsInterfaces/expansionJobs.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +1 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/storageCacheManagementClient.d.ts +2 -1
- package/dist/browser/storageCacheManagementClient.d.ts.map +1 -1
- package/dist/browser/storageCacheManagementClient.js +5 -3
- package/dist/browser/storageCacheManagementClient.js.map +1 -1
- package/dist/commonjs/index.js +35 -16
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/lroImpl.js +41 -21
- package/dist/commonjs/lroImpl.js.map +7 -1
- package/dist/commonjs/models/index.d.ts +185 -2
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +326 -386
- package/dist/commonjs/models/index.js.map +7 -1
- package/dist/commonjs/models/mappers.d.ts +6 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +4573 -4116
- package/dist/commonjs/models/mappers.js.map +7 -1
- package/dist/commonjs/models/parameters.d.ts +3 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +402 -287
- package/dist/commonjs/models/parameters.js.map +7 -1
- package/dist/commonjs/operations/amlFilesystems.js +594 -540
- package/dist/commonjs/operations/amlFilesystems.js.map +7 -1
- package/dist/commonjs/operations/ascOperations.js +79 -49
- package/dist/commonjs/operations/ascOperations.js.map +7 -1
- package/dist/commonjs/operations/ascUsages.js +141 -112
- package/dist/commonjs/operations/ascUsages.js.map +7 -1
- package/dist/commonjs/operations/autoExportJobs.js +527 -458
- package/dist/commonjs/operations/autoExportJobs.js.map +7 -1
- package/dist/commonjs/operations/autoImportJobs.js +527 -458
- package/dist/commonjs/operations/autoImportJobs.js.map +7 -1
- package/dist/commonjs/operations/caches.js +1353 -1315
- package/dist/commonjs/operations/caches.js.map +7 -1
- package/dist/commonjs/operations/expansionJobs.d.ts +120 -0
- package/dist/commonjs/operations/expansionJobs.d.ts.map +1 -0
- package/dist/commonjs/operations/expansionJobs.js +547 -0
- package/dist/commonjs/operations/expansionJobs.js.map +7 -0
- package/dist/commonjs/operations/importJobs.js +522 -453
- package/dist/commonjs/operations/importJobs.js.map +7 -1
- package/dist/commonjs/operations/index.d.ts +1 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +45 -20
- package/dist/commonjs/operations/index.js.map +7 -1
- package/dist/commonjs/operations/operations.js +133 -104
- package/dist/commonjs/operations/operations.js.map +7 -1
- package/dist/commonjs/operations/skus.js +133 -104
- package/dist/commonjs/operations/skus.js.map +7 -1
- package/dist/commonjs/operations/storageTargetOperations.js +396 -356
- package/dist/commonjs/operations/storageTargetOperations.js.map +7 -1
- package/dist/commonjs/operations/storageTargets.js +567 -508
- package/dist/commonjs/operations/storageTargets.js.map +7 -1
- package/dist/commonjs/operations/usageModels.js +133 -104
- package/dist/commonjs/operations/usageModels.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/amlFilesystems.js +15 -5
- package/dist/commonjs/operationsInterfaces/amlFilesystems.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/ascOperations.js +15 -5
- package/dist/commonjs/operationsInterfaces/ascOperations.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/ascUsages.js +15 -5
- package/dist/commonjs/operationsInterfaces/ascUsages.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/autoExportJobs.js +15 -5
- package/dist/commonjs/operationsInterfaces/autoExportJobs.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/autoImportJobs.js +15 -5
- package/dist/commonjs/operationsInterfaces/autoImportJobs.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/caches.js +15 -5
- package/dist/commonjs/operationsInterfaces/caches.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/expansionJobs.d.ts +93 -0
- package/dist/commonjs/operationsInterfaces/expansionJobs.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/expansionJobs.js +15 -0
- package/dist/commonjs/operationsInterfaces/expansionJobs.js.map +7 -0
- package/dist/commonjs/operationsInterfaces/importJobs.js +15 -5
- package/dist/commonjs/operationsInterfaces/importJobs.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +45 -20
- package/dist/commonjs/operationsInterfaces/index.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/operations.js +15 -5
- package/dist/commonjs/operationsInterfaces/operations.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/skus.js +15 -5
- package/dist/commonjs/operationsInterfaces/skus.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/storageTargetOperations.js +15 -5
- package/dist/commonjs/operationsInterfaces/storageTargetOperations.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/storageTargets.js +15 -5
- package/dist/commonjs/operationsInterfaces/storageTargets.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/usageModels.js +15 -5
- package/dist/commonjs/operationsInterfaces/usageModels.js.map +7 -1
- package/dist/commonjs/pagingHelper.js +39 -25
- package/dist/commonjs/pagingHelper.js.map +7 -1
- package/dist/commonjs/storageCacheManagementClient.d.ts +2 -1
- package/dist/commonjs/storageCacheManagementClient.d.ts.map +1 -1
- package/dist/commonjs/storageCacheManagementClient.js +198 -172
- package/dist/commonjs/storageCacheManagementClient.js.map +7 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/index.js +6 -8
- package/dist/esm/index.js.map +7 -1
- package/dist/esm/lroImpl.js +19 -19
- package/dist/esm/lroImpl.js.map +7 -1
- package/dist/esm/models/index.d.ts +185 -2
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +272 -383
- package/dist/esm/models/index.js.map +7 -1
- package/dist/esm/models/mappers.d.ts +6 -0
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +4422 -4111
- package/dist/esm/models/mappers.js.map +7 -1
- package/dist/esm/models/parameters.d.ts +3 -0
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +360 -283
- package/dist/esm/models/parameters.js.map +7 -1
- package/dist/esm/operations/amlFilesystems.js +556 -530
- package/dist/esm/operations/amlFilesystems.js.map +7 -1
- package/dist/esm/operations/ascOperations.js +44 -42
- package/dist/esm/operations/ascOperations.js.map +7 -1
- package/dist/esm/operations/ascUsages.js +105 -104
- package/dist/esm/operations/ascUsages.js.map +7 -1
- package/dist/esm/operations/autoExportJobs.js +489 -448
- package/dist/esm/operations/autoExportJobs.js.map +7 -1
- package/dist/esm/operations/autoImportJobs.js +489 -448
- package/dist/esm/operations/autoImportJobs.js.map +7 -1
- package/dist/esm/operations/caches.js +1315 -1305
- package/dist/esm/operations/caches.js.map +7 -1
- package/dist/esm/operations/expansionJobs.d.ts +120 -0
- package/dist/esm/operations/expansionJobs.d.ts.map +1 -0
- package/dist/esm/operations/expansionJobs.js +514 -0
- package/dist/esm/operations/expansionJobs.js.map +7 -0
- package/dist/esm/operations/importJobs.js +484 -443
- package/dist/esm/operations/importJobs.js.map +7 -1
- package/dist/esm/operations/index.d.ts +1 -0
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +1 -5
- package/dist/esm/operations/index.js.map +7 -1
- package/dist/esm/operations/operations.js +97 -96
- package/dist/esm/operations/operations.js.map +7 -1
- package/dist/esm/operations/skus.js +97 -96
- package/dist/esm/operations/skus.js.map +7 -1
- package/dist/esm/operations/storageTargetOperations.js +359 -347
- package/dist/esm/operations/storageTargetOperations.js.map +7 -1
- package/dist/esm/operations/storageTargets.js +529 -498
- package/dist/esm/operations/storageTargets.js.map +7 -1
- package/dist/esm/operations/usageModels.js +97 -96
- package/dist/esm/operations/usageModels.js.map +7 -1
- package/dist/esm/operationsInterfaces/amlFilesystems.js +0 -4
- package/dist/esm/operationsInterfaces/amlFilesystems.js.map +7 -1
- package/dist/esm/operationsInterfaces/ascOperations.js +0 -4
- package/dist/esm/operationsInterfaces/ascOperations.js.map +7 -1
- package/dist/esm/operationsInterfaces/ascUsages.js +0 -4
- package/dist/esm/operationsInterfaces/ascUsages.js.map +7 -1
- package/dist/esm/operationsInterfaces/autoExportJobs.js +0 -4
- package/dist/esm/operationsInterfaces/autoExportJobs.js.map +7 -1
- package/dist/esm/operationsInterfaces/autoImportJobs.js +0 -4
- package/dist/esm/operationsInterfaces/autoImportJobs.js.map +7 -1
- package/dist/esm/operationsInterfaces/caches.js +0 -4
- package/dist/esm/operationsInterfaces/caches.js.map +7 -1
- package/dist/esm/operationsInterfaces/expansionJobs.d.ts +93 -0
- package/dist/esm/operationsInterfaces/expansionJobs.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/expansionJobs.js +0 -0
- package/dist/esm/operationsInterfaces/expansionJobs.js.map +7 -0
- package/dist/esm/operationsInterfaces/importJobs.js +0 -4
- package/dist/esm/operationsInterfaces/importJobs.js.map +7 -1
- package/dist/esm/operationsInterfaces/index.d.ts +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +1 -5
- package/dist/esm/operationsInterfaces/index.js.map +7 -1
- package/dist/esm/operationsInterfaces/operations.js +0 -4
- package/dist/esm/operationsInterfaces/operations.js.map +7 -1
- package/dist/esm/operationsInterfaces/skus.js +0 -4
- package/dist/esm/operationsInterfaces/skus.js.map +7 -1
- package/dist/esm/operationsInterfaces/storageTargetOperations.js +0 -4
- package/dist/esm/operationsInterfaces/storageTargetOperations.js.map +7 -1
- package/dist/esm/operationsInterfaces/storageTargets.js +0 -4
- package/dist/esm/operationsInterfaces/storageTargets.js.map +7 -1
- package/dist/esm/operationsInterfaces/usageModels.js +0 -4
- package/dist/esm/operationsInterfaces/usageModels.js.map +7 -1
- package/dist/esm/pagingHelper.js +17 -23
- package/dist/esm/pagingHelper.js.map +7 -1
- package/dist/esm/storageCacheManagementClient.d.ts +2 -1
- package/dist/esm/storageCacheManagementClient.d.ts.map +1 -1
- package/dist/esm/storageCacheManagementClient.js +176 -164
- package/dist/esm/storageCacheManagementClient.js.map +7 -1
- package/dist/react-native/models/index.d.ts +185 -2
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +32 -0
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +6 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +183 -0
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +3 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +25 -2
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/expansionJobs.d.ts +120 -0
- package/dist/react-native/operations/expansionJobs.d.ts.map +1 -0
- package/dist/react-native/operations/expansionJobs.js +473 -0
- package/dist/react-native/operations/expansionJobs.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +1 -0
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +1 -0
- package/dist/react-native/operations/index.js.map +1 -1
- package/dist/react-native/operationsInterfaces/expansionJobs.d.ts +93 -0
- package/dist/react-native/operationsInterfaces/expansionJobs.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/expansionJobs.js +4 -0
- package/dist/react-native/operationsInterfaces/expansionJobs.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +1 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/storageCacheManagementClient.d.ts +2 -1
- package/dist/react-native/storageCacheManagementClient.d.ts.map +1 -1
- package/dist/react-native/storageCacheManagementClient.js +5 -3
- package/dist/react-native/storageCacheManagementClient.js.map +1 -1
- package/package.json +26 -38
|
@@ -1,473 +1,514 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
1
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
4
2
|
import * as coreClient from "@azure/core-client";
|
|
5
3
|
import * as Mappers from "../models/mappers.js";
|
|
6
4
|
import * as Parameters from "../models/parameters.js";
|
|
7
5
|
import { createHttpPoller } from "@azure/core-lro";
|
|
8
6
|
import { createLroSpec } from "../lroImpl.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
class ImportJobsImpl {
|
|
8
|
+
client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class ImportJobs class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client) {
|
|
14
|
+
this.client = client;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Returns all import jobs the user has access to under an AML File System.
|
|
18
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
19
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
20
|
+
* hyphens. Start and end with alphanumeric.
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
listByAmlFilesystem(resourceGroupName, amlFilesystemName, options) {
|
|
24
|
+
const iter = this.listByAmlFilesystemPagingAll(resourceGroupName, amlFilesystemName, options);
|
|
25
|
+
return {
|
|
26
|
+
next() {
|
|
27
|
+
return iter.next();
|
|
28
|
+
},
|
|
29
|
+
[Symbol.asyncIterator]() {
|
|
30
|
+
return this;
|
|
31
|
+
},
|
|
32
|
+
byPage: (settings) => {
|
|
33
|
+
if (settings?.maxPageSize) {
|
|
34
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
35
|
+
}
|
|
36
|
+
return this.listByAmlFilesystemPagingPage(
|
|
37
|
+
resourceGroupName,
|
|
38
|
+
amlFilesystemName,
|
|
39
|
+
options,
|
|
40
|
+
settings
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
async *listByAmlFilesystemPagingPage(resourceGroupName, amlFilesystemName, options, settings) {
|
|
46
|
+
let result;
|
|
47
|
+
let continuationToken = settings?.continuationToken;
|
|
48
|
+
if (!continuationToken) {
|
|
49
|
+
result = await this._listByAmlFilesystem(resourceGroupName, amlFilesystemName, options);
|
|
50
|
+
let page = result.value || [];
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
setContinuationToken(page, continuationToken);
|
|
53
|
+
yield page;
|
|
54
|
+
}
|
|
55
|
+
while (continuationToken) {
|
|
56
|
+
result = await this._listByAmlFilesystemNext(
|
|
57
|
+
resourceGroupName,
|
|
58
|
+
amlFilesystemName,
|
|
59
|
+
continuationToken,
|
|
60
|
+
options
|
|
61
|
+
);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
setContinuationToken(page, continuationToken);
|
|
65
|
+
yield page;
|
|
19
66
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const iter = this.listByAmlFilesystemPagingAll(resourceGroupName, amlFilesystemName, options);
|
|
29
|
-
return {
|
|
30
|
-
next() {
|
|
31
|
-
return iter.next();
|
|
32
|
-
},
|
|
33
|
-
[Symbol.asyncIterator]() {
|
|
34
|
-
return this;
|
|
35
|
-
},
|
|
36
|
-
byPage: (settings) => {
|
|
37
|
-
if (settings?.maxPageSize) {
|
|
38
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
|
-
}
|
|
40
|
-
return this.listByAmlFilesystemPagingPage(resourceGroupName, amlFilesystemName, options, settings);
|
|
41
|
-
},
|
|
42
|
-
};
|
|
67
|
+
}
|
|
68
|
+
async *listByAmlFilesystemPagingAll(resourceGroupName, amlFilesystemName, options) {
|
|
69
|
+
for await (const page of this.listByAmlFilesystemPagingPage(
|
|
70
|
+
resourceGroupName,
|
|
71
|
+
amlFilesystemName,
|
|
72
|
+
options
|
|
73
|
+
)) {
|
|
74
|
+
yield* page;
|
|
43
75
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Schedules an import job for deletion.
|
|
79
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
80
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
81
|
+
* hyphens. Start and end with alphanumeric.
|
|
82
|
+
* @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
|
|
83
|
+
* and end with alphanumeric.
|
|
84
|
+
* @param options The options parameters.
|
|
85
|
+
*/
|
|
86
|
+
async beginDelete(resourceGroupName, amlFilesystemName, importJobName, options) {
|
|
87
|
+
const directSendOperation = async (args, spec) => {
|
|
88
|
+
return this.client.sendOperationRequest(args, spec);
|
|
89
|
+
};
|
|
90
|
+
const sendOperationFn = async (args, spec) => {
|
|
91
|
+
let currentRawResponse = void 0;
|
|
92
|
+
const providedCallback = args.options?.onResponse;
|
|
93
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
94
|
+
currentRawResponse = rawResponse;
|
|
95
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
96
|
+
};
|
|
97
|
+
const updatedArgs = {
|
|
98
|
+
...args,
|
|
99
|
+
options: {
|
|
100
|
+
...args.options,
|
|
101
|
+
onResponse: callback
|
|
53
102
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
103
|
+
};
|
|
104
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
105
|
+
return {
|
|
106
|
+
flatResponse,
|
|
107
|
+
rawResponse: {
|
|
108
|
+
statusCode: currentRawResponse.status,
|
|
109
|
+
body: currentRawResponse.parsedBody,
|
|
110
|
+
headers: currentRawResponse.headers.toJSON()
|
|
60
111
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
const lro = createLroSpec({
|
|
115
|
+
sendOperationFn,
|
|
116
|
+
args: { resourceGroupName, amlFilesystemName, importJobName, options },
|
|
117
|
+
spec: deleteOperationSpec
|
|
118
|
+
});
|
|
119
|
+
const poller = await createHttpPoller(lro, {
|
|
120
|
+
restoreFrom: options?.resumeFrom,
|
|
121
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
122
|
+
resourceLocationConfig: "location"
|
|
123
|
+
});
|
|
124
|
+
await poller.poll();
|
|
125
|
+
return poller;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Schedules an import job for deletion.
|
|
129
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
130
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
131
|
+
* hyphens. Start and end with alphanumeric.
|
|
132
|
+
* @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
|
|
133
|
+
* and end with alphanumeric.
|
|
134
|
+
* @param options The options parameters.
|
|
135
|
+
*/
|
|
136
|
+
async beginDeleteAndWait(resourceGroupName, amlFilesystemName, importJobName, options) {
|
|
137
|
+
const poller = await this.beginDelete(
|
|
138
|
+
resourceGroupName,
|
|
139
|
+
amlFilesystemName,
|
|
140
|
+
importJobName,
|
|
141
|
+
options
|
|
142
|
+
);
|
|
143
|
+
return poller.pollUntilDone();
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Returns an import job.
|
|
147
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
148
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
149
|
+
* hyphens. Start and end with alphanumeric.
|
|
150
|
+
* @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
|
|
151
|
+
* and end with alphanumeric.
|
|
152
|
+
* @param options The options parameters.
|
|
153
|
+
*/
|
|
154
|
+
get(resourceGroupName, amlFilesystemName, importJobName, options) {
|
|
155
|
+
return this.client.sendOperationRequest(
|
|
156
|
+
{ resourceGroupName, amlFilesystemName, importJobName, options },
|
|
157
|
+
getOperationSpec
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Create or update an import job.
|
|
162
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
163
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
164
|
+
* hyphens. Start and end with alphanumeric.
|
|
165
|
+
* @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
|
|
166
|
+
* and end with alphanumeric.
|
|
167
|
+
* @param importJob Object containing the user-selectable properties of the import job. If read-only
|
|
168
|
+
* properties are included, they must match the existing values of those properties.
|
|
169
|
+
* @param options The options parameters.
|
|
170
|
+
*/
|
|
171
|
+
async beginCreateOrUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
|
|
172
|
+
const directSendOperation = async (args, spec) => {
|
|
173
|
+
return this.client.sendOperationRequest(args, spec);
|
|
174
|
+
};
|
|
175
|
+
const sendOperationFn = async (args, spec) => {
|
|
176
|
+
let currentRawResponse = void 0;
|
|
177
|
+
const providedCallback = args.options?.onResponse;
|
|
178
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
179
|
+
currentRawResponse = rawResponse;
|
|
180
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
181
|
+
};
|
|
182
|
+
const updatedArgs = {
|
|
183
|
+
...args,
|
|
184
|
+
options: {
|
|
185
|
+
...args.options,
|
|
186
|
+
onResponse: callback
|
|
65
187
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
* properties are included, they must match the existing values of those properties.
|
|
224
|
-
* @param options The options parameters.
|
|
225
|
-
*/
|
|
226
|
-
async beginUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
|
|
227
|
-
const directSendOperation = async (args, spec) => {
|
|
228
|
-
return this.client.sendOperationRequest(args, spec);
|
|
229
|
-
};
|
|
230
|
-
const sendOperationFn = async (args, spec) => {
|
|
231
|
-
let currentRawResponse = undefined;
|
|
232
|
-
const providedCallback = args.options?.onResponse;
|
|
233
|
-
const callback = (rawResponse, flatResponse) => {
|
|
234
|
-
currentRawResponse = rawResponse;
|
|
235
|
-
providedCallback?.(rawResponse, flatResponse);
|
|
236
|
-
};
|
|
237
|
-
const updatedArgs = {
|
|
238
|
-
...args,
|
|
239
|
-
options: {
|
|
240
|
-
...args.options,
|
|
241
|
-
onResponse: callback,
|
|
242
|
-
},
|
|
243
|
-
};
|
|
244
|
-
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
245
|
-
return {
|
|
246
|
-
flatResponse,
|
|
247
|
-
rawResponse: {
|
|
248
|
-
statusCode: currentRawResponse.status,
|
|
249
|
-
body: currentRawResponse.parsedBody,
|
|
250
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
251
|
-
},
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
|
-
const lro = createLroSpec({
|
|
255
|
-
sendOperationFn,
|
|
256
|
-
args: {
|
|
257
|
-
resourceGroupName,
|
|
258
|
-
amlFilesystemName,
|
|
259
|
-
importJobName,
|
|
260
|
-
importJob,
|
|
261
|
-
options,
|
|
262
|
-
},
|
|
263
|
-
spec: updateOperationSpec,
|
|
264
|
-
});
|
|
265
|
-
const poller = await createHttpPoller(lro, {
|
|
266
|
-
restoreFrom: options?.resumeFrom,
|
|
267
|
-
intervalInMs: options?.updateIntervalInMs,
|
|
268
|
-
resourceLocationConfig: "azure-async-operation",
|
|
269
|
-
});
|
|
270
|
-
await poller.poll();
|
|
271
|
-
return poller;
|
|
272
|
-
}
|
|
273
|
-
/**
|
|
274
|
-
* Update an import job instance.
|
|
275
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
276
|
-
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
277
|
-
* hyphens. Start and end with alphanumeric.
|
|
278
|
-
* @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
|
|
279
|
-
* and end with alphanumeric.
|
|
280
|
-
* @param importJob Object containing the user-selectable properties of the import job. If read-only
|
|
281
|
-
* properties are included, they must match the existing values of those properties.
|
|
282
|
-
* @param options The options parameters.
|
|
283
|
-
*/
|
|
284
|
-
async beginUpdateAndWait(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
|
|
285
|
-
const poller = await this.beginUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options);
|
|
286
|
-
return poller.pollUntilDone();
|
|
287
|
-
}
|
|
288
|
-
/**
|
|
289
|
-
* Returns all import jobs the user has access to under an AML File System.
|
|
290
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
291
|
-
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
292
|
-
* hyphens. Start and end with alphanumeric.
|
|
293
|
-
* @param options The options parameters.
|
|
294
|
-
*/
|
|
295
|
-
_listByAmlFilesystem(resourceGroupName, amlFilesystemName, options) {
|
|
296
|
-
return this.client.sendOperationRequest({ resourceGroupName, amlFilesystemName, options }, listByAmlFilesystemOperationSpec);
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* ListByAmlFilesystemNext
|
|
300
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
301
|
-
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
302
|
-
* hyphens. Start and end with alphanumeric.
|
|
303
|
-
* @param nextLink The nextLink from the previous successful call to the ListByAmlFilesystem method.
|
|
304
|
-
* @param options The options parameters.
|
|
305
|
-
*/
|
|
306
|
-
_listByAmlFilesystemNext(resourceGroupName, amlFilesystemName, nextLink, options) {
|
|
307
|
-
return this.client.sendOperationRequest({ resourceGroupName, amlFilesystemName, nextLink, options }, listByAmlFilesystemNextOperationSpec);
|
|
308
|
-
}
|
|
188
|
+
};
|
|
189
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
190
|
+
return {
|
|
191
|
+
flatResponse,
|
|
192
|
+
rawResponse: {
|
|
193
|
+
statusCode: currentRawResponse.status,
|
|
194
|
+
body: currentRawResponse.parsedBody,
|
|
195
|
+
headers: currentRawResponse.headers.toJSON()
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
const lro = createLroSpec({
|
|
200
|
+
sendOperationFn,
|
|
201
|
+
args: {
|
|
202
|
+
resourceGroupName,
|
|
203
|
+
amlFilesystemName,
|
|
204
|
+
importJobName,
|
|
205
|
+
importJob,
|
|
206
|
+
options
|
|
207
|
+
},
|
|
208
|
+
spec: createOrUpdateOperationSpec
|
|
209
|
+
});
|
|
210
|
+
const poller = await createHttpPoller(lro, {
|
|
211
|
+
restoreFrom: options?.resumeFrom,
|
|
212
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
213
|
+
resourceLocationConfig: "azure-async-operation"
|
|
214
|
+
});
|
|
215
|
+
await poller.poll();
|
|
216
|
+
return poller;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Create or update an import job.
|
|
220
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
221
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
222
|
+
* hyphens. Start and end with alphanumeric.
|
|
223
|
+
* @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
|
|
224
|
+
* and end with alphanumeric.
|
|
225
|
+
* @param importJob Object containing the user-selectable properties of the import job. If read-only
|
|
226
|
+
* properties are included, they must match the existing values of those properties.
|
|
227
|
+
* @param options The options parameters.
|
|
228
|
+
*/
|
|
229
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
|
|
230
|
+
const poller = await this.beginCreateOrUpdate(
|
|
231
|
+
resourceGroupName,
|
|
232
|
+
amlFilesystemName,
|
|
233
|
+
importJobName,
|
|
234
|
+
importJob,
|
|
235
|
+
options
|
|
236
|
+
);
|
|
237
|
+
return poller.pollUntilDone();
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Update an import job instance.
|
|
241
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
242
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
243
|
+
* hyphens. Start and end with alphanumeric.
|
|
244
|
+
* @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
|
|
245
|
+
* and end with alphanumeric.
|
|
246
|
+
* @param importJob Object containing the user-selectable properties of the import job. If read-only
|
|
247
|
+
* properties are included, they must match the existing values of those properties.
|
|
248
|
+
* @param options The options parameters.
|
|
249
|
+
*/
|
|
250
|
+
async beginUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
|
|
251
|
+
const directSendOperation = async (args, spec) => {
|
|
252
|
+
return this.client.sendOperationRequest(args, spec);
|
|
253
|
+
};
|
|
254
|
+
const sendOperationFn = async (args, spec) => {
|
|
255
|
+
let currentRawResponse = void 0;
|
|
256
|
+
const providedCallback = args.options?.onResponse;
|
|
257
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
258
|
+
currentRawResponse = rawResponse;
|
|
259
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
260
|
+
};
|
|
261
|
+
const updatedArgs = {
|
|
262
|
+
...args,
|
|
263
|
+
options: {
|
|
264
|
+
...args.options,
|
|
265
|
+
onResponse: callback
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
269
|
+
return {
|
|
270
|
+
flatResponse,
|
|
271
|
+
rawResponse: {
|
|
272
|
+
statusCode: currentRawResponse.status,
|
|
273
|
+
body: currentRawResponse.parsedBody,
|
|
274
|
+
headers: currentRawResponse.headers.toJSON()
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
const lro = createLroSpec({
|
|
279
|
+
sendOperationFn,
|
|
280
|
+
args: {
|
|
281
|
+
resourceGroupName,
|
|
282
|
+
amlFilesystemName,
|
|
283
|
+
importJobName,
|
|
284
|
+
importJob,
|
|
285
|
+
options
|
|
286
|
+
},
|
|
287
|
+
spec: updateOperationSpec
|
|
288
|
+
});
|
|
289
|
+
const poller = await createHttpPoller(lro, {
|
|
290
|
+
restoreFrom: options?.resumeFrom,
|
|
291
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
292
|
+
resourceLocationConfig: "azure-async-operation"
|
|
293
|
+
});
|
|
294
|
+
await poller.poll();
|
|
295
|
+
return poller;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Update an import job instance.
|
|
299
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
300
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
301
|
+
* hyphens. Start and end with alphanumeric.
|
|
302
|
+
* @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
|
|
303
|
+
* and end with alphanumeric.
|
|
304
|
+
* @param importJob Object containing the user-selectable properties of the import job. If read-only
|
|
305
|
+
* properties are included, they must match the existing values of those properties.
|
|
306
|
+
* @param options The options parameters.
|
|
307
|
+
*/
|
|
308
|
+
async beginUpdateAndWait(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
|
|
309
|
+
const poller = await this.beginUpdate(
|
|
310
|
+
resourceGroupName,
|
|
311
|
+
amlFilesystemName,
|
|
312
|
+
importJobName,
|
|
313
|
+
importJob,
|
|
314
|
+
options
|
|
315
|
+
);
|
|
316
|
+
return poller.pollUntilDone();
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Returns all import jobs the user has access to under an AML File System.
|
|
320
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
321
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
322
|
+
* hyphens. Start and end with alphanumeric.
|
|
323
|
+
* @param options The options parameters.
|
|
324
|
+
*/
|
|
325
|
+
_listByAmlFilesystem(resourceGroupName, amlFilesystemName, options) {
|
|
326
|
+
return this.client.sendOperationRequest(
|
|
327
|
+
{ resourceGroupName, amlFilesystemName, options },
|
|
328
|
+
listByAmlFilesystemOperationSpec
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* ListByAmlFilesystemNext
|
|
333
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
334
|
+
* @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
|
|
335
|
+
* hyphens. Start and end with alphanumeric.
|
|
336
|
+
* @param nextLink The nextLink from the previous successful call to the ListByAmlFilesystem method.
|
|
337
|
+
* @param options The options parameters.
|
|
338
|
+
*/
|
|
339
|
+
_listByAmlFilesystemNext(resourceGroupName, amlFilesystemName, nextLink, options) {
|
|
340
|
+
return this.client.sendOperationRequest(
|
|
341
|
+
{ resourceGroupName, amlFilesystemName, nextLink, options },
|
|
342
|
+
listByAmlFilesystemNextOperationSpec
|
|
343
|
+
);
|
|
344
|
+
}
|
|
309
345
|
}
|
|
310
|
-
|
|
311
|
-
|
|
346
|
+
const serializer = coreClient.createSerializer(
|
|
347
|
+
Mappers,
|
|
348
|
+
/* isXml */
|
|
349
|
+
false
|
|
350
|
+
);
|
|
312
351
|
const deleteOperationSpec = {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
},
|
|
319
|
-
201: {
|
|
320
|
-
headersMapper: Mappers.ImportJobsDeleteHeaders,
|
|
321
|
-
},
|
|
322
|
-
202: {
|
|
323
|
-
headersMapper: Mappers.ImportJobsDeleteHeaders,
|
|
324
|
-
},
|
|
325
|
-
204: {
|
|
326
|
-
headersMapper: Mappers.ImportJobsDeleteHeaders,
|
|
327
|
-
},
|
|
328
|
-
default: {
|
|
329
|
-
bodyMapper: Mappers.ErrorResponse,
|
|
330
|
-
},
|
|
352
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}",
|
|
353
|
+
httpMethod: "DELETE",
|
|
354
|
+
responses: {
|
|
355
|
+
200: {
|
|
356
|
+
headersMapper: Mappers.ImportJobsDeleteHeaders
|
|
331
357
|
},
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
358
|
+
201: {
|
|
359
|
+
headersMapper: Mappers.ImportJobsDeleteHeaders
|
|
360
|
+
},
|
|
361
|
+
202: {
|
|
362
|
+
headersMapper: Mappers.ImportJobsDeleteHeaders
|
|
363
|
+
},
|
|
364
|
+
204: {
|
|
365
|
+
headersMapper: Mappers.ImportJobsDeleteHeaders
|
|
366
|
+
},
|
|
367
|
+
default: {
|
|
368
|
+
bodyMapper: Mappers.ErrorResponse
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
queryParameters: [Parameters.apiVersion],
|
|
372
|
+
urlParameters: [
|
|
373
|
+
Parameters.$host,
|
|
374
|
+
Parameters.subscriptionId,
|
|
375
|
+
Parameters.resourceGroupName,
|
|
376
|
+
Parameters.amlFilesystemName,
|
|
377
|
+
Parameters.importJobName
|
|
378
|
+
],
|
|
379
|
+
headerParameters: [Parameters.accept],
|
|
380
|
+
serializer
|
|
342
381
|
};
|
|
343
382
|
const getOperationSpec = {
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
},
|
|
350
|
-
default: {
|
|
351
|
-
bodyMapper: Mappers.ErrorResponse,
|
|
352
|
-
},
|
|
383
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}",
|
|
384
|
+
httpMethod: "GET",
|
|
385
|
+
responses: {
|
|
386
|
+
200: {
|
|
387
|
+
bodyMapper: Mappers.ImportJob
|
|
353
388
|
},
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
389
|
+
default: {
|
|
390
|
+
bodyMapper: Mappers.ErrorResponse
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
queryParameters: [Parameters.apiVersion],
|
|
394
|
+
urlParameters: [
|
|
395
|
+
Parameters.$host,
|
|
396
|
+
Parameters.subscriptionId,
|
|
397
|
+
Parameters.resourceGroupName,
|
|
398
|
+
Parameters.amlFilesystemName,
|
|
399
|
+
Parameters.importJobName
|
|
400
|
+
],
|
|
401
|
+
headerParameters: [Parameters.accept],
|
|
402
|
+
serializer
|
|
364
403
|
};
|
|
365
404
|
const createOrUpdateOperationSpec = {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
},
|
|
381
|
-
default: {
|
|
382
|
-
bodyMapper: Mappers.ErrorResponse,
|
|
383
|
-
},
|
|
405
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}",
|
|
406
|
+
httpMethod: "PUT",
|
|
407
|
+
responses: {
|
|
408
|
+
200: {
|
|
409
|
+
bodyMapper: Mappers.ImportJob
|
|
410
|
+
},
|
|
411
|
+
201: {
|
|
412
|
+
bodyMapper: Mappers.ImportJob
|
|
413
|
+
},
|
|
414
|
+
202: {
|
|
415
|
+
bodyMapper: Mappers.ImportJob
|
|
416
|
+
},
|
|
417
|
+
204: {
|
|
418
|
+
bodyMapper: Mappers.ImportJob
|
|
384
419
|
},
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
420
|
+
default: {
|
|
421
|
+
bodyMapper: Mappers.ErrorResponse
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
requestBody: Parameters.importJob,
|
|
425
|
+
queryParameters: [Parameters.apiVersion],
|
|
426
|
+
urlParameters: [
|
|
427
|
+
Parameters.$host,
|
|
428
|
+
Parameters.subscriptionId,
|
|
429
|
+
Parameters.resourceGroupName,
|
|
430
|
+
Parameters.amlFilesystemName,
|
|
431
|
+
Parameters.importJobName
|
|
432
|
+
],
|
|
433
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
434
|
+
mediaType: "json",
|
|
435
|
+
serializer
|
|
397
436
|
};
|
|
398
437
|
const updateOperationSpec = {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
},
|
|
414
|
-
default: {
|
|
415
|
-
bodyMapper: Mappers.ErrorResponse,
|
|
416
|
-
},
|
|
438
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}",
|
|
439
|
+
httpMethod: "PATCH",
|
|
440
|
+
responses: {
|
|
441
|
+
200: {
|
|
442
|
+
bodyMapper: Mappers.ImportJob
|
|
443
|
+
},
|
|
444
|
+
201: {
|
|
445
|
+
bodyMapper: Mappers.ImportJob
|
|
446
|
+
},
|
|
447
|
+
202: {
|
|
448
|
+
bodyMapper: Mappers.ImportJob
|
|
449
|
+
},
|
|
450
|
+
204: {
|
|
451
|
+
bodyMapper: Mappers.ImportJob
|
|
417
452
|
},
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
453
|
+
default: {
|
|
454
|
+
bodyMapper: Mappers.ErrorResponse
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
requestBody: Parameters.importJob1,
|
|
458
|
+
queryParameters: [Parameters.apiVersion],
|
|
459
|
+
urlParameters: [
|
|
460
|
+
Parameters.$host,
|
|
461
|
+
Parameters.subscriptionId,
|
|
462
|
+
Parameters.resourceGroupName,
|
|
463
|
+
Parameters.amlFilesystemName,
|
|
464
|
+
Parameters.importJobName
|
|
465
|
+
],
|
|
466
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
467
|
+
mediaType: "json",
|
|
468
|
+
serializer
|
|
430
469
|
};
|
|
431
470
|
const listByAmlFilesystemOperationSpec = {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
},
|
|
438
|
-
default: {
|
|
439
|
-
bodyMapper: Mappers.CloudError,
|
|
440
|
-
},
|
|
471
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs",
|
|
472
|
+
httpMethod: "GET",
|
|
473
|
+
responses: {
|
|
474
|
+
200: {
|
|
475
|
+
bodyMapper: Mappers.ImportJobsListResult
|
|
441
476
|
},
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
477
|
+
default: {
|
|
478
|
+
bodyMapper: Mappers.CloudError
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
queryParameters: [Parameters.apiVersion],
|
|
482
|
+
urlParameters: [
|
|
483
|
+
Parameters.$host,
|
|
484
|
+
Parameters.subscriptionId,
|
|
485
|
+
Parameters.resourceGroupName,
|
|
486
|
+
Parameters.amlFilesystemName
|
|
487
|
+
],
|
|
488
|
+
headerParameters: [Parameters.accept],
|
|
489
|
+
serializer
|
|
451
490
|
};
|
|
452
491
|
const listByAmlFilesystemNextOperationSpec = {
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
},
|
|
459
|
-
default: {
|
|
460
|
-
bodyMapper: Mappers.CloudError,
|
|
461
|
-
},
|
|
492
|
+
path: "{nextLink}",
|
|
493
|
+
httpMethod: "GET",
|
|
494
|
+
responses: {
|
|
495
|
+
200: {
|
|
496
|
+
bodyMapper: Mappers.ImportJobsListResult
|
|
462
497
|
},
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
498
|
+
default: {
|
|
499
|
+
bodyMapper: Mappers.CloudError
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
urlParameters: [
|
|
503
|
+
Parameters.$host,
|
|
504
|
+
Parameters.subscriptionId,
|
|
505
|
+
Parameters.resourceGroupName,
|
|
506
|
+
Parameters.amlFilesystemName,
|
|
507
|
+
Parameters.nextLink
|
|
508
|
+
],
|
|
509
|
+
headerParameters: [Parameters.accept],
|
|
510
|
+
serializer
|
|
511
|
+
};
|
|
512
|
+
export {
|
|
513
|
+
ImportJobsImpl
|
|
472
514
|
};
|
|
473
|
-
//# sourceMappingURL=importJobs.js.map
|