@azure/arm-elasticsan 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +2897 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/elasticSansCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/elasticSansCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/elasticSansCreateSample.js +62 -0
- package/dist-esm/samples-dev/elasticSansCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/elasticSansDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/elasticSansDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/elasticSansDeleteSample.js +49 -0
- package/dist-esm/samples-dev/elasticSansDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/elasticSansGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/elasticSansGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/elasticSansGetSample.js +49 -0
- package/dist-esm/samples-dev/elasticSansGetSample.js.map +1 -0
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js +75 -0
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js +73 -0
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/elasticSansUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/elasticSansUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/elasticSansUpdateSample.js +55 -0
- package/dist-esm/samples-dev/elasticSansUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +73 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/skusListSample.d.ts +2 -0
- package/dist-esm/samples-dev/skusListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/skusListSample.js +75 -0
- package/dist-esm/samples-dev/skusListSample.js.map +1 -0
- package/dist-esm/samples-dev/volumeGroupsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumeGroupsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js +62 -0
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +51 -0
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/volumeGroupsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumeGroupsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeGroupsGetSample.js +51 -0
- package/dist-esm/samples-dev/volumeGroupsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js +77 -0
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js.map +1 -0
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +62 -0
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/volumesCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumesCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumesCreateSample.js +59 -0
- package/dist-esm/samples-dev/volumesCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/volumesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumesDeleteSample.js +53 -0
- package/dist-esm/samples-dev/volumesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/volumesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumesGetSample.js +53 -0
- package/dist-esm/samples-dev/volumesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js +79 -0
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/volumesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumesUpdateSample.js +58 -0
- package/dist-esm/samples-dev/volumesUpdateSample.js.map +1 -0
- package/dist-esm/src/elasticSanManagement.d.ts +24 -0
- package/dist-esm/src/elasticSanManagement.d.ts.map +1 -0
- package/dist-esm/src/elasticSanManagement.js +107 -0
- package/dist-esm/src/elasticSanManagement.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +691 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +88 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +29 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +877 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +19 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +170 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/elasticSans.d.ts +107 -0
- package/dist-esm/src/operations/elasticSans.d.ts.map +1 -0
- package/dist-esm/src/operations/elasticSans.js +509 -0
- package/dist-esm/src/operations/elasticSans.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +6 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +13 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +90 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/skus.d.ts +26 -0
- package/dist-esm/src/operations/skus.d.ts.map +1 -0
- package/dist-esm/src/operations/skus.js +90 -0
- package/dist-esm/src/operations/skus.js.map +1 -0
- package/dist-esm/src/operations/volumeGroups.d.ts +99 -0
- package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/volumeGroups.js +438 -0
- package/dist-esm/src/operations/volumeGroups.js.map +1 -0
- package/dist-esm/src/operations/volumes.d.ts +109 -0
- package/dist-esm/src/operations/volumes.d.ts.map +1 -0
- package/dist-esm/src/operations/volumes.js +468 -0
- package/dist-esm/src/operations/volumes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/elasticSans.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/elasticSans.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/elasticSans.js +9 -0
- package/dist-esm/src/operationsInterfaces/elasticSans.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/skus.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/skus.js +9 -0
- package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.js +9 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumes.d.ts +82 -0
- package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumes.js +9 -0
- package/dist-esm/src/operationsInterfaces/volumes.js.map +1 -0
- package/dist-esm/test/elasticsan_examples.spec.d.ts +4 -0
- package/dist-esm/test/elasticsan_examples.spec.d.ts.map +1 -0
- package/dist-esm/test/elasticsan_examples.spec.js +80 -0
- package/dist-esm/test/elasticsan_examples.spec.js.map +1 -0
- package/package.json +122 -0
- package/review/arm-elasticsan.api.md +536 -0
- package/rollup.config.js +122 -0
- package/src/elasticSanManagement.ts +161 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +787 -0
- package/src/models/mappers.ts +935 -0
- package/src/models/parameters.ts +199 -0
- package/src/operations/elasticSans.ts +683 -0
- package/src/operations/index.ts +13 -0
- package/src/operations/operations.ts +98 -0
- package/src/operations/skus.ts +96 -0
- package/src/operations/volumeGroups.ts +629 -0
- package/src/operations/volumes.ts +673 -0
- package/src/operationsInterfaces/elasticSans.ts +139 -0
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/skus.ts +22 -0
- package/src/operationsInterfaces/volumeGroups.ts +147 -0
- package/src/operationsInterfaces/volumes.ts +157 -0
- package/tsconfig.json +33 -0
- package/types/arm-elasticsan.d.ts +1036 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,509 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing ElasticSans operations. */
|
|
16
|
+
export class ElasticSansImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class ElasticSans class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Gets a list of ElasticSans in a subscription
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
listBySubscription(options) {
|
|
29
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: () => {
|
|
38
|
+
return this.listBySubscriptionPagingPage(options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
listBySubscriptionPagingPage(options) {
|
|
43
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
44
|
+
let result = yield __await(this._listBySubscription(options));
|
|
45
|
+
yield yield __await(result.value || []);
|
|
46
|
+
let continuationToken = result.nextLink;
|
|
47
|
+
while (continuationToken) {
|
|
48
|
+
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
|
|
49
|
+
continuationToken = result.nextLink;
|
|
50
|
+
yield yield __await(result.value || []);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
listBySubscriptionPagingAll(options) {
|
|
55
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
56
|
+
var e_1, _a;
|
|
57
|
+
try {
|
|
58
|
+
for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
59
|
+
const page = _c.value;
|
|
60
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
+
finally {
|
|
65
|
+
try {
|
|
66
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
67
|
+
}
|
|
68
|
+
finally { if (e_1) throw e_1.error; }
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Gets a list of ElasticSan in a resource group.
|
|
74
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
75
|
+
* @param options The options parameters.
|
|
76
|
+
*/
|
|
77
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
78
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
79
|
+
return {
|
|
80
|
+
next() {
|
|
81
|
+
return iter.next();
|
|
82
|
+
},
|
|
83
|
+
[Symbol.asyncIterator]() {
|
|
84
|
+
return this;
|
|
85
|
+
},
|
|
86
|
+
byPage: () => {
|
|
87
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
92
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
93
|
+
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
94
|
+
yield yield __await(result.value || []);
|
|
95
|
+
let continuationToken = result.nextLink;
|
|
96
|
+
while (continuationToken) {
|
|
97
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
yield yield __await(result.value || []);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
104
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
105
|
+
var e_2, _a;
|
|
106
|
+
try {
|
|
107
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
108
|
+
const page = _c.value;
|
|
109
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
113
|
+
finally {
|
|
114
|
+
try {
|
|
115
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
116
|
+
}
|
|
117
|
+
finally { if (e_2) throw e_2.error; }
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Gets a list of ElasticSans in a subscription
|
|
123
|
+
* @param options The options parameters.
|
|
124
|
+
*/
|
|
125
|
+
_listBySubscription(options) {
|
|
126
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Gets a list of ElasticSan in a resource group.
|
|
130
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
131
|
+
* @param options The options parameters.
|
|
132
|
+
*/
|
|
133
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
134
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Create ElasticSan.
|
|
138
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
139
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
140
|
+
* @param parameters Elastic San object.
|
|
141
|
+
* @param options The options parameters.
|
|
142
|
+
*/
|
|
143
|
+
beginCreate(resourceGroupName, elasticSanName, parameters, options) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
return this.client.sendOperationRequest(args, spec);
|
|
147
|
+
});
|
|
148
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
var _a;
|
|
150
|
+
let currentRawResponse = undefined;
|
|
151
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
152
|
+
const callback = (rawResponse, flatResponse) => {
|
|
153
|
+
currentRawResponse = rawResponse;
|
|
154
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
155
|
+
};
|
|
156
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
157
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
158
|
+
return {
|
|
159
|
+
flatResponse,
|
|
160
|
+
rawResponse: {
|
|
161
|
+
statusCode: currentRawResponse.status,
|
|
162
|
+
body: currentRawResponse.parsedBody,
|
|
163
|
+
headers: currentRawResponse.headers.toJSON()
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
});
|
|
167
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, elasticSanName, parameters, options }, createOperationSpec);
|
|
168
|
+
const poller = new LroEngine(lro, {
|
|
169
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
170
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
171
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
172
|
+
});
|
|
173
|
+
yield poller.poll();
|
|
174
|
+
return poller;
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Create ElasticSan.
|
|
179
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
180
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
181
|
+
* @param parameters Elastic San object.
|
|
182
|
+
* @param options The options parameters.
|
|
183
|
+
*/
|
|
184
|
+
beginCreateAndWait(resourceGroupName, elasticSanName, parameters, options) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
const poller = yield this.beginCreate(resourceGroupName, elasticSanName, parameters, options);
|
|
187
|
+
return poller.pollUntilDone();
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Update a Elastic San.
|
|
192
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
193
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
194
|
+
* @param parameters Elastic San object.
|
|
195
|
+
* @param options The options parameters.
|
|
196
|
+
*/
|
|
197
|
+
beginUpdate(resourceGroupName, elasticSanName, parameters, options) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
199
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
200
|
+
return this.client.sendOperationRequest(args, spec);
|
|
201
|
+
});
|
|
202
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
203
|
+
var _a;
|
|
204
|
+
let currentRawResponse = undefined;
|
|
205
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
206
|
+
const callback = (rawResponse, flatResponse) => {
|
|
207
|
+
currentRawResponse = rawResponse;
|
|
208
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
209
|
+
};
|
|
210
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
211
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
212
|
+
return {
|
|
213
|
+
flatResponse,
|
|
214
|
+
rawResponse: {
|
|
215
|
+
statusCode: currentRawResponse.status,
|
|
216
|
+
body: currentRawResponse.parsedBody,
|
|
217
|
+
headers: currentRawResponse.headers.toJSON()
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
});
|
|
221
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, elasticSanName, parameters, options }, updateOperationSpec);
|
|
222
|
+
const poller = new LroEngine(lro, {
|
|
223
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
224
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
225
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
226
|
+
});
|
|
227
|
+
yield poller.poll();
|
|
228
|
+
return poller;
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Update a Elastic San.
|
|
233
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
234
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
235
|
+
* @param parameters Elastic San object.
|
|
236
|
+
* @param options The options parameters.
|
|
237
|
+
*/
|
|
238
|
+
beginUpdateAndWait(resourceGroupName, elasticSanName, parameters, options) {
|
|
239
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
240
|
+
const poller = yield this.beginUpdate(resourceGroupName, elasticSanName, parameters, options);
|
|
241
|
+
return poller.pollUntilDone();
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Delete a Elastic San.
|
|
246
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
247
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
248
|
+
* @param options The options parameters.
|
|
249
|
+
*/
|
|
250
|
+
beginDelete(resourceGroupName, elasticSanName, options) {
|
|
251
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
252
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
253
|
+
return this.client.sendOperationRequest(args, spec);
|
|
254
|
+
});
|
|
255
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
256
|
+
var _a;
|
|
257
|
+
let currentRawResponse = undefined;
|
|
258
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
259
|
+
const callback = (rawResponse, flatResponse) => {
|
|
260
|
+
currentRawResponse = rawResponse;
|
|
261
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
262
|
+
};
|
|
263
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
264
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
265
|
+
return {
|
|
266
|
+
flatResponse,
|
|
267
|
+
rawResponse: {
|
|
268
|
+
statusCode: currentRawResponse.status,
|
|
269
|
+
body: currentRawResponse.parsedBody,
|
|
270
|
+
headers: currentRawResponse.headers.toJSON()
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
});
|
|
274
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, elasticSanName, options }, deleteOperationSpec);
|
|
275
|
+
const poller = new LroEngine(lro, {
|
|
276
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
277
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
278
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
279
|
+
});
|
|
280
|
+
yield poller.poll();
|
|
281
|
+
return poller;
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Delete a Elastic San.
|
|
286
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
287
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
288
|
+
* @param options The options parameters.
|
|
289
|
+
*/
|
|
290
|
+
beginDeleteAndWait(resourceGroupName, elasticSanName, options) {
|
|
291
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
+
const poller = yield this.beginDelete(resourceGroupName, elasticSanName, options);
|
|
293
|
+
return poller.pollUntilDone();
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Get a ElasticSan.
|
|
298
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
299
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
300
|
+
* @param options The options parameters.
|
|
301
|
+
*/
|
|
302
|
+
get(resourceGroupName, elasticSanName, options) {
|
|
303
|
+
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, options }, getOperationSpec);
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* ListBySubscriptionNext
|
|
307
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
308
|
+
* @param options The options parameters.
|
|
309
|
+
*/
|
|
310
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
311
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* ListByResourceGroupNext
|
|
315
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
316
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
317
|
+
* @param options The options parameters.
|
|
318
|
+
*/
|
|
319
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
320
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
// Operation Specifications
|
|
324
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
325
|
+
const listBySubscriptionOperationSpec = {
|
|
326
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ElasticSan/elasticSans",
|
|
327
|
+
httpMethod: "GET",
|
|
328
|
+
responses: {
|
|
329
|
+
200: {
|
|
330
|
+
bodyMapper: Mappers.ElasticSanList
|
|
331
|
+
},
|
|
332
|
+
default: {
|
|
333
|
+
bodyMapper: Mappers.ErrorModel
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
queryParameters: [Parameters.apiVersion],
|
|
337
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
338
|
+
headerParameters: [Parameters.accept],
|
|
339
|
+
serializer
|
|
340
|
+
};
|
|
341
|
+
const listByResourceGroupOperationSpec = {
|
|
342
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans",
|
|
343
|
+
httpMethod: "GET",
|
|
344
|
+
responses: {
|
|
345
|
+
200: {
|
|
346
|
+
bodyMapper: Mappers.ElasticSanList
|
|
347
|
+
},
|
|
348
|
+
default: {
|
|
349
|
+
bodyMapper: Mappers.ErrorModel
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
queryParameters: [Parameters.apiVersion],
|
|
353
|
+
urlParameters: [
|
|
354
|
+
Parameters.$host,
|
|
355
|
+
Parameters.subscriptionId,
|
|
356
|
+
Parameters.resourceGroupName
|
|
357
|
+
],
|
|
358
|
+
headerParameters: [Parameters.accept],
|
|
359
|
+
serializer
|
|
360
|
+
};
|
|
361
|
+
const createOperationSpec = {
|
|
362
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
|
|
363
|
+
httpMethod: "PUT",
|
|
364
|
+
responses: {
|
|
365
|
+
200: {
|
|
366
|
+
bodyMapper: Mappers.ElasticSan
|
|
367
|
+
},
|
|
368
|
+
201: {
|
|
369
|
+
bodyMapper: Mappers.ElasticSan
|
|
370
|
+
},
|
|
371
|
+
202: {
|
|
372
|
+
bodyMapper: Mappers.ElasticSan
|
|
373
|
+
},
|
|
374
|
+
204: {
|
|
375
|
+
bodyMapper: Mappers.ElasticSan
|
|
376
|
+
},
|
|
377
|
+
default: {
|
|
378
|
+
bodyMapper: Mappers.ErrorModel
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
requestBody: Parameters.parameters,
|
|
382
|
+
queryParameters: [Parameters.apiVersion],
|
|
383
|
+
urlParameters: [
|
|
384
|
+
Parameters.$host,
|
|
385
|
+
Parameters.subscriptionId,
|
|
386
|
+
Parameters.resourceGroupName,
|
|
387
|
+
Parameters.elasticSanName
|
|
388
|
+
],
|
|
389
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
390
|
+
mediaType: "json",
|
|
391
|
+
serializer
|
|
392
|
+
};
|
|
393
|
+
const updateOperationSpec = {
|
|
394
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
|
|
395
|
+
httpMethod: "PATCH",
|
|
396
|
+
responses: {
|
|
397
|
+
200: {
|
|
398
|
+
bodyMapper: Mappers.ElasticSan
|
|
399
|
+
},
|
|
400
|
+
201: {
|
|
401
|
+
bodyMapper: Mappers.ElasticSan
|
|
402
|
+
},
|
|
403
|
+
202: {
|
|
404
|
+
bodyMapper: Mappers.ElasticSan
|
|
405
|
+
},
|
|
406
|
+
204: {
|
|
407
|
+
bodyMapper: Mappers.ElasticSan
|
|
408
|
+
},
|
|
409
|
+
default: {
|
|
410
|
+
bodyMapper: Mappers.ErrorModel
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
requestBody: Parameters.parameters1,
|
|
414
|
+
queryParameters: [Parameters.apiVersion],
|
|
415
|
+
urlParameters: [
|
|
416
|
+
Parameters.$host,
|
|
417
|
+
Parameters.subscriptionId,
|
|
418
|
+
Parameters.resourceGroupName,
|
|
419
|
+
Parameters.elasticSanName
|
|
420
|
+
],
|
|
421
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
422
|
+
mediaType: "json",
|
|
423
|
+
serializer
|
|
424
|
+
};
|
|
425
|
+
const deleteOperationSpec = {
|
|
426
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
|
|
427
|
+
httpMethod: "DELETE",
|
|
428
|
+
responses: {
|
|
429
|
+
200: {},
|
|
430
|
+
201: {},
|
|
431
|
+
202: {},
|
|
432
|
+
204: {},
|
|
433
|
+
default: {
|
|
434
|
+
bodyMapper: Mappers.ErrorModel
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
queryParameters: [Parameters.apiVersion],
|
|
438
|
+
urlParameters: [
|
|
439
|
+
Parameters.$host,
|
|
440
|
+
Parameters.subscriptionId,
|
|
441
|
+
Parameters.resourceGroupName,
|
|
442
|
+
Parameters.elasticSanName
|
|
443
|
+
],
|
|
444
|
+
headerParameters: [Parameters.accept],
|
|
445
|
+
serializer
|
|
446
|
+
};
|
|
447
|
+
const getOperationSpec = {
|
|
448
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
|
|
449
|
+
httpMethod: "GET",
|
|
450
|
+
responses: {
|
|
451
|
+
200: {
|
|
452
|
+
bodyMapper: Mappers.ElasticSan
|
|
453
|
+
},
|
|
454
|
+
default: {
|
|
455
|
+
bodyMapper: Mappers.ErrorModel
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
queryParameters: [Parameters.apiVersion],
|
|
459
|
+
urlParameters: [
|
|
460
|
+
Parameters.$host,
|
|
461
|
+
Parameters.subscriptionId,
|
|
462
|
+
Parameters.resourceGroupName,
|
|
463
|
+
Parameters.elasticSanName
|
|
464
|
+
],
|
|
465
|
+
headerParameters: [Parameters.accept],
|
|
466
|
+
serializer
|
|
467
|
+
};
|
|
468
|
+
const listBySubscriptionNextOperationSpec = {
|
|
469
|
+
path: "{nextLink}",
|
|
470
|
+
httpMethod: "GET",
|
|
471
|
+
responses: {
|
|
472
|
+
200: {
|
|
473
|
+
bodyMapper: Mappers.ElasticSanList
|
|
474
|
+
},
|
|
475
|
+
default: {
|
|
476
|
+
bodyMapper: Mappers.ErrorModel
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
queryParameters: [Parameters.apiVersion],
|
|
480
|
+
urlParameters: [
|
|
481
|
+
Parameters.$host,
|
|
482
|
+
Parameters.subscriptionId,
|
|
483
|
+
Parameters.nextLink
|
|
484
|
+
],
|
|
485
|
+
headerParameters: [Parameters.accept],
|
|
486
|
+
serializer
|
|
487
|
+
};
|
|
488
|
+
const listByResourceGroupNextOperationSpec = {
|
|
489
|
+
path: "{nextLink}",
|
|
490
|
+
httpMethod: "GET",
|
|
491
|
+
responses: {
|
|
492
|
+
200: {
|
|
493
|
+
bodyMapper: Mappers.ElasticSanList
|
|
494
|
+
},
|
|
495
|
+
default: {
|
|
496
|
+
bodyMapper: Mappers.ErrorModel
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
queryParameters: [Parameters.apiVersion],
|
|
500
|
+
urlParameters: [
|
|
501
|
+
Parameters.$host,
|
|
502
|
+
Parameters.subscriptionId,
|
|
503
|
+
Parameters.resourceGroupName,
|
|
504
|
+
Parameters.nextLink
|
|
505
|
+
],
|
|
506
|
+
headerParameters: [Parameters.accept],
|
|
507
|
+
serializer
|
|
508
|
+
};
|
|
509
|
+
//# sourceMappingURL=elasticSans.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elasticSans.js","sourceRoot":"","sources":["../../../src/operations/elasticSans.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAqBrC,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IAG1B;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC;YACpD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,4BAA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ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./operations";
|
|
9
|
+
export * from "./skus";
|
|
10
|
+
export * from "./elasticSans";
|
|
11
|
+
export * from "./volumeGroups";
|
|
12
|
+
export * from "./volumes";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operations } from "../operationsInterfaces";
|
|
3
|
+
import { ElasticSanManagement } from "../elasticSanManagement";
|
|
4
|
+
import { ElasticSanRPOperation, OperationsListOptionalParams } from "../models";
|
|
5
|
+
/** Class containing Operations operations. */
|
|
6
|
+
export declare class OperationsImpl implements Operations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Operations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: ElasticSanManagement);
|
|
13
|
+
/**
|
|
14
|
+
* Gets a list of ElasticSan operations.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<ElasticSanRPOperation>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Gets a list of ElasticSan operations.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,qBAAqB,EACrB,4BAA4B,EAE7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAE9C;;;OAGG;gBACS,MAAM,EAAE,oBAAoB;IAIxC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,qBAAqB,CAAC;YAerC,cAAc;YAOd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAKd"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Operations operations. */
|
|
14
|
+
export class OperationsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Operations class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Gets a list of ElasticSan operations.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(options) {
|
|
27
|
+
const iter = this.listPagingAll(options);
|
|
28
|
+
return {
|
|
29
|
+
next() {
|
|
30
|
+
return iter.next();
|
|
31
|
+
},
|
|
32
|
+
[Symbol.asyncIterator]() {
|
|
33
|
+
return this;
|
|
34
|
+
},
|
|
35
|
+
byPage: () => {
|
|
36
|
+
return this.listPagingPage(options);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
listPagingPage(options) {
|
|
41
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
42
|
+
let result = yield __await(this._list(options));
|
|
43
|
+
yield yield __await(result.value || []);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
listPagingAll(options) {
|
|
47
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
48
|
+
var e_1, _a;
|
|
49
|
+
try {
|
|
50
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
51
|
+
const page = _c.value;
|
|
52
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
56
|
+
finally {
|
|
57
|
+
try {
|
|
58
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
59
|
+
}
|
|
60
|
+
finally { if (e_1) throw e_1.error; }
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Gets a list of ElasticSan operations.
|
|
66
|
+
* @param options The options parameters.
|
|
67
|
+
*/
|
|
68
|
+
_list(options) {
|
|
69
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
// Operation Specifications
|
|
73
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
74
|
+
const listOperationSpec = {
|
|
75
|
+
path: "/providers/Microsoft.ElasticSan/operations",
|
|
76
|
+
httpMethod: "GET",
|
|
77
|
+
responses: {
|
|
78
|
+
200: {
|
|
79
|
+
bodyMapper: Mappers.ElasticSanOperationListResult
|
|
80
|
+
},
|
|
81
|
+
default: {
|
|
82
|
+
bodyMapper: Mappers.ErrorModel
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
queryParameters: [Parameters.apiVersion],
|
|
86
|
+
urlParameters: [Parameters.$host],
|
|
87
|
+
headerParameters: [Parameters.accept],
|
|
88
|
+
serializer
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=operations.js.map
|