@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.
- package/dist/browser/models/mappers.js +251 -113
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/clientGroups.js +23 -40
- package/dist/browser/operations/clientGroups.js.map +1 -1
- package/dist/browser/operations/machineGroups.js +23 -40
- package/dist/browser/operations/machineGroups.js.map +1 -1
- package/dist/browser/operations/machines.js +111 -196
- package/dist/browser/operations/machines.js.map +1 -1
- package/dist/browser/operations/maps.js +1 -0
- package/dist/browser/operations/maps.js.map +1 -1
- package/dist/browser/operations/ports.js +45 -79
- package/dist/browser/operations/ports.js.map +1 -1
- package/dist/browser/operations/processes.js +45 -79
- package/dist/browser/operations/processes.js.map +1 -1
- package/dist/browser/operations/summaries.js +1 -0
- package/dist/browser/operations/summaries.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/serviceMap.js +20 -5
- package/dist/browser/serviceMap.js.map +1 -1
- package/dist/commonjs/models/mappers.js +251 -113
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/clientGroups.js +23 -39
- package/dist/commonjs/operations/clientGroups.js.map +1 -1
- package/dist/commonjs/operations/machineGroups.js +23 -39
- package/dist/commonjs/operations/machineGroups.js.map +1 -1
- package/dist/commonjs/operations/machines.js +111 -195
- package/dist/commonjs/operations/machines.js.map +1 -1
- package/dist/commonjs/operations/maps.js +1 -0
- package/dist/commonjs/operations/maps.js.map +1 -1
- package/dist/commonjs/operations/ports.js +45 -78
- package/dist/commonjs/operations/ports.js.map +1 -1
- package/dist/commonjs/operations/processes.js +45 -78
- package/dist/commonjs/operations/processes.js.map +1 -1
- package/dist/commonjs/operations/summaries.js +1 -0
- package/dist/commonjs/operations/summaries.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/serviceMap.js +20 -5
- package/dist/commonjs/serviceMap.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/models/mappers.js +251 -113
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/clientGroups.js +23 -40
- package/dist/esm/operations/clientGroups.js.map +1 -1
- package/dist/esm/operations/machineGroups.js +23 -40
- package/dist/esm/operations/machineGroups.js.map +1 -1
- package/dist/esm/operations/machines.js +111 -196
- package/dist/esm/operations/machines.js.map +1 -1
- package/dist/esm/operations/maps.js +1 -0
- package/dist/esm/operations/maps.js.map +1 -1
- package/dist/esm/operations/ports.js +45 -79
- package/dist/esm/operations/ports.js.map +1 -1
- package/dist/esm/operations/processes.js +45 -79
- package/dist/esm/operations/processes.js.map +1 -1
- package/dist/esm/operations/summaries.js +1 -0
- package/dist/esm/operations/summaries.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/serviceMap.js +20 -5
- package/dist/esm/serviceMap.js.map +1 -1
- package/dist/react-native/models/mappers.js +251 -113
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/clientGroups.js +23 -40
- package/dist/react-native/operations/clientGroups.js.map +1 -1
- package/dist/react-native/operations/machineGroups.js +23 -40
- package/dist/react-native/operations/machineGroups.js.map +1 -1
- package/dist/react-native/operations/machines.js +111 -196
- package/dist/react-native/operations/machines.js.map +1 -1
- package/dist/react-native/operations/maps.js +1 -0
- package/dist/react-native/operations/maps.js.map +1 -1
- package/dist/react-native/operations/ports.js +45 -79
- package/dist/react-native/operations/ports.js.map +1 -1
- package/dist/react-native/operations/processes.js +45 -79
- package/dist/react-native/operations/processes.js.map +1 -1
- package/dist/react-native/operations/summaries.js +1 -0
- package/dist/react-native/operations/summaries.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/serviceMap.js +20 -5
- package/dist/react-native/serviceMap.js.map +1 -1
- package/package.json +2 -2
- /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
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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,IAA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,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,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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,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"]}
|
|
@@ -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
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
|
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
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
|
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
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
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
|
-
|
|
203
|
-
|
|
204
|
-
|
|
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
|
|
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
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
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
|
-
|
|
267
|
-
|
|
268
|
-
|
|
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
|
|
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
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
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
|
-
|
|
331
|
-
|
|
332
|
-
|
|
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
|