@azure/arm-storageimportexport 2.1.1-alpha.20250620.1 → 2.1.1-alpha.20250721.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/operations/bitLockerKeys.js +10 -27
- package/dist/browser/operations/bitLockerKeys.js.map +1 -1
- package/dist/browser/operations/jobs.js +45 -79
- package/dist/browser/operations/jobs.js.map +1 -1
- package/dist/browser/operations/locations.js +10 -27
- package/dist/browser/operations/locations.js.map +1 -1
- package/dist/browser/operations/operations.js +10 -27
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/storageImportExport.js +18 -5
- package/dist/browser/storageImportExport.js.map +1 -1
- package/dist/commonjs/operations/bitLockerKeys.js +10 -26
- package/dist/commonjs/operations/bitLockerKeys.js.map +1 -1
- package/dist/commonjs/operations/jobs.js +45 -78
- package/dist/commonjs/operations/jobs.js.map +1 -1
- package/dist/commonjs/operations/locations.js +10 -26
- package/dist/commonjs/operations/locations.js.map +1 -1
- package/dist/commonjs/operations/operations.js +10 -26
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/storageImportExport.js +18 -5
- package/dist/commonjs/storageImportExport.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/operations/bitLockerKeys.js +10 -27
- package/dist/esm/operations/bitLockerKeys.js.map +1 -1
- package/dist/esm/operations/jobs.js +45 -79
- package/dist/esm/operations/jobs.js.map +1 -1
- package/dist/esm/operations/locations.js +10 -27
- package/dist/esm/operations/locations.js.map +1 -1
- package/dist/esm/operations/operations.js +10 -27
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/storageImportExport.js +18 -5
- package/dist/esm/storageImportExport.js.map +1 -1
- package/dist/react-native/operations/bitLockerKeys.js +10 -27
- package/dist/react-native/operations/bitLockerKeys.js.map +1 -1
- package/dist/react-native/operations/jobs.js +45 -79
- package/dist/react-native/operations/jobs.js.map +1 -1
- package/dist/react-native/operations/locations.js +10 -27
- package/dist/react-native/operations/locations.js.map +1 -1
- package/dist/react-native/operations/operations.js +10 -27
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/storageImportExport.js +18 -5
- package/dist/react-native/storageImportExport.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-storageimportexport.api.md → arm-storageimportexport-node.api.md} +0 -0
|
@@ -9,6 +9,10 @@ import * as coreClient from "@azure/core-client";
|
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
10
|
import { LocationsImpl, JobsImpl, BitLockerKeysImpl, OperationsImpl } from "./operations/index.js";
|
|
11
11
|
export class StorageImportExport extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
apiVersion;
|
|
14
|
+
acceptLanguage;
|
|
15
|
+
subscriptionId;
|
|
12
16
|
/**
|
|
13
17
|
* Initializes a new instance of the StorageImportExport class.
|
|
14
18
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -16,7 +20,6 @@ export class StorageImportExport extends coreClient.ServiceClient {
|
|
|
16
20
|
* @param options The parameter options
|
|
17
21
|
*/
|
|
18
22
|
constructor(credentials, subscriptionId, options) {
|
|
19
|
-
var _a, _b, _c;
|
|
20
23
|
if (credentials === undefined) {
|
|
21
24
|
throw new Error("'credentials' cannot be null");
|
|
22
25
|
}
|
|
@@ -35,12 +38,17 @@ export class StorageImportExport extends coreClient.ServiceClient {
|
|
|
35
38
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
36
39
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
37
40
|
: `${packageDetails}`;
|
|
38
|
-
const optionsWithDefaults =
|
|
41
|
+
const optionsWithDefaults = {
|
|
42
|
+
...defaults,
|
|
43
|
+
...options,
|
|
44
|
+
userAgentOptions: {
|
|
39
45
|
userAgentPrefix
|
|
40
|
-
},
|
|
46
|
+
},
|
|
47
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
48
|
+
};
|
|
41
49
|
super(optionsWithDefaults);
|
|
42
50
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
43
|
-
if (
|
|
51
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
44
52
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
45
53
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
46
54
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -54,7 +62,8 @@ export class StorageImportExport extends coreClient.ServiceClient {
|
|
|
54
62
|
});
|
|
55
63
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
56
64
|
credential: credentials,
|
|
57
|
-
scopes:
|
|
65
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
66
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
58
67
|
challengeCallbacks: {
|
|
59
68
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
60
69
|
}
|
|
@@ -96,5 +105,9 @@ export class StorageImportExport extends coreClient.ServiceClient {
|
|
|
96
105
|
};
|
|
97
106
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
98
107
|
}
|
|
108
|
+
locations;
|
|
109
|
+
jobs;
|
|
110
|
+
bitLockerKeys;
|
|
111
|
+
operations;
|
|
99
112
|
}
|
|
100
113
|
//# sourceMappingURL=storageImportExport.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageImportExport.js","sourceRoot":"","sources":["../../src/storageImportExport.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACf,MAAM,uBAAuB,CAAC;AAS/B,MAAM,OAAO,mBAAoB,SAAQ,UAAU,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"storageImportExport.js","sourceRoot":"","sources":["../../src/storageImportExport.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACf,MAAM,uBAAuB,CAAC;AAS/B,MAAM,OAAO,mBAAoB,SAAQ,UAAU,CAAC,aAAa;IAC/D,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAU;IACxB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA2C;QAE3C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAsC;YAClD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,wCAAwC,CAAC;QAChE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,I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N,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,SAAS,CAAY;IACrB,IAAI,CAAO;IACX,aAAa,CAAgB;IAC7B,UAAU,CAAa;CACxB","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n LocationsImpl,\n JobsImpl,\n BitLockerKeysImpl,\n OperationsImpl\n} from \"./operations/index.js\";\nimport {\n Locations,\n Jobs,\n BitLockerKeys,\n Operations\n} from \"./operationsInterfaces/index.js\";\nimport { StorageImportExportOptionalParams } from \"./models/index.js\";\n\nexport class StorageImportExport extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n acceptLanguage?: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the StorageImportExport class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription ID for the Azure user.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: StorageImportExportOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: StorageImportExportOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-storageimportexport/2.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-01-01\";\n this.locations = new LocationsImpl(this);\n this.jobs = new JobsImpl(this);\n this.bitLockerKeys = new BitLockerKeysImpl(this);\n this.operations = new OperationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n locations: Locations;\n jobs: Jobs;\n bitLockerKeys: BitLockerKeys;\n operations: Operations;\n}\n"]}
|
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing BitLockerKeys operations. */
|
|
17
17
|
class BitLockerKeysImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class BitLockerKeys class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -39,39 +40,22 @@ class BitLockerKeysImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listPagingPage(jobName, resourceGroupName, options, settings);
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listPagingPage(jobName, resourceGroupName, options, _settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
yield yield tslib_1.__await(result.value || []);
|
|
54
|
-
});
|
|
50
|
+
async *listPagingPage(jobName, resourceGroupName, options, _settings) {
|
|
51
|
+
let result;
|
|
52
|
+
result = await this._list(jobName, resourceGroupName, options);
|
|
53
|
+
yield result.value || [];
|
|
55
54
|
}
|
|
56
|
-
listPagingAll(jobName, resourceGroupName, options) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(jobName, resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
61
|
-
_c = _f.value;
|
|
62
|
-
_d = false;
|
|
63
|
-
const page = _c;
|
|
64
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
68
|
-
finally {
|
|
69
|
-
try {
|
|
70
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
71
|
-
}
|
|
72
|
-
finally { if (e_1) throw e_1.error; }
|
|
73
|
-
}
|
|
74
|
-
});
|
|
55
|
+
async *listPagingAll(jobName, resourceGroupName, options) {
|
|
56
|
+
for await (const page of this.listPagingPage(jobName, resourceGroupName, options)) {
|
|
57
|
+
yield* page;
|
|
58
|
+
}
|
|
75
59
|
}
|
|
76
60
|
/**
|
|
77
61
|
* Returns the BitLocker Keys for all drives in the specified job.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitLockerKeys.js","sourceRoot":"","sources":["../../../src/operations/bitLockerKeys.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAa,iBAAiB;
|
|
1
|
+
{"version":3,"file":"bitLockerKeys.js","sourceRoot":"","sources":["../../../src/operations/bitLockerKeys.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD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,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACK,KAAK,CACX,OAAe,EACf,iBAAyB,EACzB,OAAyC;QAEzC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,EACvC,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AAvFD,8CAuFC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,sIAAsI;IACxI,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;KACnB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,cAAc,CAAC;IAChE,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { BitLockerKeys } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageImportExport } from \"../storageImportExport.js\";\nimport {\n DriveBitLockerKey,\n BitLockerKeysListOptionalParams,\n BitLockerKeysListResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BitLockerKeys operations. */\nexport class BitLockerKeysImpl implements BitLockerKeys {\n private readonly client: StorageImportExport;\n\n /**\n * Initialize a new instance of the class BitLockerKeys class.\n * @param client Reference to the service client\n */\n constructor(client: StorageImportExport) {\n this.client = client;\n }\n\n /**\n * Returns the BitLocker Keys for all drives in the specified job.\n * @param jobName The name of the import/export job.\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the\n * user subscription.\n * @param options The options parameters.\n */\n public list(\n jobName: string,\n resourceGroupName: string,\n options?: BitLockerKeysListOptionalParams\n ): PagedAsyncIterableIterator<DriveBitLockerKey> {\n const iter = this.listPagingAll(jobName, resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n jobName,\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n jobName: string,\n resourceGroupName: string,\n options?: BitLockerKeysListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<DriveBitLockerKey[]> {\n let result: BitLockerKeysListResponse;\n result = await this._list(jobName, resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n jobName: string,\n resourceGroupName: string,\n options?: BitLockerKeysListOptionalParams\n ): AsyncIterableIterator<DriveBitLockerKey> {\n for await (const page of this.listPagingPage(\n jobName,\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns the BitLocker Keys for all drives in the specified job.\n * @param jobName The name of the import/export job.\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the\n * user subscription.\n * @param options The options parameters.\n */\n private _list(\n jobName: string,\n resourceGroupName: string,\n options?: BitLockerKeysListOptionalParams\n ): Promise<BitLockerKeysListResponse> {\n return this.client.sendOperationRequest(\n { jobName, resourceGroupName, options },\n listOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}/listBitLockerKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.GetBitLockerKeysResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName\n ],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing Jobs operations. */
|
|
18
18
|
class JobsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class Jobs class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -37,52 +38,35 @@ class JobsImpl {
|
|
|
37
38
|
return this;
|
|
38
39
|
},
|
|
39
40
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
41
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
43
|
}
|
|
43
44
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
44
45
|
}
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
48
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listBySubscription(options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
66
65
|
}
|
|
67
|
-
listBySubscriptionPagingAll(options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
66
|
+
async *listBySubscriptionPagingAll(options) {
|
|
67
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
86
70
|
}
|
|
87
71
|
/**
|
|
88
72
|
* Returns all active and completed jobs in a resource group.
|
|
@@ -100,52 +84,35 @@ class JobsImpl {
|
|
|
100
84
|
return this;
|
|
101
85
|
},
|
|
102
86
|
byPage: (settings) => {
|
|
103
|
-
if (settings
|
|
87
|
+
if (settings?.maxPageSize) {
|
|
104
88
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
105
89
|
}
|
|
106
90
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
107
91
|
}
|
|
108
92
|
};
|
|
109
93
|
}
|
|
110
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
});
|
|
94
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
95
|
+
let result;
|
|
96
|
+
let continuationToken = settings?.continuationToken;
|
|
97
|
+
if (!continuationToken) {
|
|
98
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
99
|
+
let page = result.value || [];
|
|
100
|
+
continuationToken = result.nextLink;
|
|
101
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
102
|
+
yield page;
|
|
103
|
+
}
|
|
104
|
+
while (continuationToken) {
|
|
105
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
106
|
+
continuationToken = result.nextLink;
|
|
107
|
+
let page = result.value || [];
|
|
108
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
109
|
+
yield page;
|
|
110
|
+
}
|
|
129
111
|
}
|
|
130
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
135
|
-
_c = _f.value;
|
|
136
|
-
_d = false;
|
|
137
|
-
const page = _c;
|
|
138
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
142
|
-
finally {
|
|
143
|
-
try {
|
|
144
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
145
|
-
}
|
|
146
|
-
finally { if (e_2) throw e_2.error; }
|
|
147
|
-
}
|
|
148
|
-
});
|
|
112
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
113
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
114
|
+
yield* page;
|
|
115
|
+
}
|
|
149
116
|
}
|
|
150
117
|
/**
|
|
151
118
|
* Returns all active and completed jobs in a subscription.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../src/operations/jobs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAuBtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAa,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,C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ACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Jobs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageImportExport } from \"../storageImportExport.js\";\nimport {\n JobResponse,\n JobsListBySubscriptionNextOptionalParams,\n JobsListBySubscriptionOptionalParams,\n JobsListBySubscriptionResponse,\n JobsListByResourceGroupNextOptionalParams,\n JobsListByResourceGroupOptionalParams,\n JobsListByResourceGroupResponse,\n JobsGetOptionalParams,\n JobsGetResponse,\n UpdateJobParameters,\n JobsUpdateOptionalParams,\n JobsUpdateResponse,\n PutJobParameters,\n JobsCreateOptionalParams,\n JobsCreateResponse,\n JobsDeleteOptionalParams,\n JobsListBySubscriptionNextResponse,\n JobsListByResourceGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Jobs operations. */\nexport class JobsImpl implements Jobs {\n private readonly client: StorageImportExport;\n\n /**\n * Initialize a new instance of the class Jobs class.\n * @param client Reference to the service client\n */\n constructor(client: StorageImportExport) {\n this.client = client;\n }\n\n /**\n * Returns all active and completed jobs in a subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: JobsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<JobResponse> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: JobsListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<JobResponse[]> {\n let result: JobsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: JobsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<JobResponse> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Returns all active and completed jobs in a resource group.\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the\n * user subscription.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<JobResponse> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<JobResponse[]> {\n let result: JobsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<JobResponse> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns all active and completed jobs in a subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: JobsListBySubscriptionOptionalParams\n ): Promise<JobsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Returns all active and completed jobs in a resource group.\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the\n * user subscription.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams\n ): Promise<JobsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets information about an existing job.\n * @param jobName The name of the import/export job.\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the\n * user subscription.\n * @param options The options parameters.\n */\n get(\n jobName: string,\n resourceGroupName: string,\n options?: JobsGetOptionalParams\n ): Promise<JobsGetResponse> {\n return this.client.sendOperationRequest(\n { jobName, resourceGroupName, options },\n getOperationSpec\n );\n }\n\n /**\n * Updates specific properties of a job. You can call this operation to notify the Import/Export\n * service that the hard drives comprising the import or export job have been shipped to the Microsoft\n * data center. It can also be used to cancel an existing job.\n * @param jobName The name of the import/export job.\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the\n * user subscription.\n * @param body The parameters to update in the job\n * @param options The options parameters.\n */\n update(\n jobName: string,\n resourceGroupName: string,\n body: UpdateJobParameters,\n options?: JobsUpdateOptionalParams\n ): Promise<JobsUpdateResponse> {\n return this.client.sendOperationRequest(\n { jobName, resourceGroupName, body, options },\n updateOperationSpec\n );\n }\n\n /**\n * Creates a new job or updates an existing job in the specified subscription.\n * @param jobName The name of the import/export job.\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the\n * user subscription.\n * @param body The parameters used for creating the job\n * @param options The options parameters.\n */\n create(\n jobName: string,\n resourceGroupName: string,\n body: PutJobParameters,\n options?: JobsCreateOptionalParams\n ): Promise<JobsCreateResponse> {\n return this.client.sendOperationRequest(\n { jobName, resourceGroupName, body, options },\n createOperationSpec\n );\n }\n\n /**\n * Deletes an existing job. Only jobs in the Creating or Completed states can be deleted.\n * @param jobName The name of the import/export job.\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the\n * user subscription.\n * @param options The options parameters.\n */\n delete(\n jobName: string,\n resourceGroupName: string,\n options?: JobsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { jobName, resourceGroupName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: JobsListBySubscriptionNextOptionalParams\n ): Promise<JobsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the\n * user subscription.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: JobsListByResourceGroupNextOptionalParams\n ): Promise<JobsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.ImportExport/jobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListJobsResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListJobsResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName\n ],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.acceptLanguage,\n Parameters.contentType\n ],\n mediaType: \"json\",\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResponse\n },\n 201: {\n bodyMapper: Mappers.JobResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.acceptLanguage,\n Parameters.contentType,\n Parameters.clientTenantId\n ],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName\n ],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListJobsResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListJobsResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../src/operations/jobs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAuBtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAa,QAAQ;IACF,MAAM,CAAsB;IAE7C;;;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,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,4BAA4B,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;Y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,EAAE,UAAU,CAAC,cAAc,CAAC;IAChE,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,cAAc,CAAC;IAChE,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Jobs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageImportExport } from \"../storageImportExport.js\";\nimport {\n JobResponse,\n JobsListBySubscriptionNextOptionalParams,\n JobsListBySubscriptionOptionalParams,\n JobsListBySubscriptionResponse,\n JobsListByResourceGroupNextOptionalParams,\n JobsListByResourceGroupOptionalParams,\n JobsListByResourceGroupResponse,\n JobsGetOptionalParams,\n JobsGetResponse,\n UpdateJobParameters,\n JobsUpdateOptionalParams,\n JobsUpdateResponse,\n PutJobParameters,\n JobsCreateOptionalParams,\n JobsCreateResponse,\n JobsDeleteOptionalParams,\n JobsListBySubscriptionNextResponse,\n JobsListByResourceGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Jobs operations. */\nexport class JobsImpl implements Jobs {\n private readonly client: StorageImportExport;\n\n /**\n * Initialize a new instance of the class Jobs class.\n * @param client Reference to the service client\n */\n constructor(client: StorageImportExport) {\n this.client = client;\n }\n\n /**\n * Returns all active and completed jobs in a subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: JobsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<JobResponse> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: JobsListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<JobResponse[]> {\n let result: JobsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: JobsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<JobResponse> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Returns all active and completed jobs in a resource group.\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the\n * user subscription.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<JobResponse> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<JobResponse[]> {\n let result: JobsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<JobResponse> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns all active and completed jobs in a subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: JobsListBySubscriptionOptionalParams\n ): Promise<JobsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Returns all active and completed jobs in a resource group.\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the\n * user subscription.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: JobsListByResourceGroupOptionalParams\n ): Promise<JobsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets information about an existing job.\n * @param jobName The name of the import/export job.\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the\n * user subscription.\n * @param options The options parameters.\n */\n get(\n jobName: string,\n resourceGroupName: string,\n options?: JobsGetOptionalParams\n ): Promise<JobsGetResponse> {\n return this.client.sendOperationRequest(\n { jobName, resourceGroupName, options },\n getOperationSpec\n );\n }\n\n /**\n * Updates specific properties of a job. You can call this operation to notify the Import/Export\n * service that the hard drives comprising the import or export job have been shipped to the Microsoft\n * data center. It can also be used to cancel an existing job.\n * @param jobName The name of the import/export job.\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the\n * user subscription.\n * @param body The parameters to update in the job\n * @param options The options parameters.\n */\n update(\n jobName: string,\n resourceGroupName: string,\n body: UpdateJobParameters,\n options?: JobsUpdateOptionalParams\n ): Promise<JobsUpdateResponse> {\n return this.client.sendOperationRequest(\n { jobName, resourceGroupName, body, options },\n updateOperationSpec\n );\n }\n\n /**\n * Creates a new job or updates an existing job in the specified subscription.\n * @param jobName The name of the import/export job.\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the\n * user subscription.\n * @param body The parameters used for creating the job\n * @param options The options parameters.\n */\n create(\n jobName: string,\n resourceGroupName: string,\n body: PutJobParameters,\n options?: JobsCreateOptionalParams\n ): Promise<JobsCreateResponse> {\n return this.client.sendOperationRequest(\n { jobName, resourceGroupName, body, options },\n createOperationSpec\n );\n }\n\n /**\n * Deletes an existing job. Only jobs in the Creating or Completed states can be deleted.\n * @param jobName The name of the import/export job.\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the\n * user subscription.\n * @param options The options parameters.\n */\n delete(\n jobName: string,\n resourceGroupName: string,\n options?: JobsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { jobName, resourceGroupName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: JobsListBySubscriptionNextOptionalParams\n ): Promise<JobsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the\n * user subscription.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: JobsListByResourceGroupNextOptionalParams\n ): Promise<JobsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.ImportExport/jobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListJobsResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListJobsResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName\n ],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.acceptLanguage,\n Parameters.contentType\n ],\n mediaType: \"json\",\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobResponse\n },\n 201: {\n bodyMapper: Mappers.JobResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.acceptLanguage,\n Parameters.contentType,\n Parameters.clientTenantId\n ],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ImportExport/jobs/{jobName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName\n ],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListJobsResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListJobsResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\n"]}
|
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing Locations operations. */
|
|
17
17
|
class LocationsImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class Locations class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -37,39 +38,22 @@ class LocationsImpl {
|
|
|
37
38
|
return this;
|
|
38
39
|
},
|
|
39
40
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
41
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
43
|
}
|
|
43
44
|
return this.listPagingPage(options, settings);
|
|
44
45
|
}
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
listPagingPage(options, _settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
yield yield tslib_1.__await(result.value || []);
|
|
52
|
-
});
|
|
48
|
+
async *listPagingPage(options, _settings) {
|
|
49
|
+
let result;
|
|
50
|
+
result = await this._list(options);
|
|
51
|
+
yield result.value || [];
|
|
53
52
|
}
|
|
54
|
-
listPagingAll(options) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
59
|
-
_c = _f.value;
|
|
60
|
-
_d = false;
|
|
61
|
-
const page = _c;
|
|
62
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
-
finally {
|
|
67
|
-
try {
|
|
68
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
69
|
-
}
|
|
70
|
-
finally { if (e_1) throw e_1.error; }
|
|
71
|
-
}
|
|
72
|
-
});
|
|
53
|
+
async *listPagingAll(options) {
|
|
54
|
+
for await (const page of this.listPagingPage(options)) {
|
|
55
|
+
yield* page;
|
|
56
|
+
}
|
|
73
57
|
}
|
|
74
58
|
/**
|
|
75
59
|
* Returns a list of locations to which you can ship the disks associated with an import or export job.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locations.js","sourceRoot":"","sources":["../../../src/operations/locations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAa,aAAa;
|
|
1
|
+
{"version":3,"file":"locations.js","sourceRoot":"","sources":["../../../src/operations/locations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAa,aAAa;IACP,MAAM,CAAsB;IAE7C;;;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,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAAqC,EACrC,SAAwB;QAExB,IAAI,MAA6B,CAAC;QAClC,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACn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AAE,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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { Locations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageImportExport } from \"../storageImportExport.js\";\nimport {\n Location,\n LocationsListOptionalParams,\n LocationsListResponse,\n LocationsGetOptionalParams,\n LocationsGetResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Locations operations. */\nexport class LocationsImpl implements Locations {\n private readonly client: StorageImportExport;\n\n /**\n * Initialize a new instance of the class Locations class.\n * @param client Reference to the service client\n */\n constructor(client: StorageImportExport) {\n this.client = client;\n }\n\n /**\n * Returns a list of locations to which you can ship the disks associated with an import or export job.\n * A location is a Microsoft data center region.\n * @param options The options parameters.\n */\n public list(\n options?: LocationsListOptionalParams\n ): PagedAsyncIterableIterator<Location> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: LocationsListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Location[]> {\n let result: LocationsListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: LocationsListOptionalParams\n ): AsyncIterableIterator<Location> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of locations to which you can ship the disks associated with an import or export job.\n * A location is a Microsoft data center region.\n * @param options The options parameters.\n */\n private _list(\n options?: LocationsListOptionalParams\n ): Promise<LocationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Returns the details about a location to which you can ship the disks associated with an import or\n * export job. A location is an Azure region.\n * @param locationName The name of the location. For example, West US or westus.\n * @param options The options parameters.\n */\n get(\n locationName: string,\n options?: LocationsGetOptionalParams\n ): Promise<LocationsGetResponse> {\n return this.client.sendOperationRequest(\n { locationName, options },\n getOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ImportExport/locations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LocationsResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ImportExport/locations/{locationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Location\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.locationName],\n headerParameters: [Parameters.accept, Parameters.acceptLanguage],\n serializer\n};\n"]}
|
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing Operations operations. */
|
|
17
17
|
class OperationsImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class Operations class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -36,39 +37,22 @@ class OperationsImpl {
|
|
|
36
37
|
return this;
|
|
37
38
|
},
|
|
38
39
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
40
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
42
|
}
|
|
42
43
|
return this.listPagingPage(options, settings);
|
|
43
44
|
}
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
|
-
listPagingPage(options, _settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
yield yield tslib_1.__await(result.value || []);
|
|
51
|
-
});
|
|
47
|
+
async *listPagingPage(options, _settings) {
|
|
48
|
+
let result;
|
|
49
|
+
result = await this._list(options);
|
|
50
|
+
yield result.value || [];
|
|
52
51
|
}
|
|
53
|
-
listPagingAll(options) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
58
|
-
_c = _f.value;
|
|
59
|
-
_d = false;
|
|
60
|
-
const page = _c;
|
|
61
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
65
|
-
finally {
|
|
66
|
-
try {
|
|
67
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
68
|
-
}
|
|
69
|
-
finally { if (e_1) throw e_1.error; }
|
|
70
|
-
}
|
|
71
|
-
});
|
|
52
|
+
async *listPagingAll(options) {
|
|
53
|
+
for await (const page of this.listPagingPage(options)) {
|
|
54
|
+
yield* page;
|
|
55
|
+
}
|
|
72
56
|
}
|
|
73
57
|
/**
|
|
74
58
|
* Returns the list of operations supported by the import/export resource provider.
|