@azure/arm-elasticsan 1.0.1-alpha.20240925.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -9
- package/dist/index.js +849 -837
- 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 +6 -6
- 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 +4 -4
- package/dist-esm/samples-dev/operationsListSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +7 -7
- 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 +17 -14
- 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 +16 -13
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js +8 -8
- package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/volumeSnapshotsGetSample.js +2 -2
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js +3 -3
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesCreateSample.js +4 -4
- package/dist-esm/samples-dev/volumesDeleteSample.js +4 -4
- 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.map +1 -1
- package/dist-esm/src/elasticSanManagement.js +9 -9
- package/dist-esm/src/elasticSanManagement.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +4 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +531 -519
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +61 -61
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/elasticSans.d.ts.map +1 -1
- package/dist-esm/src/operations/elasticSans.js +59 -59
- package/dist-esm/src/operations/elasticSans.js.map +1 -1
- package/dist-esm/src/operations/operations.js +5 -5
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +35 -35
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +5 -5
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/skus.js +5 -5
- package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/volumeGroups.js +51 -51
- package/dist-esm/src/operations/volumeGroups.js.map +1 -1
- package/dist-esm/src/operations/volumeSnapshots.d.ts.map +1 -1
- package/dist-esm/src/operations/volumeSnapshots.js +40 -40
- package/dist-esm/src/operations/volumeSnapshots.js.map +1 -1
- package/dist-esm/src/operations/volumes.d.ts.map +1 -1
- package/dist-esm/src/operations/volumes.js +54 -54
- package/dist-esm/src/operations/volumes.js.map +1 -1
- package/dist-esm/test/elasticsan_examples.spec.d.ts.map +1 -1
- package/dist-esm/test/elasticsan_examples.spec.js +28 -9
- package/dist-esm/test/elasticsan_examples.spec.js.map +1 -1
- package/package.json +6 -6
- package/review/arm-elasticsan.api.md +2 -0
- package/src/elasticSanManagement.ts +18 -17
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +26 -19
- package/src/models/mappers.ts +549 -536
- package/src/models/parameters.ts +62 -62
- package/src/operations/elasticSans.ts +115 -124
- package/src/operations/operations.ts +10 -10
- package/src/operations/privateEndpointConnections.ts +71 -76
- package/src/operations/privateLinkResources.ts +9 -10
- package/src/operations/skus.ts +9 -9
- package/src/operations/volumeGroups.ts +101 -109
- package/src/operations/volumeSnapshots.ts +79 -85
- package/src/operations/volumes.ts +104 -112
- package/src/operationsInterfaces/elasticSans.ts +10 -10
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/privateEndpointConnections.ts +7 -7
- package/src/operationsInterfaces/privateLinkResources.ts +2 -2
- package/src/operationsInterfaces/skus.ts +1 -1
- package/src/operationsInterfaces/volumeGroups.ts +9 -9
- package/src/operationsInterfaces/volumeSnapshots.ts +7 -7
- package/src/operationsInterfaces/volumes.ts +9 -9
- package/src/pagingHelper.ts +1 -1
- package/types/arm-elasticsan.d.ts +4 -0
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to List all Private Endpoint Connections associated with the Elastic San.
|
|
17
17
|
*
|
|
18
18
|
* @summary List all Private Endpoint Connections associated with the Elastic San.
|
|
19
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/PrivateEndpointConnections_List_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function privateEndpointConnectionsListMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -49,7 +49,7 @@ function privateEndpointConnectionsListMaximumSetGen() {
|
|
|
49
49
|
* This sample demonstrates how to List all Private Endpoint Connections associated with the Elastic San.
|
|
50
50
|
*
|
|
51
51
|
* @summary List all Private Endpoint Connections associated with the Elastic San.
|
|
52
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
52
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/PrivateEndpointConnections_List_MinimumSet_Gen.json
|
|
53
53
|
*/
|
|
54
54
|
function privateEndpointConnectionsListMinimumSetGen() {
|
|
55
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the private link resources that need to be created for a elastic San.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the private link resources that need to be created for a elastic San.
|
|
19
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/PrivateLinkResources_ListByElasticSan_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function privateLinkResourcesListByElasticSanMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -33,7 +33,7 @@ function privateLinkResourcesListByElasticSanMaximumSetGen() {
|
|
|
33
33
|
* This sample demonstrates how to Gets the private link resources that need to be created for a elastic San.
|
|
34
34
|
*
|
|
35
35
|
* @summary Gets the private link resources that need to be created for a elastic San.
|
|
36
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
36
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/PrivateLinkResources_ListByElasticSan_MinimumSet_Gen.json
|
|
37
37
|
*/
|
|
38
38
|
function privateLinkResourcesListByElasticSanMinimumSetGen() {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __asyncValues, __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
|
-
import { ElasticSanManagement } from "@azure/arm-elasticsan";
|
|
11
|
+
import { ElasticSanManagement, } from "@azure/arm-elasticsan";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
13
|
import * as dotenv from "dotenv";
|
|
14
14
|
dotenv.config();
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to List all the available Skus in the region and information related to them
|
|
17
17
|
*
|
|
18
18
|
* @summary List all the available Skus in the region and information related to them
|
|
19
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Skus_List_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function skusListMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -49,7 +49,7 @@ function skusListMaximumSetGen() {
|
|
|
49
49
|
* This sample demonstrates how to List all the available Skus in the region and information related to them
|
|
50
50
|
*
|
|
51
51
|
* @summary List all the available Skus in the region and information related to them
|
|
52
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
52
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Skus_List_MinimumSet_Gen.json
|
|
53
53
|
*/
|
|
54
54
|
function skusListMinimumSetGen() {
|
|
55
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skusListSample.js","sourceRoot":"","sources":["../../samples-dev/skusListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,oBAAoB,
|
|
1
|
+
{"version":3,"file":"skusListSample.js","sourceRoot":"","sources":["../../samples-dev/skusListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,oBAAoB,GACrB,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,qBAAqB;;;QAClC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,IAAI,gBAAgB,CAAC;QACjE,MAAM,MAAM,GAAG,UAAU,CAAC;QAC1B,MAAM,OAAO,GAA2B,EAAE,MAAM,EAAE,CAAC;QACnD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA,IAAA,sDAAE,CAAC;gBAA5B,cAAyB;gBAAzB,WAAyB;gBAArC,IAAI,IAAI,KAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,qBAAqB;;;QAClC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,IAAI,gBAAgB,CAAC;QACjE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAA,IAAA,sDAAE,CAAC;gBAArB,cAAkB;gBAAlB,WAAkB;gBAA9B,IAAI,IAAI,KAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,qBAAqB,EAAE,CAAC;QACxB,qBAAqB,EAAE,CAAC;IAC1B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Create a Volume Group.
|
|
17
17
|
*
|
|
18
18
|
* @summary Create a Volume Group.
|
|
19
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_Create_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeGroupsCreateMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -25,27 +25,30 @@ function volumeGroupsCreateMaximumSetGen() {
|
|
|
25
25
|
const elasticSanName = "elasticsanname";
|
|
26
26
|
const volumeGroupName = "volumegroupname";
|
|
27
27
|
const parameters = {
|
|
28
|
-
identity: { type: "None", userAssignedIdentities: {
|
|
28
|
+
identity: { type: "None", userAssignedIdentities: { key1006: {} } },
|
|
29
29
|
properties: {
|
|
30
|
-
encryption: "
|
|
30
|
+
encryption: "EncryptionAtRestWithPlatformKey",
|
|
31
31
|
encryptionProperties: {
|
|
32
|
-
encryptionIdentity: {
|
|
32
|
+
encryptionIdentity: {
|
|
33
|
+
encryptionUserAssignedIdentity: "gfhkfbozahmmwluqndfgxunssafa",
|
|
34
|
+
},
|
|
33
35
|
keyVaultProperties: {
|
|
34
|
-
keyName: "
|
|
35
|
-
keyVaultUri: "https://microsoft.com/
|
|
36
|
-
keyVersion: "
|
|
37
|
-
}
|
|
36
|
+
keyName: "lunpapamzeimppgobraxjt",
|
|
37
|
+
keyVaultUri: "https://microsoft.com/a",
|
|
38
|
+
keyVersion: "oemygbnfmqhijmonkqfqmy",
|
|
39
|
+
},
|
|
38
40
|
},
|
|
41
|
+
enforceDataIntegrityCheckForIscsi: true,
|
|
39
42
|
networkAcls: {
|
|
40
43
|
virtualNetworkRules: [
|
|
41
44
|
{
|
|
42
45
|
action: "Allow",
|
|
43
|
-
virtualNetworkResourceId: "
|
|
44
|
-
}
|
|
45
|
-
]
|
|
46
|
+
virtualNetworkResourceId: "bkhwaiqvvaguymsmnzzbzz",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
46
49
|
},
|
|
47
|
-
protocolType: "Iscsi"
|
|
48
|
-
}
|
|
50
|
+
protocolType: "Iscsi",
|
|
51
|
+
},
|
|
49
52
|
};
|
|
50
53
|
const credential = new DefaultAzureCredential();
|
|
51
54
|
const client = new ElasticSanManagement(credential, subscriptionId);
|
|
@@ -57,7 +60,7 @@ function volumeGroupsCreateMaximumSetGen() {
|
|
|
57
60
|
* This sample demonstrates how to Create a Volume Group.
|
|
58
61
|
*
|
|
59
62
|
* @summary Create a Volume Group.
|
|
60
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
63
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_Create_MinimumSet_Gen.json
|
|
61
64
|
*/
|
|
62
65
|
function volumeGroupsCreateMinimumSetGen() {
|
|
63
66
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumeGroupsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/volumeGroupsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAe,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,+BAA+B;;QAC5C,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,GAAgB;YAC9B,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,sBAAsB,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE;YACnE,UAAU,EAAE;gBACV,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"volumeGroupsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/volumeGroupsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;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AC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,+BAA+B;;QAC5C,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,GAAgB,EAAE,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,+BAA+B,EAAE,CAAC;QAClC,+BAA+B,EAAE,CAAC;IACpC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Delete an VolumeGroup.
|
|
17
17
|
*
|
|
18
18
|
* @summary Delete an VolumeGroup.
|
|
19
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_Delete_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeGroupsDeleteMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -34,7 +34,7 @@ function volumeGroupsDeleteMaximumSetGen() {
|
|
|
34
34
|
* This sample demonstrates how to Delete an VolumeGroup.
|
|
35
35
|
*
|
|
36
36
|
* @summary Delete an VolumeGroup.
|
|
37
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
37
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_Delete_MinimumSet_Gen.json
|
|
38
38
|
*/
|
|
39
39
|
function volumeGroupsDeleteMinimumSetGen() {
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get an VolumeGroups.
|
|
17
17
|
*
|
|
18
18
|
* @summary Get an VolumeGroups.
|
|
19
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_Get_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeGroupsGetMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -34,7 +34,7 @@ function volumeGroupsGetMaximumSetGen() {
|
|
|
34
34
|
* This sample demonstrates how to Get an VolumeGroups.
|
|
35
35
|
*
|
|
36
36
|
* @summary Get an VolumeGroups.
|
|
37
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
37
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_Get_MinimumSet_Gen.json
|
|
38
38
|
*/
|
|
39
39
|
function volumeGroupsGetMinimumSetGen() {
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to List VolumeGroups.
|
|
17
17
|
*
|
|
18
18
|
* @summary List VolumeGroups.
|
|
19
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_ListByElasticSan_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeGroupsListByElasticSanMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -49,7 +49,7 @@ function volumeGroupsListByElasticSanMaximumSetGen() {
|
|
|
49
49
|
* This sample demonstrates how to List VolumeGroups.
|
|
50
50
|
*
|
|
51
51
|
* @summary List VolumeGroups.
|
|
52
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
52
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_ListByElasticSan_MinimumSet_Gen.json
|
|
53
53
|
*/
|
|
54
54
|
function volumeGroupsListByElasticSanMinimumSetGen() {
|
|
55
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Update an VolumeGroup.
|
|
17
17
|
*
|
|
18
18
|
* @summary Update an VolumeGroup.
|
|
19
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_Update_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeGroupsUpdateMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -25,27 +25,30 @@ function volumeGroupsUpdateMaximumSetGen() {
|
|
|
25
25
|
const elasticSanName = "elasticsanname";
|
|
26
26
|
const volumeGroupName = "volumegroupname";
|
|
27
27
|
const parameters = {
|
|
28
|
-
identity: { type: "None", userAssignedIdentities: {
|
|
28
|
+
identity: { type: "None", userAssignedIdentities: { key1006: {} } },
|
|
29
29
|
properties: {
|
|
30
30
|
encryption: "EncryptionAtRestWithPlatformKey",
|
|
31
31
|
encryptionProperties: {
|
|
32
|
-
encryptionIdentity: {
|
|
32
|
+
encryptionIdentity: {
|
|
33
|
+
encryptionUserAssignedIdentity: "gfhkfbozahmmwluqndfgxunssafa",
|
|
34
|
+
},
|
|
33
35
|
keyVaultProperties: {
|
|
34
|
-
keyName: "
|
|
35
|
-
keyVaultUri: "https://microsoft.com/
|
|
36
|
-
keyVersion: "
|
|
37
|
-
}
|
|
36
|
+
keyName: "lunpapamzeimppgobraxjt",
|
|
37
|
+
keyVaultUri: "https://microsoft.com/a",
|
|
38
|
+
keyVersion: "oemygbnfmqhijmonkqfqmy",
|
|
39
|
+
},
|
|
38
40
|
},
|
|
41
|
+
enforceDataIntegrityCheckForIscsi: true,
|
|
39
42
|
networkAcls: {
|
|
40
43
|
virtualNetworkRules: [
|
|
41
44
|
{
|
|
42
45
|
action: "Allow",
|
|
43
|
-
virtualNetworkResourceId: "
|
|
44
|
-
}
|
|
45
|
-
]
|
|
46
|
+
virtualNetworkResourceId: "bkhwaiqvvaguymsmnzzbzz",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
46
49
|
},
|
|
47
|
-
protocolType: "Iscsi"
|
|
48
|
-
}
|
|
50
|
+
protocolType: "Iscsi",
|
|
51
|
+
},
|
|
49
52
|
};
|
|
50
53
|
const credential = new DefaultAzureCredential();
|
|
51
54
|
const client = new ElasticSanManagement(credential, subscriptionId);
|
|
@@ -57,7 +60,7 @@ function volumeGroupsUpdateMaximumSetGen() {
|
|
|
57
60
|
* This sample demonstrates how to Update an VolumeGroup.
|
|
58
61
|
*
|
|
59
62
|
* @summary Update an VolumeGroup.
|
|
60
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
63
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeGroups_Update_MinimumSet_Gen.json
|
|
61
64
|
*/
|
|
62
65
|
function volumeGroupsUpdateMinimumSetGen() {
|
|
63
66
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumeGroupsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/volumeGroupsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAqB,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,+BAA+B;;QAC5C,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,GAAsB;YACpC,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,sBAAsB,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE;YACnE,UAAU,EAAE;gBACV,UAAU,EAAE,iCAAiC;gBAC7C,oBAAoB,EAAE;oBACpB,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"volumeGroupsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/volumeGroupsUpdateS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M,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,+BAA+B;;QAC5C,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,GAAsB,EAAE,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,+BAA+B,EAAE,CAAC;QAClC,+BAA+B,EAAE,CAAC;IACpC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Create a Volume Snapshot.
|
|
17
17
|
*
|
|
18
18
|
* @summary Create a Volume Snapshot.
|
|
19
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeSnapshots_Create_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeSnapshotsCreateMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -28,9 +28,9 @@ function volumeSnapshotsCreateMaximumSetGen() {
|
|
|
28
28
|
const parameters = {
|
|
29
29
|
properties: {
|
|
30
30
|
creationData: {
|
|
31
|
-
sourceId: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
31
|
+
sourceId: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
34
|
};
|
|
35
35
|
const credential = new DefaultAzureCredential();
|
|
36
36
|
const client = new ElasticSanManagement(credential, subscriptionId);
|
|
@@ -42,7 +42,7 @@ function volumeSnapshotsCreateMaximumSetGen() {
|
|
|
42
42
|
* This sample demonstrates how to Create a Volume Snapshot.
|
|
43
43
|
*
|
|
44
44
|
* @summary Create a Volume Snapshot.
|
|
45
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
45
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeSnapshots_Create_MinimumSet_Gen.json
|
|
46
46
|
*/
|
|
47
47
|
function volumeSnapshotsCreateMinimumSetGen() {
|
|
48
48
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -54,9 +54,9 @@ function volumeSnapshotsCreateMinimumSetGen() {
|
|
|
54
54
|
const parameters = {
|
|
55
55
|
properties: {
|
|
56
56
|
creationData: {
|
|
57
|
-
sourceId: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
57
|
+
sourceId: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
60
|
};
|
|
61
61
|
const credential = new DefaultAzureCredential();
|
|
62
62
|
const client = new ElasticSanManagement(credential, subscriptionId);
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Delete a Volume Snapshot.
|
|
17
17
|
*
|
|
18
18
|
* @summary Delete a Volume Snapshot.
|
|
19
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeSnapshots_Delete_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeSnapshotsDeleteMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -35,7 +35,7 @@ function volumeSnapshotsDeleteMaximumSetGen() {
|
|
|
35
35
|
* This sample demonstrates how to Delete a Volume Snapshot.
|
|
36
36
|
*
|
|
37
37
|
* @summary Delete a Volume Snapshot.
|
|
38
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
38
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeSnapshots_Delete_MinimumSet_Gen.json
|
|
39
39
|
*/
|
|
40
40
|
function volumeSnapshotsDeleteMinimumSetGen() {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get a Volume Snapshot.
|
|
17
17
|
*
|
|
18
18
|
* @summary Get a Volume Snapshot.
|
|
19
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeSnapshots_Get_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeSnapshotsGetMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -35,7 +35,7 @@ function volumeSnapshotsGetMaximumSetGen() {
|
|
|
35
35
|
* This sample demonstrates how to Get a Volume Snapshot.
|
|
36
36
|
*
|
|
37
37
|
* @summary Get a Volume Snapshot.
|
|
38
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
38
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeSnapshots_Get_MinimumSet_Gen.json
|
|
39
39
|
*/
|
|
40
40
|
function volumeSnapshotsGetMinimumSetGen() {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __asyncValues, __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
|
-
import { ElasticSanManagement } from "@azure/arm-elasticsan";
|
|
11
|
+
import { ElasticSanManagement, } from "@azure/arm-elasticsan";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
13
|
import * as dotenv from "dotenv";
|
|
14
14
|
dotenv.config();
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter
|
|
17
17
|
*
|
|
18
18
|
* @summary List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter
|
|
19
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeSnapshots_ListByVolumeGroup_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeSnapshotsListByVolumeGroupMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -52,7 +52,7 @@ function volumeSnapshotsListByVolumeGroupMaximumSetGen() {
|
|
|
52
52
|
* This sample demonstrates how to List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter
|
|
53
53
|
*
|
|
54
54
|
* @summary List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter
|
|
55
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
55
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/VolumeSnapshots_ListByVolumeGroup_MinimumSet_Gen.json
|
|
56
56
|
*/
|
|
57
57
|
function volumeSnapshotsListByVolumeGroupMinimumSetGen() {
|
|
58
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumeSnapshotsListByVolumeGroupSample.js","sourceRoot":"","sources":["../../samples-dev/volumeSnapshotsListByVolumeGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,oBAAoB,
|
|
1
|
+
{"version":3,"file":"volumeSnapshotsListByVolumeGroupSample.js","sourceRoot":"","sources":["../../samples-dev/volumeSnapshotsListByVolumeGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,C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,MAAM,eAAe,GAAG,iBAAiB,CAAC;QAC1C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,iBAAiB,CAC7D,iBAAiB,EACjB,cAAc,EACd,eAAe,CAChB,CAAA,IAAA,sDAAE,CAAC;gBAJmB,cAItB;gBAJsB,WAItB;gBAJU,IAAI,IAAI,KAAA,CAAA;gBAKjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,6CAA6C,EAAE,CAAC;QAChD,6CAA6C,EAAE,CAAC;IAClD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Create a Volume.
|
|
17
17
|
*
|
|
18
18
|
* @summary Create a Volume.
|
|
19
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Volumes_Create_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesCreateMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -29,8 +29,8 @@ function volumesCreateMaximumSetGen() {
|
|
|
29
29
|
properties: {
|
|
30
30
|
creationData: { createSource: "None", sourceId: "ARM Id of Resource" },
|
|
31
31
|
managedBy: { resourceId: "mtkeip" },
|
|
32
|
-
sizeGiB: 9
|
|
33
|
-
}
|
|
32
|
+
sizeGiB: 9,
|
|
33
|
+
},
|
|
34
34
|
};
|
|
35
35
|
const credential = new DefaultAzureCredential();
|
|
36
36
|
const client = new ElasticSanManagement(credential, subscriptionId);
|
|
@@ -42,7 +42,7 @@ function volumesCreateMaximumSetGen() {
|
|
|
42
42
|
* This sample demonstrates how to Create a Volume.
|
|
43
43
|
*
|
|
44
44
|
* @summary Create a Volume.
|
|
45
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
45
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Volumes_Create_MinimumSet_Gen.json
|
|
46
46
|
*/
|
|
47
47
|
function volumesCreateMinimumSetGen() {
|
|
48
48
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
|
-
import { ElasticSanManagement } from "@azure/arm-elasticsan";
|
|
11
|
+
import { ElasticSanManagement, } from "@azure/arm-elasticsan";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
13
|
import * as dotenv from "dotenv";
|
|
14
14
|
dotenv.config();
|
|
@@ -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/stable/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Volumes_Delete_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesDeleteMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -29,7 +29,7 @@ function volumesDeleteMaximumSetGen() {
|
|
|
29
29
|
const xMsForceDelete = "true";
|
|
30
30
|
const options = {
|
|
31
31
|
xMsDeleteSnapshots,
|
|
32
|
-
xMsForceDelete
|
|
32
|
+
xMsForceDelete,
|
|
33
33
|
};
|
|
34
34
|
const credential = new DefaultAzureCredential();
|
|
35
35
|
const client = new ElasticSanManagement(credential, subscriptionId);
|
|
@@ -41,7 +41,7 @@ function volumesDeleteMaximumSetGen() {
|
|
|
41
41
|
* This sample demonstrates how to Delete an Volume.
|
|
42
42
|
*
|
|
43
43
|
* @summary Delete an Volume.
|
|
44
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
44
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Volumes_Delete_MinimumSet_Gen.json
|
|
45
45
|
*/
|
|
46
46
|
function volumesDeleteMinimumSetGen() {
|
|
47
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,EAEL,oBAAoB,
|
|
1
|
+
{"version":3,"file":"volumesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/volumesDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,oBAAoB,GACrB,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,gBAAg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C;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,0BAA0B,EAAE,CAAC;QAC7B,0BAA0B,EAAE,CAAC;IAC/B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get an Volume.
|
|
17
17
|
*
|
|
18
18
|
* @summary Get an Volume.
|
|
19
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-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/stable/
|
|
38
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-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/stable/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Volumes_ListByVolumeGroup_MaximumSet_Gen.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesListByVolumeGroupMaximumSetGen() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -50,7 +50,7 @@ function volumesListByVolumeGroupMaximumSetGen() {
|
|
|
50
50
|
* This sample demonstrates how to List Volumes in a VolumeGroup.
|
|
51
51
|
*
|
|
52
52
|
* @summary List Volumes in a VolumeGroup.
|
|
53
|
-
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/
|
|
53
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Volumes_ListByVolumeGroup_MinimumSet_Gen.json
|
|
54
54
|
*/
|
|
55
55
|
function volumesListByVolumeGroupMinimumSetGen() {
|
|
56
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -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/stable/
|
|
19
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-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/stable/
|
|
39
|
+
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Volumes_Update_MinimumSet_Gen.json
|
|
40
40
|
*/
|
|
41
41
|
function volumesUpdateMinimumSetGen() {
|
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -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;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;
|
|
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;IAoF9C,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, VolumeSnapshotsImpl } 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.
|
|
@@ -30,14 +30,14 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
30
30
|
}
|
|
31
31
|
const defaults = {
|
|
32
32
|
requestContentType: "application/json; charset=utf-8",
|
|
33
|
-
credential: credentials
|
|
33
|
+
credential: credentials,
|
|
34
34
|
};
|
|
35
|
-
const packageDetails = `azsdk-js-arm-elasticsan/1.0
|
|
35
|
+
const packageDetails = `azsdk-js-arm-elasticsan/1.1.0`;
|
|
36
36
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
37
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
38
|
: `${packageDetails}`;
|
|
39
39
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
40
|
-
userAgentPrefix
|
|
40
|
+
userAgentPrefix,
|
|
41
41
|
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
42
42
|
super(optionsWithDefaults);
|
|
43
43
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
@@ -51,21 +51,21 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
51
51
|
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
52
52
|
!bearerTokenAuthenticationPolicyFound) {
|
|
53
53
|
this.pipeline.removePolicy({
|
|
54
|
-
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
54
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
55
55
|
});
|
|
56
56
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
57
57
|
credential: credentials,
|
|
58
58
|
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
59
59
|
challengeCallbacks: {
|
|
60
|
-
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
61
|
-
}
|
|
60
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
61
|
+
},
|
|
62
62
|
}));
|
|
63
63
|
}
|
|
64
64
|
// Parameter assignments
|
|
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 || "2024-05-01";
|
|
69
69
|
this.operations = new OperationsImpl(this);
|
|
70
70
|
this.skus = new SkusImpl(this);
|
|
71
71
|
this.elasticSans = new ElasticSansImpl(this);
|
|
@@ -99,7 +99,7 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
99
99
|
}
|
|
100
100
|
return next(request);
|
|
101
101
|
});
|
|
102
|
-
}
|
|
102
|
+
},
|
|
103
103
|
};
|
|
104
104
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
105
105
|
}
|