@azure/arm-elasticsan 1.0.0-beta.2 → 1.0.0-beta.3
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 +6 -2
- package/README.md +1 -1
- package/dist/index.js +899 -123
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansCreateSample.js +7 -6
- package/dist-esm/samples-dev/elasticSansCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansDeleteSample.js +2 -2
- package/dist-esm/samples-dev/elasticSansGetSample.js +2 -2
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js +2 -2
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js +2 -2
- package/dist-esm/samples-dev/elasticSansUpdateSample.js +6 -5
- package/dist-esm/samples-dev/elasticSansUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +6 -10
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +2 -2
- package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js +2 -2
- package/dist-esm/samples-dev/skusListSample.js +3 -3
- package/dist-esm/samples-dev/skusListSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js +12 -3
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/volumeGroupsGetSample.js +2 -2
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js +2 -2
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +11 -2
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeSnapshotsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumeSnapshotsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js +70 -0
- package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.js +60 -0
- package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/volumeSnapshotsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumeSnapshotsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeSnapshotsGetSample.js +60 -0
- package/dist-esm/samples-dev/volumeSnapshotsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js +102 -0
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/volumesCreateSample.js +6 -5
- package/dist-esm/samples-dev/volumesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesDeleteSample.js +9 -3
- package/dist-esm/samples-dev/volumesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesGetSample.js +2 -2
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js +2 -2
- package/dist-esm/samples-dev/volumesUpdateSample.js +2 -2
- package/dist-esm/src/elasticSanManagement.d.ts +2 -1
- package/dist-esm/src/elasticSanManagement.d.ts.map +1 -1
- package/dist-esm/src/elasticSanManagement.js +4 -3
- package/dist-esm/src/elasticSanManagement.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +284 -13
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +56 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +10 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +303 -20
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +4 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +39 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/volumeSnapshots.d.ts +89 -0
- package/dist-esm/src/operations/volumeSnapshots.d.ts.map +1 -0
- package/dist-esm/src/operations/volumeSnapshots.js +395 -0
- package/dist-esm/src/operations/volumeSnapshots.js.map +1 -0
- package/dist-esm/src/operations/volumes.js +5 -1
- package/dist-esm/src/operations/volumes.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/volumeSnapshots.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/volumeSnapshots.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumeSnapshots.js +9 -0
- package/dist-esm/src/operationsInterfaces/volumeSnapshots.js.map +1 -0
- package/package.json +12 -18
- package/review/arm-elasticsan.api.md +187 -6
- package/src/elasticSanManagement.ts +8 -4
- package/src/models/index.ts +316 -18
- package/src/models/mappers.ts +323 -19
- package/src/models/parameters.ts +44 -2
- package/src/operations/index.ts +1 -0
- package/src/operations/volumeSnapshots.ts +551 -0
- package/src/operations/volumes.ts +5 -1
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/volumeSnapshots.ts +121 -0
- package/types/arm-elasticsan.d.ts +375 -14
- package/types/tsdoc-metadata.json +1 -1
- package/rollup.config.js +0 -122
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Delete an Volume.
|
|
17
17
|
*
|
|
18
18
|
* @summary Delete an Volume.
|
|
19
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_Delete_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesDeleteMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -25,9 +25,15 @@ function volumesDeleteMaximumSetGen() {
|
|
|
25
25
|
const elasticSanName = "elasticsanname";
|
|
26
26
|
const volumeGroupName = "volumegroupname";
|
|
27
27
|
const volumeName = "volumename";
|
|
28
|
+
const xMsDeleteSnapshots = "true";
|
|
29
|
+
const xMsForceDelete = "true";
|
|
30
|
+
const options = {
|
|
31
|
+
xMsDeleteSnapshots,
|
|
32
|
+
xMsForceDelete
|
|
33
|
+
};
|
|
28
34
|
const credential = new DefaultAzureCredential();
|
|
29
35
|
const client = new ElasticSanManagement(credential, subscriptionId);
|
|
30
|
-
const result = yield client.volumes.beginDeleteAndWait(resourceGroupName, elasticSanName, volumeGroupName, volumeName);
|
|
36
|
+
const result = yield client.volumes.beginDeleteAndWait(resourceGroupName, elasticSanName, volumeGroupName, volumeName, options);
|
|
31
37
|
console.log(result);
|
|
32
38
|
});
|
|
33
39
|
}
|
|
@@ -35,7 +41,7 @@ function volumesDeleteMaximumSetGen() {
|
|
|
35
41
|
* This sample demonstrates how to Delete an Volume.
|
|
36
42
|
*
|
|
37
43
|
* @summary Delete an Volume.
|
|
38
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/
|
|
44
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_Delete_MinimumSet_Gen.json
|
|
39
45
|
*/
|
|
40
46
|
function volumesDeleteMinimumSetGen() {
|
|
41
47
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/volumesDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"volumesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/volumesDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,0BAA0B;;QACvC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,IAAI,gBAAgB,CAAC;QACjE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,mBAAmB,CAAC;QACnE,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACxC,MAAM,eAAe,GAAG,iBAAiB,CAAC;QAC1C,MAAM,UAAU,GAAG,YAAY,CAAC;QAChC,MAAM,kBAAkB,GAAG,MAAM,CAAC;QAClC,MAAM,cAAc,GAAG,MAAM,CAAC;QAC9B,MAAM,OAAO,GAAgC;YAC3C,kBAAkB;YAClB,cAAc;SACf,CAAC;QACF,MAA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-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_Get_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesGetMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -35,7 +35,7 @@ function volumesGetMaximumSetGen() {
|
|
|
35
35
|
* This sample demonstrates how to Get an Volume.
|
|
36
36
|
*
|
|
37
37
|
* @summary Get an Volume.
|
|
38
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/
|
|
38
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_Get_MinimumSet_Gen.json
|
|
39
39
|
*/
|
|
40
40
|
function volumesGetMinimumSetGen() {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to List Volumes in a VolumeGroup.
|
|
17
17
|
*
|
|
18
18
|
* @summary List Volumes in a VolumeGroup.
|
|
19
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_ListByVolumeGroup_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesListByVolumeGroupMaximumSetGen() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -55,7 +55,7 @@ function volumesListByVolumeGroupMaximumSetGen() {
|
|
|
55
55
|
* This sample demonstrates how to List Volumes in a VolumeGroup.
|
|
56
56
|
*
|
|
57
57
|
* @summary List Volumes in a VolumeGroup.
|
|
58
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/
|
|
58
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_ListByVolumeGroup_MinimumSet_Gen.json
|
|
59
59
|
*/
|
|
60
60
|
function volumesListByVolumeGroupMinimumSetGen() {
|
|
61
61
|
var _a, e_2, _b, _c;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Update an Volume.
|
|
17
17
|
*
|
|
18
18
|
* @summary Update an Volume.
|
|
19
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_Update_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesUpdateMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -36,7 +36,7 @@ function volumesUpdateMaximumSetGen() {
|
|
|
36
36
|
* This sample demonstrates how to Update an Volume.
|
|
37
37
|
*
|
|
38
38
|
* @summary Update an Volume.
|
|
39
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/
|
|
39
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Volumes_Update_MinimumSet_Gen.json
|
|
40
40
|
*/
|
|
41
41
|
function volumesUpdateMinimumSetGen() {
|
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
2
|
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import { Operations, Skus, ElasticSans, VolumeGroups, Volumes, PrivateEndpointConnections, PrivateLinkResources } from "./operationsInterfaces";
|
|
3
|
+
import { Operations, Skus, ElasticSans, VolumeGroups, Volumes, PrivateEndpointConnections, PrivateLinkResources, VolumeSnapshots } from "./operationsInterfaces";
|
|
4
4
|
import { ElasticSanManagementOptionalParams } from "./models";
|
|
5
5
|
export declare class ElasticSanManagement extends coreClient.ServiceClient {
|
|
6
6
|
$host: string;
|
|
@@ -22,5 +22,6 @@ export declare class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
22
22
|
volumes: Volumes;
|
|
23
23
|
privateEndpointConnections: PrivateEndpointConnections;
|
|
24
24
|
privateLinkResources: PrivateLinkResources;
|
|
25
|
+
volumeSnapshots: VolumeSnapshots;
|
|
25
26
|
}
|
|
26
27
|
//# sourceMappingURL=elasticSanManagement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elasticSanManagement.d.ts","sourceRoot":"","sources":["../../src/elasticSanManagement.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"elasticSanManagement.d.ts","sourceRoot":"","sources":["../../src/elasticSanManagement.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAW7C,OAAO,EACL,UAAU,EACV,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,OAAO,EACP,0BAA0B,EAC1B,oBAAoB,EACpB,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kCAAkC,EAAE,MAAM,UAAU,CAAC;AAE9D,qBAAa,oBAAqB,SAAQ,UAAU,CAAC,aAAa;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,kCAAkC;IAmF9C,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,IAAI,CAAC;IACX,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,YAAY,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,eAAe,EAAE,eAAe,CAAC;CAClC"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
10
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
-
import { OperationsImpl, SkusImpl, ElasticSansImpl, VolumeGroupsImpl, VolumesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl } from "./operations";
|
|
11
|
+
import { OperationsImpl, SkusImpl, ElasticSansImpl, VolumeGroupsImpl, VolumesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, VolumeSnapshotsImpl } from "./operations";
|
|
12
12
|
export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
13
13
|
/**
|
|
14
14
|
* Initializes a new instance of the ElasticSanManagement class.
|
|
@@ -32,7 +32,7 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
32
32
|
requestContentType: "application/json; charset=utf-8",
|
|
33
33
|
credential: credentials
|
|
34
34
|
};
|
|
35
|
-
const packageDetails = `azsdk-js-arm-elasticsan/1.0.0-beta.
|
|
35
|
+
const packageDetails = `azsdk-js-arm-elasticsan/1.0.0-beta.3`;
|
|
36
36
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
37
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
38
|
: `${packageDetails}`;
|
|
@@ -65,7 +65,7 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
65
65
|
this.subscriptionId = subscriptionId;
|
|
66
66
|
// Assigning values to Constant parameters
|
|
67
67
|
this.$host = options.$host || "https://management.azure.com";
|
|
68
|
-
this.apiVersion = options.apiVersion || "
|
|
68
|
+
this.apiVersion = options.apiVersion || "2023-01-01";
|
|
69
69
|
this.operations = new OperationsImpl(this);
|
|
70
70
|
this.skus = new SkusImpl(this);
|
|
71
71
|
this.elasticSans = new ElasticSansImpl(this);
|
|
@@ -73,6 +73,7 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
73
73
|
this.volumes = new VolumesImpl(this);
|
|
74
74
|
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
75
75
|
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
76
|
+
this.volumeSnapshots = new VolumeSnapshotsImpl(this);
|
|
76
77
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
77
78
|
}
|
|
78
79
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elasticSanManagement.js","sourceRoot":"","sources":["../../src/elasticSanManagement.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,QAAQ,EACR,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,8BAA8B,EAC9B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"elasticSanManagement.js","sourceRoot":"","sources":["../../src/elasticSanManagement.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,QAAQ,EACR,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,8BAA8B,EAC9B,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAatB,MAAM,OAAO,oBAAqB,SAAQ,UAAU,CAAC,aAAa;IAKhE;;;;;OAKG;IACH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,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YACxB,WAAW,CACf,OAAwB,EACxB,IAAiB;;oBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;wBACpB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;4BACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE;gCACpC,OAAO,cAAc,GAAG,UAAU,CAAC;6BACpC;iCAAM;gCACL,OAAO,IAAI,CAAC;6BACb;wBACH,CAAC,CAAC,CAAC;wBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;qBACpD;oBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;gBACvB,CAAC;aAAA;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAUF"}
|
|
@@ -254,6 +254,8 @@ export interface ElasticSanUpdate {
|
|
|
254
254
|
baseSizeTiB?: number;
|
|
255
255
|
/** Extended size of the Elastic San appliance in TiB. */
|
|
256
256
|
extendedCapacitySizeTiB?: number;
|
|
257
|
+
/** Allow or disallow public network access to ElasticSan Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. */
|
|
258
|
+
publicNetworkAccess?: PublicNetworkAccess;
|
|
257
259
|
}
|
|
258
260
|
/** List of Volume Groups */
|
|
259
261
|
export interface VolumeGroupList {
|
|
@@ -265,6 +267,74 @@ export interface VolumeGroupList {
|
|
|
265
267
|
*/
|
|
266
268
|
readonly nextLink?: string;
|
|
267
269
|
}
|
|
270
|
+
/** Identity for the resource. */
|
|
271
|
+
export interface Identity {
|
|
272
|
+
/**
|
|
273
|
+
* The principal ID of resource identity.
|
|
274
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
275
|
+
*/
|
|
276
|
+
readonly principalId?: string;
|
|
277
|
+
/**
|
|
278
|
+
* The tenant ID of resource.
|
|
279
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
280
|
+
*/
|
|
281
|
+
readonly tenantId?: string;
|
|
282
|
+
/** The identity type. */
|
|
283
|
+
type: IdentityType;
|
|
284
|
+
/** Gets or sets a list of key value pairs that describe the set of User Assigned identities that will be used with this volume group. The key is the ARM resource identifier of the identity. */
|
|
285
|
+
userAssignedIdentities?: {
|
|
286
|
+
[propertyName: string]: UserAssignedIdentity;
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
/** UserAssignedIdentity for the resource. */
|
|
290
|
+
export interface UserAssignedIdentity {
|
|
291
|
+
/**
|
|
292
|
+
* The principal ID of the identity.
|
|
293
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
294
|
+
*/
|
|
295
|
+
readonly principalId?: string;
|
|
296
|
+
/**
|
|
297
|
+
* The client ID of the identity.
|
|
298
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
299
|
+
*/
|
|
300
|
+
readonly clientId?: string;
|
|
301
|
+
}
|
|
302
|
+
/** The encryption settings on the volume group. */
|
|
303
|
+
export interface EncryptionProperties {
|
|
304
|
+
/** Properties provided by key vault. */
|
|
305
|
+
keyVaultProperties?: KeyVaultProperties;
|
|
306
|
+
/** The identity to be used with service-side encryption at rest. */
|
|
307
|
+
encryptionIdentity?: EncryptionIdentity;
|
|
308
|
+
}
|
|
309
|
+
/** Properties of key vault. */
|
|
310
|
+
export interface KeyVaultProperties {
|
|
311
|
+
/** The name of KeyVault key. */
|
|
312
|
+
keyName?: string;
|
|
313
|
+
/** The version of KeyVault key. */
|
|
314
|
+
keyVersion?: string;
|
|
315
|
+
/** The Uri of KeyVault. */
|
|
316
|
+
keyVaultUri?: string;
|
|
317
|
+
/**
|
|
318
|
+
* The object identifier of the current versioned Key Vault Key in use.
|
|
319
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
320
|
+
*/
|
|
321
|
+
readonly currentVersionedKeyIdentifier?: string;
|
|
322
|
+
/**
|
|
323
|
+
* Timestamp of last rotation of the Key Vault Key.
|
|
324
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
325
|
+
*/
|
|
326
|
+
readonly lastKeyRotationTimestamp?: Date;
|
|
327
|
+
/**
|
|
328
|
+
* This is a read only property that represents the expiration time of the current version of the customer managed key used for encryption.
|
|
329
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
330
|
+
*/
|
|
331
|
+
readonly currentVersionedKeyExpirationTimestamp?: Date;
|
|
332
|
+
}
|
|
333
|
+
/** Encryption identity for the volume group. */
|
|
334
|
+
export interface EncryptionIdentity {
|
|
335
|
+
/** Resource identifier of the UserAssigned identity to be associated with server-side encryption on the volume group. */
|
|
336
|
+
encryptionUserAssignedIdentity?: string;
|
|
337
|
+
}
|
|
268
338
|
/** A set of rules governing the network accessibility. */
|
|
269
339
|
export interface NetworkRuleSet {
|
|
270
340
|
/** The list of virtual network rules. */
|
|
@@ -275,28 +345,27 @@ export interface VirtualNetworkRule {
|
|
|
275
345
|
/** Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. */
|
|
276
346
|
virtualNetworkResourceId: string;
|
|
277
347
|
/** The action of virtual network rule. */
|
|
278
|
-
action?:
|
|
279
|
-
/**
|
|
280
|
-
* Gets the state of virtual network rule.
|
|
281
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
282
|
-
*/
|
|
283
|
-
readonly state?: State;
|
|
348
|
+
action?: Action;
|
|
284
349
|
}
|
|
285
350
|
/** Volume Group request. */
|
|
286
351
|
export interface VolumeGroupUpdate {
|
|
352
|
+
/** The identity of the resource. */
|
|
353
|
+
identity?: Identity;
|
|
287
354
|
/** Type of storage target */
|
|
288
355
|
protocolType?: StorageTargetType;
|
|
289
356
|
/** Type of encryption */
|
|
290
357
|
encryption?: EncryptionType;
|
|
358
|
+
/** Encryption Properties describing Key Vault and Identity information */
|
|
359
|
+
encryptionProperties?: EncryptionProperties;
|
|
291
360
|
/** A collection of rules governing the accessibility from specific network locations. */
|
|
292
361
|
networkAcls?: NetworkRuleSet;
|
|
293
362
|
}
|
|
294
363
|
/** Data source used when creating the volume. */
|
|
295
364
|
export interface SourceCreationData {
|
|
296
365
|
/** This enumerates the possible sources of a volume creation. */
|
|
297
|
-
createSource?:
|
|
298
|
-
/**
|
|
299
|
-
|
|
366
|
+
createSource?: VolumeCreateOption;
|
|
367
|
+
/** Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */
|
|
368
|
+
sourceId?: string;
|
|
300
369
|
}
|
|
301
370
|
/** Iscsi target information */
|
|
302
371
|
export interface IscsiTargetInfo {
|
|
@@ -323,10 +392,17 @@ export interface IscsiTargetInfo {
|
|
|
323
392
|
/** Operational status of the iSCSI Target. */
|
|
324
393
|
status?: OperationalStatus;
|
|
325
394
|
}
|
|
395
|
+
/** Parent resource information. */
|
|
396
|
+
export interface ManagedByInfo {
|
|
397
|
+
/** Resource ID of the resource managing the volume, this is a restricted field and can only be set for internal use. */
|
|
398
|
+
resourceId?: string;
|
|
399
|
+
}
|
|
326
400
|
/** Response for Volume request. */
|
|
327
401
|
export interface VolumeUpdate {
|
|
328
402
|
/** Volume size. */
|
|
329
403
|
sizeGiB?: number;
|
|
404
|
+
/** Parent resource information. */
|
|
405
|
+
managedBy?: ManagedByInfo;
|
|
330
406
|
}
|
|
331
407
|
/** List of Volumes */
|
|
332
408
|
export interface VolumeList {
|
|
@@ -358,6 +434,21 @@ export interface PrivateLinkResourceListResult {
|
|
|
358
434
|
*/
|
|
359
435
|
readonly nextLink?: string;
|
|
360
436
|
}
|
|
437
|
+
/** List of Snapshots */
|
|
438
|
+
export interface SnapshotList {
|
|
439
|
+
/** An array of Snapshot objects. */
|
|
440
|
+
value?: Snapshot[];
|
|
441
|
+
/**
|
|
442
|
+
* URI to fetch the next section of the paginated response.
|
|
443
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
444
|
+
*/
|
|
445
|
+
readonly nextLink?: string;
|
|
446
|
+
}
|
|
447
|
+
/** Data used when creating a volume snapshot. */
|
|
448
|
+
export interface SnapshotCreationData {
|
|
449
|
+
/** Fully qualified resource ID of the volume. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}" */
|
|
450
|
+
sourceId: string;
|
|
451
|
+
}
|
|
361
452
|
/** Response for PrivateEndpoint Connection object */
|
|
362
453
|
export interface PrivateEndpointConnection extends Resource {
|
|
363
454
|
/**
|
|
@@ -444,9 +535,13 @@ export interface ElasticSan extends TrackedResource {
|
|
|
444
535
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
445
536
|
*/
|
|
446
537
|
readonly privateEndpointConnections?: PrivateEndpointConnection[];
|
|
538
|
+
/** Allow or disallow public network access to ElasticSan. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. */
|
|
539
|
+
publicNetworkAccess?: PublicNetworkAccess;
|
|
447
540
|
}
|
|
448
541
|
/** Response for Volume Group request. */
|
|
449
542
|
export interface VolumeGroup extends ProxyResource {
|
|
543
|
+
/** The identity of the resource. */
|
|
544
|
+
identity?: Identity;
|
|
450
545
|
/**
|
|
451
546
|
* State of the operation on the resource.
|
|
452
547
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -456,6 +551,8 @@ export interface VolumeGroup extends ProxyResource {
|
|
|
456
551
|
protocolType?: StorageTargetType;
|
|
457
552
|
/** Type of encryption */
|
|
458
553
|
encryption?: EncryptionType;
|
|
554
|
+
/** Encryption Properties describing Key Vault and Identity information */
|
|
555
|
+
encryptionProperties?: EncryptionProperties;
|
|
459
556
|
/** A collection of rules governing the accessibility from specific network locations. */
|
|
460
557
|
networkAcls?: NetworkRuleSet;
|
|
461
558
|
/**
|
|
@@ -480,6 +577,33 @@ export interface Volume extends ProxyResource {
|
|
|
480
577
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
481
578
|
*/
|
|
482
579
|
readonly storageTarget?: IscsiTargetInfo;
|
|
580
|
+
/** Parent resource information. */
|
|
581
|
+
managedBy?: ManagedByInfo;
|
|
582
|
+
/**
|
|
583
|
+
* State of the operation on the resource.
|
|
584
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
585
|
+
*/
|
|
586
|
+
readonly provisioningState?: ProvisioningStates;
|
|
587
|
+
}
|
|
588
|
+
/** Response for Volume Snapshot request. */
|
|
589
|
+
export interface Snapshot extends ProxyResource {
|
|
590
|
+
/** Data used when creating a volume snapshot. */
|
|
591
|
+
creationData: SnapshotCreationData;
|
|
592
|
+
/**
|
|
593
|
+
* State of the operation on the resource.
|
|
594
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
595
|
+
*/
|
|
596
|
+
readonly provisioningState?: ProvisioningStates;
|
|
597
|
+
/**
|
|
598
|
+
* Size of Source Volume
|
|
599
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
600
|
+
*/
|
|
601
|
+
readonly sourceVolumeSizeGiB?: number;
|
|
602
|
+
/**
|
|
603
|
+
* Source Volume Name of a snapshot
|
|
604
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
605
|
+
*/
|
|
606
|
+
readonly volumeName?: string;
|
|
483
607
|
}
|
|
484
608
|
/** Defines headers for ElasticSans_update operation. */
|
|
485
609
|
export interface ElasticSansUpdateHeaders {
|
|
@@ -509,6 +633,10 @@ export interface VolumesDeleteHeaders {
|
|
|
509
633
|
export interface PrivateEndpointConnectionsDeleteHeaders {
|
|
510
634
|
location?: string;
|
|
511
635
|
}
|
|
636
|
+
/** Defines headers for VolumeSnapshots_delete operation. */
|
|
637
|
+
export interface VolumeSnapshotsDeleteHeaders {
|
|
638
|
+
location?: string;
|
|
639
|
+
}
|
|
512
640
|
/** Known values of {@link Origin} that the service accepts. */
|
|
513
641
|
export declare enum KnownOrigin {
|
|
514
642
|
/** User */
|
|
@@ -648,6 +776,41 @@ export declare enum KnownCreatedByType {
|
|
|
648
776
|
* **Key**
|
|
649
777
|
*/
|
|
650
778
|
export type CreatedByType = string;
|
|
779
|
+
/** Known values of {@link PublicNetworkAccess} that the service accepts. */
|
|
780
|
+
export declare enum KnownPublicNetworkAccess {
|
|
781
|
+
/** Enabled */
|
|
782
|
+
Enabled = "Enabled",
|
|
783
|
+
/** Disabled */
|
|
784
|
+
Disabled = "Disabled"
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* Defines values for PublicNetworkAccess. \
|
|
788
|
+
* {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess,
|
|
789
|
+
* this enum contains the known values that the service supports.
|
|
790
|
+
* ### Known values supported by the service
|
|
791
|
+
* **Enabled** \
|
|
792
|
+
* **Disabled**
|
|
793
|
+
*/
|
|
794
|
+
export type PublicNetworkAccess = string;
|
|
795
|
+
/** Known values of {@link IdentityType} that the service accepts. */
|
|
796
|
+
export declare enum KnownIdentityType {
|
|
797
|
+
/** None */
|
|
798
|
+
None = "None",
|
|
799
|
+
/** SystemAssigned */
|
|
800
|
+
SystemAssigned = "SystemAssigned",
|
|
801
|
+
/** UserAssigned */
|
|
802
|
+
UserAssigned = "UserAssigned"
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Defines values for IdentityType. \
|
|
806
|
+
* {@link KnownIdentityType} can be used interchangeably with IdentityType,
|
|
807
|
+
* this enum contains the known values that the service supports.
|
|
808
|
+
* ### Known values supported by the service
|
|
809
|
+
* **None** \
|
|
810
|
+
* **SystemAssigned** \
|
|
811
|
+
* **UserAssigned**
|
|
812
|
+
*/
|
|
813
|
+
export type IdentityType = string;
|
|
651
814
|
/** Known values of {@link StorageTargetType} that the service accepts. */
|
|
652
815
|
export declare enum KnownStorageTargetType {
|
|
653
816
|
/** Iscsi */
|
|
@@ -667,16 +830,57 @@ export type StorageTargetType = string;
|
|
|
667
830
|
/** Known values of {@link EncryptionType} that the service accepts. */
|
|
668
831
|
export declare enum KnownEncryptionType {
|
|
669
832
|
/** Volume is encrypted at rest with Platform managed key. It is the default encryption type. */
|
|
670
|
-
EncryptionAtRestWithPlatformKey = "EncryptionAtRestWithPlatformKey"
|
|
833
|
+
EncryptionAtRestWithPlatformKey = "EncryptionAtRestWithPlatformKey",
|
|
834
|
+
/** Volume is encrypted at rest with Customer managed key that can be changed and revoked by a customer. */
|
|
835
|
+
EncryptionAtRestWithCustomerManagedKey = "EncryptionAtRestWithCustomerManagedKey"
|
|
671
836
|
}
|
|
672
837
|
/**
|
|
673
838
|
* Defines values for EncryptionType. \
|
|
674
839
|
* {@link KnownEncryptionType} can be used interchangeably with EncryptionType,
|
|
675
840
|
* this enum contains the known values that the service supports.
|
|
676
841
|
* ### Known values supported by the service
|
|
677
|
-
* **EncryptionAtRestWithPlatformKey**: Volume is encrypted at rest with Platform managed key. It is the default encryption type.
|
|
842
|
+
* **EncryptionAtRestWithPlatformKey**: Volume is encrypted at rest with Platform managed key. It is the default encryption type. \
|
|
843
|
+
* **EncryptionAtRestWithCustomerManagedKey**: Volume is encrypted at rest with Customer managed key that can be changed and revoked by a customer.
|
|
678
844
|
*/
|
|
679
845
|
export type EncryptionType = string;
|
|
846
|
+
/** Known values of {@link Action} that the service accepts. */
|
|
847
|
+
export declare enum KnownAction {
|
|
848
|
+
/** Allow */
|
|
849
|
+
Allow = "Allow"
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* Defines values for Action. \
|
|
853
|
+
* {@link KnownAction} can be used interchangeably with Action,
|
|
854
|
+
* this enum contains the known values that the service supports.
|
|
855
|
+
* ### Known values supported by the service
|
|
856
|
+
* **Allow**
|
|
857
|
+
*/
|
|
858
|
+
export type Action = string;
|
|
859
|
+
/** Known values of {@link VolumeCreateOption} that the service accepts. */
|
|
860
|
+
export declare enum KnownVolumeCreateOption {
|
|
861
|
+
/** None */
|
|
862
|
+
None = "None",
|
|
863
|
+
/** VolumeSnapshot */
|
|
864
|
+
VolumeSnapshot = "VolumeSnapshot",
|
|
865
|
+
/** DiskSnapshot */
|
|
866
|
+
DiskSnapshot = "DiskSnapshot",
|
|
867
|
+
/** Disk */
|
|
868
|
+
Disk = "Disk",
|
|
869
|
+
/** DiskRestorePoint */
|
|
870
|
+
DiskRestorePoint = "DiskRestorePoint"
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* Defines values for VolumeCreateOption. \
|
|
874
|
+
* {@link KnownVolumeCreateOption} can be used interchangeably with VolumeCreateOption,
|
|
875
|
+
* this enum contains the known values that the service supports.
|
|
876
|
+
* ### Known values supported by the service
|
|
877
|
+
* **None** \
|
|
878
|
+
* **VolumeSnapshot** \
|
|
879
|
+
* **DiskSnapshot** \
|
|
880
|
+
* **Disk** \
|
|
881
|
+
* **DiskRestorePoint**
|
|
882
|
+
*/
|
|
883
|
+
export type VolumeCreateOption = string;
|
|
680
884
|
/** Known values of {@link OperationalStatus} that the service accepts. */
|
|
681
885
|
export declare enum KnownOperationalStatus {
|
|
682
886
|
/** Invalid */
|
|
@@ -711,8 +915,38 @@ export declare enum KnownOperationalStatus {
|
|
|
711
915
|
* **Stopped (deallocated)**
|
|
712
916
|
*/
|
|
713
917
|
export type OperationalStatus = string;
|
|
714
|
-
/**
|
|
715
|
-
export
|
|
918
|
+
/** Known values of {@link XMsDeleteSnapshots} that the service accepts. */
|
|
919
|
+
export declare enum KnownXMsDeleteSnapshots {
|
|
920
|
+
/** True */
|
|
921
|
+
True = "true",
|
|
922
|
+
/** False */
|
|
923
|
+
False = "false"
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* Defines values for XMsDeleteSnapshots. \
|
|
927
|
+
* {@link KnownXMsDeleteSnapshots} can be used interchangeably with XMsDeleteSnapshots,
|
|
928
|
+
* this enum contains the known values that the service supports.
|
|
929
|
+
* ### Known values supported by the service
|
|
930
|
+
* **true** \
|
|
931
|
+
* **false**
|
|
932
|
+
*/
|
|
933
|
+
export type XMsDeleteSnapshots = string;
|
|
934
|
+
/** Known values of {@link XMsForceDelete} that the service accepts. */
|
|
935
|
+
export declare enum KnownXMsForceDelete {
|
|
936
|
+
/** True */
|
|
937
|
+
True = "true",
|
|
938
|
+
/** False */
|
|
939
|
+
False = "false"
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
* Defines values for XMsForceDelete. \
|
|
943
|
+
* {@link KnownXMsForceDelete} can be used interchangeably with XMsForceDelete,
|
|
944
|
+
* this enum contains the known values that the service supports.
|
|
945
|
+
* ### Known values supported by the service
|
|
946
|
+
* **true** \
|
|
947
|
+
* **false**
|
|
948
|
+
*/
|
|
949
|
+
export type XMsForceDelete = string;
|
|
716
950
|
/** Optional parameters. */
|
|
717
951
|
export interface OperationsListOptionalParams extends coreClient.OperationOptions {
|
|
718
952
|
}
|
|
@@ -835,6 +1069,10 @@ export interface VolumesUpdateOptionalParams extends coreClient.OperationOptions
|
|
|
835
1069
|
export type VolumesUpdateResponse = Volume;
|
|
836
1070
|
/** Optional parameters. */
|
|
837
1071
|
export interface VolumesDeleteOptionalParams extends coreClient.OperationOptions {
|
|
1072
|
+
/** Optional, used to delete snapshots under volume. Allowed value are only true or false. Default value is false. */
|
|
1073
|
+
xMsDeleteSnapshots?: XMsDeleteSnapshots;
|
|
1074
|
+
/** Optional, used to delete volume if active sessions present. Allowed value are only true or false. Default value is false. */
|
|
1075
|
+
xMsForceDelete?: XMsForceDelete;
|
|
838
1076
|
/** Delay to wait until next poll, in milliseconds. */
|
|
839
1077
|
updateIntervalInMs?: number;
|
|
840
1078
|
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
@@ -887,6 +1125,39 @@ export interface PrivateLinkResourcesListByElasticSanOptionalParams extends core
|
|
|
887
1125
|
/** Contains response data for the listByElasticSan operation. */
|
|
888
1126
|
export type PrivateLinkResourcesListByElasticSanResponse = PrivateLinkResourceListResult;
|
|
889
1127
|
/** Optional parameters. */
|
|
1128
|
+
export interface VolumeSnapshotsListByVolumeGroupOptionalParams extends coreClient.OperationOptions {
|
|
1129
|
+
/** Specify $filter='volumeName eq <volume name>' to filter on volume. */
|
|
1130
|
+
filter?: string;
|
|
1131
|
+
}
|
|
1132
|
+
/** Contains response data for the listByVolumeGroup operation. */
|
|
1133
|
+
export type VolumeSnapshotsListByVolumeGroupResponse = SnapshotList;
|
|
1134
|
+
/** Optional parameters. */
|
|
1135
|
+
export interface VolumeSnapshotsCreateOptionalParams extends coreClient.OperationOptions {
|
|
1136
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
1137
|
+
updateIntervalInMs?: number;
|
|
1138
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
1139
|
+
resumeFrom?: string;
|
|
1140
|
+
}
|
|
1141
|
+
/** Contains response data for the create operation. */
|
|
1142
|
+
export type VolumeSnapshotsCreateResponse = Snapshot;
|
|
1143
|
+
/** Optional parameters. */
|
|
1144
|
+
export interface VolumeSnapshotsDeleteOptionalParams extends coreClient.OperationOptions {
|
|
1145
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
1146
|
+
updateIntervalInMs?: number;
|
|
1147
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
1148
|
+
resumeFrom?: string;
|
|
1149
|
+
}
|
|
1150
|
+
/** Optional parameters. */
|
|
1151
|
+
export interface VolumeSnapshotsGetOptionalParams extends coreClient.OperationOptions {
|
|
1152
|
+
}
|
|
1153
|
+
/** Contains response data for the get operation. */
|
|
1154
|
+
export type VolumeSnapshotsGetResponse = Snapshot;
|
|
1155
|
+
/** Optional parameters. */
|
|
1156
|
+
export interface VolumeSnapshotsListByVolumeGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
1157
|
+
}
|
|
1158
|
+
/** Contains response data for the listByVolumeGroupNext operation. */
|
|
1159
|
+
export type VolumeSnapshotsListByVolumeGroupNextResponse = SnapshotList;
|
|
1160
|
+
/** Optional parameters. */
|
|
890
1161
|
export interface ElasticSanManagementOptionalParams extends coreClient.ServiceClientOptions {
|
|
891
1162
|
/** server parameter */
|
|
892
1163
|
$host?: string;
|