@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
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Jobs operations. */
|
|
14
|
+
export class JobsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Jobs class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns all active and completed jobs in a subscription.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
listBySubscription(options) {
|
|
27
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
28
|
+
return {
|
|
29
|
+
next() {
|
|
30
|
+
return iter.next();
|
|
31
|
+
},
|
|
32
|
+
[Symbol.asyncIterator]() {
|
|
33
|
+
return this;
|
|
34
|
+
},
|
|
35
|
+
byPage: () => {
|
|
36
|
+
return this.listBySubscriptionPagingPage(options);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
listBySubscriptionPagingPage(options) {
|
|
41
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
42
|
+
let result = yield __await(this._listBySubscription(options));
|
|
43
|
+
yield yield __await(result.value || []);
|
|
44
|
+
let continuationToken = result.nextLink;
|
|
45
|
+
while (continuationToken) {
|
|
46
|
+
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
|
|
47
|
+
continuationToken = result.nextLink;
|
|
48
|
+
yield yield __await(result.value || []);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
listBySubscriptionPagingAll(options) {
|
|
53
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
54
|
+
var e_1, _a;
|
|
55
|
+
try {
|
|
56
|
+
for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
57
|
+
const page = _c.value;
|
|
58
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
62
|
+
finally {
|
|
63
|
+
try {
|
|
64
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
65
|
+
}
|
|
66
|
+
finally { if (e_1) throw e_1.error; }
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Returns all active and completed jobs in a resource group.
|
|
72
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
73
|
+
* user subscription.
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
77
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
78
|
+
return {
|
|
79
|
+
next() {
|
|
80
|
+
return iter.next();
|
|
81
|
+
},
|
|
82
|
+
[Symbol.asyncIterator]() {
|
|
83
|
+
return this;
|
|
84
|
+
},
|
|
85
|
+
byPage: () => {
|
|
86
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
91
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
92
|
+
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
93
|
+
yield yield __await(result.value || []);
|
|
94
|
+
let continuationToken = result.nextLink;
|
|
95
|
+
while (continuationToken) {
|
|
96
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
yield yield __await(result.value || []);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
103
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
104
|
+
var e_2, _a;
|
|
105
|
+
try {
|
|
106
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
107
|
+
const page = _c.value;
|
|
108
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
112
|
+
finally {
|
|
113
|
+
try {
|
|
114
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
115
|
+
}
|
|
116
|
+
finally { if (e_2) throw e_2.error; }
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Returns all active and completed jobs in a subscription.
|
|
122
|
+
* @param options The options parameters.
|
|
123
|
+
*/
|
|
124
|
+
_listBySubscription(options) {
|
|
125
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Returns all active and completed jobs in a resource group.
|
|
129
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
130
|
+
* user subscription.
|
|
131
|
+
* @param options The options parameters.
|
|
132
|
+
*/
|
|
133
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
134
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Gets information about an existing job.
|
|
138
|
+
* @param jobName The name of the import/export job.
|
|
139
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
140
|
+
* user subscription.
|
|
141
|
+
* @param options The options parameters.
|
|
142
|
+
*/
|
|
143
|
+
get(jobName, resourceGroupName, options) {
|
|
144
|
+
return this.client.sendOperationRequest({ jobName, resourceGroupName, options }, getOperationSpec);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Updates specific properties of a job. You can call this operation to notify the Import/Export
|
|
148
|
+
* service that the hard drives comprising the import or export job have been shipped to the Microsoft
|
|
149
|
+
* data center. It can also be used to cancel an existing job.
|
|
150
|
+
* @param jobName The name of the import/export job.
|
|
151
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
152
|
+
* user subscription.
|
|
153
|
+
* @param body The parameters to update in the job
|
|
154
|
+
* @param options The options parameters.
|
|
155
|
+
*/
|
|
156
|
+
update(jobName, resourceGroupName, body, options) {
|
|
157
|
+
return this.client.sendOperationRequest({ jobName, resourceGroupName, body, options }, updateOperationSpec);
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Creates a new job or updates an existing job in the specified subscription.
|
|
161
|
+
* @param jobName The name of the import/export job.
|
|
162
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
163
|
+
* user subscription.
|
|
164
|
+
* @param body The parameters used for creating the job
|
|
165
|
+
* @param options The options parameters.
|
|
166
|
+
*/
|
|
167
|
+
create(jobName, resourceGroupName, body, options) {
|
|
168
|
+
return this.client.sendOperationRequest({ jobName, resourceGroupName, body, options }, createOperationSpec);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Deletes an existing job. Only jobs in the Creating or Completed states can be deleted.
|
|
172
|
+
* @param jobName The name of the import/export job.
|
|
173
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
174
|
+
* user subscription.
|
|
175
|
+
* @param options The options parameters.
|
|
176
|
+
*/
|
|
177
|
+
delete(jobName, resourceGroupName, options) {
|
|
178
|
+
return this.client.sendOperationRequest({ jobName, resourceGroupName, options }, deleteOperationSpec);
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* ListBySubscriptionNext
|
|
182
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
183
|
+
* @param options The options parameters.
|
|
184
|
+
*/
|
|
185
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
186
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* ListByResourceGroupNext
|
|
190
|
+
* @param resourceGroupName The resource group name uniquely identifies the resource group within the
|
|
191
|
+
* user subscription.
|
|
192
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
193
|
+
* @param options The options parameters.
|
|
194
|
+
*/
|
|
195
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
196
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
// Operation Specifications
|
|
200
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
201
|
+
const listBySubscriptionOperationSpec = {
|
|
202
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ImportExport/jobs",
|
|
203
|
+
httpMethod: "GET",
|
|
204
|
+
responses: {
|
|
205
|
+
200: {
|
|
206
|
+
bodyMapper: Mappers.ListJobsResponse
|
|
207
|
+
},
|
|
208
|
+
default: {
|
|
209
|
+
bodyMapper: Mappers.ErrorResponse
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.filter],
|
|
213
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
214
|
+
headerParameters: [Parameters.accept, Parameters.acceptLanguage],
|
|
215
|
+
serializer
|
|
216
|
+
};
|
|
217
|
+
const listByResourceGroupOperationSpec = {
|
|
218
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs",
|
|
219
|
+
httpMethod: "GET",
|
|
220
|
+
responses: {
|
|
221
|
+
200: {
|
|
222
|
+
bodyMapper: Mappers.ListJobsResponse
|
|
223
|
+
},
|
|
224
|
+
default: {
|
|
225
|
+
bodyMapper: Mappers.ErrorResponse
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.filter],
|
|
229
|
+
urlParameters: [
|
|
230
|
+
Parameters.$host,
|
|
231
|
+
Parameters.subscriptionId,
|
|
232
|
+
Parameters.resourceGroupName
|
|
233
|
+
],
|
|
234
|
+
headerParameters: [Parameters.accept, Parameters.acceptLanguage],
|
|
235
|
+
serializer
|
|
236
|
+
};
|
|
237
|
+
const getOperationSpec = {
|
|
238
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}",
|
|
239
|
+
httpMethod: "GET",
|
|
240
|
+
responses: {
|
|
241
|
+
200: {
|
|
242
|
+
bodyMapper: Mappers.JobResponse
|
|
243
|
+
},
|
|
244
|
+
default: {
|
|
245
|
+
bodyMapper: Mappers.ErrorResponse
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
queryParameters: [Parameters.apiVersion],
|
|
249
|
+
urlParameters: [
|
|
250
|
+
Parameters.$host,
|
|
251
|
+
Parameters.subscriptionId,
|
|
252
|
+
Parameters.resourceGroupName,
|
|
253
|
+
Parameters.jobName
|
|
254
|
+
],
|
|
255
|
+
headerParameters: [Parameters.accept, Parameters.acceptLanguage],
|
|
256
|
+
serializer
|
|
257
|
+
};
|
|
258
|
+
const updateOperationSpec = {
|
|
259
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}",
|
|
260
|
+
httpMethod: "PATCH",
|
|
261
|
+
responses: {
|
|
262
|
+
200: {
|
|
263
|
+
bodyMapper: Mappers.JobResponse
|
|
264
|
+
},
|
|
265
|
+
default: {
|
|
266
|
+
bodyMapper: Mappers.ErrorResponse
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
requestBody: Parameters.body,
|
|
270
|
+
queryParameters: [Parameters.apiVersion],
|
|
271
|
+
urlParameters: [
|
|
272
|
+
Parameters.$host,
|
|
273
|
+
Parameters.subscriptionId,
|
|
274
|
+
Parameters.resourceGroupName,
|
|
275
|
+
Parameters.jobName
|
|
276
|
+
],
|
|
277
|
+
headerParameters: [
|
|
278
|
+
Parameters.accept,
|
|
279
|
+
Parameters.acceptLanguage,
|
|
280
|
+
Parameters.contentType
|
|
281
|
+
],
|
|
282
|
+
mediaType: "json",
|
|
283
|
+
serializer
|
|
284
|
+
};
|
|
285
|
+
const createOperationSpec = {
|
|
286
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}",
|
|
287
|
+
httpMethod: "PUT",
|
|
288
|
+
responses: {
|
|
289
|
+
200: {
|
|
290
|
+
bodyMapper: Mappers.JobResponse
|
|
291
|
+
},
|
|
292
|
+
201: {
|
|
293
|
+
bodyMapper: Mappers.JobResponse
|
|
294
|
+
},
|
|
295
|
+
default: {
|
|
296
|
+
bodyMapper: Mappers.ErrorResponse
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
requestBody: Parameters.body1,
|
|
300
|
+
queryParameters: [Parameters.apiVersion],
|
|
301
|
+
urlParameters: [
|
|
302
|
+
Parameters.$host,
|
|
303
|
+
Parameters.subscriptionId,
|
|
304
|
+
Parameters.resourceGroupName,
|
|
305
|
+
Parameters.jobName
|
|
306
|
+
],
|
|
307
|
+
headerParameters: [
|
|
308
|
+
Parameters.accept,
|
|
309
|
+
Parameters.acceptLanguage,
|
|
310
|
+
Parameters.contentType,
|
|
311
|
+
Parameters.clientTenantId
|
|
312
|
+
],
|
|
313
|
+
mediaType: "json",
|
|
314
|
+
serializer
|
|
315
|
+
};
|
|
316
|
+
const deleteOperationSpec = {
|
|
317
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}",
|
|
318
|
+
httpMethod: "DELETE",
|
|
319
|
+
responses: {
|
|
320
|
+
200: {},
|
|
321
|
+
default: {
|
|
322
|
+
bodyMapper: Mappers.ErrorResponse
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
queryParameters: [Parameters.apiVersion],
|
|
326
|
+
urlParameters: [
|
|
327
|
+
Parameters.$host,
|
|
328
|
+
Parameters.subscriptionId,
|
|
329
|
+
Parameters.resourceGroupName,
|
|
330
|
+
Parameters.jobName
|
|
331
|
+
],
|
|
332
|
+
headerParameters: [Parameters.accept, Parameters.acceptLanguage],
|
|
333
|
+
serializer
|
|
334
|
+
};
|
|
335
|
+
const listBySubscriptionNextOperationSpec = {
|
|
336
|
+
path: "{nextLink}",
|
|
337
|
+
httpMethod: "GET",
|
|
338
|
+
responses: {
|
|
339
|
+
200: {
|
|
340
|
+
bodyMapper: Mappers.ListJobsResponse
|
|
341
|
+
},
|
|
342
|
+
default: {
|
|
343
|
+
bodyMapper: Mappers.ErrorResponse
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.filter],
|
|
347
|
+
urlParameters: [
|
|
348
|
+
Parameters.$host,
|
|
349
|
+
Parameters.subscriptionId,
|
|
350
|
+
Parameters.nextLink
|
|
351
|
+
],
|
|
352
|
+
headerParameters: [Parameters.accept, Parameters.acceptLanguage],
|
|
353
|
+
serializer
|
|
354
|
+
};
|
|
355
|
+
const listByResourceGroupNextOperationSpec = {
|
|
356
|
+
path: "{nextLink}",
|
|
357
|
+
httpMethod: "GET",
|
|
358
|
+
responses: {
|
|
359
|
+
200: {
|
|
360
|
+
bodyMapper: Mappers.ListJobsResponse
|
|
361
|
+
},
|
|
362
|
+
default: {
|
|
363
|
+
bodyMapper: Mappers.ErrorResponse
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.filter],
|
|
367
|
+
urlParameters: [
|
|
368
|
+
Parameters.$host,
|
|
369
|
+
Parameters.subscriptionId,
|
|
370
|
+
Parameters.resourceGroupName,
|
|
371
|
+
Parameters.nextLink
|
|
372
|
+
],
|
|
373
|
+
headerParameters: [Parameters.accept, Parameters.acceptLanguage],
|
|
374
|
+
serializer
|
|
375
|
+
};
|
|
376
|
+
//# sourceMappingURL=jobs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../src/operations/jobs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAuBnD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IAGnB;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAA8C;QAE9C,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC;YACpD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,4BA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ACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,MAAM,CAAC;IAC3E,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,cAAc,CAAC;IAChE,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Locations } from "../operationsInterfaces";
|
|
3
|
+
import { StorageImportExport } from "../storageImportExport";
|
|
4
|
+
import { Location, LocationsListOptionalParams, LocationsGetOptionalParams, LocationsGetResponse } from "../models";
|
|
5
|
+
/** Class containing Locations operations. */
|
|
6
|
+
export declare class LocationsImpl implements Locations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Locations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: StorageImportExport);
|
|
13
|
+
/**
|
|
14
|
+
* Returns a list of locations to which you can ship the disks associated with an import or export job.
|
|
15
|
+
* A location is a Microsoft data center region.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
list(options?: LocationsListOptionalParams): PagedAsyncIterableIterator<Location>;
|
|
19
|
+
private listPagingPage;
|
|
20
|
+
private listPagingAll;
|
|
21
|
+
/**
|
|
22
|
+
* Returns a list of locations to which you can ship the disks associated with an import or export job.
|
|
23
|
+
* A location is a Microsoft data center region.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
private _list;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the details about a location to which you can ship the disks associated with an import or
|
|
29
|
+
* export job. A location is an Azure region.
|
|
30
|
+
* @param locationName The name of the location. For example, West US or westus.
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
get(locationName: string, options?: LocationsGetOptionalParams): Promise<LocationsGetResponse>;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=locations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locations.d.ts","sourceRoot":"","sources":["../../../src/operations/locations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EACL,QAAQ,EACR,2BAA2B,EAE3B,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,WAAW,CAAC;AAGnB,6CAA6C;AAC7C,qBAAa,aAAc,YAAW,SAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;OAGG;gBACS,MAAM,EAAE,mBAAmB;IAIvC;;;;OAIG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,2BAA2B,GACpC,0BAA0B,CAAC,QAAQ,CAAC;YAexB,cAAc;YAOd,aAAa;IAQ5B;;;;OAIG;IACH,OAAO,CAAC,KAAK;IAMb;;;;;OAKG;IACH,GAAG,CACD,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,oBAAoB,CAAC;CAMjC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Locations operations. */
|
|
14
|
+
export class LocationsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Locations class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns a list of locations to which you can ship the disks associated with an import or export job.
|
|
24
|
+
* A location is a Microsoft data center region.
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
list(options) {
|
|
28
|
+
const iter = this.listPagingAll(options);
|
|
29
|
+
return {
|
|
30
|
+
next() {
|
|
31
|
+
return iter.next();
|
|
32
|
+
},
|
|
33
|
+
[Symbol.asyncIterator]() {
|
|
34
|
+
return this;
|
|
35
|
+
},
|
|
36
|
+
byPage: () => {
|
|
37
|
+
return this.listPagingPage(options);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
listPagingPage(options) {
|
|
42
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
43
|
+
let result = yield __await(this._list(options));
|
|
44
|
+
yield yield __await(result.value || []);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
listPagingAll(options) {
|
|
48
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
49
|
+
var e_1, _a;
|
|
50
|
+
try {
|
|
51
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
52
|
+
const page = _c.value;
|
|
53
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
57
|
+
finally {
|
|
58
|
+
try {
|
|
59
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
60
|
+
}
|
|
61
|
+
finally { if (e_1) throw e_1.error; }
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Returns a list of locations to which you can ship the disks associated with an import or export job.
|
|
67
|
+
* A location is a Microsoft data center region.
|
|
68
|
+
* @param options The options parameters.
|
|
69
|
+
*/
|
|
70
|
+
_list(options) {
|
|
71
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Returns the details about a location to which you can ship the disks associated with an import or
|
|
75
|
+
* export job. A location is an Azure region.
|
|
76
|
+
* @param locationName The name of the location. For example, West US or westus.
|
|
77
|
+
* @param options The options parameters.
|
|
78
|
+
*/
|
|
79
|
+
get(locationName, options) {
|
|
80
|
+
return this.client.sendOperationRequest({ locationName, options }, getOperationSpec);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
// Operation Specifications
|
|
84
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
85
|
+
const listOperationSpec = {
|
|
86
|
+
path: "/providers/Microsoft.ImportExport/locations",
|
|
87
|
+
httpMethod: "GET",
|
|
88
|
+
responses: {
|
|
89
|
+
200: {
|
|
90
|
+
bodyMapper: Mappers.LocationsResponse
|
|
91
|
+
},
|
|
92
|
+
default: {
|
|
93
|
+
bodyMapper: Mappers.ErrorResponse
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
queryParameters: [Parameters.apiVersion],
|
|
97
|
+
urlParameters: [Parameters.$host],
|
|
98
|
+
headerParameters: [Parameters.accept, Parameters.acceptLanguage],
|
|
99
|
+
serializer
|
|
100
|
+
};
|
|
101
|
+
const getOperationSpec = {
|
|
102
|
+
path: "/providers/Microsoft.ImportExport/locations/{locationName}",
|
|
103
|
+
httpMethod: "GET",
|
|
104
|
+
responses: {
|
|
105
|
+
200: {
|
|
106
|
+
bodyMapper: Mappers.Location
|
|
107
|
+
},
|
|
108
|
+
default: {
|
|
109
|
+
bodyMapper: Mappers.ErrorResponse
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
queryParameters: [Parameters.apiVersion],
|
|
113
|
+
urlParameters: [Parameters.$host, Parameters.locationName],
|
|
114
|
+
headerParameters: [Parameters.accept, Parameters.acceptLanguage],
|
|
115
|
+
serializer
|
|
116
|
+
};
|
|
117
|
+
//# sourceMappingURL=locations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locations.js","sourceRoot":"","sources":["../../../src/operations/locations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAUnD,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAM,OAAO,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,OAAqC;QAErC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACtC,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAqC;;YAErC,IAAI,MAAM,GAAG,cAAM,IAAI,CA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;IACjD,IAAI,EAAE,4DAA4D;IAClE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,YAAY,CAAC;IAC1D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,cAAc,CAAC;IAChE,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operations } from "../operationsInterfaces";
|
|
3
|
+
import { StorageImportExport } from "../storageImportExport";
|
|
4
|
+
import { Operation, OperationsListOptionalParams } from "../models";
|
|
5
|
+
/** Class containing Operations operations. */
|
|
6
|
+
export declare class OperationsImpl implements Operations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Operations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: StorageImportExport);
|
|
13
|
+
/**
|
|
14
|
+
* Returns the list of operations supported by the import/export resource provider.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the list of operations supported by the import/export resource provider.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EACL,SAAS,EACT,4BAA4B,EAE7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;OAGG;gBACS,MAAM,EAAE,mBAAmB;IAIvC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAezB,cAAc;YAOd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAKd"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Operations operations. */
|
|
14
|
+
export class OperationsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Operations class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns the list of operations supported by the import/export resource provider.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(options) {
|
|
27
|
+
const iter = this.listPagingAll(options);
|
|
28
|
+
return {
|
|
29
|
+
next() {
|
|
30
|
+
return iter.next();
|
|
31
|
+
},
|
|
32
|
+
[Symbol.asyncIterator]() {
|
|
33
|
+
return this;
|
|
34
|
+
},
|
|
35
|
+
byPage: () => {
|
|
36
|
+
return this.listPagingPage(options);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
listPagingPage(options) {
|
|
41
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
42
|
+
let result = yield __await(this._list(options));
|
|
43
|
+
yield yield __await(result.value || []);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
listPagingAll(options) {
|
|
47
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
48
|
+
var e_1, _a;
|
|
49
|
+
try {
|
|
50
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
51
|
+
const page = _c.value;
|
|
52
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
56
|
+
finally {
|
|
57
|
+
try {
|
|
58
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
59
|
+
}
|
|
60
|
+
finally { if (e_1) throw e_1.error; }
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Returns the list of operations supported by the import/export resource provider.
|
|
66
|
+
* @param options The options parameters.
|
|
67
|
+
*/
|
|
68
|
+
_list(options) {
|
|
69
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
// Operation Specifications
|
|
73
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
74
|
+
const listOperationSpec = {
|
|
75
|
+
path: "/providers/Microsoft.ImportExport/operations",
|
|
76
|
+
httpMethod: "GET",
|
|
77
|
+
responses: {
|
|
78
|
+
200: {
|
|
79
|
+
bodyMapper: Mappers.ListOperationsResponse
|
|
80
|
+
},
|
|
81
|
+
default: {
|
|
82
|
+
bodyMapper: Mappers.ErrorResponse
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
queryParameters: [Parameters.apiVersion],
|
|
86
|
+
urlParameters: [Parameters.$host],
|
|
87
|
+
headerParameters: [Parameters.accept, Parameters.acceptLanguage],
|
|
88
|
+
serializer
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=operations.js.map
|