@azure/arm-elasticsan 1.0.0-alpha.20231017.1 → 1.0.0-alpha.20231020.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -9
- package/README.md +1 -1
- package/dist/index.js +863 -84
- 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 +3 -2
- 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 +7 -7
- package/review/arm-elasticsan.api.md +187 -6
- package/src/elasticSanManagement.ts +7 -3
- 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/dist/index.js
CHANGED
|
@@ -138,6 +138,24 @@ exports.KnownCreatedByType = void 0;
|
|
|
138
138
|
/** Key */
|
|
139
139
|
KnownCreatedByType["Key"] = "Key";
|
|
140
140
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
141
|
+
/** Known values of {@link PublicNetworkAccess} that the service accepts. */
|
|
142
|
+
exports.KnownPublicNetworkAccess = void 0;
|
|
143
|
+
(function (KnownPublicNetworkAccess) {
|
|
144
|
+
/** Enabled */
|
|
145
|
+
KnownPublicNetworkAccess["Enabled"] = "Enabled";
|
|
146
|
+
/** Disabled */
|
|
147
|
+
KnownPublicNetworkAccess["Disabled"] = "Disabled";
|
|
148
|
+
})(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
|
|
149
|
+
/** Known values of {@link IdentityType} that the service accepts. */
|
|
150
|
+
exports.KnownIdentityType = void 0;
|
|
151
|
+
(function (KnownIdentityType) {
|
|
152
|
+
/** None */
|
|
153
|
+
KnownIdentityType["None"] = "None";
|
|
154
|
+
/** SystemAssigned */
|
|
155
|
+
KnownIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
156
|
+
/** UserAssigned */
|
|
157
|
+
KnownIdentityType["UserAssigned"] = "UserAssigned";
|
|
158
|
+
})(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
|
|
141
159
|
/** Known values of {@link StorageTargetType} that the service accepts. */
|
|
142
160
|
exports.KnownStorageTargetType = void 0;
|
|
143
161
|
(function (KnownStorageTargetType) {
|
|
@@ -151,7 +169,29 @@ exports.KnownEncryptionType = void 0;
|
|
|
151
169
|
(function (KnownEncryptionType) {
|
|
152
170
|
/** Volume is encrypted at rest with Platform managed key. It is the default encryption type. */
|
|
153
171
|
KnownEncryptionType["EncryptionAtRestWithPlatformKey"] = "EncryptionAtRestWithPlatformKey";
|
|
172
|
+
/** Volume is encrypted at rest with Customer managed key that can be changed and revoked by a customer. */
|
|
173
|
+
KnownEncryptionType["EncryptionAtRestWithCustomerManagedKey"] = "EncryptionAtRestWithCustomerManagedKey";
|
|
154
174
|
})(exports.KnownEncryptionType || (exports.KnownEncryptionType = {}));
|
|
175
|
+
/** Known values of {@link Action} that the service accepts. */
|
|
176
|
+
exports.KnownAction = void 0;
|
|
177
|
+
(function (KnownAction) {
|
|
178
|
+
/** Allow */
|
|
179
|
+
KnownAction["Allow"] = "Allow";
|
|
180
|
+
})(exports.KnownAction || (exports.KnownAction = {}));
|
|
181
|
+
/** Known values of {@link VolumeCreateOption} that the service accepts. */
|
|
182
|
+
exports.KnownVolumeCreateOption = void 0;
|
|
183
|
+
(function (KnownVolumeCreateOption) {
|
|
184
|
+
/** None */
|
|
185
|
+
KnownVolumeCreateOption["None"] = "None";
|
|
186
|
+
/** VolumeSnapshot */
|
|
187
|
+
KnownVolumeCreateOption["VolumeSnapshot"] = "VolumeSnapshot";
|
|
188
|
+
/** DiskSnapshot */
|
|
189
|
+
KnownVolumeCreateOption["DiskSnapshot"] = "DiskSnapshot";
|
|
190
|
+
/** Disk */
|
|
191
|
+
KnownVolumeCreateOption["Disk"] = "Disk";
|
|
192
|
+
/** DiskRestorePoint */
|
|
193
|
+
KnownVolumeCreateOption["DiskRestorePoint"] = "DiskRestorePoint";
|
|
194
|
+
})(exports.KnownVolumeCreateOption || (exports.KnownVolumeCreateOption = {}));
|
|
155
195
|
/** Known values of {@link OperationalStatus} that the service accepts. */
|
|
156
196
|
exports.KnownOperationalStatus = void 0;
|
|
157
197
|
(function (KnownOperationalStatus) {
|
|
@@ -172,6 +212,22 @@ exports.KnownOperationalStatus = void 0;
|
|
|
172
212
|
/** StoppedDeallocated */
|
|
173
213
|
KnownOperationalStatus["StoppedDeallocated"] = "Stopped (deallocated)";
|
|
174
214
|
})(exports.KnownOperationalStatus || (exports.KnownOperationalStatus = {}));
|
|
215
|
+
/** Known values of {@link XMsDeleteSnapshots} that the service accepts. */
|
|
216
|
+
exports.KnownXMsDeleteSnapshots = void 0;
|
|
217
|
+
(function (KnownXMsDeleteSnapshots) {
|
|
218
|
+
/** True */
|
|
219
|
+
KnownXMsDeleteSnapshots["True"] = "true";
|
|
220
|
+
/** False */
|
|
221
|
+
KnownXMsDeleteSnapshots["False"] = "false";
|
|
222
|
+
})(exports.KnownXMsDeleteSnapshots || (exports.KnownXMsDeleteSnapshots = {}));
|
|
223
|
+
/** Known values of {@link XMsForceDelete} that the service accepts. */
|
|
224
|
+
exports.KnownXMsForceDelete = void 0;
|
|
225
|
+
(function (KnownXMsForceDelete) {
|
|
226
|
+
/** True */
|
|
227
|
+
KnownXMsForceDelete["True"] = "true";
|
|
228
|
+
/** False */
|
|
229
|
+
KnownXMsForceDelete["False"] = "false";
|
|
230
|
+
})(exports.KnownXMsForceDelete || (exports.KnownXMsForceDelete = {}));
|
|
175
231
|
|
|
176
232
|
/*
|
|
177
233
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -715,6 +771,12 @@ const ElasticSanUpdate = {
|
|
|
715
771
|
type: {
|
|
716
772
|
name: "Number"
|
|
717
773
|
}
|
|
774
|
+
},
|
|
775
|
+
publicNetworkAccess: {
|
|
776
|
+
serializedName: "properties.publicNetworkAccess",
|
|
777
|
+
type: {
|
|
778
|
+
name: "String"
|
|
779
|
+
}
|
|
718
780
|
}
|
|
719
781
|
}
|
|
720
782
|
}
|
|
@@ -746,6 +808,149 @@ const VolumeGroupList = {
|
|
|
746
808
|
}
|
|
747
809
|
}
|
|
748
810
|
};
|
|
811
|
+
const Identity = {
|
|
812
|
+
type: {
|
|
813
|
+
name: "Composite",
|
|
814
|
+
className: "Identity",
|
|
815
|
+
modelProperties: {
|
|
816
|
+
principalId: {
|
|
817
|
+
serializedName: "principalId",
|
|
818
|
+
readOnly: true,
|
|
819
|
+
type: {
|
|
820
|
+
name: "String"
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
tenantId: {
|
|
824
|
+
serializedName: "tenantId",
|
|
825
|
+
readOnly: true,
|
|
826
|
+
type: {
|
|
827
|
+
name: "String"
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
type: {
|
|
831
|
+
serializedName: "type",
|
|
832
|
+
required: true,
|
|
833
|
+
type: {
|
|
834
|
+
name: "String"
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
userAssignedIdentities: {
|
|
838
|
+
serializedName: "userAssignedIdentities",
|
|
839
|
+
type: {
|
|
840
|
+
name: "Dictionary",
|
|
841
|
+
value: {
|
|
842
|
+
type: { name: "Composite", className: "UserAssignedIdentity" }
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
};
|
|
849
|
+
const UserAssignedIdentity = {
|
|
850
|
+
type: {
|
|
851
|
+
name: "Composite",
|
|
852
|
+
className: "UserAssignedIdentity",
|
|
853
|
+
modelProperties: {
|
|
854
|
+
principalId: {
|
|
855
|
+
serializedName: "principalId",
|
|
856
|
+
readOnly: true,
|
|
857
|
+
type: {
|
|
858
|
+
name: "String"
|
|
859
|
+
}
|
|
860
|
+
},
|
|
861
|
+
clientId: {
|
|
862
|
+
serializedName: "clientId",
|
|
863
|
+
readOnly: true,
|
|
864
|
+
type: {
|
|
865
|
+
name: "String"
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
};
|
|
871
|
+
const EncryptionProperties = {
|
|
872
|
+
type: {
|
|
873
|
+
name: "Composite",
|
|
874
|
+
className: "EncryptionProperties",
|
|
875
|
+
modelProperties: {
|
|
876
|
+
keyVaultProperties: {
|
|
877
|
+
serializedName: "keyVaultProperties",
|
|
878
|
+
type: {
|
|
879
|
+
name: "Composite",
|
|
880
|
+
className: "KeyVaultProperties"
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
encryptionIdentity: {
|
|
884
|
+
serializedName: "identity",
|
|
885
|
+
type: {
|
|
886
|
+
name: "Composite",
|
|
887
|
+
className: "EncryptionIdentity"
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
};
|
|
893
|
+
const KeyVaultProperties = {
|
|
894
|
+
type: {
|
|
895
|
+
name: "Composite",
|
|
896
|
+
className: "KeyVaultProperties",
|
|
897
|
+
modelProperties: {
|
|
898
|
+
keyName: {
|
|
899
|
+
serializedName: "keyName",
|
|
900
|
+
type: {
|
|
901
|
+
name: "String"
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
keyVersion: {
|
|
905
|
+
serializedName: "keyVersion",
|
|
906
|
+
type: {
|
|
907
|
+
name: "String"
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
keyVaultUri: {
|
|
911
|
+
serializedName: "keyVaultUri",
|
|
912
|
+
type: {
|
|
913
|
+
name: "String"
|
|
914
|
+
}
|
|
915
|
+
},
|
|
916
|
+
currentVersionedKeyIdentifier: {
|
|
917
|
+
serializedName: "currentVersionedKeyIdentifier",
|
|
918
|
+
readOnly: true,
|
|
919
|
+
type: {
|
|
920
|
+
name: "String"
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
lastKeyRotationTimestamp: {
|
|
924
|
+
serializedName: "lastKeyRotationTimestamp",
|
|
925
|
+
readOnly: true,
|
|
926
|
+
type: {
|
|
927
|
+
name: "DateTime"
|
|
928
|
+
}
|
|
929
|
+
},
|
|
930
|
+
currentVersionedKeyExpirationTimestamp: {
|
|
931
|
+
serializedName: "currentVersionedKeyExpirationTimestamp",
|
|
932
|
+
readOnly: true,
|
|
933
|
+
type: {
|
|
934
|
+
name: "DateTime"
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
};
|
|
940
|
+
const EncryptionIdentity = {
|
|
941
|
+
type: {
|
|
942
|
+
name: "Composite",
|
|
943
|
+
className: "EncryptionIdentity",
|
|
944
|
+
modelProperties: {
|
|
945
|
+
encryptionUserAssignedIdentity: {
|
|
946
|
+
serializedName: "userAssignedIdentity",
|
|
947
|
+
type: {
|
|
948
|
+
name: "String"
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
};
|
|
749
954
|
const NetworkRuleSet = {
|
|
750
955
|
type: {
|
|
751
956
|
name: "Composite",
|
|
@@ -780,25 +985,10 @@ const VirtualNetworkRule = {
|
|
|
780
985
|
},
|
|
781
986
|
action: {
|
|
782
987
|
defaultValue: "Allow",
|
|
783
|
-
isConstant: true,
|
|
784
988
|
serializedName: "action",
|
|
785
989
|
type: {
|
|
786
990
|
name: "String"
|
|
787
991
|
}
|
|
788
|
-
},
|
|
789
|
-
state: {
|
|
790
|
-
serializedName: "state",
|
|
791
|
-
readOnly: true,
|
|
792
|
-
type: {
|
|
793
|
-
name: "Enum",
|
|
794
|
-
allowedValues: [
|
|
795
|
-
"provisioning",
|
|
796
|
-
"deprovisioning",
|
|
797
|
-
"succeeded",
|
|
798
|
-
"failed",
|
|
799
|
-
"networkSourceDeleted"
|
|
800
|
-
]
|
|
801
|
-
}
|
|
802
992
|
}
|
|
803
993
|
}
|
|
804
994
|
}
|
|
@@ -808,6 +998,13 @@ const VolumeGroupUpdate = {
|
|
|
808
998
|
name: "Composite",
|
|
809
999
|
className: "VolumeGroupUpdate",
|
|
810
1000
|
modelProperties: {
|
|
1001
|
+
identity: {
|
|
1002
|
+
serializedName: "identity",
|
|
1003
|
+
type: {
|
|
1004
|
+
name: "Composite",
|
|
1005
|
+
className: "Identity"
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
811
1008
|
protocolType: {
|
|
812
1009
|
serializedName: "properties.protocolType",
|
|
813
1010
|
type: {
|
|
@@ -820,6 +1017,13 @@ const VolumeGroupUpdate = {
|
|
|
820
1017
|
name: "String"
|
|
821
1018
|
}
|
|
822
1019
|
},
|
|
1020
|
+
encryptionProperties: {
|
|
1021
|
+
serializedName: "properties.encryptionProperties",
|
|
1022
|
+
type: {
|
|
1023
|
+
name: "Composite",
|
|
1024
|
+
className: "EncryptionProperties"
|
|
1025
|
+
}
|
|
1026
|
+
},
|
|
823
1027
|
networkAcls: {
|
|
824
1028
|
serializedName: "properties.networkAcls",
|
|
825
1029
|
type: {
|
|
@@ -836,15 +1040,13 @@ const SourceCreationData = {
|
|
|
836
1040
|
className: "SourceCreationData",
|
|
837
1041
|
modelProperties: {
|
|
838
1042
|
createSource: {
|
|
839
|
-
defaultValue: "None",
|
|
840
|
-
isConstant: true,
|
|
841
1043
|
serializedName: "createSource",
|
|
842
1044
|
type: {
|
|
843
1045
|
name: "String"
|
|
844
1046
|
}
|
|
845
1047
|
},
|
|
846
|
-
|
|
847
|
-
serializedName: "
|
|
1048
|
+
sourceId: {
|
|
1049
|
+
serializedName: "sourceId",
|
|
848
1050
|
type: {
|
|
849
1051
|
name: "String"
|
|
850
1052
|
}
|
|
@@ -894,6 +1096,20 @@ const IscsiTargetInfo = {
|
|
|
894
1096
|
}
|
|
895
1097
|
}
|
|
896
1098
|
};
|
|
1099
|
+
const ManagedByInfo = {
|
|
1100
|
+
type: {
|
|
1101
|
+
name: "Composite",
|
|
1102
|
+
className: "ManagedByInfo",
|
|
1103
|
+
modelProperties: {
|
|
1104
|
+
resourceId: {
|
|
1105
|
+
serializedName: "resourceId",
|
|
1106
|
+
type: {
|
|
1107
|
+
name: "String"
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
897
1113
|
const VolumeUpdate = {
|
|
898
1114
|
type: {
|
|
899
1115
|
name: "Composite",
|
|
@@ -904,6 +1120,13 @@ const VolumeUpdate = {
|
|
|
904
1120
|
type: {
|
|
905
1121
|
name: "Number"
|
|
906
1122
|
}
|
|
1123
|
+
},
|
|
1124
|
+
managedBy: {
|
|
1125
|
+
serializedName: "properties.managedBy",
|
|
1126
|
+
type: {
|
|
1127
|
+
name: "Composite",
|
|
1128
|
+
className: "ManagedByInfo"
|
|
1129
|
+
}
|
|
907
1130
|
}
|
|
908
1131
|
}
|
|
909
1132
|
}
|
|
@@ -989,6 +1212,48 @@ const PrivateLinkResourceListResult = {
|
|
|
989
1212
|
}
|
|
990
1213
|
}
|
|
991
1214
|
};
|
|
1215
|
+
const SnapshotList = {
|
|
1216
|
+
type: {
|
|
1217
|
+
name: "Composite",
|
|
1218
|
+
className: "SnapshotList",
|
|
1219
|
+
modelProperties: {
|
|
1220
|
+
value: {
|
|
1221
|
+
serializedName: "value",
|
|
1222
|
+
type: {
|
|
1223
|
+
name: "Sequence",
|
|
1224
|
+
element: {
|
|
1225
|
+
type: {
|
|
1226
|
+
name: "Composite",
|
|
1227
|
+
className: "Snapshot"
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
},
|
|
1232
|
+
nextLink: {
|
|
1233
|
+
serializedName: "nextLink",
|
|
1234
|
+
readOnly: true,
|
|
1235
|
+
type: {
|
|
1236
|
+
name: "String"
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
};
|
|
1242
|
+
const SnapshotCreationData = {
|
|
1243
|
+
type: {
|
|
1244
|
+
name: "Composite",
|
|
1245
|
+
className: "SnapshotCreationData",
|
|
1246
|
+
modelProperties: {
|
|
1247
|
+
sourceId: {
|
|
1248
|
+
serializedName: "sourceId",
|
|
1249
|
+
required: true,
|
|
1250
|
+
type: {
|
|
1251
|
+
name: "String"
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
};
|
|
992
1257
|
const PrivateEndpointConnection = {
|
|
993
1258
|
type: {
|
|
994
1259
|
name: "Composite",
|
|
@@ -1164,6 +1429,11 @@ const ElasticSan = {
|
|
|
1164
1429
|
}
|
|
1165
1430
|
}
|
|
1166
1431
|
}
|
|
1432
|
+
}, publicNetworkAccess: {
|
|
1433
|
+
serializedName: "properties.publicNetworkAccess",
|
|
1434
|
+
type: {
|
|
1435
|
+
name: "String"
|
|
1436
|
+
}
|
|
1167
1437
|
} })
|
|
1168
1438
|
}
|
|
1169
1439
|
};
|
|
@@ -1171,7 +1441,13 @@ const VolumeGroup = {
|
|
|
1171
1441
|
type: {
|
|
1172
1442
|
name: "Composite",
|
|
1173
1443
|
className: "VolumeGroup",
|
|
1174
|
-
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), {
|
|
1444
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { identity: {
|
|
1445
|
+
serializedName: "identity",
|
|
1446
|
+
type: {
|
|
1447
|
+
name: "Composite",
|
|
1448
|
+
className: "Identity"
|
|
1449
|
+
}
|
|
1450
|
+
}, provisioningState: {
|
|
1175
1451
|
serializedName: "properties.provisioningState",
|
|
1176
1452
|
readOnly: true,
|
|
1177
1453
|
type: {
|
|
@@ -1187,6 +1463,12 @@ const VolumeGroup = {
|
|
|
1187
1463
|
type: {
|
|
1188
1464
|
name: "String"
|
|
1189
1465
|
}
|
|
1466
|
+
}, encryptionProperties: {
|
|
1467
|
+
serializedName: "properties.encryptionProperties",
|
|
1468
|
+
type: {
|
|
1469
|
+
name: "Composite",
|
|
1470
|
+
className: "EncryptionProperties"
|
|
1471
|
+
}
|
|
1190
1472
|
}, networkAcls: {
|
|
1191
1473
|
serializedName: "properties.networkAcls",
|
|
1192
1474
|
type: {
|
|
@@ -1236,6 +1518,49 @@ const Volume = {
|
|
|
1236
1518
|
name: "Composite",
|
|
1237
1519
|
className: "IscsiTargetInfo"
|
|
1238
1520
|
}
|
|
1521
|
+
}, managedBy: {
|
|
1522
|
+
serializedName: "properties.managedBy",
|
|
1523
|
+
type: {
|
|
1524
|
+
name: "Composite",
|
|
1525
|
+
className: "ManagedByInfo"
|
|
1526
|
+
}
|
|
1527
|
+
}, provisioningState: {
|
|
1528
|
+
serializedName: "properties.provisioningState",
|
|
1529
|
+
readOnly: true,
|
|
1530
|
+
type: {
|
|
1531
|
+
name: "String"
|
|
1532
|
+
}
|
|
1533
|
+
} })
|
|
1534
|
+
}
|
|
1535
|
+
};
|
|
1536
|
+
const Snapshot = {
|
|
1537
|
+
type: {
|
|
1538
|
+
name: "Composite",
|
|
1539
|
+
className: "Snapshot",
|
|
1540
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { creationData: {
|
|
1541
|
+
serializedName: "properties.creationData",
|
|
1542
|
+
type: {
|
|
1543
|
+
name: "Composite",
|
|
1544
|
+
className: "SnapshotCreationData"
|
|
1545
|
+
}
|
|
1546
|
+
}, provisioningState: {
|
|
1547
|
+
serializedName: "properties.provisioningState",
|
|
1548
|
+
readOnly: true,
|
|
1549
|
+
type: {
|
|
1550
|
+
name: "String"
|
|
1551
|
+
}
|
|
1552
|
+
}, sourceVolumeSizeGiB: {
|
|
1553
|
+
serializedName: "properties.sourceVolumeSizeGiB",
|
|
1554
|
+
readOnly: true,
|
|
1555
|
+
type: {
|
|
1556
|
+
name: "Number"
|
|
1557
|
+
}
|
|
1558
|
+
}, volumeName: {
|
|
1559
|
+
serializedName: "properties.volumeName",
|
|
1560
|
+
readOnly: true,
|
|
1561
|
+
type: {
|
|
1562
|
+
name: "String"
|
|
1563
|
+
}
|
|
1239
1564
|
} })
|
|
1240
1565
|
}
|
|
1241
1566
|
};
|
|
@@ -1337,6 +1662,20 @@ const PrivateEndpointConnectionsDeleteHeaders = {
|
|
|
1337
1662
|
}
|
|
1338
1663
|
}
|
|
1339
1664
|
};
|
|
1665
|
+
const VolumeSnapshotsDeleteHeaders = {
|
|
1666
|
+
type: {
|
|
1667
|
+
name: "Composite",
|
|
1668
|
+
className: "VolumeSnapshotsDeleteHeaders",
|
|
1669
|
+
modelProperties: {
|
|
1670
|
+
location: {
|
|
1671
|
+
serializedName: "location",
|
|
1672
|
+
type: {
|
|
1673
|
+
name: "String"
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
};
|
|
1340
1679
|
|
|
1341
1680
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1342
1681
|
__proto__: null,
|
|
@@ -1345,10 +1684,15 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1345
1684
|
ElasticSanUpdate: ElasticSanUpdate,
|
|
1346
1685
|
ElasticSansDeleteHeaders: ElasticSansDeleteHeaders,
|
|
1347
1686
|
ElasticSansUpdateHeaders: ElasticSansUpdateHeaders,
|
|
1687
|
+
EncryptionIdentity: EncryptionIdentity,
|
|
1688
|
+
EncryptionProperties: EncryptionProperties,
|
|
1348
1689
|
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1349
1690
|
ErrorDetail: ErrorDetail,
|
|
1350
1691
|
ErrorResponse: ErrorResponse,
|
|
1692
|
+
Identity: Identity,
|
|
1351
1693
|
IscsiTargetInfo: IscsiTargetInfo,
|
|
1694
|
+
KeyVaultProperties: KeyVaultProperties,
|
|
1695
|
+
ManagedByInfo: ManagedByInfo,
|
|
1352
1696
|
NetworkRuleSet: NetworkRuleSet,
|
|
1353
1697
|
Operation: Operation,
|
|
1354
1698
|
OperationDisplay: OperationDisplay,
|
|
@@ -1367,9 +1711,13 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1367
1711
|
SkuInformation: SkuInformation,
|
|
1368
1712
|
SkuInformationList: SkuInformationList,
|
|
1369
1713
|
SkuLocationInfo: SkuLocationInfo,
|
|
1714
|
+
Snapshot: Snapshot,
|
|
1715
|
+
SnapshotCreationData: SnapshotCreationData,
|
|
1716
|
+
SnapshotList: SnapshotList,
|
|
1370
1717
|
SourceCreationData: SourceCreationData,
|
|
1371
1718
|
SystemData: SystemData,
|
|
1372
1719
|
TrackedResource: TrackedResource,
|
|
1720
|
+
UserAssignedIdentity: UserAssignedIdentity,
|
|
1373
1721
|
VirtualNetworkRule: VirtualNetworkRule,
|
|
1374
1722
|
Volume: Volume,
|
|
1375
1723
|
VolumeGroup: VolumeGroup,
|
|
@@ -1378,6 +1726,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1378
1726
|
VolumeGroupsDeleteHeaders: VolumeGroupsDeleteHeaders,
|
|
1379
1727
|
VolumeGroupsUpdateHeaders: VolumeGroupsUpdateHeaders,
|
|
1380
1728
|
VolumeList: VolumeList,
|
|
1729
|
+
VolumeSnapshotsDeleteHeaders: VolumeSnapshotsDeleteHeaders,
|
|
1381
1730
|
VolumeUpdate: VolumeUpdate,
|
|
1382
1731
|
VolumesDeleteHeaders: VolumesDeleteHeaders,
|
|
1383
1732
|
VolumesUpdateHeaders: VolumesUpdateHeaders
|
|
@@ -1415,7 +1764,7 @@ const $host = {
|
|
|
1415
1764
|
const apiVersion = {
|
|
1416
1765
|
parameterPath: "apiVersion",
|
|
1417
1766
|
mapper: {
|
|
1418
|
-
defaultValue: "
|
|
1767
|
+
defaultValue: "2023-01-01",
|
|
1419
1768
|
isConstant: true,
|
|
1420
1769
|
serializedName: "api-version",
|
|
1421
1770
|
type: {
|
|
@@ -1550,6 +1899,24 @@ const parameters5 = {
|
|
|
1550
1899
|
parameterPath: "parameters",
|
|
1551
1900
|
mapper: VolumeUpdate
|
|
1552
1901
|
};
|
|
1902
|
+
const xMsDeleteSnapshots = {
|
|
1903
|
+
parameterPath: ["options", "xMsDeleteSnapshots"],
|
|
1904
|
+
mapper: {
|
|
1905
|
+
serializedName: "x-ms-delete-snapshots",
|
|
1906
|
+
type: {
|
|
1907
|
+
name: "String"
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
};
|
|
1911
|
+
const xMsForceDelete = {
|
|
1912
|
+
parameterPath: ["options", "xMsForceDelete"],
|
|
1913
|
+
mapper: {
|
|
1914
|
+
serializedName: "x-ms-force-delete",
|
|
1915
|
+
type: {
|
|
1916
|
+
name: "String"
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
};
|
|
1553
1920
|
const parameters6 = {
|
|
1554
1921
|
parameterPath: "parameters",
|
|
1555
1922
|
mapper: PrivateEndpointConnection
|
|
@@ -1564,6 +1931,25 @@ const privateEndpointConnectionName = {
|
|
|
1564
1931
|
}
|
|
1565
1932
|
}
|
|
1566
1933
|
};
|
|
1934
|
+
const parameters7 = {
|
|
1935
|
+
parameterPath: "parameters",
|
|
1936
|
+
mapper: Snapshot
|
|
1937
|
+
};
|
|
1938
|
+
const snapshotName = {
|
|
1939
|
+
parameterPath: "snapshotName",
|
|
1940
|
+
mapper: {
|
|
1941
|
+
constraints: {
|
|
1942
|
+
Pattern: new RegExp("^[a-z0-9]+(?:[._-][a-z0-9]+)*$"),
|
|
1943
|
+
MaxLength: 80,
|
|
1944
|
+
MinLength: 1
|
|
1945
|
+
},
|
|
1946
|
+
serializedName: "snapshotName",
|
|
1947
|
+
required: true,
|
|
1948
|
+
type: {
|
|
1949
|
+
name: "String"
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
};
|
|
1567
1953
|
|
|
1568
1954
|
/*
|
|
1569
1955
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -1644,7 +2030,7 @@ class OperationsImpl {
|
|
|
1644
2030
|
}
|
|
1645
2031
|
}
|
|
1646
2032
|
// Operation Specifications
|
|
1647
|
-
const serializer$
|
|
2033
|
+
const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1648
2034
|
const listOperationSpec$2 = {
|
|
1649
2035
|
path: "/providers/Microsoft.ElasticSan/operations",
|
|
1650
2036
|
httpMethod: "GET",
|
|
@@ -1659,7 +2045,7 @@ const listOperationSpec$2 = {
|
|
|
1659
2045
|
queryParameters: [apiVersion],
|
|
1660
2046
|
urlParameters: [$host],
|
|
1661
2047
|
headerParameters: [accept],
|
|
1662
|
-
serializer: serializer$
|
|
2048
|
+
serializer: serializer$7
|
|
1663
2049
|
};
|
|
1664
2050
|
|
|
1665
2051
|
/*
|
|
@@ -1741,7 +2127,7 @@ class SkusImpl {
|
|
|
1741
2127
|
}
|
|
1742
2128
|
}
|
|
1743
2129
|
// Operation Specifications
|
|
1744
|
-
const serializer$
|
|
2130
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1745
2131
|
const listOperationSpec$1 = {
|
|
1746
2132
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ElasticSan/skus",
|
|
1747
2133
|
httpMethod: "GET",
|
|
@@ -1756,7 +2142,7 @@ const listOperationSpec$1 = {
|
|
|
1756
2142
|
queryParameters: [apiVersion, filter],
|
|
1757
2143
|
urlParameters: [$host, subscriptionId],
|
|
1758
2144
|
headerParameters: [accept],
|
|
1759
|
-
serializer: serializer$
|
|
2145
|
+
serializer: serializer$6
|
|
1760
2146
|
};
|
|
1761
2147
|
|
|
1762
2148
|
/*
|
|
@@ -1978,7 +2364,7 @@ class ElasticSansImpl {
|
|
|
1978
2364
|
const lro = createLroSpec({
|
|
1979
2365
|
sendOperationFn,
|
|
1980
2366
|
args: { resourceGroupName, elasticSanName, parameters, options },
|
|
1981
|
-
spec: createOperationSpec$
|
|
2367
|
+
spec: createOperationSpec$4
|
|
1982
2368
|
});
|
|
1983
2369
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1984
2370
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
@@ -2093,7 +2479,7 @@ class ElasticSansImpl {
|
|
|
2093
2479
|
const lro = createLroSpec({
|
|
2094
2480
|
sendOperationFn,
|
|
2095
2481
|
args: { resourceGroupName, elasticSanName, options },
|
|
2096
|
-
spec: deleteOperationSpec$
|
|
2482
|
+
spec: deleteOperationSpec$4
|
|
2097
2483
|
});
|
|
2098
2484
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2099
2485
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
@@ -2123,7 +2509,7 @@ class ElasticSansImpl {
|
|
|
2123
2509
|
* @param options The options parameters.
|
|
2124
2510
|
*/
|
|
2125
2511
|
get(resourceGroupName, elasticSanName, options) {
|
|
2126
|
-
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, options }, getOperationSpec$
|
|
2512
|
+
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, options }, getOperationSpec$4);
|
|
2127
2513
|
}
|
|
2128
2514
|
/**
|
|
2129
2515
|
* ListBySubscriptionNext
|
|
@@ -2144,7 +2530,7 @@ class ElasticSansImpl {
|
|
|
2144
2530
|
}
|
|
2145
2531
|
}
|
|
2146
2532
|
// Operation Specifications
|
|
2147
|
-
const serializer$
|
|
2533
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2148
2534
|
const listBySubscriptionOperationSpec = {
|
|
2149
2535
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ElasticSan/elasticSans",
|
|
2150
2536
|
httpMethod: "GET",
|
|
@@ -2159,7 +2545,7 @@ const listBySubscriptionOperationSpec = {
|
|
|
2159
2545
|
queryParameters: [apiVersion],
|
|
2160
2546
|
urlParameters: [$host, subscriptionId],
|
|
2161
2547
|
headerParameters: [accept],
|
|
2162
|
-
serializer: serializer$
|
|
2548
|
+
serializer: serializer$5
|
|
2163
2549
|
};
|
|
2164
2550
|
const listByResourceGroupOperationSpec = {
|
|
2165
2551
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans",
|
|
@@ -2179,9 +2565,9 @@ const listByResourceGroupOperationSpec = {
|
|
|
2179
2565
|
resourceGroupName
|
|
2180
2566
|
],
|
|
2181
2567
|
headerParameters: [accept],
|
|
2182
|
-
serializer: serializer$
|
|
2568
|
+
serializer: serializer$5
|
|
2183
2569
|
};
|
|
2184
|
-
const createOperationSpec$
|
|
2570
|
+
const createOperationSpec$4 = {
|
|
2185
2571
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
|
|
2186
2572
|
httpMethod: "PUT",
|
|
2187
2573
|
responses: {
|
|
@@ -2211,7 +2597,7 @@ const createOperationSpec$3 = {
|
|
|
2211
2597
|
],
|
|
2212
2598
|
headerParameters: [accept, contentType],
|
|
2213
2599
|
mediaType: "json",
|
|
2214
|
-
serializer: serializer$
|
|
2600
|
+
serializer: serializer$5
|
|
2215
2601
|
};
|
|
2216
2602
|
const updateOperationSpec$2 = {
|
|
2217
2603
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
|
|
@@ -2243,9 +2629,9 @@ const updateOperationSpec$2 = {
|
|
|
2243
2629
|
],
|
|
2244
2630
|
headerParameters: [accept, contentType],
|
|
2245
2631
|
mediaType: "json",
|
|
2246
|
-
serializer: serializer$
|
|
2632
|
+
serializer: serializer$5
|
|
2247
2633
|
};
|
|
2248
|
-
const deleteOperationSpec$
|
|
2634
|
+
const deleteOperationSpec$4 = {
|
|
2249
2635
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
|
|
2250
2636
|
httpMethod: "DELETE",
|
|
2251
2637
|
responses: {
|
|
@@ -2265,9 +2651,9 @@ const deleteOperationSpec$3 = {
|
|
|
2265
2651
|
elasticSanName
|
|
2266
2652
|
],
|
|
2267
2653
|
headerParameters: [accept],
|
|
2268
|
-
serializer: serializer$
|
|
2654
|
+
serializer: serializer$5
|
|
2269
2655
|
};
|
|
2270
|
-
const getOperationSpec$
|
|
2656
|
+
const getOperationSpec$4 = {
|
|
2271
2657
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
|
|
2272
2658
|
httpMethod: "GET",
|
|
2273
2659
|
responses: {
|
|
@@ -2286,7 +2672,7 @@ const getOperationSpec$3 = {
|
|
|
2286
2672
|
elasticSanName
|
|
2287
2673
|
],
|
|
2288
2674
|
headerParameters: [accept],
|
|
2289
|
-
serializer: serializer$
|
|
2675
|
+
serializer: serializer$5
|
|
2290
2676
|
};
|
|
2291
2677
|
const listBySubscriptionNextOperationSpec = {
|
|
2292
2678
|
path: "{nextLink}",
|
|
@@ -2305,7 +2691,7 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
2305
2691
|
nextLink
|
|
2306
2692
|
],
|
|
2307
2693
|
headerParameters: [accept],
|
|
2308
|
-
serializer: serializer$
|
|
2694
|
+
serializer: serializer$5
|
|
2309
2695
|
};
|
|
2310
2696
|
const listByResourceGroupNextOperationSpec = {
|
|
2311
2697
|
path: "{nextLink}",
|
|
@@ -2325,7 +2711,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
2325
2711
|
nextLink
|
|
2326
2712
|
],
|
|
2327
2713
|
headerParameters: [accept],
|
|
2328
|
-
serializer: serializer$
|
|
2714
|
+
serializer: serializer$5
|
|
2329
2715
|
};
|
|
2330
2716
|
|
|
2331
2717
|
/*
|
|
@@ -2463,7 +2849,7 @@ class VolumeGroupsImpl {
|
|
|
2463
2849
|
parameters,
|
|
2464
2850
|
options
|
|
2465
2851
|
},
|
|
2466
|
-
spec: createOperationSpec$
|
|
2852
|
+
spec: createOperationSpec$3
|
|
2467
2853
|
});
|
|
2468
2854
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2469
2855
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
@@ -2588,7 +2974,7 @@ class VolumeGroupsImpl {
|
|
|
2588
2974
|
const lro = createLroSpec({
|
|
2589
2975
|
sendOperationFn,
|
|
2590
2976
|
args: { resourceGroupName, elasticSanName, volumeGroupName, options },
|
|
2591
|
-
spec: deleteOperationSpec$
|
|
2977
|
+
spec: deleteOperationSpec$3
|
|
2592
2978
|
});
|
|
2593
2979
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2594
2980
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
@@ -2620,7 +3006,7 @@ class VolumeGroupsImpl {
|
|
|
2620
3006
|
* @param options The options parameters.
|
|
2621
3007
|
*/
|
|
2622
3008
|
get(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
2623
|
-
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, volumeGroupName, options }, getOperationSpec$
|
|
3009
|
+
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, volumeGroupName, options }, getOperationSpec$3);
|
|
2624
3010
|
}
|
|
2625
3011
|
/**
|
|
2626
3012
|
* ListByElasticSanNext
|
|
@@ -2634,7 +3020,7 @@ class VolumeGroupsImpl {
|
|
|
2634
3020
|
}
|
|
2635
3021
|
}
|
|
2636
3022
|
// Operation Specifications
|
|
2637
|
-
const serializer$
|
|
3023
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2638
3024
|
const listByElasticSanOperationSpec$1 = {
|
|
2639
3025
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumeGroups",
|
|
2640
3026
|
httpMethod: "GET",
|
|
@@ -2654,9 +3040,9 @@ const listByElasticSanOperationSpec$1 = {
|
|
|
2654
3040
|
elasticSanName
|
|
2655
3041
|
],
|
|
2656
3042
|
headerParameters: [accept],
|
|
2657
|
-
serializer: serializer$
|
|
3043
|
+
serializer: serializer$4
|
|
2658
3044
|
};
|
|
2659
|
-
const createOperationSpec$
|
|
3045
|
+
const createOperationSpec$3 = {
|
|
2660
3046
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
2661
3047
|
httpMethod: "PUT",
|
|
2662
3048
|
responses: {
|
|
@@ -2687,7 +3073,7 @@ const createOperationSpec$2 = {
|
|
|
2687
3073
|
],
|
|
2688
3074
|
headerParameters: [accept, contentType],
|
|
2689
3075
|
mediaType: "json",
|
|
2690
|
-
serializer: serializer$
|
|
3076
|
+
serializer: serializer$4
|
|
2691
3077
|
};
|
|
2692
3078
|
const updateOperationSpec$1 = {
|
|
2693
3079
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
@@ -2720,9 +3106,9 @@ const updateOperationSpec$1 = {
|
|
|
2720
3106
|
],
|
|
2721
3107
|
headerParameters: [accept, contentType],
|
|
2722
3108
|
mediaType: "json",
|
|
2723
|
-
serializer: serializer$
|
|
3109
|
+
serializer: serializer$4
|
|
2724
3110
|
};
|
|
2725
|
-
const deleteOperationSpec$
|
|
3111
|
+
const deleteOperationSpec$3 = {
|
|
2726
3112
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
2727
3113
|
httpMethod: "DELETE",
|
|
2728
3114
|
responses: {
|
|
@@ -2743,9 +3129,9 @@ const deleteOperationSpec$2 = {
|
|
|
2743
3129
|
volumeGroupName
|
|
2744
3130
|
],
|
|
2745
3131
|
headerParameters: [accept],
|
|
2746
|
-
serializer: serializer$
|
|
3132
|
+
serializer: serializer$4
|
|
2747
3133
|
};
|
|
2748
|
-
const getOperationSpec$
|
|
3134
|
+
const getOperationSpec$3 = {
|
|
2749
3135
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
2750
3136
|
httpMethod: "GET",
|
|
2751
3137
|
responses: {
|
|
@@ -2765,7 +3151,7 @@ const getOperationSpec$2 = {
|
|
|
2765
3151
|
volumeGroupName
|
|
2766
3152
|
],
|
|
2767
3153
|
headerParameters: [accept],
|
|
2768
|
-
serializer: serializer$
|
|
3154
|
+
serializer: serializer$4
|
|
2769
3155
|
};
|
|
2770
3156
|
const listByElasticSanNextOperationSpec = {
|
|
2771
3157
|
path: "{nextLink}",
|
|
@@ -2786,7 +3172,7 @@ const listByElasticSanNextOperationSpec = {
|
|
|
2786
3172
|
nextLink
|
|
2787
3173
|
],
|
|
2788
3174
|
headerParameters: [accept],
|
|
2789
|
-
serializer: serializer$
|
|
3175
|
+
serializer: serializer$4
|
|
2790
3176
|
};
|
|
2791
3177
|
|
|
2792
3178
|
/*
|
|
@@ -2918,7 +3304,7 @@ class VolumesImpl {
|
|
|
2918
3304
|
parameters,
|
|
2919
3305
|
options
|
|
2920
3306
|
},
|
|
2921
|
-
spec: createOperationSpec$
|
|
3307
|
+
spec: createOperationSpec$2
|
|
2922
3308
|
});
|
|
2923
3309
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2924
3310
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
@@ -3054,7 +3440,7 @@ class VolumesImpl {
|
|
|
3054
3440
|
volumeName,
|
|
3055
3441
|
options
|
|
3056
3442
|
},
|
|
3057
|
-
spec: deleteOperationSpec$
|
|
3443
|
+
spec: deleteOperationSpec$2
|
|
3058
3444
|
});
|
|
3059
3445
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3060
3446
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
@@ -3094,7 +3480,7 @@ class VolumesImpl {
|
|
|
3094
3480
|
volumeGroupName,
|
|
3095
3481
|
volumeName,
|
|
3096
3482
|
options
|
|
3097
|
-
}, getOperationSpec$
|
|
3483
|
+
}, getOperationSpec$2);
|
|
3098
3484
|
}
|
|
3099
3485
|
/**
|
|
3100
3486
|
* List Volumes in a VolumeGroup.
|
|
@@ -3104,7 +3490,7 @@ class VolumesImpl {
|
|
|
3104
3490
|
* @param options The options parameters.
|
|
3105
3491
|
*/
|
|
3106
3492
|
_listByVolumeGroup(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
3107
|
-
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, volumeGroupName, options }, listByVolumeGroupOperationSpec);
|
|
3493
|
+
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, volumeGroupName, options }, listByVolumeGroupOperationSpec$1);
|
|
3108
3494
|
}
|
|
3109
3495
|
/**
|
|
3110
3496
|
* ListByVolumeGroupNext
|
|
@@ -3115,12 +3501,12 @@ class VolumesImpl {
|
|
|
3115
3501
|
* @param options The options parameters.
|
|
3116
3502
|
*/
|
|
3117
3503
|
_listByVolumeGroupNext(resourceGroupName, elasticSanName, volumeGroupName, nextLink, options) {
|
|
3118
|
-
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, volumeGroupName, nextLink, options }, listByVolumeGroupNextOperationSpec);
|
|
3504
|
+
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, volumeGroupName, nextLink, options }, listByVolumeGroupNextOperationSpec$1);
|
|
3119
3505
|
}
|
|
3120
3506
|
}
|
|
3121
3507
|
// Operation Specifications
|
|
3122
|
-
const serializer$
|
|
3123
|
-
const createOperationSpec$
|
|
3508
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3509
|
+
const createOperationSpec$2 = {
|
|
3124
3510
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
3125
3511
|
httpMethod: "PUT",
|
|
3126
3512
|
responses: {
|
|
@@ -3152,7 +3538,7 @@ const createOperationSpec$1 = {
|
|
|
3152
3538
|
],
|
|
3153
3539
|
headerParameters: [accept, contentType],
|
|
3154
3540
|
mediaType: "json",
|
|
3155
|
-
serializer: serializer$
|
|
3541
|
+
serializer: serializer$3
|
|
3156
3542
|
};
|
|
3157
3543
|
const updateOperationSpec = {
|
|
3158
3544
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
@@ -3186,9 +3572,9 @@ const updateOperationSpec = {
|
|
|
3186
3572
|
],
|
|
3187
3573
|
headerParameters: [accept, contentType],
|
|
3188
3574
|
mediaType: "json",
|
|
3189
|
-
serializer: serializer$
|
|
3575
|
+
serializer: serializer$3
|
|
3190
3576
|
};
|
|
3191
|
-
const deleteOperationSpec$
|
|
3577
|
+
const deleteOperationSpec$2 = {
|
|
3192
3578
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
3193
3579
|
httpMethod: "DELETE",
|
|
3194
3580
|
responses: {
|
|
@@ -3209,10 +3595,14 @@ const deleteOperationSpec$1 = {
|
|
|
3209
3595
|
volumeGroupName,
|
|
3210
3596
|
volumeName
|
|
3211
3597
|
],
|
|
3212
|
-
headerParameters: [
|
|
3213
|
-
|
|
3598
|
+
headerParameters: [
|
|
3599
|
+
accept,
|
|
3600
|
+
xMsDeleteSnapshots,
|
|
3601
|
+
xMsForceDelete
|
|
3602
|
+
],
|
|
3603
|
+
serializer: serializer$3
|
|
3214
3604
|
};
|
|
3215
|
-
const getOperationSpec$
|
|
3605
|
+
const getOperationSpec$2 = {
|
|
3216
3606
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
3217
3607
|
httpMethod: "GET",
|
|
3218
3608
|
responses: {
|
|
@@ -3233,9 +3623,9 @@ const getOperationSpec$1 = {
|
|
|
3233
3623
|
volumeName
|
|
3234
3624
|
],
|
|
3235
3625
|
headerParameters: [accept],
|
|
3236
|
-
serializer: serializer$
|
|
3626
|
+
serializer: serializer$3
|
|
3237
3627
|
};
|
|
3238
|
-
const listByVolumeGroupOperationSpec = {
|
|
3628
|
+
const listByVolumeGroupOperationSpec$1 = {
|
|
3239
3629
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes",
|
|
3240
3630
|
httpMethod: "GET",
|
|
3241
3631
|
responses: {
|
|
@@ -3255,9 +3645,9 @@ const listByVolumeGroupOperationSpec = {
|
|
|
3255
3645
|
volumeGroupName
|
|
3256
3646
|
],
|
|
3257
3647
|
headerParameters: [accept],
|
|
3258
|
-
serializer: serializer$
|
|
3648
|
+
serializer: serializer$3
|
|
3259
3649
|
};
|
|
3260
|
-
const listByVolumeGroupNextOperationSpec = {
|
|
3650
|
+
const listByVolumeGroupNextOperationSpec$1 = {
|
|
3261
3651
|
path: "{nextLink}",
|
|
3262
3652
|
httpMethod: "GET",
|
|
3263
3653
|
responses: {
|
|
@@ -3277,7 +3667,7 @@ const listByVolumeGroupNextOperationSpec = {
|
|
|
3277
3667
|
volumeGroupName
|
|
3278
3668
|
],
|
|
3279
3669
|
headerParameters: [accept],
|
|
3280
|
-
serializer: serializer$
|
|
3670
|
+
serializer: serializer$3
|
|
3281
3671
|
};
|
|
3282
3672
|
|
|
3283
3673
|
/*
|
|
@@ -3393,7 +3783,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
3393
3783
|
parameters,
|
|
3394
3784
|
options
|
|
3395
3785
|
},
|
|
3396
|
-
spec: createOperationSpec
|
|
3786
|
+
spec: createOperationSpec$1
|
|
3397
3787
|
});
|
|
3398
3788
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3399
3789
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
@@ -3431,7 +3821,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
3431
3821
|
elasticSanName,
|
|
3432
3822
|
privateEndpointConnectionName,
|
|
3433
3823
|
options
|
|
3434
|
-
}, getOperationSpec);
|
|
3824
|
+
}, getOperationSpec$1);
|
|
3435
3825
|
}
|
|
3436
3826
|
/**
|
|
3437
3827
|
* Deletes the specified private endpoint connection associated with the Elastic San
|
|
@@ -3472,7 +3862,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
3472
3862
|
privateEndpointConnectionName,
|
|
3473
3863
|
options
|
|
3474
3864
|
},
|
|
3475
|
-
spec: deleteOperationSpec
|
|
3865
|
+
spec: deleteOperationSpec$1
|
|
3476
3866
|
});
|
|
3477
3867
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3478
3868
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
@@ -3507,8 +3897,8 @@ class PrivateEndpointConnectionsImpl {
|
|
|
3507
3897
|
}
|
|
3508
3898
|
}
|
|
3509
3899
|
// Operation Specifications
|
|
3510
|
-
const serializer$
|
|
3511
|
-
const createOperationSpec = {
|
|
3900
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3901
|
+
const createOperationSpec$1 = {
|
|
3512
3902
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
3513
3903
|
httpMethod: "PUT",
|
|
3514
3904
|
responses: {
|
|
@@ -3539,9 +3929,9 @@ const createOperationSpec = {
|
|
|
3539
3929
|
],
|
|
3540
3930
|
headerParameters: [accept, contentType],
|
|
3541
3931
|
mediaType: "json",
|
|
3542
|
-
serializer: serializer$
|
|
3932
|
+
serializer: serializer$2
|
|
3543
3933
|
};
|
|
3544
|
-
const getOperationSpec = {
|
|
3934
|
+
const getOperationSpec$1 = {
|
|
3545
3935
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
3546
3936
|
httpMethod: "GET",
|
|
3547
3937
|
responses: {
|
|
@@ -3561,9 +3951,9 @@ const getOperationSpec = {
|
|
|
3561
3951
|
privateEndpointConnectionName
|
|
3562
3952
|
],
|
|
3563
3953
|
headerParameters: [accept],
|
|
3564
|
-
serializer: serializer$
|
|
3954
|
+
serializer: serializer$2
|
|
3565
3955
|
};
|
|
3566
|
-
const deleteOperationSpec = {
|
|
3956
|
+
const deleteOperationSpec$1 = {
|
|
3567
3957
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
3568
3958
|
httpMethod: "DELETE",
|
|
3569
3959
|
responses: {
|
|
@@ -3584,7 +3974,7 @@ const deleteOperationSpec = {
|
|
|
3584
3974
|
privateEndpointConnectionName
|
|
3585
3975
|
],
|
|
3586
3976
|
headerParameters: [accept],
|
|
3587
|
-
serializer: serializer$
|
|
3977
|
+
serializer: serializer$2
|
|
3588
3978
|
};
|
|
3589
3979
|
const listOperationSpec = {
|
|
3590
3980
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections",
|
|
@@ -3605,7 +3995,7 @@ const listOperationSpec = {
|
|
|
3605
3995
|
elasticSanName
|
|
3606
3996
|
],
|
|
3607
3997
|
headerParameters: [accept],
|
|
3608
|
-
serializer: serializer$
|
|
3998
|
+
serializer: serializer$2
|
|
3609
3999
|
};
|
|
3610
4000
|
|
|
3611
4001
|
/*
|
|
@@ -3635,7 +4025,7 @@ class PrivateLinkResourcesImpl {
|
|
|
3635
4025
|
}
|
|
3636
4026
|
}
|
|
3637
4027
|
// Operation Specifications
|
|
3638
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4028
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3639
4029
|
const listByElasticSanOperationSpec = {
|
|
3640
4030
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateLinkResources",
|
|
3641
4031
|
httpMethod: "GET",
|
|
@@ -3655,6 +4045,394 @@ const listByElasticSanOperationSpec = {
|
|
|
3655
4045
|
elasticSanName
|
|
3656
4046
|
],
|
|
3657
4047
|
headerParameters: [accept],
|
|
4048
|
+
serializer: serializer$1
|
|
4049
|
+
};
|
|
4050
|
+
|
|
4051
|
+
/*
|
|
4052
|
+
* Copyright (c) Microsoft Corporation.
|
|
4053
|
+
* Licensed under the MIT License.
|
|
4054
|
+
*
|
|
4055
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4056
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4057
|
+
*/
|
|
4058
|
+
/// <reference lib="esnext.asynciterable" />
|
|
4059
|
+
/** Class containing VolumeSnapshots operations. */
|
|
4060
|
+
class VolumeSnapshotsImpl {
|
|
4061
|
+
/**
|
|
4062
|
+
* Initialize a new instance of the class VolumeSnapshots class.
|
|
4063
|
+
* @param client Reference to the service client
|
|
4064
|
+
*/
|
|
4065
|
+
constructor(client) {
|
|
4066
|
+
this.client = client;
|
|
4067
|
+
}
|
|
4068
|
+
/**
|
|
4069
|
+
* List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter
|
|
4070
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4071
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
4072
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
4073
|
+
* @param options The options parameters.
|
|
4074
|
+
*/
|
|
4075
|
+
listByVolumeGroup(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
4076
|
+
const iter = this.listByVolumeGroupPagingAll(resourceGroupName, elasticSanName, volumeGroupName, options);
|
|
4077
|
+
return {
|
|
4078
|
+
next() {
|
|
4079
|
+
return iter.next();
|
|
4080
|
+
},
|
|
4081
|
+
[Symbol.asyncIterator]() {
|
|
4082
|
+
return this;
|
|
4083
|
+
},
|
|
4084
|
+
byPage: (settings) => {
|
|
4085
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4086
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4087
|
+
}
|
|
4088
|
+
return this.listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options, settings);
|
|
4089
|
+
}
|
|
4090
|
+
};
|
|
4091
|
+
}
|
|
4092
|
+
listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options, settings) {
|
|
4093
|
+
return tslib.__asyncGenerator(this, arguments, function* listByVolumeGroupPagingPage_1() {
|
|
4094
|
+
let result;
|
|
4095
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4096
|
+
if (!continuationToken) {
|
|
4097
|
+
result = yield tslib.__await(this._listByVolumeGroup(resourceGroupName, elasticSanName, volumeGroupName, options));
|
|
4098
|
+
let page = result.value || [];
|
|
4099
|
+
continuationToken = result.nextLink;
|
|
4100
|
+
setContinuationToken(page, continuationToken);
|
|
4101
|
+
yield yield tslib.__await(page);
|
|
4102
|
+
}
|
|
4103
|
+
while (continuationToken) {
|
|
4104
|
+
result = yield tslib.__await(this._listByVolumeGroupNext(resourceGroupName, elasticSanName, volumeGroupName, continuationToken, options));
|
|
4105
|
+
continuationToken = result.nextLink;
|
|
4106
|
+
let page = result.value || [];
|
|
4107
|
+
setContinuationToken(page, continuationToken);
|
|
4108
|
+
yield yield tslib.__await(page);
|
|
4109
|
+
}
|
|
4110
|
+
});
|
|
4111
|
+
}
|
|
4112
|
+
listByVolumeGroupPagingAll(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
4113
|
+
return tslib.__asyncGenerator(this, arguments, function* listByVolumeGroupPagingAll_1() {
|
|
4114
|
+
var _a, e_1, _b, _c;
|
|
4115
|
+
try {
|
|
4116
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
4117
|
+
_c = _f.value;
|
|
4118
|
+
_d = false;
|
|
4119
|
+
try {
|
|
4120
|
+
const page = _c;
|
|
4121
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
4122
|
+
}
|
|
4123
|
+
finally {
|
|
4124
|
+
_d = true;
|
|
4125
|
+
}
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
4129
|
+
finally {
|
|
4130
|
+
try {
|
|
4131
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
4132
|
+
}
|
|
4133
|
+
finally { if (e_1) throw e_1.error; }
|
|
4134
|
+
}
|
|
4135
|
+
});
|
|
4136
|
+
}
|
|
4137
|
+
/**
|
|
4138
|
+
* List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter
|
|
4139
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4140
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
4141
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
4142
|
+
* @param options The options parameters.
|
|
4143
|
+
*/
|
|
4144
|
+
_listByVolumeGroup(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
4145
|
+
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, volumeGroupName, options }, listByVolumeGroupOperationSpec);
|
|
4146
|
+
}
|
|
4147
|
+
/**
|
|
4148
|
+
* Create a Volume Snapshot.
|
|
4149
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4150
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
4151
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
4152
|
+
* @param snapshotName The name of the volume snapshot within the given volume group.
|
|
4153
|
+
* @param parameters Snapshot object.
|
|
4154
|
+
* @param options The options parameters.
|
|
4155
|
+
*/
|
|
4156
|
+
beginCreate(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, parameters, options) {
|
|
4157
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4158
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4159
|
+
return this.client.sendOperationRequest(args, spec);
|
|
4160
|
+
});
|
|
4161
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4162
|
+
var _a;
|
|
4163
|
+
let currentRawResponse = undefined;
|
|
4164
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4165
|
+
const callback = (rawResponse, flatResponse) => {
|
|
4166
|
+
currentRawResponse = rawResponse;
|
|
4167
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4168
|
+
};
|
|
4169
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4170
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
4171
|
+
return {
|
|
4172
|
+
flatResponse,
|
|
4173
|
+
rawResponse: {
|
|
4174
|
+
statusCode: currentRawResponse.status,
|
|
4175
|
+
body: currentRawResponse.parsedBody,
|
|
4176
|
+
headers: currentRawResponse.headers.toJSON()
|
|
4177
|
+
}
|
|
4178
|
+
};
|
|
4179
|
+
});
|
|
4180
|
+
const lro = createLroSpec({
|
|
4181
|
+
sendOperationFn,
|
|
4182
|
+
args: {
|
|
4183
|
+
resourceGroupName,
|
|
4184
|
+
elasticSanName,
|
|
4185
|
+
volumeGroupName,
|
|
4186
|
+
snapshotName,
|
|
4187
|
+
parameters,
|
|
4188
|
+
options
|
|
4189
|
+
},
|
|
4190
|
+
spec: createOperationSpec
|
|
4191
|
+
});
|
|
4192
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4193
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4194
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4195
|
+
resourceLocationConfig: "location"
|
|
4196
|
+
});
|
|
4197
|
+
yield poller.poll();
|
|
4198
|
+
return poller;
|
|
4199
|
+
});
|
|
4200
|
+
}
|
|
4201
|
+
/**
|
|
4202
|
+
* Create a Volume Snapshot.
|
|
4203
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4204
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
4205
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
4206
|
+
* @param snapshotName The name of the volume snapshot within the given volume group.
|
|
4207
|
+
* @param parameters Snapshot object.
|
|
4208
|
+
* @param options The options parameters.
|
|
4209
|
+
*/
|
|
4210
|
+
beginCreateAndWait(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, parameters, options) {
|
|
4211
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4212
|
+
const poller = yield this.beginCreate(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, parameters, options);
|
|
4213
|
+
return poller.pollUntilDone();
|
|
4214
|
+
});
|
|
4215
|
+
}
|
|
4216
|
+
/**
|
|
4217
|
+
* Delete a Volume Snapshot.
|
|
4218
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4219
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
4220
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
4221
|
+
* @param snapshotName The name of the volume snapshot within the given volume group.
|
|
4222
|
+
* @param options The options parameters.
|
|
4223
|
+
*/
|
|
4224
|
+
beginDelete(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, options) {
|
|
4225
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4226
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4227
|
+
return this.client.sendOperationRequest(args, spec);
|
|
4228
|
+
});
|
|
4229
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4230
|
+
var _a;
|
|
4231
|
+
let currentRawResponse = undefined;
|
|
4232
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4233
|
+
const callback = (rawResponse, flatResponse) => {
|
|
4234
|
+
currentRawResponse = rawResponse;
|
|
4235
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4236
|
+
};
|
|
4237
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4238
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
4239
|
+
return {
|
|
4240
|
+
flatResponse,
|
|
4241
|
+
rawResponse: {
|
|
4242
|
+
statusCode: currentRawResponse.status,
|
|
4243
|
+
body: currentRawResponse.parsedBody,
|
|
4244
|
+
headers: currentRawResponse.headers.toJSON()
|
|
4245
|
+
}
|
|
4246
|
+
};
|
|
4247
|
+
});
|
|
4248
|
+
const lro = createLroSpec({
|
|
4249
|
+
sendOperationFn,
|
|
4250
|
+
args: {
|
|
4251
|
+
resourceGroupName,
|
|
4252
|
+
elasticSanName,
|
|
4253
|
+
volumeGroupName,
|
|
4254
|
+
snapshotName,
|
|
4255
|
+
options
|
|
4256
|
+
},
|
|
4257
|
+
spec: deleteOperationSpec
|
|
4258
|
+
});
|
|
4259
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4260
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4261
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4262
|
+
resourceLocationConfig: "location"
|
|
4263
|
+
});
|
|
4264
|
+
yield poller.poll();
|
|
4265
|
+
return poller;
|
|
4266
|
+
});
|
|
4267
|
+
}
|
|
4268
|
+
/**
|
|
4269
|
+
* Delete a Volume Snapshot.
|
|
4270
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4271
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
4272
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
4273
|
+
* @param snapshotName The name of the volume snapshot within the given volume group.
|
|
4274
|
+
* @param options The options parameters.
|
|
4275
|
+
*/
|
|
4276
|
+
beginDeleteAndWait(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, options) {
|
|
4277
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4278
|
+
const poller = yield this.beginDelete(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, options);
|
|
4279
|
+
return poller.pollUntilDone();
|
|
4280
|
+
});
|
|
4281
|
+
}
|
|
4282
|
+
/**
|
|
4283
|
+
* Get a Volume Snapshot.
|
|
4284
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4285
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
4286
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
4287
|
+
* @param snapshotName The name of the volume snapshot within the given volume group.
|
|
4288
|
+
* @param options The options parameters.
|
|
4289
|
+
*/
|
|
4290
|
+
get(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, options) {
|
|
4291
|
+
return this.client.sendOperationRequest({
|
|
4292
|
+
resourceGroupName,
|
|
4293
|
+
elasticSanName,
|
|
4294
|
+
volumeGroupName,
|
|
4295
|
+
snapshotName,
|
|
4296
|
+
options
|
|
4297
|
+
}, getOperationSpec);
|
|
4298
|
+
}
|
|
4299
|
+
/**
|
|
4300
|
+
* ListByVolumeGroupNext
|
|
4301
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4302
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
4303
|
+
* @param volumeGroupName The name of the VolumeGroup.
|
|
4304
|
+
* @param nextLink The nextLink from the previous successful call to the ListByVolumeGroup method.
|
|
4305
|
+
* @param options The options parameters.
|
|
4306
|
+
*/
|
|
4307
|
+
_listByVolumeGroupNext(resourceGroupName, elasticSanName, volumeGroupName, nextLink, options) {
|
|
4308
|
+
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, volumeGroupName, nextLink, options }, listByVolumeGroupNextOperationSpec);
|
|
4309
|
+
}
|
|
4310
|
+
}
|
|
4311
|
+
// Operation Specifications
|
|
4312
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4313
|
+
const listByVolumeGroupOperationSpec = {
|
|
4314
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots",
|
|
4315
|
+
httpMethod: "GET",
|
|
4316
|
+
responses: {
|
|
4317
|
+
200: {
|
|
4318
|
+
bodyMapper: SnapshotList
|
|
4319
|
+
},
|
|
4320
|
+
default: {
|
|
4321
|
+
bodyMapper: ErrorResponse
|
|
4322
|
+
}
|
|
4323
|
+
},
|
|
4324
|
+
queryParameters: [apiVersion, filter],
|
|
4325
|
+
urlParameters: [
|
|
4326
|
+
$host,
|
|
4327
|
+
subscriptionId,
|
|
4328
|
+
resourceGroupName,
|
|
4329
|
+
elasticSanName,
|
|
4330
|
+
volumeGroupName
|
|
4331
|
+
],
|
|
4332
|
+
headerParameters: [accept],
|
|
4333
|
+
serializer
|
|
4334
|
+
};
|
|
4335
|
+
const createOperationSpec = {
|
|
4336
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}",
|
|
4337
|
+
httpMethod: "PUT",
|
|
4338
|
+
responses: {
|
|
4339
|
+
200: {
|
|
4340
|
+
bodyMapper: Snapshot
|
|
4341
|
+
},
|
|
4342
|
+
201: {
|
|
4343
|
+
bodyMapper: Snapshot
|
|
4344
|
+
},
|
|
4345
|
+
202: {
|
|
4346
|
+
bodyMapper: Snapshot
|
|
4347
|
+
},
|
|
4348
|
+
204: {
|
|
4349
|
+
bodyMapper: Snapshot
|
|
4350
|
+
},
|
|
4351
|
+
default: {
|
|
4352
|
+
bodyMapper: ErrorResponse
|
|
4353
|
+
}
|
|
4354
|
+
},
|
|
4355
|
+
requestBody: parameters7,
|
|
4356
|
+
queryParameters: [apiVersion],
|
|
4357
|
+
urlParameters: [
|
|
4358
|
+
$host,
|
|
4359
|
+
subscriptionId,
|
|
4360
|
+
resourceGroupName,
|
|
4361
|
+
elasticSanName,
|
|
4362
|
+
volumeGroupName,
|
|
4363
|
+
snapshotName
|
|
4364
|
+
],
|
|
4365
|
+
headerParameters: [accept, contentType],
|
|
4366
|
+
mediaType: "json",
|
|
4367
|
+
serializer
|
|
4368
|
+
};
|
|
4369
|
+
const deleteOperationSpec = {
|
|
4370
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}",
|
|
4371
|
+
httpMethod: "DELETE",
|
|
4372
|
+
responses: {
|
|
4373
|
+
200: {},
|
|
4374
|
+
201: {},
|
|
4375
|
+
202: {},
|
|
4376
|
+
204: {},
|
|
4377
|
+
default: {
|
|
4378
|
+
bodyMapper: ErrorResponse
|
|
4379
|
+
}
|
|
4380
|
+
},
|
|
4381
|
+
queryParameters: [apiVersion],
|
|
4382
|
+
urlParameters: [
|
|
4383
|
+
$host,
|
|
4384
|
+
subscriptionId,
|
|
4385
|
+
resourceGroupName,
|
|
4386
|
+
elasticSanName,
|
|
4387
|
+
volumeGroupName,
|
|
4388
|
+
snapshotName
|
|
4389
|
+
],
|
|
4390
|
+
headerParameters: [accept],
|
|
4391
|
+
serializer
|
|
4392
|
+
};
|
|
4393
|
+
const getOperationSpec = {
|
|
4394
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}",
|
|
4395
|
+
httpMethod: "GET",
|
|
4396
|
+
responses: {
|
|
4397
|
+
200: {
|
|
4398
|
+
bodyMapper: Snapshot
|
|
4399
|
+
},
|
|
4400
|
+
default: {
|
|
4401
|
+
bodyMapper: ErrorResponse
|
|
4402
|
+
}
|
|
4403
|
+
},
|
|
4404
|
+
queryParameters: [apiVersion],
|
|
4405
|
+
urlParameters: [
|
|
4406
|
+
$host,
|
|
4407
|
+
subscriptionId,
|
|
4408
|
+
resourceGroupName,
|
|
4409
|
+
elasticSanName,
|
|
4410
|
+
volumeGroupName,
|
|
4411
|
+
snapshotName
|
|
4412
|
+
],
|
|
4413
|
+
headerParameters: [accept],
|
|
4414
|
+
serializer
|
|
4415
|
+
};
|
|
4416
|
+
const listByVolumeGroupNextOperationSpec = {
|
|
4417
|
+
path: "{nextLink}",
|
|
4418
|
+
httpMethod: "GET",
|
|
4419
|
+
responses: {
|
|
4420
|
+
200: {
|
|
4421
|
+
bodyMapper: SnapshotList
|
|
4422
|
+
},
|
|
4423
|
+
default: {
|
|
4424
|
+
bodyMapper: ErrorResponse
|
|
4425
|
+
}
|
|
4426
|
+
},
|
|
4427
|
+
urlParameters: [
|
|
4428
|
+
$host,
|
|
4429
|
+
subscriptionId,
|
|
4430
|
+
resourceGroupName,
|
|
4431
|
+
elasticSanName,
|
|
4432
|
+
nextLink,
|
|
4433
|
+
volumeGroupName
|
|
4434
|
+
],
|
|
4435
|
+
headerParameters: [accept],
|
|
3658
4436
|
serializer
|
|
3659
4437
|
};
|
|
3660
4438
|
|
|
@@ -3721,7 +4499,7 @@ class ElasticSanManagement extends coreClient__namespace.ServiceClient {
|
|
|
3721
4499
|
this.subscriptionId = subscriptionId;
|
|
3722
4500
|
// Assigning values to Constant parameters
|
|
3723
4501
|
this.$host = options.$host || "https://management.azure.com";
|
|
3724
|
-
this.apiVersion = options.apiVersion || "
|
|
4502
|
+
this.apiVersion = options.apiVersion || "2023-01-01";
|
|
3725
4503
|
this.operations = new OperationsImpl(this);
|
|
3726
4504
|
this.skus = new SkusImpl(this);
|
|
3727
4505
|
this.elasticSans = new ElasticSansImpl(this);
|
|
@@ -3729,6 +4507,7 @@ class ElasticSanManagement extends coreClient__namespace.ServiceClient {
|
|
|
3729
4507
|
this.volumes = new VolumesImpl(this);
|
|
3730
4508
|
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
3731
4509
|
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
4510
|
+
this.volumeSnapshots = new VolumeSnapshotsImpl(this);
|
|
3732
4511
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
3733
4512
|
}
|
|
3734
4513
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|