@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,528 +1,559 @@
|
|
|
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 StorageTargetsImpl {
|
|
8
|
+
client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class StorageTargets class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client) {
|
|
14
|
+
this.client = client;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Returns a list of Storage Targets for the specified cache.
|
|
18
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
19
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
20
|
+
* the [-0-9a-zA-Z_] char class.
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
listByCache(resourceGroupName, cacheName, options) {
|
|
24
|
+
const iter = this.listByCachePagingAll(resourceGroupName, cacheName, 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.listByCachePagingPage(resourceGroupName, cacheName, options, settings);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
async *listByCachePagingPage(resourceGroupName, cacheName, options, settings) {
|
|
41
|
+
let result;
|
|
42
|
+
let continuationToken = settings?.continuationToken;
|
|
43
|
+
if (!continuationToken) {
|
|
44
|
+
result = await this._listByCache(resourceGroupName, cacheName, options);
|
|
45
|
+
let page = result.value || [];
|
|
46
|
+
continuationToken = result.nextLink;
|
|
47
|
+
setContinuationToken(page, continuationToken);
|
|
48
|
+
yield page;
|
|
49
|
+
}
|
|
50
|
+
while (continuationToken) {
|
|
51
|
+
result = await this._listByCacheNext(
|
|
52
|
+
resourceGroupName,
|
|
53
|
+
cacheName,
|
|
54
|
+
continuationToken,
|
|
55
|
+
options
|
|
56
|
+
);
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
setContinuationToken(page, continuationToken);
|
|
60
|
+
yield page;
|
|
19
61
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
* the [-0-9a-zA-Z_] char class.
|
|
25
|
-
* @param options The options parameters.
|
|
26
|
-
*/
|
|
27
|
-
listByCache(resourceGroupName, cacheName, options) {
|
|
28
|
-
const iter = this.listByCachePagingAll(resourceGroupName, cacheName, 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.listByCachePagingPage(resourceGroupName, cacheName, options, settings);
|
|
41
|
-
},
|
|
42
|
-
};
|
|
62
|
+
}
|
|
63
|
+
async *listByCachePagingAll(resourceGroupName, cacheName, options) {
|
|
64
|
+
for await (const page of this.listByCachePagingPage(resourceGroupName, cacheName, options)) {
|
|
65
|
+
yield* page;
|
|
43
66
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Tells a storage target to refresh its DNS information.
|
|
70
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
71
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
72
|
+
* the [-0-9a-zA-Z_] char class.
|
|
73
|
+
* @param storageTargetName Name of Storage Target.
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
async beginDnsRefresh(resourceGroupName, cacheName, storageTargetName, options) {
|
|
77
|
+
const directSendOperation = async (args, spec) => {
|
|
78
|
+
return this.client.sendOperationRequest(args, spec);
|
|
79
|
+
};
|
|
80
|
+
const sendOperationFn = async (args, spec) => {
|
|
81
|
+
let currentRawResponse = void 0;
|
|
82
|
+
const providedCallback = args.options?.onResponse;
|
|
83
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
84
|
+
currentRawResponse = rawResponse;
|
|
85
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
86
|
+
};
|
|
87
|
+
const updatedArgs = {
|
|
88
|
+
...args,
|
|
89
|
+
options: {
|
|
90
|
+
...args.options,
|
|
91
|
+
onResponse: callback
|
|
53
92
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
93
|
+
};
|
|
94
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
95
|
+
return {
|
|
96
|
+
flatResponse,
|
|
97
|
+
rawResponse: {
|
|
98
|
+
statusCode: currentRawResponse.status,
|
|
99
|
+
body: currentRawResponse.parsedBody,
|
|
100
|
+
headers: currentRawResponse.headers.toJSON()
|
|
60
101
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
const lro = createLroSpec({
|
|
105
|
+
sendOperationFn,
|
|
106
|
+
args: { resourceGroupName, cacheName, storageTargetName, options },
|
|
107
|
+
spec: dnsRefreshOperationSpec
|
|
108
|
+
});
|
|
109
|
+
const poller = await createHttpPoller(lro, {
|
|
110
|
+
restoreFrom: options?.resumeFrom,
|
|
111
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
112
|
+
resourceLocationConfig: "azure-async-operation"
|
|
113
|
+
});
|
|
114
|
+
await poller.poll();
|
|
115
|
+
return poller;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Tells a storage target to refresh its DNS information.
|
|
119
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
120
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
121
|
+
* the [-0-9a-zA-Z_] char class.
|
|
122
|
+
* @param storageTargetName Name of Storage Target.
|
|
123
|
+
* @param options The options parameters.
|
|
124
|
+
*/
|
|
125
|
+
async beginDnsRefreshAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
126
|
+
const poller = await this.beginDnsRefresh(
|
|
127
|
+
resourceGroupName,
|
|
128
|
+
cacheName,
|
|
129
|
+
storageTargetName,
|
|
130
|
+
options
|
|
131
|
+
);
|
|
132
|
+
return poller.pollUntilDone();
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Returns a list of Storage Targets for the specified cache.
|
|
136
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
137
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
138
|
+
* the [-0-9a-zA-Z_] char class.
|
|
139
|
+
* @param options The options parameters.
|
|
140
|
+
*/
|
|
141
|
+
_listByCache(resourceGroupName, cacheName, options) {
|
|
142
|
+
return this.client.sendOperationRequest(
|
|
143
|
+
{ resourceGroupName, cacheName, options },
|
|
144
|
+
listByCacheOperationSpec
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is
|
|
149
|
+
* down or unhealthy, the actual removal of the Storage Target may be delayed until the cache is
|
|
150
|
+
* healthy again. Note that if the cache has data to flush to the Storage Target, the data will be
|
|
151
|
+
* flushed before the Storage Target will be deleted.
|
|
152
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
153
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
154
|
+
* the [-0-9a-zA-Z_] char class.
|
|
155
|
+
* @param storageTargetName Name of Storage Target.
|
|
156
|
+
* @param options The options parameters.
|
|
157
|
+
*/
|
|
158
|
+
async beginDelete(resourceGroupName, cacheName, storageTargetName, options) {
|
|
159
|
+
const directSendOperation = async (args, spec) => {
|
|
160
|
+
return this.client.sendOperationRequest(args, spec);
|
|
161
|
+
};
|
|
162
|
+
const sendOperationFn = async (args, spec) => {
|
|
163
|
+
let currentRawResponse = void 0;
|
|
164
|
+
const providedCallback = args.options?.onResponse;
|
|
165
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
166
|
+
currentRawResponse = rawResponse;
|
|
167
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
168
|
+
};
|
|
169
|
+
const updatedArgs = {
|
|
170
|
+
...args,
|
|
171
|
+
options: {
|
|
172
|
+
...args.options,
|
|
173
|
+
onResponse: callback
|
|
65
174
|
}
|
|
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
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
277
|
-
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
278
|
-
* the [-0-9a-zA-Z_] char class.
|
|
279
|
-
* @param storageTargetName Name of Storage Target.
|
|
280
|
-
* @param storagetarget Object containing the definition of a Storage Target.
|
|
281
|
-
* @param options The options parameters.
|
|
282
|
-
*/
|
|
283
|
-
async beginCreateOrUpdateAndWait(resourceGroupName, cacheName, storageTargetName, storagetarget, options) {
|
|
284
|
-
const poller = await this.beginCreateOrUpdate(resourceGroupName, cacheName, storageTargetName, storagetarget, options);
|
|
285
|
-
return poller.pollUntilDone();
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Tells a storage target to restore its settings to their default values.
|
|
289
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
290
|
-
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
291
|
-
* the [-0-9a-zA-Z_] char class.
|
|
292
|
-
* @param storageTargetName Name of Storage Target.
|
|
293
|
-
* @param options The options parameters.
|
|
294
|
-
*/
|
|
295
|
-
async beginRestoreDefaults(resourceGroupName, cacheName, storageTargetName, options) {
|
|
296
|
-
const directSendOperation = async (args, spec) => {
|
|
297
|
-
return this.client.sendOperationRequest(args, spec);
|
|
298
|
-
};
|
|
299
|
-
const sendOperationFn = async (args, spec) => {
|
|
300
|
-
let currentRawResponse = undefined;
|
|
301
|
-
const providedCallback = args.options?.onResponse;
|
|
302
|
-
const callback = (rawResponse, flatResponse) => {
|
|
303
|
-
currentRawResponse = rawResponse;
|
|
304
|
-
providedCallback?.(rawResponse, flatResponse);
|
|
305
|
-
};
|
|
306
|
-
const updatedArgs = {
|
|
307
|
-
...args,
|
|
308
|
-
options: {
|
|
309
|
-
...args.options,
|
|
310
|
-
onResponse: callback,
|
|
311
|
-
},
|
|
312
|
-
};
|
|
313
|
-
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
314
|
-
return {
|
|
315
|
-
flatResponse,
|
|
316
|
-
rawResponse: {
|
|
317
|
-
statusCode: currentRawResponse.status,
|
|
318
|
-
body: currentRawResponse.parsedBody,
|
|
319
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
320
|
-
},
|
|
321
|
-
};
|
|
322
|
-
};
|
|
323
|
-
const lro = createLroSpec({
|
|
324
|
-
sendOperationFn,
|
|
325
|
-
args: { resourceGroupName, cacheName, storageTargetName, options },
|
|
326
|
-
spec: restoreDefaultsOperationSpec,
|
|
327
|
-
});
|
|
328
|
-
const poller = await createHttpPoller(lro, {
|
|
329
|
-
restoreFrom: options?.resumeFrom,
|
|
330
|
-
intervalInMs: options?.updateIntervalInMs,
|
|
331
|
-
resourceLocationConfig: "location",
|
|
332
|
-
});
|
|
333
|
-
await poller.poll();
|
|
334
|
-
return poller;
|
|
335
|
-
}
|
|
336
|
-
/**
|
|
337
|
-
* Tells a storage target to restore its settings to their default values.
|
|
338
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
339
|
-
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
340
|
-
* the [-0-9a-zA-Z_] char class.
|
|
341
|
-
* @param storageTargetName Name of Storage Target.
|
|
342
|
-
* @param options The options parameters.
|
|
343
|
-
*/
|
|
344
|
-
async beginRestoreDefaultsAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
345
|
-
const poller = await this.beginRestoreDefaults(resourceGroupName, cacheName, storageTargetName, options);
|
|
346
|
-
return poller.pollUntilDone();
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* ListByCacheNext
|
|
350
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
351
|
-
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
352
|
-
* the [-0-9a-zA-Z_] char class.
|
|
353
|
-
* @param nextLink The nextLink from the previous successful call to the ListByCache method.
|
|
354
|
-
* @param options The options parameters.
|
|
355
|
-
*/
|
|
356
|
-
_listByCacheNext(resourceGroupName, cacheName, nextLink, options) {
|
|
357
|
-
return this.client.sendOperationRequest({ resourceGroupName, cacheName, nextLink, options }, listByCacheNextOperationSpec);
|
|
358
|
-
}
|
|
175
|
+
};
|
|
176
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
177
|
+
return {
|
|
178
|
+
flatResponse,
|
|
179
|
+
rawResponse: {
|
|
180
|
+
statusCode: currentRawResponse.status,
|
|
181
|
+
body: currentRawResponse.parsedBody,
|
|
182
|
+
headers: currentRawResponse.headers.toJSON()
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
const lro = createLroSpec({
|
|
187
|
+
sendOperationFn,
|
|
188
|
+
args: { resourceGroupName, cacheName, storageTargetName, options },
|
|
189
|
+
spec: deleteOperationSpec
|
|
190
|
+
});
|
|
191
|
+
const poller = await createHttpPoller(lro, {
|
|
192
|
+
restoreFrom: options?.resumeFrom,
|
|
193
|
+
intervalInMs: options?.updateIntervalInMs
|
|
194
|
+
});
|
|
195
|
+
await poller.poll();
|
|
196
|
+
return poller;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is
|
|
200
|
+
* down or unhealthy, the actual removal of the Storage Target may be delayed until the cache is
|
|
201
|
+
* healthy again. Note that if the cache has data to flush to the Storage Target, the data will be
|
|
202
|
+
* flushed before the Storage Target will be deleted.
|
|
203
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
204
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
205
|
+
* the [-0-9a-zA-Z_] char class.
|
|
206
|
+
* @param storageTargetName Name of Storage Target.
|
|
207
|
+
* @param options The options parameters.
|
|
208
|
+
*/
|
|
209
|
+
async beginDeleteAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
210
|
+
const poller = await this.beginDelete(resourceGroupName, cacheName, storageTargetName, options);
|
|
211
|
+
return poller.pollUntilDone();
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Returns a Storage Target from a cache.
|
|
215
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
216
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
217
|
+
* the [-0-9a-zA-Z_] char class.
|
|
218
|
+
* @param storageTargetName Name of Storage Target.
|
|
219
|
+
* @param options The options parameters.
|
|
220
|
+
*/
|
|
221
|
+
get(resourceGroupName, cacheName, storageTargetName, options) {
|
|
222
|
+
return this.client.sendOperationRequest(
|
|
223
|
+
{ resourceGroupName, cacheName, storageTargetName, options },
|
|
224
|
+
getOperationSpec
|
|
225
|
+
);
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Create or update a Storage Target. This operation is allowed at any time, but if the cache is down
|
|
229
|
+
* or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache
|
|
230
|
+
* is healthy again.
|
|
231
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
232
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
233
|
+
* the [-0-9a-zA-Z_] char class.
|
|
234
|
+
* @param storageTargetName Name of Storage Target.
|
|
235
|
+
* @param storagetarget Object containing the definition of a Storage Target.
|
|
236
|
+
* @param options The options parameters.
|
|
237
|
+
*/
|
|
238
|
+
async beginCreateOrUpdate(resourceGroupName, cacheName, storageTargetName, storagetarget, options) {
|
|
239
|
+
const directSendOperation = async (args, spec) => {
|
|
240
|
+
return this.client.sendOperationRequest(args, spec);
|
|
241
|
+
};
|
|
242
|
+
const sendOperationFn = async (args, spec) => {
|
|
243
|
+
let currentRawResponse = void 0;
|
|
244
|
+
const providedCallback = args.options?.onResponse;
|
|
245
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
246
|
+
currentRawResponse = rawResponse;
|
|
247
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
248
|
+
};
|
|
249
|
+
const updatedArgs = {
|
|
250
|
+
...args,
|
|
251
|
+
options: {
|
|
252
|
+
...args.options,
|
|
253
|
+
onResponse: callback
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
257
|
+
return {
|
|
258
|
+
flatResponse,
|
|
259
|
+
rawResponse: {
|
|
260
|
+
statusCode: currentRawResponse.status,
|
|
261
|
+
body: currentRawResponse.parsedBody,
|
|
262
|
+
headers: currentRawResponse.headers.toJSON()
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
const lro = createLroSpec({
|
|
267
|
+
sendOperationFn,
|
|
268
|
+
args: {
|
|
269
|
+
resourceGroupName,
|
|
270
|
+
cacheName,
|
|
271
|
+
storageTargetName,
|
|
272
|
+
storagetarget,
|
|
273
|
+
options
|
|
274
|
+
},
|
|
275
|
+
spec: createOrUpdateOperationSpec
|
|
276
|
+
});
|
|
277
|
+
const poller = await createHttpPoller(lro, {
|
|
278
|
+
restoreFrom: options?.resumeFrom,
|
|
279
|
+
intervalInMs: options?.updateIntervalInMs
|
|
280
|
+
});
|
|
281
|
+
await poller.poll();
|
|
282
|
+
return poller;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Create or update a Storage Target. This operation is allowed at any time, but if the cache is down
|
|
286
|
+
* or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache
|
|
287
|
+
* is healthy again.
|
|
288
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
289
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
290
|
+
* the [-0-9a-zA-Z_] char class.
|
|
291
|
+
* @param storageTargetName Name of Storage Target.
|
|
292
|
+
* @param storagetarget Object containing the definition of a Storage Target.
|
|
293
|
+
* @param options The options parameters.
|
|
294
|
+
*/
|
|
295
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, cacheName, storageTargetName, storagetarget, options) {
|
|
296
|
+
const poller = await this.beginCreateOrUpdate(
|
|
297
|
+
resourceGroupName,
|
|
298
|
+
cacheName,
|
|
299
|
+
storageTargetName,
|
|
300
|
+
storagetarget,
|
|
301
|
+
options
|
|
302
|
+
);
|
|
303
|
+
return poller.pollUntilDone();
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Tells a storage target to restore its settings to their default values.
|
|
307
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
308
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
309
|
+
* the [-0-9a-zA-Z_] char class.
|
|
310
|
+
* @param storageTargetName Name of Storage Target.
|
|
311
|
+
* @param options The options parameters.
|
|
312
|
+
*/
|
|
313
|
+
async beginRestoreDefaults(resourceGroupName, cacheName, storageTargetName, options) {
|
|
314
|
+
const directSendOperation = async (args, spec) => {
|
|
315
|
+
return this.client.sendOperationRequest(args, spec);
|
|
316
|
+
};
|
|
317
|
+
const sendOperationFn = async (args, spec) => {
|
|
318
|
+
let currentRawResponse = void 0;
|
|
319
|
+
const providedCallback = args.options?.onResponse;
|
|
320
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
321
|
+
currentRawResponse = rawResponse;
|
|
322
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
323
|
+
};
|
|
324
|
+
const updatedArgs = {
|
|
325
|
+
...args,
|
|
326
|
+
options: {
|
|
327
|
+
...args.options,
|
|
328
|
+
onResponse: callback
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
332
|
+
return {
|
|
333
|
+
flatResponse,
|
|
334
|
+
rawResponse: {
|
|
335
|
+
statusCode: currentRawResponse.status,
|
|
336
|
+
body: currentRawResponse.parsedBody,
|
|
337
|
+
headers: currentRawResponse.headers.toJSON()
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
const lro = createLroSpec({
|
|
342
|
+
sendOperationFn,
|
|
343
|
+
args: { resourceGroupName, cacheName, storageTargetName, options },
|
|
344
|
+
spec: restoreDefaultsOperationSpec
|
|
345
|
+
});
|
|
346
|
+
const poller = await createHttpPoller(lro, {
|
|
347
|
+
restoreFrom: options?.resumeFrom,
|
|
348
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
349
|
+
resourceLocationConfig: "location"
|
|
350
|
+
});
|
|
351
|
+
await poller.poll();
|
|
352
|
+
return poller;
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Tells a storage target to restore its settings to their default values.
|
|
356
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
357
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
358
|
+
* the [-0-9a-zA-Z_] char class.
|
|
359
|
+
* @param storageTargetName Name of Storage Target.
|
|
360
|
+
* @param options The options parameters.
|
|
361
|
+
*/
|
|
362
|
+
async beginRestoreDefaultsAndWait(resourceGroupName, cacheName, storageTargetName, options) {
|
|
363
|
+
const poller = await this.beginRestoreDefaults(
|
|
364
|
+
resourceGroupName,
|
|
365
|
+
cacheName,
|
|
366
|
+
storageTargetName,
|
|
367
|
+
options
|
|
368
|
+
);
|
|
369
|
+
return poller.pollUntilDone();
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* ListByCacheNext
|
|
373
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
374
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
375
|
+
* the [-0-9a-zA-Z_] char class.
|
|
376
|
+
* @param nextLink The nextLink from the previous successful call to the ListByCache method.
|
|
377
|
+
* @param options The options parameters.
|
|
378
|
+
*/
|
|
379
|
+
_listByCacheNext(resourceGroupName, cacheName, nextLink, options) {
|
|
380
|
+
return this.client.sendOperationRequest(
|
|
381
|
+
{ resourceGroupName, cacheName, nextLink, options },
|
|
382
|
+
listByCacheNextOperationSpec
|
|
383
|
+
);
|
|
384
|
+
}
|
|
359
385
|
}
|
|
360
|
-
|
|
361
|
-
|
|
386
|
+
const serializer = coreClient.createSerializer(
|
|
387
|
+
Mappers,
|
|
388
|
+
/* isXml */
|
|
389
|
+
false
|
|
390
|
+
);
|
|
362
391
|
const dnsRefreshOperationSpec = {
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
392
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/dnsRefresh",
|
|
393
|
+
httpMethod: "POST",
|
|
394
|
+
responses: {
|
|
395
|
+
200: {},
|
|
396
|
+
201: {},
|
|
397
|
+
202: {},
|
|
398
|
+
204: {},
|
|
399
|
+
default: {
|
|
400
|
+
bodyMapper: Mappers.CloudError
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
queryParameters: [Parameters.apiVersion],
|
|
404
|
+
urlParameters: [
|
|
405
|
+
Parameters.$host,
|
|
406
|
+
Parameters.subscriptionId,
|
|
407
|
+
Parameters.resourceGroupName,
|
|
408
|
+
Parameters.cacheName,
|
|
409
|
+
Parameters.storageTargetName
|
|
410
|
+
],
|
|
411
|
+
headerParameters: [Parameters.accept],
|
|
412
|
+
serializer
|
|
384
413
|
};
|
|
385
414
|
const listByCacheOperationSpec = {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
},
|
|
392
|
-
default: {
|
|
393
|
-
bodyMapper: Mappers.CloudError,
|
|
394
|
-
},
|
|
415
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets",
|
|
416
|
+
httpMethod: "GET",
|
|
417
|
+
responses: {
|
|
418
|
+
200: {
|
|
419
|
+
bodyMapper: Mappers.StorageTargetsResult
|
|
395
420
|
},
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
421
|
+
default: {
|
|
422
|
+
bodyMapper: Mappers.CloudError
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
queryParameters: [Parameters.apiVersion],
|
|
426
|
+
urlParameters: [
|
|
427
|
+
Parameters.$host,
|
|
428
|
+
Parameters.subscriptionId,
|
|
429
|
+
Parameters.resourceGroupName,
|
|
430
|
+
Parameters.cacheName
|
|
431
|
+
],
|
|
432
|
+
headerParameters: [Parameters.accept],
|
|
433
|
+
serializer
|
|
405
434
|
};
|
|
406
435
|
const deleteOperationSpec = {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
436
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}",
|
|
437
|
+
httpMethod: "DELETE",
|
|
438
|
+
responses: {
|
|
439
|
+
200: {},
|
|
440
|
+
201: {},
|
|
441
|
+
202: {},
|
|
442
|
+
204: {},
|
|
443
|
+
default: {
|
|
444
|
+
bodyMapper: Mappers.CloudError
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
queryParameters: [Parameters.apiVersion, Parameters.force],
|
|
448
|
+
urlParameters: [
|
|
449
|
+
Parameters.$host,
|
|
450
|
+
Parameters.subscriptionId,
|
|
451
|
+
Parameters.resourceGroupName,
|
|
452
|
+
Parameters.cacheName,
|
|
453
|
+
Parameters.storageTargetName
|
|
454
|
+
],
|
|
455
|
+
headerParameters: [Parameters.accept],
|
|
456
|
+
serializer
|
|
428
457
|
};
|
|
429
458
|
const getOperationSpec = {
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
},
|
|
436
|
-
default: {
|
|
437
|
-
bodyMapper: Mappers.CloudError,
|
|
438
|
-
},
|
|
459
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}",
|
|
460
|
+
httpMethod: "GET",
|
|
461
|
+
responses: {
|
|
462
|
+
200: {
|
|
463
|
+
bodyMapper: Mappers.StorageTarget
|
|
439
464
|
},
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
465
|
+
default: {
|
|
466
|
+
bodyMapper: Mappers.CloudError
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
queryParameters: [Parameters.apiVersion],
|
|
470
|
+
urlParameters: [
|
|
471
|
+
Parameters.$host,
|
|
472
|
+
Parameters.subscriptionId,
|
|
473
|
+
Parameters.resourceGroupName,
|
|
474
|
+
Parameters.cacheName,
|
|
475
|
+
Parameters.storageTargetName
|
|
476
|
+
],
|
|
477
|
+
headerParameters: [Parameters.accept],
|
|
478
|
+
serializer
|
|
450
479
|
};
|
|
451
480
|
const createOrUpdateOperationSpec = {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
},
|
|
458
|
-
201: {
|
|
459
|
-
bodyMapper: Mappers.StorageTarget,
|
|
460
|
-
},
|
|
461
|
-
202: {
|
|
462
|
-
bodyMapper: Mappers.StorageTarget,
|
|
463
|
-
},
|
|
464
|
-
204: {
|
|
465
|
-
bodyMapper: Mappers.StorageTarget,
|
|
466
|
-
},
|
|
467
|
-
default: {
|
|
468
|
-
bodyMapper: Mappers.CloudError,
|
|
469
|
-
},
|
|
481
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}",
|
|
482
|
+
httpMethod: "PUT",
|
|
483
|
+
responses: {
|
|
484
|
+
200: {
|
|
485
|
+
bodyMapper: Mappers.StorageTarget
|
|
470
486
|
},
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
487
|
+
201: {
|
|
488
|
+
bodyMapper: Mappers.StorageTarget
|
|
489
|
+
},
|
|
490
|
+
202: {
|
|
491
|
+
bodyMapper: Mappers.StorageTarget
|
|
492
|
+
},
|
|
493
|
+
204: {
|
|
494
|
+
bodyMapper: Mappers.StorageTarget
|
|
495
|
+
},
|
|
496
|
+
default: {
|
|
497
|
+
bodyMapper: Mappers.CloudError
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
requestBody: Parameters.storagetarget,
|
|
501
|
+
queryParameters: [Parameters.apiVersion],
|
|
502
|
+
urlParameters: [
|
|
503
|
+
Parameters.$host,
|
|
504
|
+
Parameters.subscriptionId,
|
|
505
|
+
Parameters.resourceGroupName,
|
|
506
|
+
Parameters.cacheName,
|
|
507
|
+
Parameters.storageTargetName
|
|
508
|
+
],
|
|
509
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
510
|
+
mediaType: "json",
|
|
511
|
+
serializer
|
|
483
512
|
};
|
|
484
513
|
const restoreDefaultsOperationSpec = {
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
514
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/restoreDefaults",
|
|
515
|
+
httpMethod: "POST",
|
|
516
|
+
responses: {
|
|
517
|
+
200: {},
|
|
518
|
+
201: {},
|
|
519
|
+
202: {},
|
|
520
|
+
204: {},
|
|
521
|
+
default: {
|
|
522
|
+
bodyMapper: Mappers.CloudError
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
queryParameters: [Parameters.apiVersion],
|
|
526
|
+
urlParameters: [
|
|
527
|
+
Parameters.$host,
|
|
528
|
+
Parameters.subscriptionId,
|
|
529
|
+
Parameters.resourceGroupName,
|
|
530
|
+
Parameters.cacheName,
|
|
531
|
+
Parameters.storageTargetName
|
|
532
|
+
],
|
|
533
|
+
headerParameters: [Parameters.accept],
|
|
534
|
+
serializer
|
|
506
535
|
};
|
|
507
536
|
const listByCacheNextOperationSpec = {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
},
|
|
514
|
-
default: {
|
|
515
|
-
bodyMapper: Mappers.CloudError,
|
|
516
|
-
},
|
|
537
|
+
path: "{nextLink}",
|
|
538
|
+
httpMethod: "GET",
|
|
539
|
+
responses: {
|
|
540
|
+
200: {
|
|
541
|
+
bodyMapper: Mappers.StorageTargetsResult
|
|
517
542
|
},
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
543
|
+
default: {
|
|
544
|
+
bodyMapper: Mappers.CloudError
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
urlParameters: [
|
|
548
|
+
Parameters.$host,
|
|
549
|
+
Parameters.subscriptionId,
|
|
550
|
+
Parameters.resourceGroupName,
|
|
551
|
+
Parameters.nextLink,
|
|
552
|
+
Parameters.cacheName
|
|
553
|
+
],
|
|
554
|
+
headerParameters: [Parameters.accept],
|
|
555
|
+
serializer
|
|
556
|
+
};
|
|
557
|
+
export {
|
|
558
|
+
StorageTargetsImpl
|
|
527
559
|
};
|
|
528
|
-
//# sourceMappingURL=storageTargets.js.map
|