@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
package/package.json
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for ElasticSanManagement.",
|
|
6
|
-
"version": "1.0.0-beta.
|
|
6
|
+
"version": "1.0.0-beta.3",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
8
|
+
"node": ">=16.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@azure/core-lro": "^2.5.
|
|
11
|
+
"@azure/core-lro": "^2.5.4",
|
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
|
13
13
|
"@azure/core-paging": "^1.2.0",
|
|
14
14
|
"@azure/core-client": "^1.7.0",
|
|
15
15
|
"@azure/core-auth": "^1.3.0",
|
|
16
|
-
"@azure/core-rest-pipeline": "^1.
|
|
16
|
+
"@azure/core-rest-pipeline": "^1.12.0",
|
|
17
17
|
"tslib": "^2.2.0"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
@@ -29,25 +29,20 @@
|
|
|
29
29
|
"types": "./types/arm-elasticsan.d.ts",
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@microsoft/api-extractor": "^7.31.1",
|
|
32
|
-
"@rollup/plugin-commonjs": "^24.0.0",
|
|
33
|
-
"@rollup/plugin-json": "^6.0.0",
|
|
34
|
-
"@rollup/plugin-multi-entry": "^6.0.0",
|
|
35
|
-
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
36
32
|
"mkdirp": "^2.1.2",
|
|
37
|
-
"rollup": "^2.66.1",
|
|
38
|
-
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
39
33
|
"typescript": "~5.0.0",
|
|
40
34
|
"uglify-js": "^3.4.9",
|
|
41
|
-
"rimraf": "^
|
|
35
|
+
"rimraf": "^5.0.0",
|
|
42
36
|
"dotenv": "^16.0.0",
|
|
43
|
-
"@azure/identity": "^
|
|
37
|
+
"@azure/identity": "^3.3.0",
|
|
44
38
|
"@azure-tools/test-recorder": "^3.0.0",
|
|
45
39
|
"@azure-tools/test-credential": "^1.0.0",
|
|
46
|
-
"mocha": "^
|
|
40
|
+
"mocha": "^10.0.0",
|
|
47
41
|
"@types/chai": "^4.2.8",
|
|
48
42
|
"chai": "^4.2.0",
|
|
49
43
|
"cross-env": "^7.0.2",
|
|
50
|
-
"@types/node": "^
|
|
44
|
+
"@types/node": "^16.0.0",
|
|
45
|
+
"ts-node": "^10.0.0",
|
|
51
46
|
"@azure/dev-tool": "^1.0.0"
|
|
52
47
|
},
|
|
53
48
|
"repository": {
|
|
@@ -69,21 +64,20 @@
|
|
|
69
64
|
"src/**/*.ts",
|
|
70
65
|
"README.md",
|
|
71
66
|
"LICENSE",
|
|
72
|
-
"rollup.config.js",
|
|
73
67
|
"tsconfig.json",
|
|
74
68
|
"review/*",
|
|
75
69
|
"CHANGELOG.md",
|
|
76
70
|
"types/*"
|
|
77
71
|
],
|
|
78
72
|
"scripts": {
|
|
79
|
-
"build": "npm run clean && tsc &&
|
|
73
|
+
"build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api",
|
|
80
74
|
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
81
75
|
"prepack": "npm run build",
|
|
82
76
|
"pack": "npm pack 2>&1",
|
|
83
77
|
"extract-api": "api-extractor run --local",
|
|
84
78
|
"lint": "echo skipped",
|
|
85
79
|
"audit": "echo skipped",
|
|
86
|
-
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
80
|
+
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
87
81
|
"build:node": "echo skipped",
|
|
88
82
|
"build:browser": "echo skipped",
|
|
89
83
|
"build:test": "echo skipped",
|
|
@@ -120,4 +114,4 @@
|
|
|
120
114
|
"disableDocsMs": true,
|
|
121
115
|
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-elasticsan?view=azure-node-preview"
|
|
122
116
|
}
|
|
123
|
-
}
|
|
117
|
+
}
|
|
@@ -10,6 +10,9 @@ import { OperationState } from '@azure/core-lro';
|
|
|
10
10
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
11
11
|
import { SimplePollerLike } from '@azure/core-lro';
|
|
12
12
|
|
|
13
|
+
// @public
|
|
14
|
+
export type Action = string;
|
|
15
|
+
|
|
13
16
|
// @public
|
|
14
17
|
export type ActionType = string;
|
|
15
18
|
|
|
@@ -23,6 +26,7 @@ export interface ElasticSan extends TrackedResource {
|
|
|
23
26
|
extendedCapacitySizeTiB: number;
|
|
24
27
|
readonly privateEndpointConnections?: PrivateEndpointConnection[];
|
|
25
28
|
readonly provisioningState?: ProvisioningStates;
|
|
29
|
+
publicNetworkAccess?: PublicNetworkAccess;
|
|
26
30
|
sku: Sku;
|
|
27
31
|
readonly totalIops?: number;
|
|
28
32
|
readonly totalMBps?: number;
|
|
@@ -60,6 +64,8 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
60
64
|
volumeGroups: VolumeGroups;
|
|
61
65
|
// (undocumented)
|
|
62
66
|
volumes: Volumes;
|
|
67
|
+
// (undocumented)
|
|
68
|
+
volumeSnapshots: VolumeSnapshots;
|
|
63
69
|
}
|
|
64
70
|
|
|
65
71
|
// @public
|
|
@@ -157,11 +163,23 @@ export type ElasticSansUpdateResponse = ElasticSan;
|
|
|
157
163
|
export interface ElasticSanUpdate {
|
|
158
164
|
baseSizeTiB?: number;
|
|
159
165
|
extendedCapacitySizeTiB?: number;
|
|
166
|
+
publicNetworkAccess?: PublicNetworkAccess;
|
|
160
167
|
tags?: {
|
|
161
168
|
[propertyName: string]: string;
|
|
162
169
|
};
|
|
163
170
|
}
|
|
164
171
|
|
|
172
|
+
// @public
|
|
173
|
+
export interface EncryptionIdentity {
|
|
174
|
+
encryptionUserAssignedIdentity?: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// @public
|
|
178
|
+
export interface EncryptionProperties {
|
|
179
|
+
encryptionIdentity?: EncryptionIdentity;
|
|
180
|
+
keyVaultProperties?: KeyVaultProperties;
|
|
181
|
+
}
|
|
182
|
+
|
|
165
183
|
// @public
|
|
166
184
|
export type EncryptionType = string;
|
|
167
185
|
|
|
@@ -188,6 +206,19 @@ export interface ErrorResponse {
|
|
|
188
206
|
// @public
|
|
189
207
|
export function getContinuationToken(page: unknown): string | undefined;
|
|
190
208
|
|
|
209
|
+
// @public
|
|
210
|
+
export interface Identity {
|
|
211
|
+
readonly principalId?: string;
|
|
212
|
+
readonly tenantId?: string;
|
|
213
|
+
type: IdentityType;
|
|
214
|
+
userAssignedIdentities?: {
|
|
215
|
+
[propertyName: string]: UserAssignedIdentity;
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// @public
|
|
220
|
+
export type IdentityType = string;
|
|
221
|
+
|
|
191
222
|
// @public
|
|
192
223
|
export interface IscsiTargetInfo {
|
|
193
224
|
readonly provisioningState?: ProvisioningStates;
|
|
@@ -197,6 +228,21 @@ export interface IscsiTargetInfo {
|
|
|
197
228
|
readonly targetPortalPort?: number;
|
|
198
229
|
}
|
|
199
230
|
|
|
231
|
+
// @public
|
|
232
|
+
export interface KeyVaultProperties {
|
|
233
|
+
readonly currentVersionedKeyExpirationTimestamp?: Date;
|
|
234
|
+
readonly currentVersionedKeyIdentifier?: string;
|
|
235
|
+
keyName?: string;
|
|
236
|
+
keyVaultUri?: string;
|
|
237
|
+
keyVersion?: string;
|
|
238
|
+
readonly lastKeyRotationTimestamp?: Date;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// @public
|
|
242
|
+
export enum KnownAction {
|
|
243
|
+
Allow = "Allow"
|
|
244
|
+
}
|
|
245
|
+
|
|
200
246
|
// @public
|
|
201
247
|
export enum KnownActionType {
|
|
202
248
|
Internal = "Internal"
|
|
@@ -212,9 +258,17 @@ export enum KnownCreatedByType {
|
|
|
212
258
|
|
|
213
259
|
// @public
|
|
214
260
|
export enum KnownEncryptionType {
|
|
261
|
+
EncryptionAtRestWithCustomerManagedKey = "EncryptionAtRestWithCustomerManagedKey",
|
|
215
262
|
EncryptionAtRestWithPlatformKey = "EncryptionAtRestWithPlatformKey"
|
|
216
263
|
}
|
|
217
264
|
|
|
265
|
+
// @public
|
|
266
|
+
export enum KnownIdentityType {
|
|
267
|
+
None = "None",
|
|
268
|
+
SystemAssigned = "SystemAssigned",
|
|
269
|
+
UserAssigned = "UserAssigned"
|
|
270
|
+
}
|
|
271
|
+
|
|
218
272
|
// @public
|
|
219
273
|
export enum KnownOperationalStatus {
|
|
220
274
|
Healthy = "Healthy",
|
|
@@ -254,6 +308,12 @@ export enum KnownProvisioningStates {
|
|
|
254
308
|
Updating = "Updating"
|
|
255
309
|
}
|
|
256
310
|
|
|
311
|
+
// @public
|
|
312
|
+
export enum KnownPublicNetworkAccess {
|
|
313
|
+
Disabled = "Disabled",
|
|
314
|
+
Enabled = "Enabled"
|
|
315
|
+
}
|
|
316
|
+
|
|
257
317
|
// @public
|
|
258
318
|
export enum KnownSkuName {
|
|
259
319
|
PremiumLRS = "Premium_LRS",
|
|
@@ -271,6 +331,32 @@ export enum KnownStorageTargetType {
|
|
|
271
331
|
None = "None"
|
|
272
332
|
}
|
|
273
333
|
|
|
334
|
+
// @public
|
|
335
|
+
export enum KnownVolumeCreateOption {
|
|
336
|
+
Disk = "Disk",
|
|
337
|
+
DiskRestorePoint = "DiskRestorePoint",
|
|
338
|
+
DiskSnapshot = "DiskSnapshot",
|
|
339
|
+
None = "None",
|
|
340
|
+
VolumeSnapshot = "VolumeSnapshot"
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
// @public
|
|
344
|
+
export enum KnownXMsDeleteSnapshots {
|
|
345
|
+
False = "false",
|
|
346
|
+
True = "true"
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
// @public
|
|
350
|
+
export enum KnownXMsForceDelete {
|
|
351
|
+
False = "false",
|
|
352
|
+
True = "true"
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
// @public
|
|
356
|
+
export interface ManagedByInfo {
|
|
357
|
+
resourceId?: string;
|
|
358
|
+
}
|
|
359
|
+
|
|
274
360
|
// @public
|
|
275
361
|
export interface NetworkRuleSet {
|
|
276
362
|
virtualNetworkRules?: VirtualNetworkRule[];
|
|
@@ -423,6 +509,9 @@ export type ProvisioningStates = string;
|
|
|
423
509
|
export interface ProxyResource extends Resource {
|
|
424
510
|
}
|
|
425
511
|
|
|
512
|
+
// @public
|
|
513
|
+
export type PublicNetworkAccess = string;
|
|
514
|
+
|
|
426
515
|
// @public
|
|
427
516
|
export interface Resource {
|
|
428
517
|
readonly id?: string;
|
|
@@ -485,13 +574,29 @@ export type SkusListResponse = SkuInformationList;
|
|
|
485
574
|
export type SkuTier = string;
|
|
486
575
|
|
|
487
576
|
// @public
|
|
488
|
-
export interface
|
|
489
|
-
|
|
490
|
-
|
|
577
|
+
export interface Snapshot extends ProxyResource {
|
|
578
|
+
creationData: SnapshotCreationData;
|
|
579
|
+
readonly provisioningState?: ProvisioningStates;
|
|
580
|
+
readonly sourceVolumeSizeGiB?: number;
|
|
581
|
+
readonly volumeName?: string;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
// @public
|
|
585
|
+
export interface SnapshotCreationData {
|
|
586
|
+
sourceId: string;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
// @public
|
|
590
|
+
export interface SnapshotList {
|
|
591
|
+
readonly nextLink?: string;
|
|
592
|
+
value?: Snapshot[];
|
|
491
593
|
}
|
|
492
594
|
|
|
493
595
|
// @public
|
|
494
|
-
export
|
|
596
|
+
export interface SourceCreationData {
|
|
597
|
+
createSource?: VolumeCreateOption;
|
|
598
|
+
sourceId?: string;
|
|
599
|
+
}
|
|
495
600
|
|
|
496
601
|
// @public
|
|
497
602
|
export type StorageTargetType = string;
|
|
@@ -514,24 +619,36 @@ export interface TrackedResource extends Resource {
|
|
|
514
619
|
};
|
|
515
620
|
}
|
|
516
621
|
|
|
622
|
+
// @public
|
|
623
|
+
export interface UserAssignedIdentity {
|
|
624
|
+
readonly clientId?: string;
|
|
625
|
+
readonly principalId?: string;
|
|
626
|
+
}
|
|
627
|
+
|
|
517
628
|
// @public
|
|
518
629
|
export interface VirtualNetworkRule {
|
|
519
|
-
action?:
|
|
520
|
-
readonly state?: State;
|
|
630
|
+
action?: Action;
|
|
521
631
|
virtualNetworkResourceId: string;
|
|
522
632
|
}
|
|
523
633
|
|
|
524
634
|
// @public
|
|
525
635
|
export interface Volume extends ProxyResource {
|
|
526
636
|
creationData?: SourceCreationData;
|
|
637
|
+
managedBy?: ManagedByInfo;
|
|
638
|
+
readonly provisioningState?: ProvisioningStates;
|
|
527
639
|
sizeGiB: number;
|
|
528
640
|
readonly storageTarget?: IscsiTargetInfo;
|
|
529
641
|
readonly volumeId?: string;
|
|
530
642
|
}
|
|
531
643
|
|
|
644
|
+
// @public
|
|
645
|
+
export type VolumeCreateOption = string;
|
|
646
|
+
|
|
532
647
|
// @public
|
|
533
648
|
export interface VolumeGroup extends ProxyResource {
|
|
534
649
|
encryption?: EncryptionType;
|
|
650
|
+
encryptionProperties?: EncryptionProperties;
|
|
651
|
+
identity?: Identity;
|
|
535
652
|
networkAcls?: NetworkRuleSet;
|
|
536
653
|
readonly privateEndpointConnections?: PrivateEndpointConnection[];
|
|
537
654
|
protocolType?: StorageTargetType;
|
|
@@ -616,6 +733,8 @@ export type VolumeGroupsUpdateResponse = VolumeGroup;
|
|
|
616
733
|
// @public
|
|
617
734
|
export interface VolumeGroupUpdate {
|
|
618
735
|
encryption?: EncryptionType;
|
|
736
|
+
encryptionProperties?: EncryptionProperties;
|
|
737
|
+
identity?: Identity;
|
|
619
738
|
networkAcls?: NetworkRuleSet;
|
|
620
739
|
protocolType?: StorageTargetType;
|
|
621
740
|
}
|
|
@@ -657,6 +776,8 @@ export interface VolumesDeleteHeaders {
|
|
|
657
776
|
export interface VolumesDeleteOptionalParams extends coreClient.OperationOptions {
|
|
658
777
|
resumeFrom?: string;
|
|
659
778
|
updateIntervalInMs?: number;
|
|
779
|
+
xMsDeleteSnapshots?: XMsDeleteSnapshots;
|
|
780
|
+
xMsForceDelete?: XMsForceDelete;
|
|
660
781
|
}
|
|
661
782
|
|
|
662
783
|
// @public
|
|
@@ -680,6 +801,59 @@ export interface VolumesListByVolumeGroupOptionalParams extends coreClient.Opera
|
|
|
680
801
|
// @public
|
|
681
802
|
export type VolumesListByVolumeGroupResponse = VolumeList;
|
|
682
803
|
|
|
804
|
+
// @public
|
|
805
|
+
export interface VolumeSnapshots {
|
|
806
|
+
beginCreate(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, snapshotName: string, parameters: Snapshot, options?: VolumeSnapshotsCreateOptionalParams): Promise<SimplePollerLike<OperationState<VolumeSnapshotsCreateResponse>, VolumeSnapshotsCreateResponse>>;
|
|
807
|
+
beginCreateAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, snapshotName: string, parameters: Snapshot, options?: VolumeSnapshotsCreateOptionalParams): Promise<VolumeSnapshotsCreateResponse>;
|
|
808
|
+
beginDelete(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, snapshotName: string, options?: VolumeSnapshotsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
809
|
+
beginDeleteAndWait(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, snapshotName: string, options?: VolumeSnapshotsDeleteOptionalParams): Promise<void>;
|
|
810
|
+
get(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, snapshotName: string, options?: VolumeSnapshotsGetOptionalParams): Promise<VolumeSnapshotsGetResponse>;
|
|
811
|
+
listByVolumeGroup(resourceGroupName: string, elasticSanName: string, volumeGroupName: string, options?: VolumeSnapshotsListByVolumeGroupOptionalParams): PagedAsyncIterableIterator<Snapshot>;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
// @public
|
|
815
|
+
export interface VolumeSnapshotsCreateOptionalParams extends coreClient.OperationOptions {
|
|
816
|
+
resumeFrom?: string;
|
|
817
|
+
updateIntervalInMs?: number;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
// @public
|
|
821
|
+
export type VolumeSnapshotsCreateResponse = Snapshot;
|
|
822
|
+
|
|
823
|
+
// @public
|
|
824
|
+
export interface VolumeSnapshotsDeleteHeaders {
|
|
825
|
+
// (undocumented)
|
|
826
|
+
location?: string;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
// @public
|
|
830
|
+
export interface VolumeSnapshotsDeleteOptionalParams extends coreClient.OperationOptions {
|
|
831
|
+
resumeFrom?: string;
|
|
832
|
+
updateIntervalInMs?: number;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
// @public
|
|
836
|
+
export interface VolumeSnapshotsGetOptionalParams extends coreClient.OperationOptions {
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
// @public
|
|
840
|
+
export type VolumeSnapshotsGetResponse = Snapshot;
|
|
841
|
+
|
|
842
|
+
// @public
|
|
843
|
+
export interface VolumeSnapshotsListByVolumeGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
// @public
|
|
847
|
+
export type VolumeSnapshotsListByVolumeGroupNextResponse = SnapshotList;
|
|
848
|
+
|
|
849
|
+
// @public
|
|
850
|
+
export interface VolumeSnapshotsListByVolumeGroupOptionalParams extends coreClient.OperationOptions {
|
|
851
|
+
filter?: string;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
// @public
|
|
855
|
+
export type VolumeSnapshotsListByVolumeGroupResponse = SnapshotList;
|
|
856
|
+
|
|
683
857
|
// @public
|
|
684
858
|
export interface VolumesUpdateHeaders {
|
|
685
859
|
// (undocumented)
|
|
@@ -697,9 +871,16 @@ export type VolumesUpdateResponse = Volume;
|
|
|
697
871
|
|
|
698
872
|
// @public
|
|
699
873
|
export interface VolumeUpdate {
|
|
874
|
+
managedBy?: ManagedByInfo;
|
|
700
875
|
sizeGiB?: number;
|
|
701
876
|
}
|
|
702
877
|
|
|
878
|
+
// @public
|
|
879
|
+
export type XMsDeleteSnapshots = string;
|
|
880
|
+
|
|
881
|
+
// @public
|
|
882
|
+
export type XMsForceDelete = string;
|
|
883
|
+
|
|
703
884
|
// (No @packageDocumentation comment for this package)
|
|
704
885
|
|
|
705
886
|
```
|
|
@@ -21,7 +21,8 @@ import {
|
|
|
21
21
|
VolumeGroupsImpl,
|
|
22
22
|
VolumesImpl,
|
|
23
23
|
PrivateEndpointConnectionsImpl,
|
|
24
|
-
PrivateLinkResourcesImpl
|
|
24
|
+
PrivateLinkResourcesImpl,
|
|
25
|
+
VolumeSnapshotsImpl
|
|
25
26
|
} from "./operations";
|
|
26
27
|
import {
|
|
27
28
|
Operations,
|
|
@@ -30,7 +31,8 @@ import {
|
|
|
30
31
|
VolumeGroups,
|
|
31
32
|
Volumes,
|
|
32
33
|
PrivateEndpointConnections,
|
|
33
|
-
PrivateLinkResources
|
|
34
|
+
PrivateLinkResources,
|
|
35
|
+
VolumeSnapshots
|
|
34
36
|
} from "./operationsInterfaces";
|
|
35
37
|
import { ElasticSanManagementOptionalParams } from "./models";
|
|
36
38
|
|
|
@@ -66,7 +68,7 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
66
68
|
credential: credentials
|
|
67
69
|
};
|
|
68
70
|
|
|
69
|
-
const packageDetails = `azsdk-js-arm-elasticsan/1.0.0-beta.
|
|
71
|
+
const packageDetails = `azsdk-js-arm-elasticsan/1.0.0-beta.3`;
|
|
70
72
|
const userAgentPrefix =
|
|
71
73
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
72
74
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -119,7 +121,7 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
119
121
|
|
|
120
122
|
// Assigning values to Constant parameters
|
|
121
123
|
this.$host = options.$host || "https://management.azure.com";
|
|
122
|
-
this.apiVersion = options.apiVersion || "
|
|
124
|
+
this.apiVersion = options.apiVersion || "2023-01-01";
|
|
123
125
|
this.operations = new OperationsImpl(this);
|
|
124
126
|
this.skus = new SkusImpl(this);
|
|
125
127
|
this.elasticSans = new ElasticSansImpl(this);
|
|
@@ -127,6 +129,7 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
127
129
|
this.volumes = new VolumesImpl(this);
|
|
128
130
|
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
129
131
|
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
132
|
+
this.volumeSnapshots = new VolumeSnapshotsImpl(this);
|
|
130
133
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
131
134
|
}
|
|
132
135
|
|
|
@@ -165,4 +168,5 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
165
168
|
volumes: Volumes;
|
|
166
169
|
privateEndpointConnections: PrivateEndpointConnections;
|
|
167
170
|
privateLinkResources: PrivateLinkResources;
|
|
171
|
+
volumeSnapshots: VolumeSnapshots;
|
|
168
172
|
}
|