@azure/arm-storageimportexport 1.3.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -80
- package/dist/index.js +1999 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +504 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +40 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +25 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +570 -422
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +17 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +79 -49
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/bitLockerKeys.d.ts +32 -0
- package/dist-esm/src/operations/bitLockerKeys.d.ts.map +1 -0
- package/dist-esm/src/operations/bitLockerKeys.js +101 -0
- package/dist-esm/src/operations/bitLockerKeys.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/jobs.d.ts +92 -0
- package/dist-esm/src/operations/jobs.d.ts.map +1 -0
- package/dist-esm/src/operations/jobs.js +376 -0
- package/dist-esm/src/operations/jobs.js.map +1 -0
- package/dist-esm/src/operations/locations.d.ts +35 -0
- package/dist-esm/src/operations/locations.d.ts.map +1 -0
- package/dist-esm/src/operations/locations.js +117 -0
- package/dist-esm/src/operations/locations.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +90 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/bitLockerKeys.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/bitLockerKeys.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/bitLockerKeys.js +9 -0
- package/dist-esm/src/operationsInterfaces/bitLockerKeys.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/jobs.d.ts +54 -0
- package/dist-esm/src/operationsInterfaces/jobs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/jobs.js +9 -0
- package/dist-esm/src/operationsInterfaces/jobs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.js +9 -0
- package/dist-esm/src/operationsInterfaces/locations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/storageImportExport.d.ts +22 -0
- package/dist-esm/src/storageImportExport.d.ts.map +1 -0
- package/dist-esm/src/storageImportExport.js +54 -0
- package/dist-esm/src/storageImportExport.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +85 -26
- package/review/arm-storageimportexport.api.md +438 -0
- package/rollup.config.js +184 -27
- package/src/index.ts +12 -0
- package/src/models/index.ts +432 -839
- package/src/models/mappers.ts +575 -424
- package/src/models/parameters.ts +101 -50
- package/src/operations/bitLockerKeys.ts +90 -55
- package/src/operations/index.ts +3 -5
- package/src/operations/jobs.ts +302 -335
- package/src/operations/locations.ts +85 -78
- package/src/operations/operations.ts +66 -42
- package/src/operationsInterfaces/bitLockerKeys.ts +27 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/jobs.ts +99 -0
- package/src/operationsInterfaces/locations.ts +38 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/storageImportExport.ts +92 -0
- package/tsconfig.json +20 -7
- package/types/arm-storageimportexport.d.ts +671 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-storageimportexport.js +0 -1764
- package/dist/arm-storageimportexport.js.map +0 -1
- package/dist/arm-storageimportexport.min.js +0 -1
- package/dist/arm-storageimportexport.min.js.map +0 -1
- package/esm/models/bitLockerKeysMappers.d.ts +0 -2
- package/esm/models/bitLockerKeysMappers.d.ts.map +0 -1
- package/esm/models/bitLockerKeysMappers.js +0 -11
- package/esm/models/bitLockerKeysMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -928
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/jobsMappers.d.ts +0 -2
- package/esm/models/jobsMappers.d.ts.map +0 -1
- package/esm/models/jobsMappers.js +0 -11
- package/esm/models/jobsMappers.js.map +0 -1
- package/esm/models/locationsMappers.d.ts +0 -2
- package/esm/models/locationsMappers.d.ts.map +0 -1
- package/esm/models/locationsMappers.js +0 -11
- package/esm/models/locationsMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -23
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -12
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/bitLockerKeys.d.ts +0 -37
- package/esm/operations/bitLockerKeys.d.ts.map +0 -1
- package/esm/operations/bitLockerKeys.js +0 -58
- package/esm/operations/bitLockerKeys.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/jobs.d.ts +0 -189
- package/esm/operations/jobs.d.ts.map +0 -1
- package/esm/operations/jobs.js +0 -276
- package/esm/operations/jobs.js.map +0 -1
- package/esm/operations/locations.d.ts +0 -48
- package/esm/operations/locations.d.ts.map +0 -1
- package/esm/operations/locations.js +0 -79
- package/esm/operations/locations.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/esm/storageImportExportManagementClient.d.ts +0 -27
- package/esm/storageImportExportManagementClient.d.ts.map +0 -1
- package/esm/storageImportExportManagementClient.js +0 -41
- package/esm/storageImportExportManagementClient.js.map +0 -1
- package/esm/storageImportExportManagementClientContext.d.ts +0 -22
- package/esm/storageImportExportManagementClientContext.d.ts.map +0 -1
- package/esm/storageImportExportManagementClientContext.js +0 -60
- package/esm/storageImportExportManagementClientContext.js.map +0 -1
- package/src/models/bitLockerKeysMappers.ts +0 -17
- package/src/models/jobsMappers.ts +0 -27
- package/src/models/locationsMappers.ts +0 -17
- package/src/models/operationsMappers.ts +0 -17
- package/src/storageImportExportManagementClient.ts +0 -54
- package/src/storageImportExportManagementClientContext.ts +0 -67
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
import { __extends } from "tslib";
|
|
11
|
-
import * as msRestAzure from "@azure/ms-rest-azure-js";
|
|
12
|
-
var packageName = "@azure/arm-storageimportexport";
|
|
13
|
-
var packageVersion = "1.3.1";
|
|
14
|
-
var StorageImportExportManagementClientContext = /** @class */ (function (_super) {
|
|
15
|
-
__extends(StorageImportExportManagementClientContext, _super);
|
|
16
|
-
/**
|
|
17
|
-
* Initializes a new instance of the StorageImportExportManagementClient class.
|
|
18
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
19
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
20
|
-
* more information about these credentials, see
|
|
21
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
22
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
23
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
24
|
-
* @param subscriptionId The subscription ID for the Azure user.
|
|
25
|
-
* @param [options] The parameter options
|
|
26
|
-
*/
|
|
27
|
-
function StorageImportExportManagementClientContext(credentials, subscriptionId, options) {
|
|
28
|
-
var _this = this;
|
|
29
|
-
if (credentials == undefined) {
|
|
30
|
-
throw new Error('\'credentials\' cannot be null.');
|
|
31
|
-
}
|
|
32
|
-
if (subscriptionId == undefined) {
|
|
33
|
-
throw new Error('\'subscriptionId\' cannot be null.');
|
|
34
|
-
}
|
|
35
|
-
if (!options) {
|
|
36
|
-
options = {};
|
|
37
|
-
}
|
|
38
|
-
if (!options.userAgent) {
|
|
39
|
-
var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
|
40
|
-
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
|
41
|
-
}
|
|
42
|
-
_this = _super.call(this, credentials, options) || this;
|
|
43
|
-
_this.apiVersion = '2016-11-01';
|
|
44
|
-
_this.longRunningOperationRetryTimeout = 30;
|
|
45
|
-
_this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
|
|
46
|
-
_this.requestContentType = "application/json; charset=utf-8";
|
|
47
|
-
_this.credentials = credentials;
|
|
48
|
-
_this.subscriptionId = subscriptionId;
|
|
49
|
-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
|
50
|
-
_this.acceptLanguage = options.acceptLanguage;
|
|
51
|
-
}
|
|
52
|
-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
|
53
|
-
_this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
|
54
|
-
}
|
|
55
|
-
return _this;
|
|
56
|
-
}
|
|
57
|
-
return StorageImportExportManagementClientContext;
|
|
58
|
-
}(msRestAzure.AzureServiceClient));
|
|
59
|
-
export { StorageImportExportManagementClientContext };
|
|
60
|
-
//# sourceMappingURL=storageImportExportManagementClientContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storageImportExportManagementClientContext.js","sourceRoot":"","sources":["../src/storageImportExportManagementClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;;AAKH,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AAEvD,IAAM,WAAW,GAAG,gCAAgC,CAAC;AACrD,IAAM,cAAc,GAAG,OAAO,CAAC;AAE/B;IAAgE,8DAA8B;IAK5F;;;;;;;;;;OAUG;IACH,oDAAY,WAA8D,EAAE,cAAsB,EAAE,OAA2D;QAA/J,iBA+BC;QA9BC,IAAI,WAAW,IAAI,SAAS,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QACD,IAAI,cAAc,IAAI,SAAS,EAAE;YAC/B,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;SACvD;QAED,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;YACtB,IAAM,gBAAgB,GAAG,WAAW,CAAC,wBAAwB,EAAE,CAAC;YAChE,OAAO,CAAC,SAAS,GAAM,WAAW,SAAI,cAAc,SAAI,gBAAkB,CAAC;SAC5E;QAED,QAAA,kBAAM,WAAW,EAAE,OAAO,CAAC,SAAC;QAE5B,KAAI,CAAC,UAAU,GAAG,YAAY,CAAC;QAC/B,KAAI,CAAC,gCAAgC,GAAG,EAAE,CAAC;QAC3C,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,KAAI,CAAC,OAAO,IAAI,8BAA8B,CAAC;QACjF,KAAI,CAAC,kBAAkB,GAAG,iCAAiC,CAAC;QAC5D,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,KAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,IAAI,OAAO,CAAC,cAAc,KAAK,IAAI,IAAI,OAAO,CAAC,cAAc,KAAK,SAAS,EAAE;YAC3E,KAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;SAC9C;QACD,IAAI,OAAO,CAAC,gCAAgC,KAAK,IAAI,IAAI,OAAO,CAAC,gCAAgC,KAAK,SAAS,EAAE;YAC/G,KAAI,CAAC,gCAAgC,GAAG,OAAO,CAAC,gCAAgC,CAAC;SAClF;;IACH,CAAC;IACH,iDAAC;AAAD,CAAC,AAhDD,CAAgE,WAAW,CAAC,kBAAkB,GAgD7F"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
export {
|
|
12
|
-
GetBitLockerKeysResponse,
|
|
13
|
-
DriveBitLockerKey,
|
|
14
|
-
ErrorResponse,
|
|
15
|
-
ErrorResponseErrorDetailsItem
|
|
16
|
-
} from "../models/mappers";
|
|
17
|
-
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
export {
|
|
12
|
-
ListJobsResponse,
|
|
13
|
-
JobResponse,
|
|
14
|
-
BaseResource,
|
|
15
|
-
JobDetails,
|
|
16
|
-
ReturnAddress,
|
|
17
|
-
ReturnShipping,
|
|
18
|
-
ShippingInformation,
|
|
19
|
-
PackageInfomation,
|
|
20
|
-
DriveStatus,
|
|
21
|
-
ExportModel,
|
|
22
|
-
ErrorResponse,
|
|
23
|
-
ErrorResponseErrorDetailsItem,
|
|
24
|
-
UpdateJobParameters,
|
|
25
|
-
PutJobParameters
|
|
26
|
-
} from "../models/mappers";
|
|
27
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
export {
|
|
12
|
-
LocationsResponse,
|
|
13
|
-
Location,
|
|
14
|
-
ErrorResponse,
|
|
15
|
-
ErrorResponseErrorDetailsItem
|
|
16
|
-
} from "../models/mappers";
|
|
17
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
export {
|
|
12
|
-
ListOperationsResponse,
|
|
13
|
-
Operation,
|
|
14
|
-
ErrorResponse,
|
|
15
|
-
ErrorResponseErrorDetailsItem
|
|
16
|
-
} from "../models/mappers";
|
|
17
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
12
|
-
import { TokenCredential } from "@azure/core-auth";
|
|
13
|
-
import * as Models from "./models";
|
|
14
|
-
import * as Mappers from "./models/mappers";
|
|
15
|
-
import * as operations from "./operations";
|
|
16
|
-
import { StorageImportExportManagementClientContext } from "./storageImportExportManagementClientContext";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class StorageImportExportManagementClient extends StorageImportExportManagementClientContext {
|
|
20
|
-
// Operation groups
|
|
21
|
-
locations: operations.Locations;
|
|
22
|
-
jobs: operations.Jobs;
|
|
23
|
-
bitLockerKeys: operations.BitLockerKeys;
|
|
24
|
-
operations: operations.Operations;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Initializes a new instance of the StorageImportExportManagementClient class.
|
|
28
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
29
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
30
|
-
* more information about these credentials, see
|
|
31
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
32
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
33
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
34
|
-
* @param subscriptionId The subscription ID for the Azure user.
|
|
35
|
-
* @param [options] The parameter options
|
|
36
|
-
*/
|
|
37
|
-
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageImportExportManagementClientOptions) {
|
|
38
|
-
super(credentials, subscriptionId, options);
|
|
39
|
-
this.locations = new operations.Locations(this);
|
|
40
|
-
this.jobs = new operations.Jobs(this);
|
|
41
|
-
this.bitLockerKeys = new operations.BitLockerKeys(this);
|
|
42
|
-
this.operations = new operations.Operations(this);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// Operation Specifications
|
|
47
|
-
|
|
48
|
-
export {
|
|
49
|
-
StorageImportExportManagementClient,
|
|
50
|
-
StorageImportExportManagementClientContext,
|
|
51
|
-
Models as StorageImportExportManagementModels,
|
|
52
|
-
Mappers as StorageImportExportManagementMappers
|
|
53
|
-
};
|
|
54
|
-
export * from "./operations";
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
|
4
|
-
* license information.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import * as Models from "./models";
|
|
12
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
13
|
-
import { TokenCredential } from "@azure/core-auth";
|
|
14
|
-
import * as msRestAzure from "@azure/ms-rest-azure-js";
|
|
15
|
-
|
|
16
|
-
const packageName = "@azure/arm-storageimportexport";
|
|
17
|
-
const packageVersion = "1.3.1";
|
|
18
|
-
|
|
19
|
-
export class StorageImportExportManagementClientContext extends msRestAzure.AzureServiceClient {
|
|
20
|
-
credentials: msRest.ServiceClientCredentials | TokenCredential;
|
|
21
|
-
apiVersion?: string;
|
|
22
|
-
subscriptionId: string;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Initializes a new instance of the StorageImportExportManagementClient class.
|
|
26
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
|
27
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
28
|
-
* more information about these credentials, see
|
|
29
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
30
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
31
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
32
|
-
* @param subscriptionId The subscription ID for the Azure user.
|
|
33
|
-
* @param [options] The parameter options
|
|
34
|
-
*/
|
|
35
|
-
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageImportExportManagementClientOptions) {
|
|
36
|
-
if (credentials == undefined) {
|
|
37
|
-
throw new Error('\'credentials\' cannot be null.');
|
|
38
|
-
}
|
|
39
|
-
if (subscriptionId == undefined) {
|
|
40
|
-
throw new Error('\'subscriptionId\' cannot be null.');
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
if (!options) {
|
|
44
|
-
options = {};
|
|
45
|
-
}
|
|
46
|
-
if (!options.userAgent) {
|
|
47
|
-
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
|
48
|
-
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
super(credentials, options);
|
|
52
|
-
|
|
53
|
-
this.apiVersion = '2016-11-01';
|
|
54
|
-
this.longRunningOperationRetryTimeout = 30;
|
|
55
|
-
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
|
|
56
|
-
this.requestContentType = "application/json; charset=utf-8";
|
|
57
|
-
this.credentials = credentials;
|
|
58
|
-
this.subscriptionId = subscriptionId;
|
|
59
|
-
|
|
60
|
-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
|
61
|
-
this.acceptLanguage = options.acceptLanguage;
|
|
62
|
-
}
|
|
63
|
-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
|
64
|
-
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|