@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
package/src/models/parameters.ts
CHANGED
|
@@ -1,120 +1,171 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
9
|
+
import {
|
|
10
|
+
OperationParameter,
|
|
11
|
+
OperationURLParameter,
|
|
12
|
+
OperationQueryParameter
|
|
13
|
+
} from "@azure/core-client";
|
|
14
|
+
import {
|
|
15
|
+
UpdateJobParameters as UpdateJobParametersMapper,
|
|
16
|
+
PutJobParameters as PutJobParametersMapper
|
|
17
|
+
} from "../models/mappers";
|
|
12
18
|
|
|
13
|
-
export const
|
|
14
|
-
parameterPath: "
|
|
19
|
+
export const accept: OperationParameter = {
|
|
20
|
+
parameterPath: "accept",
|
|
15
21
|
mapper: {
|
|
16
|
-
|
|
22
|
+
defaultValue: "application/json",
|
|
23
|
+
isConstant: true,
|
|
24
|
+
serializedName: "Accept",
|
|
17
25
|
type: {
|
|
18
26
|
name: "String"
|
|
19
27
|
}
|
|
20
28
|
}
|
|
21
29
|
};
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
|
|
31
|
+
export const $host: OperationURLParameter = {
|
|
32
|
+
parameterPath: "$host",
|
|
24
33
|
mapper: {
|
|
34
|
+
serializedName: "$host",
|
|
25
35
|
required: true,
|
|
36
|
+
type: {
|
|
37
|
+
name: "String"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
skipEncoding: true
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export const apiVersion: OperationQueryParameter = {
|
|
44
|
+
parameterPath: "apiVersion",
|
|
45
|
+
mapper: {
|
|
46
|
+
defaultValue: "2021-01-01",
|
|
26
47
|
isConstant: true,
|
|
27
48
|
serializedName: "api-version",
|
|
28
|
-
defaultValue: '2016-11-01',
|
|
29
49
|
type: {
|
|
30
50
|
name: "String"
|
|
31
51
|
}
|
|
32
52
|
}
|
|
33
53
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"clientTenantId"
|
|
38
|
-
],
|
|
54
|
+
|
|
55
|
+
export const acceptLanguage: OperationParameter = {
|
|
56
|
+
parameterPath: "acceptLanguage",
|
|
39
57
|
mapper: {
|
|
40
|
-
serializedName: "
|
|
58
|
+
serializedName: "Accept-Language",
|
|
41
59
|
type: {
|
|
42
60
|
name: "String"
|
|
43
61
|
}
|
|
44
62
|
}
|
|
45
63
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"filter"
|
|
50
|
-
],
|
|
64
|
+
|
|
65
|
+
export const locationName: OperationURLParameter = {
|
|
66
|
+
parameterPath: "locationName",
|
|
51
67
|
mapper: {
|
|
52
|
-
serializedName: "
|
|
68
|
+
serializedName: "locationName",
|
|
69
|
+
required: true,
|
|
53
70
|
type: {
|
|
54
71
|
name: "String"
|
|
55
72
|
}
|
|
56
73
|
}
|
|
57
74
|
};
|
|
58
|
-
|
|
59
|
-
|
|
75
|
+
|
|
76
|
+
export const top: OperationQueryParameter = {
|
|
77
|
+
parameterPath: ["options", "top"],
|
|
60
78
|
mapper: {
|
|
61
|
-
|
|
62
|
-
serializedName: "jobName",
|
|
79
|
+
serializedName: "$top",
|
|
63
80
|
type: {
|
|
64
|
-
name: "
|
|
81
|
+
name: "Number"
|
|
65
82
|
}
|
|
66
83
|
}
|
|
67
84
|
};
|
|
68
|
-
|
|
69
|
-
|
|
85
|
+
|
|
86
|
+
export const filter: OperationQueryParameter = {
|
|
87
|
+
parameterPath: ["options", "filter"],
|
|
70
88
|
mapper: {
|
|
71
|
-
|
|
72
|
-
serializedName: "locationName",
|
|
89
|
+
serializedName: "$filter",
|
|
73
90
|
type: {
|
|
74
91
|
name: "String"
|
|
75
92
|
}
|
|
76
93
|
}
|
|
77
94
|
};
|
|
78
|
-
|
|
79
|
-
|
|
95
|
+
|
|
96
|
+
export const subscriptionId: OperationURLParameter = {
|
|
97
|
+
parameterPath: "subscriptionId",
|
|
80
98
|
mapper: {
|
|
99
|
+
serializedName: "subscriptionId",
|
|
81
100
|
required: true,
|
|
82
|
-
serializedName: "nextLink",
|
|
83
101
|
type: {
|
|
84
102
|
name: "String"
|
|
85
103
|
}
|
|
86
|
-
}
|
|
87
|
-
skipEncoding: true
|
|
104
|
+
}
|
|
88
105
|
};
|
|
89
|
-
|
|
106
|
+
|
|
107
|
+
export const resourceGroupName: OperationURLParameter = {
|
|
90
108
|
parameterPath: "resourceGroupName",
|
|
91
109
|
mapper: {
|
|
92
|
-
required: true,
|
|
93
110
|
serializedName: "resourceGroupName",
|
|
111
|
+
required: true,
|
|
94
112
|
type: {
|
|
95
113
|
name: "String"
|
|
96
114
|
}
|
|
97
115
|
}
|
|
98
116
|
};
|
|
99
|
-
|
|
100
|
-
|
|
117
|
+
|
|
118
|
+
export const jobName: OperationURLParameter = {
|
|
119
|
+
parameterPath: "jobName",
|
|
101
120
|
mapper: {
|
|
121
|
+
serializedName: "jobName",
|
|
102
122
|
required: true,
|
|
103
|
-
serializedName: "subscriptionId",
|
|
104
123
|
type: {
|
|
105
124
|
name: "String"
|
|
106
125
|
}
|
|
107
126
|
}
|
|
108
127
|
};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
"top"
|
|
113
|
-
],
|
|
128
|
+
|
|
129
|
+
export const contentType: OperationParameter = {
|
|
130
|
+
parameterPath: ["options", "contentType"],
|
|
114
131
|
mapper: {
|
|
115
|
-
|
|
132
|
+
defaultValue: "application/json",
|
|
133
|
+
isConstant: true,
|
|
134
|
+
serializedName: "Content-Type",
|
|
116
135
|
type: {
|
|
117
|
-
name: "
|
|
136
|
+
name: "String"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export const body: OperationParameter = {
|
|
142
|
+
parameterPath: "body",
|
|
143
|
+
mapper: UpdateJobParametersMapper
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
export const body1: OperationParameter = {
|
|
147
|
+
parameterPath: "body",
|
|
148
|
+
mapper: PutJobParametersMapper
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export const clientTenantId: OperationParameter = {
|
|
152
|
+
parameterPath: ["options", "clientTenantId"],
|
|
153
|
+
mapper: {
|
|
154
|
+
serializedName: "x-ms-client-tenant-id",
|
|
155
|
+
type: {
|
|
156
|
+
name: "String"
|
|
118
157
|
}
|
|
119
158
|
}
|
|
120
159
|
};
|
|
160
|
+
|
|
161
|
+
export const nextLink: OperationURLParameter = {
|
|
162
|
+
parameterPath: "nextLink",
|
|
163
|
+
mapper: {
|
|
164
|
+
serializedName: "nextLink",
|
|
165
|
+
required: true,
|
|
166
|
+
type: {
|
|
167
|
+
name: "String"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
skipEncoding: true
|
|
171
|
+
};
|
|
@@ -1,83 +1,110 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { BitLockerKeys } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { StorageImportExport } from "../storageImportExport";
|
|
15
|
+
import {
|
|
16
|
+
DriveBitLockerKey,
|
|
17
|
+
BitLockerKeysListOptionalParams,
|
|
18
|
+
BitLockerKeysListResponse
|
|
19
|
+
} from "../models";
|
|
16
20
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
/// <reference lib="esnext.asynciterable" />
|
|
22
|
+
/** Class containing BitLockerKeys operations. */
|
|
23
|
+
export class BitLockerKeysImpl implements BitLockerKeys {
|
|
24
|
+
private readonly client: StorageImportExport;
|
|
20
25
|
|
|
21
26
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
27
|
+
* Initialize a new instance of the class BitLockerKeys class.
|
|
28
|
+
* @param client Reference to the service client
|
|
24
29
|
*/
|
|
25
|
-
constructor(client:
|
|
30
|
+
constructor(client: StorageImportExport) {
|
|
26
31
|
this.client = client;
|
|
27
32
|
}
|
|
28
33
|
|
|
29
34
|
/**
|
|
30
35
|
* Returns the BitLocker Keys for all drives in the specified job.
|
|
31
36
|
* @param jobName The name of the import/export job.
|
|
32
|
-
* @param resourceGroupName The resource group name uniquely identifies the resource group within
|
|
33
|
-
*
|
|
34
|
-
* @param
|
|
35
|
-
* @returns Promise<Models.BitLockerKeysListResponse>
|
|
37
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
38
|
+
* user subscription.
|
|
39
|
+
* @param options The options parameters.
|
|
36
40
|
*/
|
|
37
|
-
list(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
public list(
|
|
42
|
+
jobName: string,
|
|
43
|
+
resourceGroupName: string,
|
|
44
|
+
options?: BitLockerKeysListOptionalParams
|
|
45
|
+
): PagedAsyncIterableIterator<DriveBitLockerKey> {
|
|
46
|
+
const iter = this.listPagingAll(jobName, resourceGroupName, options);
|
|
47
|
+
return {
|
|
48
|
+
next() {
|
|
49
|
+
return iter.next();
|
|
50
|
+
},
|
|
51
|
+
[Symbol.asyncIterator]() {
|
|
52
|
+
return this;
|
|
53
|
+
},
|
|
54
|
+
byPage: () => {
|
|
55
|
+
return this.listPagingPage(jobName, resourceGroupName, options);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
private async *listPagingPage(
|
|
61
|
+
jobName: string,
|
|
62
|
+
resourceGroupName: string,
|
|
63
|
+
options?: BitLockerKeysListOptionalParams
|
|
64
|
+
): AsyncIterableIterator<DriveBitLockerKey[]> {
|
|
65
|
+
let result = await this._list(jobName, resourceGroupName, options);
|
|
66
|
+
yield result.value || [];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
private async *listPagingAll(
|
|
70
|
+
jobName: string,
|
|
71
|
+
resourceGroupName: string,
|
|
72
|
+
options?: BitLockerKeysListOptionalParams
|
|
73
|
+
): AsyncIterableIterator<DriveBitLockerKey> {
|
|
74
|
+
for await (const page of this.listPagingPage(
|
|
75
|
+
jobName,
|
|
76
|
+
resourceGroupName,
|
|
77
|
+
options
|
|
78
|
+
)) {
|
|
79
|
+
yield* page;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
45
83
|
/**
|
|
84
|
+
* Returns the BitLocker Keys for all drives in the specified job.
|
|
46
85
|
* @param jobName The name of the import/export job.
|
|
47
|
-
* @param resourceGroupName The resource group name uniquely identifies the resource group within
|
|
48
|
-
*
|
|
49
|
-
* @param options The
|
|
50
|
-
* @param callback The callback
|
|
86
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
87
|
+
* user subscription.
|
|
88
|
+
* @param options The options parameters.
|
|
51
89
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
90
|
+
private _list(
|
|
91
|
+
jobName: string,
|
|
92
|
+
resourceGroupName: string,
|
|
93
|
+
options?: BitLockerKeysListOptionalParams
|
|
94
|
+
): Promise<BitLockerKeysListResponse> {
|
|
54
95
|
return this.client.sendOperationRequest(
|
|
55
|
-
{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
options
|
|
59
|
-
},
|
|
60
|
-
listOperationSpec,
|
|
61
|
-
callback) as Promise<Models.BitLockerKeysListResponse>;
|
|
96
|
+
{ jobName, resourceGroupName, options },
|
|
97
|
+
listOperationSpec
|
|
98
|
+
);
|
|
62
99
|
}
|
|
63
100
|
}
|
|
64
|
-
|
|
65
101
|
// Operation Specifications
|
|
66
|
-
const serializer =
|
|
67
|
-
|
|
102
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
103
|
+
|
|
104
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
105
|
+
path:
|
|
106
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}/listBitLockerKeys",
|
|
68
107
|
httpMethod: "POST",
|
|
69
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}/listBitLockerKeys",
|
|
70
|
-
urlParameters: [
|
|
71
|
-
Parameters.jobName,
|
|
72
|
-
Parameters.subscriptionId,
|
|
73
|
-
Parameters.resourceGroupName
|
|
74
|
-
],
|
|
75
|
-
queryParameters: [
|
|
76
|
-
Parameters.apiVersion
|
|
77
|
-
],
|
|
78
|
-
headerParameters: [
|
|
79
|
-
Parameters.acceptLanguage
|
|
80
|
-
],
|
|
81
108
|
responses: {
|
|
82
109
|
200: {
|
|
83
110
|
bodyMapper: Mappers.GetBitLockerKeysResponse
|
|
@@ -86,5 +113,13 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
86
113
|
bodyMapper: Mappers.ErrorResponse
|
|
87
114
|
}
|
|
88
115
|
},
|
|
116
|
+
queryParameters: [Parameters.apiVersion],
|
|
117
|
+
urlParameters: [
|
|
118
|
+
Parameters.$host,
|
|
119
|
+
Parameters.subscriptionId,
|
|
120
|
+
Parameters.resourceGroupName,
|
|
121
|
+
Parameters.jobName
|
|
122
|
+
],
|
|
123
|
+
headerParameters: [Parameters.accept, Parameters.acceptLanguage],
|
|
89
124
|
serializer
|
|
90
125
|
};
|
package/src/operations/index.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
9
|
export * from "./locations";
|