@azure/arm-storagemover 1.0.1-alpha.20230718.1 → 2.0.0-alpha.20230725.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 +32 -9
- package/README.md +1 -1
- package/dist/index.js +204 -74
- 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/agentsCreateOrUpdateSample.js +3 -3
- package/dist-esm/samples-dev/agentsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/agentsGetSample.js +2 -2
- package/dist-esm/samples-dev/agentsListSample.js +2 -2
- package/dist-esm/samples-dev/agentsUpdateSample.js +2 -2
- package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.js +96 -7
- package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/endpointsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/endpointsGetSample.js +64 -4
- package/dist-esm/samples-dev/endpointsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/endpointsListSample.js +2 -2
- package/dist-esm/samples-dev/endpointsUpdateSample.js +91 -5
- package/dist-esm/samples-dev/endpointsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/jobDefinitionsCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/jobDefinitionsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/jobDefinitionsGetSample.js +2 -2
- package/dist-esm/samples-dev/jobDefinitionsListSample.js +2 -2
- package/dist-esm/samples-dev/jobDefinitionsStartJobSample.js +2 -2
- package/dist-esm/samples-dev/jobDefinitionsStopJobSample.js +2 -2
- package/dist-esm/samples-dev/jobDefinitionsUpdateSample.js +2 -2
- package/dist-esm/samples-dev/jobRunsGetSample.js +2 -2
- package/dist-esm/samples-dev/jobRunsListSample.js +2 -2
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/projectsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/projectsGetSample.js +2 -2
- package/dist-esm/samples-dev/projectsListSample.js +2 -2
- package/dist-esm/samples-dev/projectsUpdateSample.js +2 -2
- package/dist-esm/samples-dev/storageMoversCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/storageMoversDeleteSample.js +2 -2
- package/dist-esm/samples-dev/storageMoversGetSample.js +2 -2
- package/dist-esm/samples-dev/storageMoversListBySubscriptionSample.js +2 -2
- package/dist-esm/samples-dev/storageMoversListSample.js +2 -2
- package/dist-esm/samples-dev/storageMoversUpdateSample.js +2 -2
- package/dist-esm/src/models/index.d.ts +100 -50
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +10 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +16 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +184 -70
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/storageMoverClient.js +2 -2
- package/dist-esm/src/storageMoverClient.js.map +1 -1
- package/dist-esm/test/storagemover_operations_test.spec.js +1 -1
- package/dist-esm/test/storagemover_operations_test.spec.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-storagemover.api.md +64 -12
- package/src/models/index.ts +131 -53
- package/src/models/mappers.ts +210 -72
- package/src/models/parameters.ts +1 -1
- package/src/storageMoverClient.ts +2 -2
- package/types/arm-storagemover.d.ts +95 -35
- package/types/tsdoc-metadata.json +1 -1
package/src/models/mappers.ts
CHANGED
|
@@ -243,6 +243,43 @@ export const StorageMoverList: coreClient.CompositeMapper = {
|
|
|
243
243
|
}
|
|
244
244
|
};
|
|
245
245
|
|
|
246
|
+
export const Resource: coreClient.CompositeMapper = {
|
|
247
|
+
type: {
|
|
248
|
+
name: "Composite",
|
|
249
|
+
className: "Resource",
|
|
250
|
+
modelProperties: {
|
|
251
|
+
id: {
|
|
252
|
+
serializedName: "id",
|
|
253
|
+
readOnly: true,
|
|
254
|
+
type: {
|
|
255
|
+
name: "String"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
name: {
|
|
259
|
+
serializedName: "name",
|
|
260
|
+
readOnly: true,
|
|
261
|
+
type: {
|
|
262
|
+
name: "String"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
type: {
|
|
266
|
+
serializedName: "type",
|
|
267
|
+
readOnly: true,
|
|
268
|
+
type: {
|
|
269
|
+
name: "String"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
systemData: {
|
|
273
|
+
serializedName: "systemData",
|
|
274
|
+
type: {
|
|
275
|
+
name: "Composite",
|
|
276
|
+
className: "SystemData"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
|
|
246
283
|
export const SystemData: coreClient.CompositeMapper = {
|
|
247
284
|
type: {
|
|
248
285
|
name: "Composite",
|
|
@@ -288,36 +325,6 @@ export const SystemData: coreClient.CompositeMapper = {
|
|
|
288
325
|
}
|
|
289
326
|
};
|
|
290
327
|
|
|
291
|
-
export const Resource: coreClient.CompositeMapper = {
|
|
292
|
-
type: {
|
|
293
|
-
name: "Composite",
|
|
294
|
-
className: "Resource",
|
|
295
|
-
modelProperties: {
|
|
296
|
-
id: {
|
|
297
|
-
serializedName: "id",
|
|
298
|
-
readOnly: true,
|
|
299
|
-
type: {
|
|
300
|
-
name: "String"
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
name: {
|
|
304
|
-
serializedName: "name",
|
|
305
|
-
readOnly: true,
|
|
306
|
-
type: {
|
|
307
|
-
name: "String"
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
type: {
|
|
311
|
-
serializedName: "type",
|
|
312
|
-
readOnly: true,
|
|
313
|
-
type: {
|
|
314
|
-
name: "String"
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
};
|
|
320
|
-
|
|
321
328
|
export const StorageMoverUpdateParameters: coreClient.CompositeMapper = {
|
|
322
329
|
type: {
|
|
323
330
|
name: "Composite",
|
|
@@ -488,7 +495,19 @@ export const EndpointBaseUpdateProperties: coreClient.CompositeMapper = {
|
|
|
488
495
|
type: {
|
|
489
496
|
name: "Composite",
|
|
490
497
|
className: "EndpointBaseUpdateProperties",
|
|
498
|
+
uberParent: "EndpointBaseUpdateProperties",
|
|
499
|
+
polymorphicDiscriminator: {
|
|
500
|
+
serializedName: "endpointType",
|
|
501
|
+
clientName: "endpointType"
|
|
502
|
+
},
|
|
491
503
|
modelProperties: {
|
|
504
|
+
endpointType: {
|
|
505
|
+
serializedName: "endpointType",
|
|
506
|
+
required: true,
|
|
507
|
+
type: {
|
|
508
|
+
name: "String"
|
|
509
|
+
}
|
|
510
|
+
},
|
|
492
511
|
description: {
|
|
493
512
|
serializedName: "description",
|
|
494
513
|
type: {
|
|
@@ -671,6 +690,27 @@ export const JobRunError: coreClient.CompositeMapper = {
|
|
|
671
690
|
}
|
|
672
691
|
};
|
|
673
692
|
|
|
693
|
+
export const Credentials: coreClient.CompositeMapper = {
|
|
694
|
+
type: {
|
|
695
|
+
name: "Composite",
|
|
696
|
+
className: "Credentials",
|
|
697
|
+
uberParent: "Credentials",
|
|
698
|
+
polymorphicDiscriminator: {
|
|
699
|
+
serializedName: "type",
|
|
700
|
+
clientName: "type"
|
|
701
|
+
},
|
|
702
|
+
modelProperties: {
|
|
703
|
+
type: {
|
|
704
|
+
serializedName: "type",
|
|
705
|
+
required: true,
|
|
706
|
+
type: {
|
|
707
|
+
name: "String"
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
};
|
|
713
|
+
|
|
674
714
|
export const TrackedResource: coreClient.CompositeMapper = {
|
|
675
715
|
type: {
|
|
676
716
|
name: "Composite",
|
|
@@ -767,10 +807,77 @@ export const NfsMountEndpointProperties: coreClient.CompositeMapper = {
|
|
|
767
807
|
}
|
|
768
808
|
};
|
|
769
809
|
|
|
810
|
+
export const AzureStorageSmbFileShareEndpointProperties: coreClient.CompositeMapper = {
|
|
811
|
+
serializedName: "AzureStorageSmbFileShare",
|
|
812
|
+
type: {
|
|
813
|
+
name: "Composite",
|
|
814
|
+
className: "AzureStorageSmbFileShareEndpointProperties",
|
|
815
|
+
uberParent: "EndpointBaseProperties",
|
|
816
|
+
polymorphicDiscriminator:
|
|
817
|
+
EndpointBaseProperties.type.polymorphicDiscriminator,
|
|
818
|
+
modelProperties: {
|
|
819
|
+
...EndpointBaseProperties.type.modelProperties,
|
|
820
|
+
storageAccountResourceId: {
|
|
821
|
+
serializedName: "storageAccountResourceId",
|
|
822
|
+
required: true,
|
|
823
|
+
type: {
|
|
824
|
+
name: "String"
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
fileShareName: {
|
|
828
|
+
serializedName: "fileShareName",
|
|
829
|
+
required: true,
|
|
830
|
+
type: {
|
|
831
|
+
name: "String"
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
};
|
|
837
|
+
|
|
838
|
+
export const SmbMountEndpointProperties: coreClient.CompositeMapper = {
|
|
839
|
+
serializedName: "SmbMount",
|
|
840
|
+
type: {
|
|
841
|
+
name: "Composite",
|
|
842
|
+
className: "SmbMountEndpointProperties",
|
|
843
|
+
uberParent: "EndpointBaseProperties",
|
|
844
|
+
polymorphicDiscriminator:
|
|
845
|
+
EndpointBaseProperties.type.polymorphicDiscriminator,
|
|
846
|
+
modelProperties: {
|
|
847
|
+
...EndpointBaseProperties.type.modelProperties,
|
|
848
|
+
host: {
|
|
849
|
+
serializedName: "host",
|
|
850
|
+
required: true,
|
|
851
|
+
type: {
|
|
852
|
+
name: "String"
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
shareName: {
|
|
856
|
+
serializedName: "shareName",
|
|
857
|
+
required: true,
|
|
858
|
+
type: {
|
|
859
|
+
name: "String"
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
credentials: {
|
|
863
|
+
serializedName: "credentials",
|
|
864
|
+
type: {
|
|
865
|
+
name: "Composite",
|
|
866
|
+
className: "AzureKeyVaultSmbCredentials"
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
};
|
|
872
|
+
|
|
770
873
|
export const AzureStorageBlobContainerEndpointUpdateProperties: coreClient.CompositeMapper = {
|
|
874
|
+
serializedName: "AzureStorageBlobContainer",
|
|
771
875
|
type: {
|
|
772
876
|
name: "Composite",
|
|
773
877
|
className: "AzureStorageBlobContainerEndpointUpdateProperties",
|
|
878
|
+
uberParent: "EndpointBaseUpdateProperties",
|
|
879
|
+
polymorphicDiscriminator:
|
|
880
|
+
EndpointBaseUpdateProperties.type.polymorphicDiscriminator,
|
|
774
881
|
modelProperties: {
|
|
775
882
|
...EndpointBaseUpdateProperties.type.modelProperties
|
|
776
883
|
}
|
|
@@ -778,28 +885,85 @@ export const AzureStorageBlobContainerEndpointUpdateProperties: coreClient.Compo
|
|
|
778
885
|
};
|
|
779
886
|
|
|
780
887
|
export const NfsMountEndpointUpdateProperties: coreClient.CompositeMapper = {
|
|
888
|
+
serializedName: "NfsMount",
|
|
781
889
|
type: {
|
|
782
890
|
name: "Composite",
|
|
783
891
|
className: "NfsMountEndpointUpdateProperties",
|
|
892
|
+
uberParent: "EndpointBaseUpdateProperties",
|
|
893
|
+
polymorphicDiscriminator:
|
|
894
|
+
EndpointBaseUpdateProperties.type.polymorphicDiscriminator,
|
|
784
895
|
modelProperties: {
|
|
785
896
|
...EndpointBaseUpdateProperties.type.modelProperties
|
|
786
897
|
}
|
|
787
898
|
}
|
|
788
899
|
};
|
|
789
900
|
|
|
790
|
-
export const
|
|
901
|
+
export const AzureStorageSmbFileShareEndpointUpdateProperties: coreClient.CompositeMapper = {
|
|
902
|
+
serializedName: "AzureStorageSmbFileShare",
|
|
791
903
|
type: {
|
|
792
904
|
name: "Composite",
|
|
793
|
-
className: "
|
|
905
|
+
className: "AzureStorageSmbFileShareEndpointUpdateProperties",
|
|
906
|
+
uberParent: "EndpointBaseUpdateProperties",
|
|
907
|
+
polymorphicDiscriminator:
|
|
908
|
+
EndpointBaseUpdateProperties.type.polymorphicDiscriminator,
|
|
794
909
|
modelProperties: {
|
|
795
|
-
...
|
|
796
|
-
|
|
797
|
-
|
|
910
|
+
...EndpointBaseUpdateProperties.type.modelProperties
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
};
|
|
914
|
+
|
|
915
|
+
export const SmbMountEndpointUpdateProperties: coreClient.CompositeMapper = {
|
|
916
|
+
serializedName: "SmbMount",
|
|
917
|
+
type: {
|
|
918
|
+
name: "Composite",
|
|
919
|
+
className: "SmbMountEndpointUpdateProperties",
|
|
920
|
+
uberParent: "EndpointBaseUpdateProperties",
|
|
921
|
+
polymorphicDiscriminator:
|
|
922
|
+
EndpointBaseUpdateProperties.type.polymorphicDiscriminator,
|
|
923
|
+
modelProperties: {
|
|
924
|
+
...EndpointBaseUpdateProperties.type.modelProperties,
|
|
925
|
+
credentials: {
|
|
926
|
+
serializedName: "credentials",
|
|
798
927
|
type: {
|
|
799
928
|
name: "Composite",
|
|
800
|
-
className: "
|
|
929
|
+
className: "AzureKeyVaultSmbCredentials"
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
export const AzureKeyVaultSmbCredentials: coreClient.CompositeMapper = {
|
|
937
|
+
serializedName: "AzureKeyVaultSmb",
|
|
938
|
+
type: {
|
|
939
|
+
name: "Composite",
|
|
940
|
+
className: "AzureKeyVaultSmbCredentials",
|
|
941
|
+
uberParent: "Credentials",
|
|
942
|
+
polymorphicDiscriminator: Credentials.type.polymorphicDiscriminator,
|
|
943
|
+
modelProperties: {
|
|
944
|
+
...Credentials.type.modelProperties,
|
|
945
|
+
usernameUri: {
|
|
946
|
+
serializedName: "usernameUri",
|
|
947
|
+
type: {
|
|
948
|
+
name: "String"
|
|
801
949
|
}
|
|
802
950
|
},
|
|
951
|
+
passwordUri: {
|
|
952
|
+
serializedName: "passwordUri",
|
|
953
|
+
type: {
|
|
954
|
+
name: "String"
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
|
|
961
|
+
export const StorageMover: coreClient.CompositeMapper = {
|
|
962
|
+
type: {
|
|
963
|
+
name: "Composite",
|
|
964
|
+
className: "StorageMover",
|
|
965
|
+
modelProperties: {
|
|
966
|
+
...TrackedResource.type.modelProperties,
|
|
803
967
|
description: {
|
|
804
968
|
serializedName: "properties.description",
|
|
805
969
|
type: {
|
|
@@ -823,13 +987,6 @@ export const Agent: coreClient.CompositeMapper = {
|
|
|
823
987
|
className: "Agent",
|
|
824
988
|
modelProperties: {
|
|
825
989
|
...ProxyResource.type.modelProperties,
|
|
826
|
-
systemData: {
|
|
827
|
-
serializedName: "systemData",
|
|
828
|
-
type: {
|
|
829
|
-
name: "Composite",
|
|
830
|
-
className: "SystemData"
|
|
831
|
-
}
|
|
832
|
-
},
|
|
833
990
|
description: {
|
|
834
991
|
serializedName: "properties.description",
|
|
835
992
|
type: {
|
|
@@ -929,13 +1086,6 @@ export const Endpoint: coreClient.CompositeMapper = {
|
|
|
929
1086
|
name: "Composite",
|
|
930
1087
|
className: "EndpointBaseProperties"
|
|
931
1088
|
}
|
|
932
|
-
},
|
|
933
|
-
systemData: {
|
|
934
|
-
serializedName: "systemData",
|
|
935
|
-
type: {
|
|
936
|
-
name: "Composite",
|
|
937
|
-
className: "SystemData"
|
|
938
|
-
}
|
|
939
1089
|
}
|
|
940
1090
|
}
|
|
941
1091
|
}
|
|
@@ -947,13 +1097,6 @@ export const Project: coreClient.CompositeMapper = {
|
|
|
947
1097
|
className: "Project",
|
|
948
1098
|
modelProperties: {
|
|
949
1099
|
...ProxyResource.type.modelProperties,
|
|
950
|
-
systemData: {
|
|
951
|
-
serializedName: "systemData",
|
|
952
|
-
type: {
|
|
953
|
-
name: "Composite",
|
|
954
|
-
className: "SystemData"
|
|
955
|
-
}
|
|
956
|
-
},
|
|
957
1100
|
description: {
|
|
958
1101
|
serializedName: "properties.description",
|
|
959
1102
|
type: {
|
|
@@ -977,13 +1120,6 @@ export const JobDefinition: coreClient.CompositeMapper = {
|
|
|
977
1120
|
className: "JobDefinition",
|
|
978
1121
|
modelProperties: {
|
|
979
1122
|
...ProxyResource.type.modelProperties,
|
|
980
|
-
systemData: {
|
|
981
|
-
serializedName: "systemData",
|
|
982
|
-
type: {
|
|
983
|
-
name: "Composite",
|
|
984
|
-
className: "SystemData"
|
|
985
|
-
}
|
|
986
|
-
},
|
|
987
1123
|
description: {
|
|
988
1124
|
serializedName: "properties.description",
|
|
989
1125
|
type: {
|
|
@@ -1088,13 +1224,6 @@ export const JobRun: coreClient.CompositeMapper = {
|
|
|
1088
1224
|
className: "JobRun",
|
|
1089
1225
|
modelProperties: {
|
|
1090
1226
|
...ProxyResource.type.modelProperties,
|
|
1091
|
-
systemData: {
|
|
1092
|
-
serializedName: "systemData",
|
|
1093
|
-
type: {
|
|
1094
|
-
name: "Composite",
|
|
1095
|
-
className: "SystemData"
|
|
1096
|
-
}
|
|
1097
|
-
},
|
|
1098
1227
|
status: {
|
|
1099
1228
|
serializedName: "properties.status",
|
|
1100
1229
|
readOnly: true,
|
|
@@ -1300,6 +1429,15 @@ export const JobRun: coreClient.CompositeMapper = {
|
|
|
1300
1429
|
|
|
1301
1430
|
export let discriminators = {
|
|
1302
1431
|
EndpointBaseProperties: EndpointBaseProperties,
|
|
1432
|
+
EndpointBaseUpdateProperties: EndpointBaseUpdateProperties,
|
|
1433
|
+
Credentials: Credentials,
|
|
1303
1434
|
"EndpointBaseProperties.AzureStorageBlobContainer": AzureStorageBlobContainerEndpointProperties,
|
|
1304
|
-
"EndpointBaseProperties.NfsMount": NfsMountEndpointProperties
|
|
1435
|
+
"EndpointBaseProperties.NfsMount": NfsMountEndpointProperties,
|
|
1436
|
+
"EndpointBaseProperties.AzureStorageSmbFileShare": AzureStorageSmbFileShareEndpointProperties,
|
|
1437
|
+
"EndpointBaseProperties.SmbMount": SmbMountEndpointProperties,
|
|
1438
|
+
"EndpointBaseUpdateProperties.AzureStorageBlobContainer": AzureStorageBlobContainerEndpointUpdateProperties,
|
|
1439
|
+
"EndpointBaseUpdateProperties.NfsMount": NfsMountEndpointUpdateProperties,
|
|
1440
|
+
"EndpointBaseUpdateProperties.AzureStorageSmbFileShare": AzureStorageSmbFileShareEndpointUpdateProperties,
|
|
1441
|
+
"EndpointBaseUpdateProperties.SmbMount": SmbMountEndpointUpdateProperties,
|
|
1442
|
+
"Credentials.AzureKeyVaultSmb": AzureKeyVaultSmbCredentials
|
|
1305
1443
|
};
|
package/src/models/parameters.ts
CHANGED
|
@@ -51,7 +51,7 @@ export const $host: OperationURLParameter = {
|
|
|
51
51
|
export const apiVersion: OperationQueryParameter = {
|
|
52
52
|
parameterPath: "apiVersion",
|
|
53
53
|
mapper: {
|
|
54
|
-
defaultValue: "2023-
|
|
54
|
+
defaultValue: "2023-07-01-preview",
|
|
55
55
|
isConstant: true,
|
|
56
56
|
serializedName: "api-version",
|
|
57
57
|
type: {
|
|
@@ -66,7 +66,7 @@ export class StorageMoverClient extends coreClient.ServiceClient {
|
|
|
66
66
|
credential: credentials
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
const packageDetails = `azsdk-js-arm-storagemover/
|
|
69
|
+
const packageDetails = `azsdk-js-arm-storagemover/2.0.0-beta.1`;
|
|
70
70
|
const userAgentPrefix =
|
|
71
71
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
72
72
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -119,7 +119,7 @@ export class StorageMoverClient extends coreClient.ServiceClient {
|
|
|
119
119
|
|
|
120
120
|
// Assigning values to Constant parameters
|
|
121
121
|
this.$host = options.$host || "https://management.azure.com";
|
|
122
|
-
this.apiVersion = options.apiVersion || "2023-
|
|
122
|
+
this.apiVersion = options.apiVersion || "2023-07-01-preview";
|
|
123
123
|
this.operations = new OperationsImpl(this);
|
|
124
124
|
this.storageMovers = new StorageMoversImpl(this);
|
|
125
125
|
this.agents = new AgentsImpl(this);
|
|
@@ -15,11 +15,6 @@ export declare type ActionType = string;
|
|
|
15
15
|
|
|
16
16
|
/** The Agent resource. */
|
|
17
17
|
export declare interface Agent extends ProxyResource {
|
|
18
|
-
/**
|
|
19
|
-
* Resource system metadata.
|
|
20
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
21
|
-
*/
|
|
22
|
-
readonly systemData?: SystemData;
|
|
23
18
|
/** A description for the Agent. */
|
|
24
19
|
description?: string;
|
|
25
20
|
/**
|
|
@@ -204,6 +199,17 @@ export declare interface AgentUpdateParameters {
|
|
|
204
199
|
description?: string;
|
|
205
200
|
}
|
|
206
201
|
|
|
202
|
+
/** The Azure Key Vault secret URIs which store the credentials. */
|
|
203
|
+
export declare interface AzureKeyVaultSmbCredentials extends Credentials {
|
|
204
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
205
|
+
type: "AzureKeyVaultSmb";
|
|
206
|
+
/** The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value. */
|
|
207
|
+
usernameUri?: string;
|
|
208
|
+
/** The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. */
|
|
209
|
+
passwordUri?: string;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/** The properties of Azure Storage blob container endpoint. */
|
|
207
213
|
export declare interface AzureStorageBlobContainerEndpointProperties extends EndpointBaseProperties {
|
|
208
214
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
209
215
|
endpointType: "AzureStorageBlobContainer";
|
|
@@ -214,6 +220,24 @@ export declare interface AzureStorageBlobContainerEndpointProperties extends End
|
|
|
214
220
|
}
|
|
215
221
|
|
|
216
222
|
export declare interface AzureStorageBlobContainerEndpointUpdateProperties extends EndpointBaseUpdateProperties {
|
|
223
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
224
|
+
endpointType: "AzureStorageBlobContainer";
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/** The properties of Azure Storage SMB file share endpoint. */
|
|
228
|
+
export declare interface AzureStorageSmbFileShareEndpointProperties extends EndpointBaseProperties {
|
|
229
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
230
|
+
endpointType: "AzureStorageSmbFileShare";
|
|
231
|
+
/** The Azure Resource ID of the storage account. */
|
|
232
|
+
storageAccountResourceId: string;
|
|
233
|
+
/** The name of the Azure Storage file share. */
|
|
234
|
+
fileShareName: string;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/** The properties of Azure Storage SMB file share endpoint to update. */
|
|
238
|
+
export declare interface AzureStorageSmbFileShareEndpointUpdateProperties extends EndpointBaseUpdateProperties {
|
|
239
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
240
|
+
endpointType: "AzureStorageSmbFileShare";
|
|
217
241
|
}
|
|
218
242
|
|
|
219
243
|
/**
|
|
@@ -238,21 +262,33 @@ export declare type CopyMode = string;
|
|
|
238
262
|
*/
|
|
239
263
|
export declare type CreatedByType = string;
|
|
240
264
|
|
|
265
|
+
/** The Credentials. */
|
|
266
|
+
export declare interface Credentials {
|
|
267
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
268
|
+
type: "AzureKeyVaultSmb";
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export declare type CredentialsUnion = Credentials | AzureKeyVaultSmbCredentials;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Defines values for CredentialType. \
|
|
275
|
+
* {@link KnownCredentialType} can be used interchangeably with CredentialType,
|
|
276
|
+
* this enum contains the known values that the service supports.
|
|
277
|
+
* ### Known values supported by the service
|
|
278
|
+
* **AzureKeyVaultSmb**
|
|
279
|
+
*/
|
|
280
|
+
export declare type CredentialType = string;
|
|
281
|
+
|
|
241
282
|
/** The Endpoint resource, which contains information about file sources and targets. */
|
|
242
283
|
export declare interface Endpoint extends ProxyResource {
|
|
243
284
|
/** The resource specific properties for the Storage Mover resource. */
|
|
244
285
|
properties: EndpointBasePropertiesUnion;
|
|
245
|
-
/**
|
|
246
|
-
* Resource system metadata.
|
|
247
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
248
|
-
*/
|
|
249
|
-
readonly systemData?: SystemData;
|
|
250
286
|
}
|
|
251
287
|
|
|
252
288
|
/** The resource specific properties for the Storage Mover resource. */
|
|
253
289
|
export declare interface EndpointBaseProperties {
|
|
254
290
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
255
|
-
endpointType: "AzureStorageBlobContainer" | "NfsMount";
|
|
291
|
+
endpointType: "AzureStorageBlobContainer" | "NfsMount" | "AzureStorageSmbFileShare" | "SmbMount";
|
|
256
292
|
/** A description for the Endpoint. */
|
|
257
293
|
description?: string;
|
|
258
294
|
/**
|
|
@@ -262,20 +298,24 @@ export declare interface EndpointBaseProperties {
|
|
|
262
298
|
readonly provisioningState?: ProvisioningState;
|
|
263
299
|
}
|
|
264
300
|
|
|
265
|
-
export declare type EndpointBasePropertiesUnion = EndpointBaseProperties | AzureStorageBlobContainerEndpointProperties | NfsMountEndpointProperties;
|
|
301
|
+
export declare type EndpointBasePropertiesUnion = EndpointBaseProperties | AzureStorageBlobContainerEndpointProperties | NfsMountEndpointProperties | AzureStorageSmbFileShareEndpointProperties | SmbMountEndpointProperties;
|
|
266
302
|
|
|
267
303
|
/** The Endpoint resource. */
|
|
268
304
|
export declare interface EndpointBaseUpdateParameters {
|
|
269
305
|
/** The Endpoint resource, which contains information about file sources and targets. */
|
|
270
|
-
properties?:
|
|
306
|
+
properties?: EndpointBaseUpdatePropertiesUnion;
|
|
271
307
|
}
|
|
272
308
|
|
|
273
309
|
/** The Endpoint resource, which contains information about file sources and targets. */
|
|
274
310
|
export declare interface EndpointBaseUpdateProperties {
|
|
311
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
312
|
+
endpointType: "AzureStorageBlobContainer" | "NfsMount" | "AzureStorageSmbFileShare" | "SmbMount";
|
|
275
313
|
/** A description for the Endpoint. */
|
|
276
314
|
description?: string;
|
|
277
315
|
}
|
|
278
316
|
|
|
317
|
+
export declare type EndpointBaseUpdatePropertiesUnion = EndpointBaseUpdateProperties | AzureStorageBlobContainerEndpointUpdateProperties | NfsMountEndpointUpdateProperties | AzureStorageSmbFileShareEndpointUpdateProperties | SmbMountEndpointUpdateProperties;
|
|
318
|
+
|
|
279
319
|
/** List of Endpoints. */
|
|
280
320
|
export declare interface EndpointList {
|
|
281
321
|
/** NOTE: This property will not be serialized. It can only be populated by the server. */
|
|
@@ -390,7 +430,9 @@ export declare type EndpointsUpdateResponse = Endpoint;
|
|
|
390
430
|
* this enum contains the known values that the service supports.
|
|
391
431
|
* ### Known values supported by the service
|
|
392
432
|
* **AzureStorageBlobContainer** \
|
|
393
|
-
* **NfsMount**
|
|
433
|
+
* **NfsMount** \
|
|
434
|
+
* **AzureStorageSmbFileShare** \
|
|
435
|
+
* **SmbMount**
|
|
394
436
|
*/
|
|
395
437
|
export declare type EndpointType = string;
|
|
396
438
|
|
|
@@ -454,11 +496,6 @@ export declare function getContinuationToken(page: unknown): string | undefined;
|
|
|
454
496
|
|
|
455
497
|
/** The Job Definition resource. */
|
|
456
498
|
export declare interface JobDefinition extends ProxyResource {
|
|
457
|
-
/**
|
|
458
|
-
* Resource system metadata.
|
|
459
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
460
|
-
*/
|
|
461
|
-
readonly systemData?: SystemData;
|
|
462
499
|
/** A description for the Job Definition. */
|
|
463
500
|
description?: string;
|
|
464
501
|
/** Strategy to use for copy. */
|
|
@@ -669,11 +706,6 @@ export declare interface JobDefinitionUpdateParameters {
|
|
|
669
706
|
|
|
670
707
|
/** The Job Run resource. */
|
|
671
708
|
export declare interface JobRun extends ProxyResource {
|
|
672
|
-
/**
|
|
673
|
-
* Resource system metadata.
|
|
674
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
675
|
-
*/
|
|
676
|
-
readonly systemData?: SystemData;
|
|
677
709
|
/**
|
|
678
710
|
* The state of the job execution.
|
|
679
711
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -959,12 +991,22 @@ export declare enum KnownCreatedByType {
|
|
|
959
991
|
Key = "Key"
|
|
960
992
|
}
|
|
961
993
|
|
|
994
|
+
/** Known values of {@link CredentialType} that the service accepts. */
|
|
995
|
+
export declare enum KnownCredentialType {
|
|
996
|
+
/** AzureKeyVaultSmb */
|
|
997
|
+
AzureKeyVaultSmb = "AzureKeyVaultSmb"
|
|
998
|
+
}
|
|
999
|
+
|
|
962
1000
|
/** Known values of {@link EndpointType} that the service accepts. */
|
|
963
1001
|
export declare enum KnownEndpointType {
|
|
964
1002
|
/** AzureStorageBlobContainer */
|
|
965
1003
|
AzureStorageBlobContainer = "AzureStorageBlobContainer",
|
|
966
1004
|
/** NfsMount */
|
|
967
|
-
NfsMount = "NfsMount"
|
|
1005
|
+
NfsMount = "NfsMount",
|
|
1006
|
+
/** AzureStorageSmbFileShare */
|
|
1007
|
+
AzureStorageSmbFileShare = "AzureStorageSmbFileShare",
|
|
1008
|
+
/** SmbMount */
|
|
1009
|
+
SmbMount = "SmbMount"
|
|
968
1010
|
}
|
|
969
1011
|
|
|
970
1012
|
/** Known values of {@link JobRunScanStatus} that the service accepts. */
|
|
@@ -1023,6 +1065,7 @@ export declare enum KnownProvisioningState {
|
|
|
1023
1065
|
Succeeded = "Succeeded"
|
|
1024
1066
|
}
|
|
1025
1067
|
|
|
1068
|
+
/** The properties of NFS share endpoint. */
|
|
1026
1069
|
export declare interface NfsMountEndpointProperties extends EndpointBaseProperties {
|
|
1027
1070
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
1028
1071
|
endpointType: "NfsMount";
|
|
@@ -1035,6 +1078,8 @@ export declare interface NfsMountEndpointProperties extends EndpointBaseProperti
|
|
|
1035
1078
|
}
|
|
1036
1079
|
|
|
1037
1080
|
export declare interface NfsMountEndpointUpdateProperties extends EndpointBaseUpdateProperties {
|
|
1081
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
1082
|
+
endpointType: "NfsMount";
|
|
1038
1083
|
}
|
|
1039
1084
|
|
|
1040
1085
|
/**
|
|
@@ -1148,11 +1193,6 @@ export declare type Origin = string;
|
|
|
1148
1193
|
|
|
1149
1194
|
/** The Project resource. */
|
|
1150
1195
|
export declare interface Project extends ProxyResource {
|
|
1151
|
-
/**
|
|
1152
|
-
* Resource system metadata.
|
|
1153
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1154
|
-
*/
|
|
1155
|
-
readonly systemData?: SystemData;
|
|
1156
1196
|
/** A description for the Project. */
|
|
1157
1197
|
description?: string;
|
|
1158
1198
|
/**
|
|
@@ -1306,15 +1346,35 @@ export declare interface Resource {
|
|
|
1306
1346
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1307
1347
|
*/
|
|
1308
1348
|
readonly type?: string;
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
/** The Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints. */
|
|
1312
|
-
export declare interface StorageMover extends TrackedResource {
|
|
1313
1349
|
/**
|
|
1314
|
-
* Resource
|
|
1350
|
+
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
|
|
1315
1351
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1316
1352
|
*/
|
|
1317
1353
|
readonly systemData?: SystemData;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
/** The properties of SMB share endpoint. */
|
|
1357
|
+
export declare interface SmbMountEndpointProperties extends EndpointBaseProperties {
|
|
1358
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
1359
|
+
endpointType: "SmbMount";
|
|
1360
|
+
/** The host name or IP address of the server exporting the file system. */
|
|
1361
|
+
host: string;
|
|
1362
|
+
/** The name of the SMB share being exported from the server. */
|
|
1363
|
+
shareName: string;
|
|
1364
|
+
/** The Azure Key Vault secret URIs which store the required credentials to access the SMB share. */
|
|
1365
|
+
credentials?: AzureKeyVaultSmbCredentials;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
/** The properties of SMB share endpoint to update. */
|
|
1369
|
+
export declare interface SmbMountEndpointUpdateProperties extends EndpointBaseUpdateProperties {
|
|
1370
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
1371
|
+
endpointType: "SmbMount";
|
|
1372
|
+
/** The Azure Key Vault secret URIs which store the required credentials to access the SMB share. */
|
|
1373
|
+
credentials?: AzureKeyVaultSmbCredentials;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
/** The Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints. */
|
|
1377
|
+
export declare interface StorageMover extends TrackedResource {
|
|
1318
1378
|
/** A description for the Storage Mover. */
|
|
1319
1379
|
description?: string;
|
|
1320
1380
|
/**
|