@azure/arm-servicemap 3.0.0-alpha.20250619.1 → 3.0.0-alpha.20250729.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 (83) hide show
  1. package/dist/browser/models/mappers.js +251 -113
  2. package/dist/browser/models/mappers.js.map +1 -1
  3. package/dist/browser/operations/clientGroups.js +23 -40
  4. package/dist/browser/operations/clientGroups.js.map +1 -1
  5. package/dist/browser/operations/machineGroups.js +23 -40
  6. package/dist/browser/operations/machineGroups.js.map +1 -1
  7. package/dist/browser/operations/machines.js +111 -196
  8. package/dist/browser/operations/machines.js.map +1 -1
  9. package/dist/browser/operations/maps.js +1 -0
  10. package/dist/browser/operations/maps.js.map +1 -1
  11. package/dist/browser/operations/ports.js +45 -79
  12. package/dist/browser/operations/ports.js.map +1 -1
  13. package/dist/browser/operations/processes.js +45 -79
  14. package/dist/browser/operations/processes.js.map +1 -1
  15. package/dist/browser/operations/summaries.js +1 -0
  16. package/dist/browser/operations/summaries.js.map +1 -1
  17. package/dist/browser/pagingHelper.js +2 -4
  18. package/dist/browser/pagingHelper.js.map +1 -1
  19. package/dist/browser/serviceMap.js +20 -5
  20. package/dist/browser/serviceMap.js.map +1 -1
  21. package/dist/commonjs/models/mappers.js +251 -113
  22. package/dist/commonjs/models/mappers.js.map +1 -1
  23. package/dist/commonjs/operations/clientGroups.js +23 -39
  24. package/dist/commonjs/operations/clientGroups.js.map +1 -1
  25. package/dist/commonjs/operations/machineGroups.js +23 -39
  26. package/dist/commonjs/operations/machineGroups.js.map +1 -1
  27. package/dist/commonjs/operations/machines.js +111 -195
  28. package/dist/commonjs/operations/machines.js.map +1 -1
  29. package/dist/commonjs/operations/maps.js +1 -0
  30. package/dist/commonjs/operations/maps.js.map +1 -1
  31. package/dist/commonjs/operations/ports.js +45 -78
  32. package/dist/commonjs/operations/ports.js.map +1 -1
  33. package/dist/commonjs/operations/processes.js +45 -78
  34. package/dist/commonjs/operations/processes.js.map +1 -1
  35. package/dist/commonjs/operations/summaries.js +1 -0
  36. package/dist/commonjs/operations/summaries.js.map +1 -1
  37. package/dist/commonjs/pagingHelper.js +2 -4
  38. package/dist/commonjs/pagingHelper.js.map +1 -1
  39. package/dist/commonjs/serviceMap.js +20 -5
  40. package/dist/commonjs/serviceMap.js.map +1 -1
  41. package/dist/commonjs/tsdoc-metadata.json +11 -11
  42. package/dist/esm/models/mappers.js +251 -113
  43. package/dist/esm/models/mappers.js.map +1 -1
  44. package/dist/esm/operations/clientGroups.js +23 -40
  45. package/dist/esm/operations/clientGroups.js.map +1 -1
  46. package/dist/esm/operations/machineGroups.js +23 -40
  47. package/dist/esm/operations/machineGroups.js.map +1 -1
  48. package/dist/esm/operations/machines.js +111 -196
  49. package/dist/esm/operations/machines.js.map +1 -1
  50. package/dist/esm/operations/maps.js +1 -0
  51. package/dist/esm/operations/maps.js.map +1 -1
  52. package/dist/esm/operations/ports.js +45 -79
  53. package/dist/esm/operations/ports.js.map +1 -1
  54. package/dist/esm/operations/processes.js +45 -79
  55. package/dist/esm/operations/processes.js.map +1 -1
  56. package/dist/esm/operations/summaries.js +1 -0
  57. package/dist/esm/operations/summaries.js.map +1 -1
  58. package/dist/esm/pagingHelper.js +2 -4
  59. package/dist/esm/pagingHelper.js.map +1 -1
  60. package/dist/esm/serviceMap.js +20 -5
  61. package/dist/esm/serviceMap.js.map +1 -1
  62. package/dist/react-native/models/mappers.js +251 -113
  63. package/dist/react-native/models/mappers.js.map +1 -1
  64. package/dist/react-native/operations/clientGroups.js +23 -40
  65. package/dist/react-native/operations/clientGroups.js.map +1 -1
  66. package/dist/react-native/operations/machineGroups.js +23 -40
  67. package/dist/react-native/operations/machineGroups.js.map +1 -1
  68. package/dist/react-native/operations/machines.js +111 -196
  69. package/dist/react-native/operations/machines.js.map +1 -1
  70. package/dist/react-native/operations/maps.js +1 -0
  71. package/dist/react-native/operations/maps.js.map +1 -1
  72. package/dist/react-native/operations/ports.js +45 -79
  73. package/dist/react-native/operations/ports.js.map +1 -1
  74. package/dist/react-native/operations/processes.js +45 -79
  75. package/dist/react-native/operations/processes.js.map +1 -1
  76. package/dist/react-native/operations/summaries.js +1 -0
  77. package/dist/react-native/operations/summaries.js.map +1 -1
  78. package/dist/react-native/pagingHelper.js +2 -4
  79. package/dist/react-native/pagingHelper.js.map +1 -1
  80. package/dist/react-native/serviceMap.js +20 -5
  81. package/dist/react-native/serviceMap.js.map +1 -1
  82. package/package.json +2 -2
  83. /package/review/{arm-servicemap.api.md → arm-servicemap-node.api.md} +0 -0
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing MachineGroups operations. */
15
14
  export class MachineGroupsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class MachineGroups class.
18
18
  * @param client Reference to the service client
@@ -36,52 +36,35 @@ export class MachineGroupsImpl {
36
36
  return this;
37
37
  },
38
38
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ if (settings?.maxPageSize) {
40
40
  throw new Error("maxPageSize is not supported by this operation.");
41
41
  }
42
42
  return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
43
43
  }
44
44
  };
45
45
  }
46
- listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
47
- return __asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._listByWorkspace(resourceGroupName, workspaceName, options));
52
- let page = result.value || [];
53
- continuationToken = result.nextLink;
54
- setContinuationToken(page, continuationToken);
55
- yield yield __await(page);
56
- }
57
- while (continuationToken) {
58
- result = yield __await(this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._listByWorkspace(resourceGroupName, workspaceName, options);
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield page;
55
+ }
56
+ while (continuationToken) {
57
+ result = await this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
66
- listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
67
- return __asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
70
- for (var _d = true, _e = __asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
71
- _c = _f.value;
72
- _d = false;
73
- const page = _c;
74
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
- }
76
- }
77
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
- finally {
79
- try {
80
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
81
- }
82
- finally { if (e_1) throw e_1.error; }
83
- }
84
- });
64
+ async *listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
65
+ for await (const page of this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)) {
66
+ yield* page;
67
+ }
85
68
  }
86
69
  /**
87
70
  * Returns all machine groups during the specified time interval.
@@ -1 +1 @@
1
- {"version":3,"file":"machineGroups.js","sourceRoot":"","sources":["../../../src/operations/machineGroups.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAAkB;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,eAAe,CACpB,iBAAyB,EACzB,aAAqB,EACrB,OAAoD;QAEpD,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,CACxC,iBAAiB,EACjB,aAAa,EACb,OAAO,CACR,CAAC;QACF,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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,yBAAyB,CACnC,iBAAiB,EACjB,aAAa,EACb,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,yBAAyB,CACtC,iBAAyB,EACzB,aAAqB,EACrB,OAAoD,EACpD,QAAuB;;YAEvB,IAAI,MAA4C,CAAC;YACjD,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,Q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C;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,aAAa;QACxB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;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,aAAa;QACxB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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 { MachineGroups } 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 { ServiceMap } from \"../serviceMap.js\";\nimport {\n MachineGroup,\n MachineGroupsListByWorkspaceNextOptionalParams,\n MachineGroupsListByWorkspaceOptionalParams,\n MachineGroupsListByWorkspaceResponse,\n MachineGroupsCreateOptionalParams,\n MachineGroupsCreateResponse,\n MachineGroupsGetOptionalParams,\n MachineGroupsGetResponse,\n MachineGroupsUpdateOptionalParams,\n MachineGroupsUpdateResponse,\n MachineGroupsDeleteOptionalParams,\n MachineGroupsListByWorkspaceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing MachineGroups operations. */\nexport class MachineGroupsImpl implements MachineGroups {\n private readonly client: ServiceMap;\n\n /**\n * Initialize a new instance of the class MachineGroups class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceMap) {\n this.client = client;\n }\n\n /**\n * Returns all machine groups during the specified time interval.\n * @param resourceGroupName Resource group name within the specified subscriptionId.\n * @param workspaceName OMS workspace containing the resources of interest.\n * @param options The options parameters.\n */\n public listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: MachineGroupsListByWorkspaceOptionalParams\n ): PagedAsyncIterableIterator<MachineGroup> {\n const iter = this.listByWorkspacePagingAll(\n resourceGroupName,\n workspaceName,\n options\n );\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.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByWorkspacePagingPage(\n resourceGroupName: string,\n workspaceName: string,\n options?: MachineGroupsListByWorkspaceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<MachineGroup[]> {\n let result: MachineGroupsListByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByWorkspace(\n resourceGroupName,\n workspaceName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByWorkspaceNext(\n resourceGroupName,\n workspaceName,\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 *listByWorkspacePagingAll(\n resourceGroupName: string,\n workspaceName: string,\n options?: MachineGroupsListByWorkspaceOptionalParams\n ): AsyncIterableIterator<MachineGroup> {\n for await (const page of this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns all machine groups during the specified time interval.\n * @param resourceGroupName Resource group name within the specified subscriptionId.\n * @param workspaceName OMS workspace containing the resources of interest.\n * @param options The options parameters.\n */\n private _listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: MachineGroupsListByWorkspaceOptionalParams\n ): Promise<MachineGroupsListByWorkspaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listByWorkspaceOperationSpec\n );\n }\n\n /**\n * Creates a new machine group.\n * @param resourceGroupName Resource group name within the specified subscriptionId.\n * @param workspaceName OMS workspace containing the resources of interest.\n * @param machineGroup Machine Group resource to create.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n workspaceName: string,\n machineGroup: MachineGroup,\n options?: MachineGroupsCreateOptionalParams\n ): Promise<MachineGroupsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, machineGroup, options },\n createOperationSpec\n );\n }\n\n /**\n * Returns the specified machine group as it existed during the specified time interval.\n * @param resourceGroupName Resource group name within the specified subscriptionId.\n * @param workspaceName OMS workspace containing the resources of interest.\n * @param machineGroupName Machine Group resource name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n machineGroupName: string,\n options?: MachineGroupsGetOptionalParams\n ): Promise<MachineGroupsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, machineGroupName, options },\n getOperationSpec\n );\n }\n\n /**\n * Updates a machine group.\n * @param resourceGroupName Resource group name within the specified subscriptionId.\n * @param workspaceName OMS workspace containing the resources of interest.\n * @param machineGroupName Machine Group resource name.\n * @param machineGroup Machine Group resource to update.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n workspaceName: string,\n machineGroupName: string,\n machineGroup: MachineGroup,\n options?: MachineGroupsUpdateOptionalParams\n ): Promise<MachineGroupsUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n machineGroupName,\n machineGroup,\n options\n },\n updateOperationSpec\n );\n }\n\n /**\n * Deletes the specified Machine Group.\n * @param resourceGroupName Resource group name within the specified subscriptionId.\n * @param workspaceName OMS workspace containing the resources of interest.\n * @param machineGroupName Machine Group resource name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n machineGroupName: string,\n options?: MachineGroupsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, machineGroupName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * ListByWorkspaceNext\n * @param resourceGroupName Resource group name within the specified subscriptionId.\n * @param workspaceName OMS workspace containing the resources of interest.\n * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.\n * @param options The options parameters.\n */\n private _listByWorkspaceNext(\n resourceGroupName: string,\n workspaceName: string,\n nextLink: string,\n options?: MachineGroupsListByWorkspaceNextOptionalParams\n ): Promise<MachineGroupsListByWorkspaceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, nextLink, options },\n listByWorkspaceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machineGroups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MachineGroupCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.startTime,\n Parameters.endTime\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machineGroups\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.MachineGroup\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.machineGroup,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machineGroups/{machineGroupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MachineGroup\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.startTime,\n Parameters.endTime\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.machineGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machineGroups/{machineGroupName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.MachineGroup\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.machineGroup,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.machineGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machineGroups/{machineGroupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\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.workspaceName,\n Parameters.machineGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MachineGroupCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"machineGroups.js","sourceRoot":"","sources":["../../../src/operations/machineGroups.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IACX,MAAM,CAAa;IAEpC;;;OAGG;IACH,YAAY,MAAkB;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,e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AAM,CAAC;IACrC,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 { MachineGroups } 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 { ServiceMap } from \"../serviceMap.js\";\nimport {\n MachineGroup,\n MachineGroupsListByWorkspaceNextOptionalParams,\n MachineGroupsListByWorkspaceOptionalParams,\n MachineGroupsListByWorkspaceResponse,\n MachineGroupsCreateOptionalParams,\n MachineGroupsCreateResponse,\n MachineGroupsGetOptionalParams,\n MachineGroupsGetResponse,\n MachineGroupsUpdateOptionalParams,\n MachineGroupsUpdateResponse,\n MachineGroupsDeleteOptionalParams,\n MachineGroupsListByWorkspaceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing MachineGroups operations. */\nexport class MachineGroupsImpl implements MachineGroups {\n private readonly client: ServiceMap;\n\n /**\n * Initialize a new instance of the class MachineGroups class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceMap) {\n this.client = client;\n }\n\n /**\n * Returns all machine groups during the specified time interval.\n * @param resourceGroupName Resource group name within the specified subscriptionId.\n * @param workspaceName OMS workspace containing the resources of interest.\n * @param options The options parameters.\n */\n public listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: MachineGroupsListByWorkspaceOptionalParams\n ): PagedAsyncIterableIterator<MachineGroup> {\n const iter = this.listByWorkspacePagingAll(\n resourceGroupName,\n workspaceName,\n options\n );\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.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByWorkspacePagingPage(\n resourceGroupName: string,\n workspaceName: string,\n options?: MachineGroupsListByWorkspaceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<MachineGroup[]> {\n let result: MachineGroupsListByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByWorkspace(\n resourceGroupName,\n workspaceName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByWorkspaceNext(\n resourceGroupName,\n workspaceName,\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 *listByWorkspacePagingAll(\n resourceGroupName: string,\n workspaceName: string,\n options?: MachineGroupsListByWorkspaceOptionalParams\n ): AsyncIterableIterator<MachineGroup> {\n for await (const page of this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns all machine groups during the specified time interval.\n * @param resourceGroupName Resource group name within the specified subscriptionId.\n * @param workspaceName OMS workspace containing the resources of interest.\n * @param options The options parameters.\n */\n private _listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: MachineGroupsListByWorkspaceOptionalParams\n ): Promise<MachineGroupsListByWorkspaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listByWorkspaceOperationSpec\n );\n }\n\n /**\n * Creates a new machine group.\n * @param resourceGroupName Resource group name within the specified subscriptionId.\n * @param workspaceName OMS workspace containing the resources of interest.\n * @param machineGroup Machine Group resource to create.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n workspaceName: string,\n machineGroup: MachineGroup,\n options?: MachineGroupsCreateOptionalParams\n ): Promise<MachineGroupsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, machineGroup, options },\n createOperationSpec\n );\n }\n\n /**\n * Returns the specified machine group as it existed during the specified time interval.\n * @param resourceGroupName Resource group name within the specified subscriptionId.\n * @param workspaceName OMS workspace containing the resources of interest.\n * @param machineGroupName Machine Group resource name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n machineGroupName: string,\n options?: MachineGroupsGetOptionalParams\n ): Promise<MachineGroupsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, machineGroupName, options },\n getOperationSpec\n );\n }\n\n /**\n * Updates a machine group.\n * @param resourceGroupName Resource group name within the specified subscriptionId.\n * @param workspaceName OMS workspace containing the resources of interest.\n * @param machineGroupName Machine Group resource name.\n * @param machineGroup Machine Group resource to update.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n workspaceName: string,\n machineGroupName: string,\n machineGroup: MachineGroup,\n options?: MachineGroupsUpdateOptionalParams\n ): Promise<MachineGroupsUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n workspaceName,\n machineGroupName,\n machineGroup,\n options\n },\n updateOperationSpec\n );\n }\n\n /**\n * Deletes the specified Machine Group.\n * @param resourceGroupName Resource group name within the specified subscriptionId.\n * @param workspaceName OMS workspace containing the resources of interest.\n * @param machineGroupName Machine Group resource name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n machineGroupName: string,\n options?: MachineGroupsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, machineGroupName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * ListByWorkspaceNext\n * @param resourceGroupName Resource group name within the specified subscriptionId.\n * @param workspaceName OMS workspace containing the resources of interest.\n * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.\n * @param options The options parameters.\n */\n private _listByWorkspaceNext(\n resourceGroupName: string,\n workspaceName: string,\n nextLink: string,\n options?: MachineGroupsListByWorkspaceNextOptionalParams\n ): Promise<MachineGroupsListByWorkspaceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, nextLink, options },\n listByWorkspaceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machineGroups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MachineGroupCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.startTime,\n Parameters.endTime\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machineGroups\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.MachineGroup\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.machineGroup,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machineGroups/{machineGroupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MachineGroup\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.startTime,\n Parameters.endTime\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.machineGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machineGroups/{machineGroupName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.MachineGroup\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.machineGroup,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.machineGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machineGroups/{machineGroupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\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.workspaceName,\n Parameters.machineGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MachineGroupCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing Machines operations. */
15
14
  export class MachinesImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class Machines class.
18
18
  * @param client Reference to the service client
@@ -39,52 +39,35 @@ export class MachinesImpl {
39
39
  return this;
40
40
  },
41
41
  byPage: (settings) => {
42
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ if (settings?.maxPageSize) {
43
43
  throw new Error("maxPageSize is not supported by this operation.");
44
44
  }
45
45
  return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
46
46
  }
47
47
  };
48
48
  }
49
- listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
50
- return __asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
51
- let result;
52
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
- if (!continuationToken) {
54
- result = yield __await(this._listByWorkspace(resourceGroupName, workspaceName, options));
55
- let page = result.value || [];
56
- continuationToken = result.nextLink;
57
- setContinuationToken(page, continuationToken);
58
- yield yield __await(page);
59
- }
60
- while (continuationToken) {
61
- result = yield __await(this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options));
62
- continuationToken = result.nextLink;
63
- let page = result.value || [];
64
- setContinuationToken(page, continuationToken);
65
- yield yield __await(page);
66
- }
67
- });
49
+ async *listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
50
+ let result;
51
+ let continuationToken = settings?.continuationToken;
52
+ if (!continuationToken) {
53
+ result = await this._listByWorkspace(resourceGroupName, workspaceName, options);
54
+ let page = result.value || [];
55
+ continuationToken = result.nextLink;
56
+ setContinuationToken(page, continuationToken);
57
+ yield page;
58
+ }
59
+ while (continuationToken) {
60
+ result = await this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options);
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ setContinuationToken(page, continuationToken);
64
+ yield page;
65
+ }
68
66
  }
69
- listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
70
- return __asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
71
- var _a, e_1, _b, _c;
72
- try {
73
- for (var _d = true, _e = __asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
74
- _c = _f.value;
75
- _d = false;
76
- const page = _c;
77
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
78
- }
79
- }
80
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
- finally {
82
- try {
83
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
84
- }
85
- finally { if (e_1) throw e_1.error; }
86
- }
87
- });
67
+ async *listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
68
+ for await (const page of this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)) {
69
+ yield* page;
70
+ }
88
71
  }
89
72
  /**
90
73
  * Returns a collection of connections terminating or originating at the specified machine
@@ -103,52 +86,35 @@ export class MachinesImpl {
103
86
  return this;
104
87
  },
105
88
  byPage: (settings) => {
106
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
89
+ if (settings?.maxPageSize) {
107
90
  throw new Error("maxPageSize is not supported by this operation.");
108
91
  }
109
92
  return this.listConnectionsPagingPage(resourceGroupName, workspaceName, machineName, options, settings);
110
93
  }
111
94
  };
112
95
  }
113
- listConnectionsPagingPage(resourceGroupName, workspaceName, machineName, options, settings) {
114
- return __asyncGenerator(this, arguments, function* listConnectionsPagingPage_1() {
115
- let result;
116
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
117
- if (!continuationToken) {
118
- result = yield __await(this._listConnections(resourceGroupName, workspaceName, machineName, options));
119
- let page = result.value || [];
120
- continuationToken = result.nextLink;
121
- setContinuationToken(page, continuationToken);
122
- yield yield __await(page);
123
- }
124
- while (continuationToken) {
125
- result = yield __await(this._listConnectionsNext(resourceGroupName, workspaceName, machineName, continuationToken, options));
126
- continuationToken = result.nextLink;
127
- let page = result.value || [];
128
- setContinuationToken(page, continuationToken);
129
- yield yield __await(page);
130
- }
131
- });
96
+ async *listConnectionsPagingPage(resourceGroupName, workspaceName, machineName, options, settings) {
97
+ let result;
98
+ let continuationToken = settings?.continuationToken;
99
+ if (!continuationToken) {
100
+ result = await this._listConnections(resourceGroupName, workspaceName, machineName, options);
101
+ let page = result.value || [];
102
+ continuationToken = result.nextLink;
103
+ setContinuationToken(page, continuationToken);
104
+ yield page;
105
+ }
106
+ while (continuationToken) {
107
+ result = await this._listConnectionsNext(resourceGroupName, workspaceName, machineName, continuationToken, options);
108
+ continuationToken = result.nextLink;
109
+ let page = result.value || [];
110
+ setContinuationToken(page, continuationToken);
111
+ yield page;
112
+ }
132
113
  }
133
- listConnectionsPagingAll(resourceGroupName, workspaceName, machineName, options) {
134
- return __asyncGenerator(this, arguments, function* listConnectionsPagingAll_1() {
135
- var _a, e_2, _b, _c;
136
- try {
137
- for (var _d = true, _e = __asyncValues(this.listConnectionsPagingPage(resourceGroupName, workspaceName, machineName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
138
- _c = _f.value;
139
- _d = false;
140
- const page = _c;
141
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
142
- }
143
- }
144
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
145
- finally {
146
- try {
147
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
148
- }
149
- finally { if (e_2) throw e_2.error; }
150
- }
151
- });
114
+ async *listConnectionsPagingAll(resourceGroupName, workspaceName, machineName, options) {
115
+ for await (const page of this.listConnectionsPagingPage(resourceGroupName, workspaceName, machineName, options)) {
116
+ yield* page;
117
+ }
152
118
  }
153
119
  /**
154
120
  * Returns a collection of processes on the specified machine matching the specified conditions. The
@@ -171,52 +137,35 @@ export class MachinesImpl {
171
137
  return this;
172
138
  },
173
139
  byPage: (settings) => {
174
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
140
+ if (settings?.maxPageSize) {
175
141
  throw new Error("maxPageSize is not supported by this operation.");
176
142
  }
177
143
  return this.listProcessesPagingPage(resourceGroupName, workspaceName, machineName, options, settings);
178
144
  }
179
145
  };
180
146
  }
181
- listProcessesPagingPage(resourceGroupName, workspaceName, machineName, options, settings) {
182
- return __asyncGenerator(this, arguments, function* listProcessesPagingPage_1() {
183
- let result;
184
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
185
- if (!continuationToken) {
186
- result = yield __await(this._listProcesses(resourceGroupName, workspaceName, machineName, options));
187
- let page = result.value || [];
188
- continuationToken = result.nextLink;
189
- setContinuationToken(page, continuationToken);
190
- yield yield __await(page);
191
- }
192
- while (continuationToken) {
193
- result = yield __await(this._listProcessesNext(resourceGroupName, workspaceName, machineName, continuationToken, options));
194
- continuationToken = result.nextLink;
195
- let page = result.value || [];
196
- setContinuationToken(page, continuationToken);
197
- yield yield __await(page);
198
- }
199
- });
147
+ async *listProcessesPagingPage(resourceGroupName, workspaceName, machineName, options, settings) {
148
+ let result;
149
+ let continuationToken = settings?.continuationToken;
150
+ if (!continuationToken) {
151
+ result = await this._listProcesses(resourceGroupName, workspaceName, machineName, options);
152
+ let page = result.value || [];
153
+ continuationToken = result.nextLink;
154
+ setContinuationToken(page, continuationToken);
155
+ yield page;
156
+ }
157
+ while (continuationToken) {
158
+ result = await this._listProcessesNext(resourceGroupName, workspaceName, machineName, continuationToken, options);
159
+ continuationToken = result.nextLink;
160
+ let page = result.value || [];
161
+ setContinuationToken(page, continuationToken);
162
+ yield page;
163
+ }
200
164
  }
201
- listProcessesPagingAll(resourceGroupName, workspaceName, machineName, options) {
202
- return __asyncGenerator(this, arguments, function* listProcessesPagingAll_1() {
203
- var _a, e_3, _b, _c;
204
- try {
205
- for (var _d = true, _e = __asyncValues(this.listProcessesPagingPage(resourceGroupName, workspaceName, machineName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
206
- _c = _f.value;
207
- _d = false;
208
- const page = _c;
209
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
210
- }
211
- }
212
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
213
- finally {
214
- try {
215
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
216
- }
217
- finally { if (e_3) throw e_3.error; }
218
- }
219
- });
165
+ async *listProcessesPagingAll(resourceGroupName, workspaceName, machineName, options) {
166
+ for await (const page of this.listProcessesPagingPage(resourceGroupName, workspaceName, machineName, options)) {
167
+ yield* page;
168
+ }
220
169
  }
221
170
  /**
222
171
  * Returns a collection of live ports on the specified machine during the specified time interval.
@@ -235,52 +184,35 @@ export class MachinesImpl {
235
184
  return this;
236
185
  },
237
186
  byPage: (settings) => {
238
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
187
+ if (settings?.maxPageSize) {
239
188
  throw new Error("maxPageSize is not supported by this operation.");
240
189
  }
241
190
  return this.listPortsPagingPage(resourceGroupName, workspaceName, machineName, options, settings);
242
191
  }
243
192
  };
244
193
  }
245
- listPortsPagingPage(resourceGroupName, workspaceName, machineName, options, settings) {
246
- return __asyncGenerator(this, arguments, function* listPortsPagingPage_1() {
247
- let result;
248
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
249
- if (!continuationToken) {
250
- result = yield __await(this._listPorts(resourceGroupName, workspaceName, machineName, options));
251
- let page = result.value || [];
252
- continuationToken = result.nextLink;
253
- setContinuationToken(page, continuationToken);
254
- yield yield __await(page);
255
- }
256
- while (continuationToken) {
257
- result = yield __await(this._listPortsNext(resourceGroupName, workspaceName, machineName, continuationToken, options));
258
- continuationToken = result.nextLink;
259
- let page = result.value || [];
260
- setContinuationToken(page, continuationToken);
261
- yield yield __await(page);
262
- }
263
- });
194
+ async *listPortsPagingPage(resourceGroupName, workspaceName, machineName, options, settings) {
195
+ let result;
196
+ let continuationToken = settings?.continuationToken;
197
+ if (!continuationToken) {
198
+ result = await this._listPorts(resourceGroupName, workspaceName, machineName, options);
199
+ let page = result.value || [];
200
+ continuationToken = result.nextLink;
201
+ setContinuationToken(page, continuationToken);
202
+ yield page;
203
+ }
204
+ while (continuationToken) {
205
+ result = await this._listPortsNext(resourceGroupName, workspaceName, machineName, continuationToken, options);
206
+ continuationToken = result.nextLink;
207
+ let page = result.value || [];
208
+ setContinuationToken(page, continuationToken);
209
+ yield page;
210
+ }
264
211
  }
265
- listPortsPagingAll(resourceGroupName, workspaceName, machineName, options) {
266
- return __asyncGenerator(this, arguments, function* listPortsPagingAll_1() {
267
- var _a, e_4, _b, _c;
268
- try {
269
- for (var _d = true, _e = __asyncValues(this.listPortsPagingPage(resourceGroupName, workspaceName, machineName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
270
- _c = _f.value;
271
- _d = false;
272
- const page = _c;
273
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
274
- }
275
- }
276
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
277
- finally {
278
- try {
279
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
280
- }
281
- finally { if (e_4) throw e_4.error; }
282
- }
283
- });
212
+ async *listPortsPagingAll(resourceGroupName, workspaceName, machineName, options) {
213
+ for await (const page of this.listPortsPagingPage(resourceGroupName, workspaceName, machineName, options)) {
214
+ yield* page;
215
+ }
284
216
  }
285
217
  /**
286
218
  * Returns a collection of machine groups this machine belongs to during the specified time interval.
@@ -299,52 +231,35 @@ export class MachinesImpl {
299
231
  return this;
300
232
  },
301
233
  byPage: (settings) => {
302
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
234
+ if (settings?.maxPageSize) {
303
235
  throw new Error("maxPageSize is not supported by this operation.");
304
236
  }
305
237
  return this.listMachineGroupMembershipPagingPage(resourceGroupName, workspaceName, machineName, options, settings);
306
238
  }
307
239
  };
308
240
  }
309
- listMachineGroupMembershipPagingPage(resourceGroupName, workspaceName, machineName, options, settings) {
310
- return __asyncGenerator(this, arguments, function* listMachineGroupMembershipPagingPage_1() {
311
- let result;
312
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
313
- if (!continuationToken) {
314
- result = yield __await(this._listMachineGroupMembership(resourceGroupName, workspaceName, machineName, options));
315
- let page = result.value || [];
316
- continuationToken = result.nextLink;
317
- setContinuationToken(page, continuationToken);
318
- yield yield __await(page);
319
- }
320
- while (continuationToken) {
321
- result = yield __await(this._listMachineGroupMembershipNext(resourceGroupName, workspaceName, machineName, continuationToken, options));
322
- continuationToken = result.nextLink;
323
- let page = result.value || [];
324
- setContinuationToken(page, continuationToken);
325
- yield yield __await(page);
326
- }
327
- });
241
+ async *listMachineGroupMembershipPagingPage(resourceGroupName, workspaceName, machineName, options, settings) {
242
+ let result;
243
+ let continuationToken = settings?.continuationToken;
244
+ if (!continuationToken) {
245
+ result = await this._listMachineGroupMembership(resourceGroupName, workspaceName, machineName, options);
246
+ let page = result.value || [];
247
+ continuationToken = result.nextLink;
248
+ setContinuationToken(page, continuationToken);
249
+ yield page;
250
+ }
251
+ while (continuationToken) {
252
+ result = await this._listMachineGroupMembershipNext(resourceGroupName, workspaceName, machineName, continuationToken, options);
253
+ continuationToken = result.nextLink;
254
+ let page = result.value || [];
255
+ setContinuationToken(page, continuationToken);
256
+ yield page;
257
+ }
328
258
  }
329
- listMachineGroupMembershipPagingAll(resourceGroupName, workspaceName, machineName, options) {
330
- return __asyncGenerator(this, arguments, function* listMachineGroupMembershipPagingAll_1() {
331
- var _a, e_5, _b, _c;
332
- try {
333
- for (var _d = true, _e = __asyncValues(this.listMachineGroupMembershipPagingPage(resourceGroupName, workspaceName, machineName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
334
- _c = _f.value;
335
- _d = false;
336
- const page = _c;
337
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
338
- }
339
- }
340
- catch (e_5_1) { e_5 = { error: e_5_1 }; }
341
- finally {
342
- try {
343
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
344
- }
345
- finally { if (e_5) throw e_5.error; }
346
- }
347
- });
259
+ async *listMachineGroupMembershipPagingAll(resourceGroupName, workspaceName, machineName, options) {
260
+ for await (const page of this.listMachineGroupMembershipPagingPage(resourceGroupName, workspaceName, machineName, options)) {
261
+ yield* page;
262
+ }
348
263
  }
349
264
  /**
350
265
  * Returns a collection of machines matching the specified conditions. The returned collection