@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 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.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;AAQnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,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,cAAc,CAAC,OAAO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faces";
|
|
3
|
+
import { ElasticSanManagement } from "../elasticSanManagement";
|
|
4
|
+
import { SkuInformation, SkusListOptionalParams } from "../models";
|
|
5
|
+
/** Class containing Skus operations. */
|
|
6
|
+
export declare class SkusImpl implements Skus {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Skus class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: ElasticSanManagement);
|
|
13
|
+
/**
|
|
14
|
+
* List all the available Skus in the region and information related to them
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: SkusListOptionalParams): PagedAsyncIterableIterator<SkuInformation>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* List all the available Skus in the region and information related to them
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=skus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skus.d.ts","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAI/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,cAAc,EACd,sBAAsB,EAEvB,MAAM,WAAW,CAAC;AAGnB,wCAAwC;AACxC,qBAAa,QAAS,YAAW,IAAI;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAE9C;;;OAGG;gBACS,MAAM,EAAE,oBAAoB;IAIxC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,sBAAsB,GAC/B,0BAA0B,CAAC,cAAc,CAAC;YAe9B,cAAc;YAOd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAGd"}
|
|
@@ -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 Skus operations. */
|
|
14
|
+
export class SkusImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Skus class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* List all the available Skus in the region and information related to them
|
|
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
|
+
* List all the available Skus in the region and information related to them
|
|
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: "/subscriptions/{subscriptionId}/providers/Microsoft.ElasticSan/skus",
|
|
76
|
+
httpMethod: "GET",
|
|
77
|
+
responses: {
|
|
78
|
+
200: {
|
|
79
|
+
bodyMapper: Mappers.SkuInformationList
|
|
80
|
+
},
|
|
81
|
+
default: {
|
|
82
|
+
bodyMapper: Mappers.ErrorModel
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
|
86
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
87
|
+
headerParameters: [Parameters.accept],
|
|
88
|
+
serializer
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=skus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skus.js","sourceRo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AAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,qEAAqE;IAC3E,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC3D,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { VolumeGroups } from "../operationsInterfaces";
|
|
3
|
+
import { ElasticSanManagement } from "../elasticSanManagement";
|
|
4
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
5
|
+
import { VolumeGroup, VolumeGroupsListByElasticSanOptionalParams, VolumeGroupsCreateOptionalParams, VolumeGroupsCreateResponse, VolumeGroupUpdate, VolumeGroupsUpdateOptionalParams, VolumeGroupsUpdateResponse, VolumeGroupsDeleteOptionalParams, VolumeGroupsGetOptionalParams, VolumeGroupsGetResponse } from "../models";
|
|
6
|
+
/** Class containing VolumeGroups operations. */
|
|
7
|
+
export declare class VolumeGroupsImpl implements VolumeGroups {
|
|
8
|
+
private readonly client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class VolumeGroups class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client: ElasticSanManagement);
|
|
14
|
+
/**
|
|
15
|
+
* List VolumeGroups.
|
|
16
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
17
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
listByElasticSan(resourceGroupName: string, elasticSanName: string, options?: VolumeGroupsListByElasticSanOptionalParams): PagedAsyncIterableIterator<VolumeGroup>;
|
|
21
|
+
private listByElasticSanPagingPage;
|
|
22
|
+
private listByElasticSanPagingAll;
|
|
23
|
+
/**
|
|
24
|
+
* List VolumeGroups.
|
|
25
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
26
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
private _listByElasticSan;
|
|
30
|
+
/**
|
|
31
|
+
* Create a Volume Group.
|
|
32
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
33
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
34
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
35
|
+
* @param parameters Volume Group object.
|
|
36
|
+
* @param options The options parameters.
|
|
37
|
+
*/
|
|
38
|
+
beginCreate(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, parameters: VolumeGroup, options?: VolumeGroupsCreateOptionalParams): Promise<PollerLike<PollOperationState<VolumeGroupsCreateResponse>, VolumeGroupsCreateResponse>>;
|
|
39
|
+
/**
|
|
40
|
+
* Create a Volume Group.
|
|
41
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
42
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
43
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
44
|
+
* @param parameters Volume Group object.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
beginCreateAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, parameters: VolumeGroup, options?: VolumeGroupsCreateOptionalParams): Promise<VolumeGroupsCreateResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Update an VolumeGroup.
|
|
50
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
51
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
52
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
53
|
+
* @param parameters Volume Group object.
|
|
54
|
+
* @param options The options parameters.
|
|
55
|
+
*/
|
|
56
|
+
beginUpdate(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, parameters: VolumeGroupUpdate, options?: VolumeGroupsUpdateOptionalParams): Promise<PollerLike<PollOperationState<VolumeGroupsUpdateResponse>, VolumeGroupsUpdateResponse>>;
|
|
57
|
+
/**
|
|
58
|
+
* Update an VolumeGroup.
|
|
59
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
60
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
61
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
62
|
+
* @param parameters Volume Group object.
|
|
63
|
+
* @param options The options parameters.
|
|
64
|
+
*/
|
|
65
|
+
beginUpdateAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, parameters: VolumeGroupUpdate, options?: VolumeGroupsUpdateOptionalParams): Promise<VolumeGroupsUpdateResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* Delete an VolumeGroup.
|
|
68
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
69
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
70
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
71
|
+
* @param options The options parameters.
|
|
72
|
+
*/
|
|
73
|
+
beginDelete(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, options?: VolumeGroupsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
74
|
+
/**
|
|
75
|
+
* Delete an VolumeGroup.
|
|
76
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
77
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
78
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
79
|
+
* @param options The options parameters.
|
|
80
|
+
*/
|
|
81
|
+
beginDeleteAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, options?: VolumeGroupsDeleteOptionalParams): Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
* Get an VolumeGroups.
|
|
84
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
85
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
86
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
87
|
+
* @param options The options parameters.
|
|
88
|
+
*/
|
|
89
|
+
get(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, options?: VolumeGroupsGetOptionalParams): Promise<VolumeGroupsGetResponse>;
|
|
90
|
+
/**
|
|
91
|
+
* ListByElasticSanNext
|
|
92
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
93
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
94
|
+
* @param nextLink The nextLink from the previous successful call to the ListByElasticSan method.
|
|
95
|
+
* @param options The options parameters.
|
|
96
|
+
*/
|
|
97
|
+
private _listByElasticSanNext;
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=volumeGroups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumeGroups.d.ts","sourceRoot":"","sources":["../../../src/operations/volumeGroups.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,WAAW,EAEX,0CAA0C,EAE1C,gCAAgC,EAChC,0BAA0B,EAC1B,i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AE,MAAM,EACtB,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,iBAAiB,EAC7B,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;IAWtC;;;;;;OAMG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAsDtD;;;;;;OAMG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,IAAI,CAAC;IAUhB;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC;IAOnC;;;;;;OAMG;IACH,OAAO,CAAC,qBAAqB;CAW9B"}
|
|
@@ -0,0 +1,438 @@
|
|
|
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 VolumeGroups operations. */
|
|
16
|
+
export class VolumeGroupsImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class VolumeGroups class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* List VolumeGroups.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
listByElasticSan(resourceGroupName, elasticSanName, options) {
|
|
31
|
+
const iter = this.listByElasticSanPagingAll(resourceGroupName, elasticSanName, options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: () => {
|
|
40
|
+
return this.listByElasticSanPagingPage(resourceGroupName, elasticSanName, options);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
listByElasticSanPagingPage(resourceGroupName, elasticSanName, options) {
|
|
45
|
+
return __asyncGenerator(this, arguments, function* listByElasticSanPagingPage_1() {
|
|
46
|
+
let result = yield __await(this._listByElasticSan(resourceGroupName, elasticSanName, options));
|
|
47
|
+
yield yield __await(result.value || []);
|
|
48
|
+
let continuationToken = result.nextLink;
|
|
49
|
+
while (continuationToken) {
|
|
50
|
+
result = yield __await(this._listByElasticSanNext(resourceGroupName, elasticSanName, continuationToken, options));
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
yield yield __await(result.value || []);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
listByElasticSanPagingAll(resourceGroupName, elasticSanName, options) {
|
|
57
|
+
return __asyncGenerator(this, arguments, function* listByElasticSanPagingAll_1() {
|
|
58
|
+
var e_1, _a;
|
|
59
|
+
try {
|
|
60
|
+
for (var _b = __asyncValues(this.listByElasticSanPagingPage(resourceGroupName, elasticSanName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
61
|
+
const page = _c.value;
|
|
62
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
+
finally {
|
|
67
|
+
try {
|
|
68
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
69
|
+
}
|
|
70
|
+
finally { if (e_1) throw e_1.error; }
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* List VolumeGroups.
|
|
76
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
77
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
78
|
+
* @param options The options parameters.
|
|
79
|
+
*/
|
|
80
|
+
_listByElasticSan(resourceGroupName, elasticSanName, options) {
|
|
81
|
+
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, options }, listByElasticSanOperationSpec);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Create a Volume Group.
|
|
85
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
86
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
87
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
88
|
+
* @param parameters Volume Group object.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
beginCreate(resourceGroupName, elasticSanName, volumeGroupName, parameters, options) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
return this.client.sendOperationRequest(args, spec);
|
|
95
|
+
});
|
|
96
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
var _a;
|
|
98
|
+
let currentRawResponse = undefined;
|
|
99
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
100
|
+
const callback = (rawResponse, flatResponse) => {
|
|
101
|
+
currentRawResponse = rawResponse;
|
|
102
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
103
|
+
};
|
|
104
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
105
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
106
|
+
return {
|
|
107
|
+
flatResponse,
|
|
108
|
+
rawResponse: {
|
|
109
|
+
statusCode: currentRawResponse.status,
|
|
110
|
+
body: currentRawResponse.parsedBody,
|
|
111
|
+
headers: currentRawResponse.headers.toJSON()
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
});
|
|
115
|
+
const lro = new LroImpl(sendOperation, {
|
|
116
|
+
resourceGroupName,
|
|
117
|
+
elasticSanName,
|
|
118
|
+
volumeGroupName,
|
|
119
|
+
parameters,
|
|
120
|
+
options
|
|
121
|
+
}, createOperationSpec);
|
|
122
|
+
const poller = new LroEngine(lro, {
|
|
123
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
124
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
125
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
126
|
+
});
|
|
127
|
+
yield poller.poll();
|
|
128
|
+
return poller;
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Create a Volume Group.
|
|
133
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
134
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
135
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
136
|
+
* @param parameters Volume Group object.
|
|
137
|
+
* @param options The options parameters.
|
|
138
|
+
*/
|
|
139
|
+
beginCreateAndWait(resourceGroupName, elasticSanName, volumeGroupName, parameters, options) {
|
|
140
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
141
|
+
const poller = yield this.beginCreate(resourceGroupName, elasticSanName, volumeGroupName, parameters, options);
|
|
142
|
+
return poller.pollUntilDone();
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Update an VolumeGroup.
|
|
147
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
148
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
149
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
150
|
+
* @param parameters Volume Group object.
|
|
151
|
+
* @param options The options parameters.
|
|
152
|
+
*/
|
|
153
|
+
beginUpdate(resourceGroupName, elasticSanName, volumeGroupName, parameters, options) {
|
|
154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
return this.client.sendOperationRequest(args, spec);
|
|
157
|
+
});
|
|
158
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
var _a;
|
|
160
|
+
let currentRawResponse = undefined;
|
|
161
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
162
|
+
const callback = (rawResponse, flatResponse) => {
|
|
163
|
+
currentRawResponse = rawResponse;
|
|
164
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
165
|
+
};
|
|
166
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
167
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
168
|
+
return {
|
|
169
|
+
flatResponse,
|
|
170
|
+
rawResponse: {
|
|
171
|
+
statusCode: currentRawResponse.status,
|
|
172
|
+
body: currentRawResponse.parsedBody,
|
|
173
|
+
headers: currentRawResponse.headers.toJSON()
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
});
|
|
177
|
+
const lro = new LroImpl(sendOperation, {
|
|
178
|
+
resourceGroupName,
|
|
179
|
+
elasticSanName,
|
|
180
|
+
volumeGroupName,
|
|
181
|
+
parameters,
|
|
182
|
+
options
|
|
183
|
+
}, updateOperationSpec);
|
|
184
|
+
const poller = new LroEngine(lro, {
|
|
185
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
186
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
187
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
188
|
+
});
|
|
189
|
+
yield poller.poll();
|
|
190
|
+
return poller;
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Update an VolumeGroup.
|
|
195
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
196
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
197
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
198
|
+
* @param parameters Volume Group object.
|
|
199
|
+
* @param options The options parameters.
|
|
200
|
+
*/
|
|
201
|
+
beginUpdateAndWait(resourceGroupName, elasticSanName, volumeGroupName, parameters, options) {
|
|
202
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
203
|
+
const poller = yield this.beginUpdate(resourceGroupName, elasticSanName, volumeGroupName, parameters, options);
|
|
204
|
+
return poller.pollUntilDone();
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Delete an VolumeGroup.
|
|
209
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
210
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
211
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
212
|
+
* @param options The options parameters.
|
|
213
|
+
*/
|
|
214
|
+
beginDelete(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
215
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
216
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
217
|
+
return this.client.sendOperationRequest(args, spec);
|
|
218
|
+
});
|
|
219
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
220
|
+
var _a;
|
|
221
|
+
let currentRawResponse = undefined;
|
|
222
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
223
|
+
const callback = (rawResponse, flatResponse) => {
|
|
224
|
+
currentRawResponse = rawResponse;
|
|
225
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
226
|
+
};
|
|
227
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
228
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
229
|
+
return {
|
|
230
|
+
flatResponse,
|
|
231
|
+
rawResponse: {
|
|
232
|
+
statusCode: currentRawResponse.status,
|
|
233
|
+
body: currentRawResponse.parsedBody,
|
|
234
|
+
headers: currentRawResponse.headers.toJSON()
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
});
|
|
238
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, elasticSanName, volumeGroupName, options }, deleteOperationSpec);
|
|
239
|
+
const poller = new LroEngine(lro, {
|
|
240
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
241
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
242
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
243
|
+
});
|
|
244
|
+
yield poller.poll();
|
|
245
|
+
return poller;
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Delete an VolumeGroup.
|
|
250
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
251
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
252
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
253
|
+
* @param options The options parameters.
|
|
254
|
+
*/
|
|
255
|
+
beginDeleteAndWait(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
257
|
+
const poller = yield this.beginDelete(resourceGroupName, elasticSanName, volumeGroupName, options);
|
|
258
|
+
return poller.pollUntilDone();
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Get an VolumeGroups.
|
|
263
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
264
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
265
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
266
|
+
* @param options The options parameters.
|
|
267
|
+
*/
|
|
268
|
+
get(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
269
|
+
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, volumeGroupName, options }, getOperationSpec);
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* ListByElasticSanNext
|
|
273
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
274
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
275
|
+
* @param nextLink The nextLink from the previous successful call to the ListByElasticSan method.
|
|
276
|
+
* @param options The options parameters.
|
|
277
|
+
*/
|
|
278
|
+
_listByElasticSanNext(resourceGroupName, elasticSanName, nextLink, options) {
|
|
279
|
+
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, nextLink, options }, listByElasticSanNextOperationSpec);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
// Operation Specifications
|
|
283
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
284
|
+
const listByElasticSanOperationSpec = {
|
|
285
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumeGroups",
|
|
286
|
+
httpMethod: "GET",
|
|
287
|
+
responses: {
|
|
288
|
+
200: {
|
|
289
|
+
bodyMapper: Mappers.VolumeGroupList
|
|
290
|
+
},
|
|
291
|
+
default: {
|
|
292
|
+
bodyMapper: Mappers.ErrorModel
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
queryParameters: [Parameters.apiVersion],
|
|
296
|
+
urlParameters: [
|
|
297
|
+
Parameters.$host,
|
|
298
|
+
Parameters.subscriptionId,
|
|
299
|
+
Parameters.resourceGroupName,
|
|
300
|
+
Parameters.elasticSanName
|
|
301
|
+
],
|
|
302
|
+
headerParameters: [Parameters.accept],
|
|
303
|
+
serializer
|
|
304
|
+
};
|
|
305
|
+
const createOperationSpec = {
|
|
306
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
307
|
+
httpMethod: "PUT",
|
|
308
|
+
responses: {
|
|
309
|
+
200: {
|
|
310
|
+
bodyMapper: Mappers.VolumeGroup
|
|
311
|
+
},
|
|
312
|
+
201: {
|
|
313
|
+
bodyMapper: Mappers.VolumeGroup
|
|
314
|
+
},
|
|
315
|
+
202: {
|
|
316
|
+
bodyMapper: Mappers.VolumeGroup
|
|
317
|
+
},
|
|
318
|
+
204: {
|
|
319
|
+
bodyMapper: Mappers.VolumeGroup
|
|
320
|
+
},
|
|
321
|
+
default: {
|
|
322
|
+
bodyMapper: Mappers.ErrorModel
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
requestBody: Parameters.parameters2,
|
|
326
|
+
queryParameters: [Parameters.apiVersion],
|
|
327
|
+
urlParameters: [
|
|
328
|
+
Parameters.$host,
|
|
329
|
+
Parameters.subscriptionId,
|
|
330
|
+
Parameters.resourceGroupName,
|
|
331
|
+
Parameters.elasticSanName,
|
|
332
|
+
Parameters.volumeGroupName
|
|
333
|
+
],
|
|
334
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
335
|
+
mediaType: "json",
|
|
336
|
+
serializer
|
|
337
|
+
};
|
|
338
|
+
const updateOperationSpec = {
|
|
339
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
340
|
+
httpMethod: "PATCH",
|
|
341
|
+
responses: {
|
|
342
|
+
200: {
|
|
343
|
+
bodyMapper: Mappers.VolumeGroup
|
|
344
|
+
},
|
|
345
|
+
201: {
|
|
346
|
+
bodyMapper: Mappers.VolumeGroup
|
|
347
|
+
},
|
|
348
|
+
202: {
|
|
349
|
+
bodyMapper: Mappers.VolumeGroup
|
|
350
|
+
},
|
|
351
|
+
204: {
|
|
352
|
+
bodyMapper: Mappers.VolumeGroup
|
|
353
|
+
},
|
|
354
|
+
default: {
|
|
355
|
+
bodyMapper: Mappers.ErrorModel
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
requestBody: Parameters.parameters3,
|
|
359
|
+
queryParameters: [Parameters.apiVersion],
|
|
360
|
+
urlParameters: [
|
|
361
|
+
Parameters.$host,
|
|
362
|
+
Parameters.subscriptionId,
|
|
363
|
+
Parameters.resourceGroupName,
|
|
364
|
+
Parameters.elasticSanName,
|
|
365
|
+
Parameters.volumeGroupName
|
|
366
|
+
],
|
|
367
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
368
|
+
mediaType: "json",
|
|
369
|
+
serializer
|
|
370
|
+
};
|
|
371
|
+
const deleteOperationSpec = {
|
|
372
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
373
|
+
httpMethod: "DELETE",
|
|
374
|
+
responses: {
|
|
375
|
+
200: {},
|
|
376
|
+
201: {},
|
|
377
|
+
202: {},
|
|
378
|
+
204: {},
|
|
379
|
+
default: {
|
|
380
|
+
bodyMapper: Mappers.ErrorModel
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
queryParameters: [Parameters.apiVersion],
|
|
384
|
+
urlParameters: [
|
|
385
|
+
Parameters.$host,
|
|
386
|
+
Parameters.subscriptionId,
|
|
387
|
+
Parameters.resourceGroupName,
|
|
388
|
+
Parameters.elasticSanName,
|
|
389
|
+
Parameters.volumeGroupName
|
|
390
|
+
],
|
|
391
|
+
headerParameters: [Parameters.accept],
|
|
392
|
+
serializer
|
|
393
|
+
};
|
|
394
|
+
const getOperationSpec = {
|
|
395
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
396
|
+
httpMethod: "GET",
|
|
397
|
+
responses: {
|
|
398
|
+
200: {
|
|
399
|
+
bodyMapper: Mappers.VolumeGroup
|
|
400
|
+
},
|
|
401
|
+
default: {
|
|
402
|
+
bodyMapper: Mappers.ErrorModel
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
queryParameters: [Parameters.apiVersion],
|
|
406
|
+
urlParameters: [
|
|
407
|
+
Parameters.$host,
|
|
408
|
+
Parameters.subscriptionId,
|
|
409
|
+
Parameters.resourceGroupName,
|
|
410
|
+
Parameters.elasticSanName,
|
|
411
|
+
Parameters.volumeGroupName
|
|
412
|
+
],
|
|
413
|
+
headerParameters: [Parameters.accept],
|
|
414
|
+
serializer
|
|
415
|
+
};
|
|
416
|
+
const listByElasticSanNextOperationSpec = {
|
|
417
|
+
path: "{nextLink}",
|
|
418
|
+
httpMethod: "GET",
|
|
419
|
+
responses: {
|
|
420
|
+
200: {
|
|
421
|
+
bodyMapper: Mappers.VolumeGroupList
|
|
422
|
+
},
|
|
423
|
+
default: {
|
|
424
|
+
bodyMapper: Mappers.ErrorModel
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
queryParameters: [Parameters.apiVersion],
|
|
428
|
+
urlParameters: [
|
|
429
|
+
Parameters.$host,
|
|
430
|
+
Parameters.subscriptionId,
|
|
431
|
+
Parameters.resourceGroupName,
|
|
432
|
+
Parameters.elasticSanName,
|
|
433
|
+
Parameters.nextLink
|
|
434
|
+
],
|
|
435
|
+
headerParameters: [Parameters.accept],
|
|
436
|
+
serializer
|
|
437
|
+
};
|
|
438
|
+
//# sourceMappingURL=volumeGroups.js.map
|