@azure/arm-iotfirmwaredefense 1.0.0-alpha.20231009.1 → 1.0.0-alpha.20231023.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.
Files changed (34) hide show
  1. package/dist/index.js +63 -116
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.min.js +1 -1
  4. package/dist/index.min.js.map +1 -1
  5. package/dist-esm/samples-dev/firmwareListByWorkspaceSample.js +6 -16
  6. package/dist-esm/samples-dev/firmwareListByWorkspaceSample.js.map +1 -1
  7. package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.js +6 -16
  8. package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.js.map +1 -1
  9. package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.js +6 -16
  10. package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.js.map +1 -1
  11. package/dist-esm/samples-dev/firmwareListGenerateCryptoCertificateListSample.js +6 -16
  12. package/dist-esm/samples-dev/firmwareListGenerateCryptoCertificateListSample.js.map +1 -1
  13. package/dist-esm/samples-dev/firmwareListGenerateCryptoKeyListSample.js +6 -16
  14. package/dist-esm/samples-dev/firmwareListGenerateCryptoKeyListSample.js.map +1 -1
  15. package/dist-esm/samples-dev/firmwareListGenerateCveListSample.js +6 -16
  16. package/dist-esm/samples-dev/firmwareListGenerateCveListSample.js.map +1 -1
  17. package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.js +6 -16
  18. package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.js.map +1 -1
  19. package/dist-esm/samples-dev/operationsListSample.js +6 -16
  20. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  21. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +6 -16
  22. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -1
  23. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +6 -16
  24. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -1
  25. package/dist-esm/src/operations/firmwareOperations.js +21 -56
  26. package/dist-esm/src/operations/firmwareOperations.js.map +1 -1
  27. package/dist-esm/src/operations/operations.js +3 -8
  28. package/dist-esm/src/operations/operations.js.map +1 -1
  29. package/dist-esm/src/operations/workspaces.js +6 -16
  30. package/dist-esm/src/operations/workspaces.js.map +1 -1
  31. package/dist-esm/test/iotfirmwaredefense_operations_test.spec.js +6 -16
  32. package/dist-esm/test/iotfirmwaredefense_operations_test.spec.js.map +1 -1
  33. package/package.json +3 -10
  34. package/rollup.config.js +0 -122
package/dist/index.js CHANGED
@@ -1,13 +1,10 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var tslib = require('tslib');
6
4
  var coreClient = require('@azure/core-client');
7
5
  var coreRestPipeline = require('@azure/core-rest-pipeline');
8
6
 
9
- function _interopNamespace(e) {
10
- if (e && e.__esModule) return e;
7
+ function _interopNamespaceDefault(e) {
11
8
  var n = Object.create(null);
12
9
  if (e) {
13
10
  Object.keys(e).forEach(function (k) {
@@ -20,12 +17,12 @@ function _interopNamespace(e) {
20
17
  }
21
18
  });
22
19
  }
23
- n["default"] = e;
20
+ n.default = e;
24
21
  return Object.freeze(n);
25
22
  }
26
23
 
27
- var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
24
+ var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
25
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
29
26
 
30
27
  /*
31
28
  * Copyright (c) Microsoft Corporation.
@@ -1821,45 +1818,45 @@ const Workspace = {
1821
1818
 
1822
1819
  var Mappers = /*#__PURE__*/Object.freeze({
1823
1820
  __proto__: null,
1824
- FirmwareList: FirmwareList,
1825
- Resource: Resource,
1826
- SystemData: SystemData,
1827
- ErrorResponse: ErrorResponse,
1828
- ErrorDetail: ErrorDetail,
1829
- ErrorAdditionalInfo: ErrorAdditionalInfo,
1830
- FirmwareUpdateDefinition: FirmwareUpdateDefinition,
1831
- UrlToken: UrlToken,
1832
- FirmwareSummary: FirmwareSummary,
1833
- ComponentList: ComponentList,
1834
- Component: Component,
1835
- BinaryHardeningList: BinaryHardeningList,
1836
1821
  BinaryHardening: BinaryHardening,
1822
+ BinaryHardeningList: BinaryHardeningList,
1837
1823
  BinaryHardeningSummary: BinaryHardeningSummary,
1838
- PasswordHashList: PasswordHashList,
1839
- PasswordHash: PasswordHash,
1840
- CveList: CveList,
1841
- Cve: Cve,
1842
- CveLink: CveLink,
1843
- CveSummary: CveSummary,
1844
- CryptoCertificateSummary: CryptoCertificateSummary,
1845
- CryptoKeySummary: CryptoKeySummary,
1846
- CryptoCertificateList: CryptoCertificateList,
1824
+ Component: Component,
1825
+ ComponentList: ComponentList,
1847
1826
  CryptoCertificate: CryptoCertificate,
1848
1827
  CryptoCertificateEntity: CryptoCertificateEntity,
1849
- PairedKey: PairedKey,
1850
- CryptoKeyList: CryptoKeyList,
1828
+ CryptoCertificateList: CryptoCertificateList,
1829
+ CryptoCertificateSummary: CryptoCertificateSummary,
1851
1830
  CryptoKey: CryptoKey,
1852
- WorkspaceList: WorkspaceList,
1853
- WorkspaceUpdateDefinition: WorkspaceUpdateDefinition,
1831
+ CryptoKeyList: CryptoKeyList,
1832
+ CryptoKeySummary: CryptoKeySummary,
1833
+ Cve: Cve,
1834
+ CveComponent: CveComponent,
1835
+ CveLink: CveLink,
1836
+ CveList: CveList,
1837
+ CveSummary: CveSummary,
1838
+ ErrorAdditionalInfo: ErrorAdditionalInfo,
1839
+ ErrorDetail: ErrorDetail,
1840
+ ErrorResponse: ErrorResponse,
1841
+ Firmware: Firmware,
1842
+ FirmwareList: FirmwareList,
1843
+ FirmwareSummary: FirmwareSummary,
1844
+ FirmwareUpdateDefinition: FirmwareUpdateDefinition,
1854
1845
  GenerateUploadUrlRequest: GenerateUploadUrlRequest,
1855
- OperationListResult: OperationListResult,
1856
1846
  Operation: Operation,
1857
1847
  OperationDisplay: OperationDisplay,
1858
- CveComponent: CveComponent,
1848
+ OperationListResult: OperationListResult,
1849
+ PairedKey: PairedKey,
1850
+ PasswordHash: PasswordHash,
1851
+ PasswordHashList: PasswordHashList,
1859
1852
  ProxyResource: ProxyResource,
1853
+ Resource: Resource,
1854
+ SystemData: SystemData,
1860
1855
  TrackedResource: TrackedResource,
1861
- Firmware: Firmware,
1862
- Workspace: Workspace
1856
+ UrlToken: UrlToken,
1857
+ Workspace: Workspace,
1858
+ WorkspaceList: WorkspaceList,
1859
+ WorkspaceUpdateDefinition: WorkspaceUpdateDefinition
1863
1860
  });
1864
1861
 
1865
1862
  /*
@@ -2059,16 +2056,11 @@ class FirmwareOperationsImpl {
2059
2056
  return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
2060
2057
  var _a, e_1, _b, _c;
2061
2058
  try {
2062
- for (var _d = true, _e = tslib.__asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2059
+ for (var _d = true, _e = tslib.__asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2063
2060
  _c = _f.value;
2064
2061
  _d = false;
2065
- try {
2066
- const page = _c;
2067
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2068
- }
2069
- finally {
2070
- _d = true;
2071
- }
2062
+ const page = _c;
2063
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2072
2064
  }
2073
2065
  }
2074
2066
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -2128,16 +2120,11 @@ class FirmwareOperationsImpl {
2128
2120
  return tslib.__asyncGenerator(this, arguments, function* listGenerateComponentListPagingAll_1() {
2129
2121
  var _a, e_2, _b, _c;
2130
2122
  try {
2131
- for (var _d = true, _e = tslib.__asyncValues(this.listGenerateComponentListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2123
+ for (var _d = true, _e = tslib.__asyncValues(this.listGenerateComponentListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2132
2124
  _c = _f.value;
2133
2125
  _d = false;
2134
- try {
2135
- const page = _c;
2136
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2137
- }
2138
- finally {
2139
- _d = true;
2140
- }
2126
+ const page = _c;
2127
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2141
2128
  }
2142
2129
  }
2143
2130
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
@@ -2197,16 +2184,11 @@ class FirmwareOperationsImpl {
2197
2184
  return tslib.__asyncGenerator(this, arguments, function* listGenerateBinaryHardeningListPagingAll_1() {
2198
2185
  var _a, e_3, _b, _c;
2199
2186
  try {
2200
- for (var _d = true, _e = tslib.__asyncValues(this.listGenerateBinaryHardeningListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2187
+ for (var _d = true, _e = tslib.__asyncValues(this.listGenerateBinaryHardeningListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2201
2188
  _c = _f.value;
2202
2189
  _d = false;
2203
- try {
2204
- const page = _c;
2205
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2206
- }
2207
- finally {
2208
- _d = true;
2209
- }
2190
+ const page = _c;
2191
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2210
2192
  }
2211
2193
  }
2212
2194
  catch (e_3_1) { e_3 = { error: e_3_1 }; }
@@ -2266,16 +2248,11 @@ class FirmwareOperationsImpl {
2266
2248
  return tslib.__asyncGenerator(this, arguments, function* listGeneratePasswordHashListPagingAll_1() {
2267
2249
  var _a, e_4, _b, _c;
2268
2250
  try {
2269
- for (var _d = true, _e = tslib.__asyncValues(this.listGeneratePasswordHashListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2251
+ for (var _d = true, _e = tslib.__asyncValues(this.listGeneratePasswordHashListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2270
2252
  _c = _f.value;
2271
2253
  _d = false;
2272
- try {
2273
- const page = _c;
2274
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2275
- }
2276
- finally {
2277
- _d = true;
2278
- }
2254
+ const page = _c;
2255
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2279
2256
  }
2280
2257
  }
2281
2258
  catch (e_4_1) { e_4 = { error: e_4_1 }; }
@@ -2335,16 +2312,11 @@ class FirmwareOperationsImpl {
2335
2312
  return tslib.__asyncGenerator(this, arguments, function* listGenerateCveListPagingAll_1() {
2336
2313
  var _a, e_5, _b, _c;
2337
2314
  try {
2338
- for (var _d = true, _e = tslib.__asyncValues(this.listGenerateCveListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2315
+ for (var _d = true, _e = tslib.__asyncValues(this.listGenerateCveListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2339
2316
  _c = _f.value;
2340
2317
  _d = false;
2341
- try {
2342
- const page = _c;
2343
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2344
- }
2345
- finally {
2346
- _d = true;
2347
- }
2318
+ const page = _c;
2319
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2348
2320
  }
2349
2321
  }
2350
2322
  catch (e_5_1) { e_5 = { error: e_5_1 }; }
@@ -2404,16 +2376,11 @@ class FirmwareOperationsImpl {
2404
2376
  return tslib.__asyncGenerator(this, arguments, function* listGenerateCryptoCertificateListPagingAll_1() {
2405
2377
  var _a, e_6, _b, _c;
2406
2378
  try {
2407
- for (var _d = true, _e = tslib.__asyncValues(this.listGenerateCryptoCertificateListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2379
+ for (var _d = true, _e = tslib.__asyncValues(this.listGenerateCryptoCertificateListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2408
2380
  _c = _f.value;
2409
2381
  _d = false;
2410
- try {
2411
- const page = _c;
2412
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2413
- }
2414
- finally {
2415
- _d = true;
2416
- }
2382
+ const page = _c;
2383
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2417
2384
  }
2418
2385
  }
2419
2386
  catch (e_6_1) { e_6 = { error: e_6_1 }; }
@@ -2473,16 +2440,11 @@ class FirmwareOperationsImpl {
2473
2440
  return tslib.__asyncGenerator(this, arguments, function* listGenerateCryptoKeyListPagingAll_1() {
2474
2441
  var _a, e_7, _b, _c;
2475
2442
  try {
2476
- for (var _d = true, _e = tslib.__asyncValues(this.listGenerateCryptoKeyListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2443
+ for (var _d = true, _e = tslib.__asyncValues(this.listGenerateCryptoKeyListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2477
2444
  _c = _f.value;
2478
2445
  _d = false;
2479
- try {
2480
- const page = _c;
2481
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2482
- }
2483
- finally {
2484
- _d = true;
2485
- }
2446
+ const page = _c;
2447
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2486
2448
  }
2487
2449
  }
2488
2450
  catch (e_7_1) { e_7 = { error: e_7_1 }; }
@@ -3445,16 +3407,11 @@ class WorkspacesImpl {
3445
3407
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
3446
3408
  var _a, e_1, _b, _c;
3447
3409
  try {
3448
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3410
+ for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3449
3411
  _c = _f.value;
3450
3412
  _d = false;
3451
- try {
3452
- const page = _c;
3453
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3454
- }
3455
- finally {
3456
- _d = true;
3457
- }
3413
+ const page = _c;
3414
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3458
3415
  }
3459
3416
  }
3460
3417
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -3512,16 +3469,11 @@ class WorkspacesImpl {
3512
3469
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
3513
3470
  var _a, e_2, _b, _c;
3514
3471
  try {
3515
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3472
+ for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3516
3473
  _c = _f.value;
3517
3474
  _d = false;
3518
- try {
3519
- const page = _c;
3520
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3521
- }
3522
- finally {
3523
- _d = true;
3524
- }
3475
+ const page = _c;
3476
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3525
3477
  }
3526
3478
  }
3527
3479
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
@@ -3871,16 +3823,11 @@ class OperationsImpl {
3871
3823
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
3872
3824
  var _a, e_1, _b, _c;
3873
3825
  try {
3874
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3826
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3875
3827
  _c = _f.value;
3876
3828
  _d = false;
3877
- try {
3878
- const page = _c;
3879
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3880
- }
3881
- finally {
3882
- _d = true;
3883
- }
3829
+ const page = _c;
3830
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3884
3831
  }
3885
3832
  }
3886
3833
  catch (e_1_1) { e_1 = { error: e_1_1 }; }