@azure/arm-servicemap 2.3.1 → 3.0.0-beta.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/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -93
- package/dist/index.js +4469 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/smClientGroupsGet.d.ts +2 -0
- package/dist-esm/samples-dev/smClientGroupsGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smClientGroupsGet.js +35 -0
- package/dist-esm/samples-dev/smClientGroupsGet.js.map +1 -0
- package/dist-esm/samples-dev/smClientGroupsGetMembersCountGet.d.ts +2 -0
- package/dist-esm/samples-dev/smClientGroupsGetMembersCountGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smClientGroupsGetMembersCountGet.js +35 -0
- package/dist-esm/samples-dev/smClientGroupsGetMembersCountGet.js.map +1 -0
- package/dist-esm/samples-dev/smClientGroupsListMembersGet.d.ts +2 -0
- package/dist-esm/samples-dev/smClientGroupsListMembersGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smClientGroupsListMembersGet.js +49 -0
- package/dist-esm/samples-dev/smClientGroupsListMembersGet.js.map +1 -0
- package/dist-esm/samples-dev/smMachineGroupsCreatePost.d.ts +2 -0
- package/dist-esm/samples-dev/smMachineGroupsCreatePost.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachineGroupsCreatePost.js +43 -0
- package/dist-esm/samples-dev/smMachineGroupsCreatePost.js.map +1 -0
- package/dist-esm/samples-dev/smMachineGroupsDelete.d.ts +2 -0
- package/dist-esm/samples-dev/smMachineGroupsDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachineGroupsDelete.js +32 -0
- package/dist-esm/samples-dev/smMachineGroupsDelete.js.map +1 -0
- package/dist-esm/samples-dev/smMachineGroupsGet.d.ts +2 -0
- package/dist-esm/samples-dev/smMachineGroupsGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachineGroupsGet.js +32 -0
- package/dist-esm/samples-dev/smMachineGroupsGet.js.map +1 -0
- package/dist-esm/samples-dev/smMachineGroupsListByWorkspaceGet.d.ts +2 -0
- package/dist-esm/samples-dev/smMachineGroupsListByWorkspaceGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachineGroupsListByWorkspaceGet.js +48 -0
- package/dist-esm/samples-dev/smMachineGroupsListByWorkspaceGet.js.map +1 -0
- package/dist-esm/samples-dev/smMachineGroupsUpdatePut.d.ts +2 -0
- package/dist-esm/samples-dev/smMachineGroupsUpdatePut.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachineGroupsUpdatePut.js +44 -0
- package/dist-esm/samples-dev/smMachineGroupsUpdatePut.js.map +1 -0
- package/dist-esm/samples-dev/smMachinesGet.d.ts +2 -0
- package/dist-esm/samples-dev/smMachinesGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachinesGet.js +34 -0
- package/dist-esm/samples-dev/smMachinesGet.js.map +1 -0
- package/dist-esm/samples-dev/smMachinesGetLivenessGet.d.ts +2 -0
- package/dist-esm/samples-dev/smMachinesGetLivenessGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachinesGetLivenessGet.js +35 -0
- package/dist-esm/samples-dev/smMachinesGetLivenessGet.js.map +1 -0
- package/dist-esm/samples-dev/smMachinesListByWorkspaceGet.d.ts +2 -0
- package/dist-esm/samples-dev/smMachinesListByWorkspaceGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachinesListByWorkspaceGet.js +48 -0
- package/dist-esm/samples-dev/smMachinesListByWorkspaceGet.js.map +1 -0
- package/dist-esm/samples-dev/smMachinesListConnectionsGet.d.ts +2 -0
- package/dist-esm/samples-dev/smMachinesListConnectionsGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachinesListConnectionsGet.js +49 -0
- package/dist-esm/samples-dev/smMachinesListConnectionsGet.js.map +1 -0
- package/dist-esm/samples-dev/smMachinesListMachineGroupMembershipGet.d.ts +2 -0
- package/dist-esm/samples-dev/smMachinesListMachineGroupMembershipGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachinesListMachineGroupMembershipGet.js +49 -0
- package/dist-esm/samples-dev/smMachinesListMachineGroupMembershipGet.js.map +1 -0
- package/dist-esm/samples-dev/smMachinesListPortsGet.d.ts +2 -0
- package/dist-esm/samples-dev/smMachinesListPortsGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachinesListPortsGet.js +49 -0
- package/dist-esm/samples-dev/smMachinesListPortsGet.js.map +1 -0
- package/dist-esm/samples-dev/smMachinesListProcessesGet.d.ts +2 -0
- package/dist-esm/samples-dev/smMachinesListProcessesGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachinesListProcessesGet.js +49 -0
- package/dist-esm/samples-dev/smMachinesListProcessesGet.js.map +1 -0
- package/dist-esm/samples-dev/smMachinesPortsGet.d.ts +2 -0
- package/dist-esm/samples-dev/smMachinesPortsGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachinesPortsGet.js +36 -0
- package/dist-esm/samples-dev/smMachinesPortsGet.js.map +1 -0
- package/dist-esm/samples-dev/smMachinesPortsGetLivenessGet.d.ts +2 -0
- package/dist-esm/samples-dev/smMachinesPortsGetLivenessGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachinesPortsGetLivenessGet.js +36 -0
- package/dist-esm/samples-dev/smMachinesPortsGetLivenessGet.js.map +1 -0
- package/dist-esm/samples-dev/smMachinesPortsListAcceptingProcessesGet.d.ts +2 -0
- package/dist-esm/samples-dev/smMachinesPortsListAcceptingProcessesGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachinesPortsListAcceptingProcessesGet.js +50 -0
- package/dist-esm/samples-dev/smMachinesPortsListAcceptingProcessesGet.js.map +1 -0
- package/dist-esm/samples-dev/smMachinesPortsListConnectionsGet.d.ts +2 -0
- package/dist-esm/samples-dev/smMachinesPortsListConnectionsGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachinesPortsListConnectionsGet.js +50 -0
- package/dist-esm/samples-dev/smMachinesPortsListConnectionsGet.js.map +1 -0
- package/dist-esm/samples-dev/smMachinesProcessesGet.d.ts +2 -0
- package/dist-esm/samples-dev/smMachinesProcessesGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachinesProcessesGet.js +35 -0
- package/dist-esm/samples-dev/smMachinesProcessesGet.js.map +1 -0
- package/dist-esm/samples-dev/smMachinesProcessesGetLivenessGet.d.ts +2 -0
- package/dist-esm/samples-dev/smMachinesProcessesGetLivenessGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachinesProcessesGetLivenessGet.js +36 -0
- package/dist-esm/samples-dev/smMachinesProcessesGetLivenessGet.js.map +1 -0
- package/dist-esm/samples-dev/smMachinesProcessesListAcceptingPortsGet.d.ts +2 -0
- package/dist-esm/samples-dev/smMachinesProcessesListAcceptingPortsGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachinesProcessesListAcceptingPortsGet.js +50 -0
- package/dist-esm/samples-dev/smMachinesProcessesListAcceptingPortsGet.js.map +1 -0
- package/dist-esm/samples-dev/smMachinesProcessesListConnectionsGet.d.ts +2 -0
- package/dist-esm/samples-dev/smMachinesProcessesListConnectionsGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMachinesProcessesListConnectionsGet.js +50 -0
- package/dist-esm/samples-dev/smMachinesProcessesListConnectionsGet.js.map +1 -0
- package/dist-esm/samples-dev/smMapsGenerateMachineGroupDependencyPost.d.ts +2 -0
- package/dist-esm/samples-dev/smMapsGenerateMachineGroupDependencyPost.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMapsGenerateMachineGroupDependencyPost.js +38 -0
- package/dist-esm/samples-dev/smMapsGenerateMachineGroupDependencyPost.js.map +1 -0
- package/dist-esm/samples-dev/smMapsGenerateMachineListDependencyPost.d.ts +2 -0
- package/dist-esm/samples-dev/smMapsGenerateMachineListDependencyPost.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMapsGenerateMachineListDependencyPost.js +41 -0
- package/dist-esm/samples-dev/smMapsGenerateMachineListDependencyPost.js.map +1 -0
- package/dist-esm/samples-dev/smMapsGenerateSingleMachineDependencyPost.d.ts +2 -0
- package/dist-esm/samples-dev/smMapsGenerateSingleMachineDependencyPost.d.ts.map +1 -0
- package/dist-esm/samples-dev/smMapsGenerateSingleMachineDependencyPost.js +37 -0
- package/dist-esm/samples-dev/smMapsGenerateSingleMachineDependencyPost.js.map +1 -0
- package/dist-esm/samples-dev/smSummariesGetMachinesGet.d.ts +2 -0
- package/dist-esm/samples-dev/smSummariesGetMachinesGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/smSummariesGetMachinesGet.js +34 -0
- package/dist-esm/samples-dev/smSummariesGetMachinesGet.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1126 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +58 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +91 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1004 -1051
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +22 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +124 -108
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/clientGroups.d.ts +57 -0
- package/dist-esm/src/operations/clientGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/clientGroups.js +224 -0
- package/dist-esm/src/operations/clientGroups.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/machineGroups.d.ts +71 -0
- package/dist-esm/src/operations/machineGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/machineGroups.js +285 -0
- package/dist-esm/src/operations/machineGroups.js.map +1 -0
- package/dist-esm/src/operations/machines.d.ts +177 -0
- package/dist-esm/src/operations/machines.d.ts.map +1 -0
- package/dist-esm/src/operations/machines.js +738 -0
- package/dist-esm/src/operations/machines.js.map +1 -0
- package/dist-esm/src/operations/maps.d.ts +21 -0
- package/dist-esm/src/operations/maps.d.ts.map +1 -0
- package/dist-esm/src/operations/maps.js +56 -0
- package/dist-esm/src/operations/maps.js.map +1 -0
- package/dist-esm/src/operations/ports.d.ts +93 -0
- package/dist-esm/src/operations/ports.d.ts.map +1 -0
- package/dist-esm/src/operations/ports.js +376 -0
- package/dist-esm/src/operations/ports.js.map +1 -0
- package/dist-esm/src/operations/processes.d.ts +92 -0
- package/dist-esm/src/operations/processes.d.ts.map +1 -0
- package/dist-esm/src/operations/processes.js +371 -0
- package/dist-esm/src/operations/processes.js.map +1 -0
- package/dist-esm/src/operations/summaries.d.ts +20 -0
- package/dist-esm/src/operations/summaries.d.ts.map +1 -0
- package/dist-esm/src/operations/summaries.js +57 -0
- package/dist-esm/src/operations/summaries.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clientGroups.d.ts +30 -0
- package/dist-esm/src/operationsInterfaces/clientGroups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/clientGroups.js +9 -0
- package/dist-esm/src/operationsInterfaces/clientGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +15 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/machineGroups.d.ts +46 -0
- package/dist-esm/src/operationsInterfaces/machineGroups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/machineGroups.js +9 -0
- package/dist-esm/src/operationsInterfaces/machineGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/machines.d.ts +68 -0
- package/dist-esm/src/operationsInterfaces/machines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/machines.js +9 -0
- package/dist-esm/src/operationsInterfaces/machines.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/maps.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/maps.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/maps.js +9 -0
- package/dist-esm/src/operationsInterfaces/maps.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/ports.d.ts +43 -0
- package/dist-esm/src/operationsInterfaces/ports.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/ports.js +9 -0
- package/dist-esm/src/operationsInterfaces/ports.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/processes.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/processes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/processes.js +9 -0
- package/dist-esm/src/operationsInterfaces/processes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/summaries.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/summaries.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/summaries.js +9 -0
- package/dist-esm/src/operationsInterfaces/summaries.js.map +1 -0
- package/dist-esm/src/serviceMap.d.ts +24 -0
- package/dist-esm/src/serviceMap.d.ts.map +1 -0
- package/dist-esm/src/serviceMap.js +57 -0
- package/dist-esm/src/serviceMap.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +75 -33
- package/review/arm-servicemap.api.md +1034 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/models/index.ts +1135 -2551
- package/src/models/mappers.ts +1115 -1150
- package/src/models/parameters.ts +151 -109
- package/src/operations/clientGroups.ts +208 -170
- package/src/operations/index.ts +3 -5
- package/src/operations/machineGroups.ts +236 -254
- package/src/operations/machines.ts +752 -460
- package/src/operations/maps.ts +43 -64
- package/src/operations/ports.ts +367 -234
- package/src/operations/processes.ts +362 -232
- package/src/operations/summaries.ts +43 -56
- package/src/operationsInterfaces/clientGroups.ts +61 -0
- package/src/operationsInterfaces/index.ts +15 -0
- package/src/operationsInterfaces/machineGroups.ts +90 -0
- package/src/operationsInterfaces/machines.ts +126 -0
- package/src/operationsInterfaces/maps.ts +30 -0
- package/src/operationsInterfaces/ports.ts +85 -0
- package/src/operationsInterfaces/processes.ts +84 -0
- package/src/operationsInterfaces/summaries.ts +27 -0
- package/src/serviceMap.ts +103 -0
- package/tsconfig.json +5 -4
- package/types/arm-servicemap.d.ts +1556 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-servicemap.js +0 -4238
- package/dist/arm-servicemap.js.map +0 -1
- package/dist/arm-servicemap.min.js +0 -1
- package/dist/arm-servicemap.min.js.map +0 -1
- package/esm/models/clientGroupsMappers.d.ts +0 -2
- package/esm/models/clientGroupsMappers.d.ts.map +0 -1
- package/esm/models/clientGroupsMappers.js +0 -9
- package/esm/models/clientGroupsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -2596
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/machineGroupsMappers.d.ts +0 -2
- package/esm/models/machineGroupsMappers.d.ts.map +0 -1
- package/esm/models/machineGroupsMappers.js +0 -9
- package/esm/models/machineGroupsMappers.js.map +0 -1
- package/esm/models/machinesMappers.d.ts +0 -2
- package/esm/models/machinesMappers.d.ts.map +0 -1
- package/esm/models/machinesMappers.js +0 -9
- package/esm/models/machinesMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -91
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/mapsMappers.d.ts +0 -2
- package/esm/models/mapsMappers.d.ts.map +0 -1
- package/esm/models/mapsMappers.js +0 -9
- package/esm/models/mapsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -18
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/portsMappers.d.ts +0 -2
- package/esm/models/portsMappers.d.ts.map +0 -1
- package/esm/models/portsMappers.js +0 -9
- package/esm/models/portsMappers.js.map +0 -1
- package/esm/models/processesMappers.d.ts +0 -2
- package/esm/models/processesMappers.d.ts.map +0 -1
- package/esm/models/processesMappers.js +0 -9
- package/esm/models/processesMappers.js.map +0 -1
- package/esm/models/summariesMappers.d.ts +0 -2
- package/esm/models/summariesMappers.d.ts.map +0 -1
- package/esm/models/summariesMappers.js +0 -9
- package/esm/models/summariesMappers.js.map +0 -1
- package/esm/operations/clientGroups.d.ts +0 -103
- package/esm/operations/clientGroups.d.ts.map +0 -1
- package/esm/operations/clientGroups.js +0 -159
- package/esm/operations/clientGroups.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/machineGroups.d.ts +0 -151
- package/esm/operations/machineGroups.d.ts.map +0 -1
- package/esm/operations/machineGroups.js +0 -227
- package/esm/operations/machineGroups.js.map +0 -1
- package/esm/operations/machines.d.ts +0 -284
- package/esm/operations/machines.d.ts.map +0 -1
- package/esm/operations/machines.js +0 -404
- package/esm/operations/machines.js.map +0 -1
- package/esm/operations/maps.d.ts +0 -37
- package/esm/operations/maps.d.ts.map +0 -1
- package/esm/operations/maps.js +0 -64
- package/esm/operations/maps.js.map +0 -1
- package/esm/operations/ports.d.ts +0 -158
- package/esm/operations/ports.d.ts.map +0 -1
- package/esm/operations/ports.js +0 -227
- package/esm/operations/ports.js.map +0 -1
- package/esm/operations/processes.d.ts +0 -157
- package/esm/operations/processes.d.ts.map +0 -1
- package/esm/operations/processes.js +0 -226
- package/esm/operations/processes.js.map +0 -1
- package/esm/operations/summaries.d.ts +0 -34
- package/esm/operations/summaries.d.ts.map +0 -1
- package/esm/operations/summaries.js +0 -60
- package/esm/operations/summaries.js.map +0 -1
- package/esm/servicemapManagementClient.d.ts +0 -30
- package/esm/servicemapManagementClient.d.ts.map +0 -1
- package/esm/servicemapManagementClient.js +0 -44
- package/esm/servicemapManagementClient.js.map +0 -1
- package/esm/servicemapManagementClientContext.d.ts +0 -22
- package/esm/servicemapManagementClientContext.d.ts.map +0 -1
- package/esm/servicemapManagementClientContext.js +0 -61
- package/esm/servicemapManagementClientContext.js.map +0 -1
- package/src/models/clientGroupsMappers.ts +0 -56
- package/src/models/machineGroupsMappers.ts +0 -55
- package/src/models/machinesMappers.ts +0 -60
- package/src/models/mapsMappers.ts +0 -63
- package/src/models/portsMappers.ts +0 -57
- package/src/models/processesMappers.ts +0 -57
- package/src/models/summariesMappers.ts +0 -54
- package/src/servicemapManagementClient.ts +0 -60
- package/src/servicemapManagementClientContext.ts +0 -68
|
@@ -1,457 +1,709 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Machines } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { ServiceMap } from "../serviceMap";
|
|
15
|
+
import {
|
|
16
|
+
Machine,
|
|
17
|
+
MachinesListByWorkspaceNextOptionalParams,
|
|
18
|
+
MachinesListByWorkspaceOptionalParams,
|
|
19
|
+
Connection,
|
|
20
|
+
MachinesListConnectionsNextOptionalParams,
|
|
21
|
+
MachinesListConnectionsOptionalParams,
|
|
22
|
+
Process,
|
|
23
|
+
MachinesListProcessesNextOptionalParams,
|
|
24
|
+
MachinesListProcessesOptionalParams,
|
|
25
|
+
Port,
|
|
26
|
+
MachinesListPortsNextOptionalParams,
|
|
27
|
+
MachinesListPortsOptionalParams,
|
|
28
|
+
MachineGroup,
|
|
29
|
+
MachinesListMachineGroupMembershipNextOptionalParams,
|
|
30
|
+
MachinesListMachineGroupMembershipOptionalParams,
|
|
31
|
+
MachinesListByWorkspaceResponse,
|
|
32
|
+
MachinesGetOptionalParams,
|
|
33
|
+
MachinesGetResponse,
|
|
34
|
+
MachinesGetLivenessOptionalParams,
|
|
35
|
+
MachinesGetLivenessResponse,
|
|
36
|
+
MachinesListConnectionsResponse,
|
|
37
|
+
MachinesListProcessesResponse,
|
|
38
|
+
MachinesListPortsResponse,
|
|
39
|
+
MachinesListMachineGroupMembershipResponse,
|
|
40
|
+
MachinesListByWorkspaceNextResponse,
|
|
41
|
+
MachinesListConnectionsNextResponse,
|
|
42
|
+
MachinesListProcessesNextResponse,
|
|
43
|
+
MachinesListPortsNextResponse,
|
|
44
|
+
MachinesListMachineGroupMembershipNextResponse
|
|
45
|
+
} from "../models";
|
|
16
46
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
47
|
+
/// <reference lib="esnext.asynciterable" />
|
|
48
|
+
/** Class containing Machines operations. */
|
|
49
|
+
export class MachinesImpl implements Machines {
|
|
50
|
+
private readonly client: ServiceMap;
|
|
20
51
|
|
|
21
52
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
53
|
+
* Initialize a new instance of the class Machines class.
|
|
54
|
+
* @param client Reference to the service client
|
|
24
55
|
*/
|
|
25
|
-
constructor(client:
|
|
56
|
+
constructor(client: ServiceMap) {
|
|
26
57
|
this.client = client;
|
|
27
58
|
}
|
|
28
59
|
|
|
29
60
|
/**
|
|
30
61
|
* Returns a collection of machines matching the specified conditions. The returned collection
|
|
31
|
-
* represents either machines that are active/live during the specified interval of time
|
|
32
|
-
*
|
|
33
|
-
*
|
|
62
|
+
* represents either machines that are active/live during the specified interval of time (`live=true`
|
|
63
|
+
* and `startTime`/`endTime` are specified) or that are known to have existed at or some time prior to
|
|
64
|
+
* the specified point in time (`live=false` and `timestamp` is specified).
|
|
34
65
|
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
35
66
|
* @param workspaceName OMS workspace containing the resources of interest.
|
|
36
|
-
* @param
|
|
37
|
-
* @returns Promise<Models.MachinesListByWorkspaceResponse>
|
|
67
|
+
* @param options The options parameters.
|
|
38
68
|
*/
|
|
39
|
-
listByWorkspace(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
69
|
+
public listByWorkspace(
|
|
70
|
+
resourceGroupName: string,
|
|
71
|
+
workspaceName: string,
|
|
72
|
+
options?: MachinesListByWorkspaceOptionalParams
|
|
73
|
+
): PagedAsyncIterableIterator<Machine> {
|
|
74
|
+
const iter = this.listByWorkspacePagingAll(
|
|
75
|
+
resourceGroupName,
|
|
76
|
+
workspaceName,
|
|
77
|
+
options
|
|
78
|
+
);
|
|
79
|
+
return {
|
|
80
|
+
next() {
|
|
81
|
+
return iter.next();
|
|
82
|
+
},
|
|
83
|
+
[Symbol.asyncIterator]() {
|
|
84
|
+
return this;
|
|
85
|
+
},
|
|
86
|
+
byPage: () => {
|
|
87
|
+
return this.listByWorkspacePagingPage(
|
|
88
|
+
resourceGroupName,
|
|
89
|
+
workspaceName,
|
|
90
|
+
options
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
private async *listByWorkspacePagingPage(
|
|
97
|
+
resourceGroupName: string,
|
|
98
|
+
workspaceName: string,
|
|
99
|
+
options?: MachinesListByWorkspaceOptionalParams
|
|
100
|
+
): AsyncIterableIterator<Machine[]> {
|
|
101
|
+
let result = await this._listByWorkspace(
|
|
102
|
+
resourceGroupName,
|
|
103
|
+
workspaceName,
|
|
104
|
+
options
|
|
105
|
+
);
|
|
106
|
+
yield result.value || [];
|
|
107
|
+
let continuationToken = result.nextLink;
|
|
108
|
+
while (continuationToken) {
|
|
109
|
+
result = await this._listByWorkspaceNext(
|
|
56
110
|
resourceGroupName,
|
|
57
111
|
workspaceName,
|
|
112
|
+
continuationToken,
|
|
58
113
|
options
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
114
|
+
);
|
|
115
|
+
continuationToken = result.nextLink;
|
|
116
|
+
yield result.value || [];
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
private async *listByWorkspacePagingAll(
|
|
121
|
+
resourceGroupName: string,
|
|
122
|
+
workspaceName: string,
|
|
123
|
+
options?: MachinesListByWorkspaceOptionalParams
|
|
124
|
+
): AsyncIterableIterator<Machine> {
|
|
125
|
+
for await (const page of this.listByWorkspacePagingPage(
|
|
126
|
+
resourceGroupName,
|
|
127
|
+
workspaceName,
|
|
128
|
+
options
|
|
129
|
+
)) {
|
|
130
|
+
yield* page;
|
|
131
|
+
}
|
|
62
132
|
}
|
|
63
133
|
|
|
64
134
|
/**
|
|
65
|
-
* Returns the specified machine
|
|
66
|
-
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
67
|
-
* @param workspaceName OMS workspace containing the resources of interest.
|
|
68
|
-
* @param machineName Machine resource name.
|
|
69
|
-
* @param [options] The optional parameters
|
|
70
|
-
* @returns Promise<Models.MachinesGetResponse>
|
|
71
|
-
*/
|
|
72
|
-
get(resourceGroupName: string, workspaceName: string, machineName: string, options?: Models.MachinesGetOptionalParams): Promise<Models.MachinesGetResponse>;
|
|
73
|
-
/**
|
|
74
|
-
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
75
|
-
* @param workspaceName OMS workspace containing the resources of interest.
|
|
76
|
-
* @param machineName Machine resource name.
|
|
77
|
-
* @param callback The callback
|
|
78
|
-
*/
|
|
79
|
-
get(resourceGroupName: string, workspaceName: string, machineName: string, callback: msRest.ServiceCallback<Models.Machine>): void;
|
|
80
|
-
/**
|
|
135
|
+
* Returns a collection of connections terminating or originating at the specified machine
|
|
81
136
|
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
82
137
|
* @param workspaceName OMS workspace containing the resources of interest.
|
|
83
138
|
* @param machineName Machine resource name.
|
|
84
|
-
* @param options The
|
|
85
|
-
* @param callback The callback
|
|
139
|
+
* @param options The options parameters.
|
|
86
140
|
*/
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
141
|
+
public listConnections(
|
|
142
|
+
resourceGroupName: string,
|
|
143
|
+
workspaceName: string,
|
|
144
|
+
machineName: string,
|
|
145
|
+
options?: MachinesListConnectionsOptionalParams
|
|
146
|
+
): PagedAsyncIterableIterator<Connection> {
|
|
147
|
+
const iter = this.listConnectionsPagingAll(
|
|
148
|
+
resourceGroupName,
|
|
149
|
+
workspaceName,
|
|
150
|
+
machineName,
|
|
151
|
+
options
|
|
152
|
+
);
|
|
153
|
+
return {
|
|
154
|
+
next() {
|
|
155
|
+
return iter.next();
|
|
156
|
+
},
|
|
157
|
+
[Symbol.asyncIterator]() {
|
|
158
|
+
return this;
|
|
159
|
+
},
|
|
160
|
+
byPage: () => {
|
|
161
|
+
return this.listConnectionsPagingPage(
|
|
162
|
+
resourceGroupName,
|
|
163
|
+
workspaceName,
|
|
164
|
+
machineName,
|
|
165
|
+
options
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
private async *listConnectionsPagingPage(
|
|
172
|
+
resourceGroupName: string,
|
|
173
|
+
workspaceName: string,
|
|
174
|
+
machineName: string,
|
|
175
|
+
options?: MachinesListConnectionsOptionalParams
|
|
176
|
+
): AsyncIterableIterator<Connection[]> {
|
|
177
|
+
let result = await this._listConnections(
|
|
178
|
+
resourceGroupName,
|
|
179
|
+
workspaceName,
|
|
180
|
+
machineName,
|
|
181
|
+
options
|
|
182
|
+
);
|
|
183
|
+
yield result.value || [];
|
|
184
|
+
let continuationToken = result.nextLink;
|
|
185
|
+
while (continuationToken) {
|
|
186
|
+
result = await this._listConnectionsNext(
|
|
91
187
|
resourceGroupName,
|
|
92
188
|
workspaceName,
|
|
93
189
|
machineName,
|
|
190
|
+
continuationToken,
|
|
94
191
|
options
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
192
|
+
);
|
|
193
|
+
continuationToken = result.nextLink;
|
|
194
|
+
yield result.value || [];
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
private async *listConnectionsPagingAll(
|
|
199
|
+
resourceGroupName: string,
|
|
200
|
+
workspaceName: string,
|
|
201
|
+
machineName: string,
|
|
202
|
+
options?: MachinesListConnectionsOptionalParams
|
|
203
|
+
): AsyncIterableIterator<Connection> {
|
|
204
|
+
for await (const page of this.listConnectionsPagingPage(
|
|
205
|
+
resourceGroupName,
|
|
206
|
+
workspaceName,
|
|
207
|
+
machineName,
|
|
208
|
+
options
|
|
209
|
+
)) {
|
|
210
|
+
yield* page;
|
|
211
|
+
}
|
|
98
212
|
}
|
|
99
213
|
|
|
100
214
|
/**
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
* @returns Promise<Models.MachinesGetLivenessResponse>
|
|
107
|
-
*/
|
|
108
|
-
getLiveness(resourceGroupName: string, workspaceName: string, machineName: string, options?: Models.MachinesGetLivenessOptionalParams): Promise<Models.MachinesGetLivenessResponse>;
|
|
109
|
-
/**
|
|
110
|
-
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
111
|
-
* @param workspaceName OMS workspace containing the resources of interest.
|
|
112
|
-
* @param machineName Machine resource name.
|
|
113
|
-
* @param callback The callback
|
|
114
|
-
*/
|
|
115
|
-
getLiveness(resourceGroupName: string, workspaceName: string, machineName: string, callback: msRest.ServiceCallback<Models.Liveness>): void;
|
|
116
|
-
/**
|
|
215
|
+
* Returns a collection of processes on the specified machine matching the specified conditions. The
|
|
216
|
+
* returned collection represents either processes that are active/live during the specified interval
|
|
217
|
+
* of time (`live=true` and `startTime`/`endTime` are specified) or that are known to have existed at
|
|
218
|
+
* or some time prior to the specified point in time (`live=false` and `timestamp` is specified).
|
|
219
|
+
*
|
|
117
220
|
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
118
221
|
* @param workspaceName OMS workspace containing the resources of interest.
|
|
119
222
|
* @param machineName Machine resource name.
|
|
120
|
-
* @param options The
|
|
121
|
-
* @param callback The callback
|
|
223
|
+
* @param options The options parameters.
|
|
122
224
|
*/
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
225
|
+
public listProcesses(
|
|
226
|
+
resourceGroupName: string,
|
|
227
|
+
workspaceName: string,
|
|
228
|
+
machineName: string,
|
|
229
|
+
options?: MachinesListProcessesOptionalParams
|
|
230
|
+
): PagedAsyncIterableIterator<Process> {
|
|
231
|
+
const iter = this.listProcessesPagingAll(
|
|
232
|
+
resourceGroupName,
|
|
233
|
+
workspaceName,
|
|
234
|
+
machineName,
|
|
235
|
+
options
|
|
236
|
+
);
|
|
237
|
+
return {
|
|
238
|
+
next() {
|
|
239
|
+
return iter.next();
|
|
240
|
+
},
|
|
241
|
+
[Symbol.asyncIterator]() {
|
|
242
|
+
return this;
|
|
243
|
+
},
|
|
244
|
+
byPage: () => {
|
|
245
|
+
return this.listProcessesPagingPage(
|
|
246
|
+
resourceGroupName,
|
|
247
|
+
workspaceName,
|
|
248
|
+
machineName,
|
|
249
|
+
options
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
private async *listProcessesPagingPage(
|
|
256
|
+
resourceGroupName: string,
|
|
257
|
+
workspaceName: string,
|
|
258
|
+
machineName: string,
|
|
259
|
+
options?: MachinesListProcessesOptionalParams
|
|
260
|
+
): AsyncIterableIterator<Process[]> {
|
|
261
|
+
let result = await this._listProcesses(
|
|
262
|
+
resourceGroupName,
|
|
263
|
+
workspaceName,
|
|
264
|
+
machineName,
|
|
265
|
+
options
|
|
266
|
+
);
|
|
267
|
+
yield result.value || [];
|
|
268
|
+
let continuationToken = result.nextLink;
|
|
269
|
+
while (continuationToken) {
|
|
270
|
+
result = await this._listProcessesNext(
|
|
127
271
|
resourceGroupName,
|
|
128
272
|
workspaceName,
|
|
129
273
|
machineName,
|
|
274
|
+
continuationToken,
|
|
130
275
|
options
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
276
|
+
);
|
|
277
|
+
continuationToken = result.nextLink;
|
|
278
|
+
yield result.value || [];
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
private async *listProcessesPagingAll(
|
|
283
|
+
resourceGroupName: string,
|
|
284
|
+
workspaceName: string,
|
|
285
|
+
machineName: string,
|
|
286
|
+
options?: MachinesListProcessesOptionalParams
|
|
287
|
+
): AsyncIterableIterator<Process> {
|
|
288
|
+
for await (const page of this.listProcessesPagingPage(
|
|
289
|
+
resourceGroupName,
|
|
290
|
+
workspaceName,
|
|
291
|
+
machineName,
|
|
292
|
+
options
|
|
293
|
+
)) {
|
|
294
|
+
yield* page;
|
|
295
|
+
}
|
|
134
296
|
}
|
|
135
297
|
|
|
136
298
|
/**
|
|
137
|
-
* Returns a collection of
|
|
138
|
-
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
139
|
-
* @param workspaceName OMS workspace containing the resources of interest.
|
|
140
|
-
* @param machineName Machine resource name.
|
|
141
|
-
* @param [options] The optional parameters
|
|
142
|
-
* @returns Promise<Models.MachinesListConnectionsResponse>
|
|
143
|
-
*/
|
|
144
|
-
listConnections(resourceGroupName: string, workspaceName: string, machineName: string, options?: Models.MachinesListConnectionsOptionalParams): Promise<Models.MachinesListConnectionsResponse>;
|
|
145
|
-
/**
|
|
146
|
-
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
147
|
-
* @param workspaceName OMS workspace containing the resources of interest.
|
|
148
|
-
* @param machineName Machine resource name.
|
|
149
|
-
* @param callback The callback
|
|
150
|
-
*/
|
|
151
|
-
listConnections(resourceGroupName: string, workspaceName: string, machineName: string, callback: msRest.ServiceCallback<Models.ConnectionCollection>): void;
|
|
152
|
-
/**
|
|
299
|
+
* Returns a collection of live ports on the specified machine during the specified time interval.
|
|
153
300
|
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
154
301
|
* @param workspaceName OMS workspace containing the resources of interest.
|
|
155
302
|
* @param machineName Machine resource name.
|
|
156
|
-
* @param options The
|
|
157
|
-
* @param callback The callback
|
|
303
|
+
* @param options The options parameters.
|
|
158
304
|
*/
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
305
|
+
public listPorts(
|
|
306
|
+
resourceGroupName: string,
|
|
307
|
+
workspaceName: string,
|
|
308
|
+
machineName: string,
|
|
309
|
+
options?: MachinesListPortsOptionalParams
|
|
310
|
+
): PagedAsyncIterableIterator<Port> {
|
|
311
|
+
const iter = this.listPortsPagingAll(
|
|
312
|
+
resourceGroupName,
|
|
313
|
+
workspaceName,
|
|
314
|
+
machineName,
|
|
315
|
+
options
|
|
316
|
+
);
|
|
317
|
+
return {
|
|
318
|
+
next() {
|
|
319
|
+
return iter.next();
|
|
320
|
+
},
|
|
321
|
+
[Symbol.asyncIterator]() {
|
|
322
|
+
return this;
|
|
323
|
+
},
|
|
324
|
+
byPage: () => {
|
|
325
|
+
return this.listPortsPagingPage(
|
|
326
|
+
resourceGroupName,
|
|
327
|
+
workspaceName,
|
|
328
|
+
machineName,
|
|
329
|
+
options
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
private async *listPortsPagingPage(
|
|
336
|
+
resourceGroupName: string,
|
|
337
|
+
workspaceName: string,
|
|
338
|
+
machineName: string,
|
|
339
|
+
options?: MachinesListPortsOptionalParams
|
|
340
|
+
): AsyncIterableIterator<Port[]> {
|
|
341
|
+
let result = await this._listPorts(
|
|
342
|
+
resourceGroupName,
|
|
343
|
+
workspaceName,
|
|
344
|
+
machineName,
|
|
345
|
+
options
|
|
346
|
+
);
|
|
347
|
+
yield result.value || [];
|
|
348
|
+
let continuationToken = result.nextLink;
|
|
349
|
+
while (continuationToken) {
|
|
350
|
+
result = await this._listPortsNext(
|
|
163
351
|
resourceGroupName,
|
|
164
352
|
workspaceName,
|
|
165
353
|
machineName,
|
|
354
|
+
continuationToken,
|
|
166
355
|
options
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
356
|
+
);
|
|
357
|
+
continuationToken = result.nextLink;
|
|
358
|
+
yield result.value || [];
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
private async *listPortsPagingAll(
|
|
363
|
+
resourceGroupName: string,
|
|
364
|
+
workspaceName: string,
|
|
365
|
+
machineName: string,
|
|
366
|
+
options?: MachinesListPortsOptionalParams
|
|
367
|
+
): AsyncIterableIterator<Port> {
|
|
368
|
+
for await (const page of this.listPortsPagingPage(
|
|
369
|
+
resourceGroupName,
|
|
370
|
+
workspaceName,
|
|
371
|
+
machineName,
|
|
372
|
+
options
|
|
373
|
+
)) {
|
|
374
|
+
yield* page;
|
|
375
|
+
}
|
|
170
376
|
}
|
|
171
377
|
|
|
172
378
|
/**
|
|
173
|
-
* Returns a collection of
|
|
174
|
-
* The returned collection represents either processes that are active/live during the specified
|
|
175
|
-
* interval of time (`live=true` and `startTime`/`endTime` are specified) or that are known to
|
|
176
|
-
* have existed at or some time prior to the specified point in time (`live=false` and `timestamp`
|
|
177
|
-
* is specified).
|
|
178
|
-
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
179
|
-
* @param workspaceName OMS workspace containing the resources of interest.
|
|
180
|
-
* @param machineName Machine resource name.
|
|
181
|
-
* @param [options] The optional parameters
|
|
182
|
-
* @returns Promise<Models.MachinesListProcessesResponse>
|
|
183
|
-
*/
|
|
184
|
-
listProcesses(resourceGroupName: string, workspaceName: string, machineName: string, options?: Models.MachinesListProcessesOptionalParams): Promise<Models.MachinesListProcessesResponse>;
|
|
185
|
-
/**
|
|
186
|
-
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
187
|
-
* @param workspaceName OMS workspace containing the resources of interest.
|
|
188
|
-
* @param machineName Machine resource name.
|
|
189
|
-
* @param callback The callback
|
|
190
|
-
*/
|
|
191
|
-
listProcesses(resourceGroupName: string, workspaceName: string, machineName: string, callback: msRest.ServiceCallback<Models.ProcessCollection>): void;
|
|
192
|
-
/**
|
|
379
|
+
* Returns a collection of machine groups this machine belongs to during the specified time interval.
|
|
193
380
|
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
194
381
|
* @param workspaceName OMS workspace containing the resources of interest.
|
|
195
382
|
* @param machineName Machine resource name.
|
|
196
|
-
* @param options The
|
|
197
|
-
* @param callback The callback
|
|
383
|
+
* @param options The options parameters.
|
|
198
384
|
*/
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
385
|
+
public listMachineGroupMembership(
|
|
386
|
+
resourceGroupName: string,
|
|
387
|
+
workspaceName: string,
|
|
388
|
+
machineName: string,
|
|
389
|
+
options?: MachinesListMachineGroupMembershipOptionalParams
|
|
390
|
+
): PagedAsyncIterableIterator<MachineGroup> {
|
|
391
|
+
const iter = this.listMachineGroupMembershipPagingAll(
|
|
392
|
+
resourceGroupName,
|
|
393
|
+
workspaceName,
|
|
394
|
+
machineName,
|
|
395
|
+
options
|
|
396
|
+
);
|
|
397
|
+
return {
|
|
398
|
+
next() {
|
|
399
|
+
return iter.next();
|
|
400
|
+
},
|
|
401
|
+
[Symbol.asyncIterator]() {
|
|
402
|
+
return this;
|
|
403
|
+
},
|
|
404
|
+
byPage: () => {
|
|
405
|
+
return this.listMachineGroupMembershipPagingPage(
|
|
406
|
+
resourceGroupName,
|
|
407
|
+
workspaceName,
|
|
408
|
+
machineName,
|
|
409
|
+
options
|
|
410
|
+
);
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
private async *listMachineGroupMembershipPagingPage(
|
|
416
|
+
resourceGroupName: string,
|
|
417
|
+
workspaceName: string,
|
|
418
|
+
machineName: string,
|
|
419
|
+
options?: MachinesListMachineGroupMembershipOptionalParams
|
|
420
|
+
): AsyncIterableIterator<MachineGroup[]> {
|
|
421
|
+
let result = await this._listMachineGroupMembership(
|
|
422
|
+
resourceGroupName,
|
|
423
|
+
workspaceName,
|
|
424
|
+
machineName,
|
|
425
|
+
options
|
|
426
|
+
);
|
|
427
|
+
yield result.value || [];
|
|
428
|
+
let continuationToken = result.nextLink;
|
|
429
|
+
while (continuationToken) {
|
|
430
|
+
result = await this._listMachineGroupMembershipNext(
|
|
203
431
|
resourceGroupName,
|
|
204
432
|
workspaceName,
|
|
205
433
|
machineName,
|
|
434
|
+
continuationToken,
|
|
206
435
|
options
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
436
|
+
);
|
|
437
|
+
continuationToken = result.nextLink;
|
|
438
|
+
yield result.value || [];
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
private async *listMachineGroupMembershipPagingAll(
|
|
443
|
+
resourceGroupName: string,
|
|
444
|
+
workspaceName: string,
|
|
445
|
+
machineName: string,
|
|
446
|
+
options?: MachinesListMachineGroupMembershipOptionalParams
|
|
447
|
+
): AsyncIterableIterator<MachineGroup> {
|
|
448
|
+
for await (const page of this.listMachineGroupMembershipPagingPage(
|
|
449
|
+
resourceGroupName,
|
|
450
|
+
workspaceName,
|
|
451
|
+
machineName,
|
|
452
|
+
options
|
|
453
|
+
)) {
|
|
454
|
+
yield* page;
|
|
455
|
+
}
|
|
210
456
|
}
|
|
211
457
|
|
|
212
458
|
/**
|
|
213
|
-
* Returns a collection of
|
|
459
|
+
* Returns a collection of machines matching the specified conditions. The returned collection
|
|
460
|
+
* represents either machines that are active/live during the specified interval of time (`live=true`
|
|
461
|
+
* and `startTime`/`endTime` are specified) or that are known to have existed at or some time prior to
|
|
462
|
+
* the specified point in time (`live=false` and `timestamp` is specified).
|
|
214
463
|
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
215
464
|
* @param workspaceName OMS workspace containing the resources of interest.
|
|
216
|
-
* @param
|
|
217
|
-
* @param [options] The optional parameters
|
|
218
|
-
* @returns Promise<Models.MachinesListPortsResponse>
|
|
465
|
+
* @param options The options parameters.
|
|
219
466
|
*/
|
|
220
|
-
|
|
467
|
+
private _listByWorkspace(
|
|
468
|
+
resourceGroupName: string,
|
|
469
|
+
workspaceName: string,
|
|
470
|
+
options?: MachinesListByWorkspaceOptionalParams
|
|
471
|
+
): Promise<MachinesListByWorkspaceResponse> {
|
|
472
|
+
return this.client.sendOperationRequest(
|
|
473
|
+
{ resourceGroupName, workspaceName, options },
|
|
474
|
+
listByWorkspaceOperationSpec
|
|
475
|
+
);
|
|
476
|
+
}
|
|
477
|
+
|
|
221
478
|
/**
|
|
479
|
+
* Returns the specified machine.
|
|
222
480
|
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
223
481
|
* @param workspaceName OMS workspace containing the resources of interest.
|
|
224
482
|
* @param machineName Machine resource name.
|
|
225
|
-
* @param
|
|
483
|
+
* @param options The options parameters.
|
|
226
484
|
*/
|
|
227
|
-
|
|
485
|
+
get(
|
|
486
|
+
resourceGroupName: string,
|
|
487
|
+
workspaceName: string,
|
|
488
|
+
machineName: string,
|
|
489
|
+
options?: MachinesGetOptionalParams
|
|
490
|
+
): Promise<MachinesGetResponse> {
|
|
491
|
+
return this.client.sendOperationRequest(
|
|
492
|
+
{ resourceGroupName, workspaceName, machineName, options },
|
|
493
|
+
getOperationSpec
|
|
494
|
+
);
|
|
495
|
+
}
|
|
496
|
+
|
|
228
497
|
/**
|
|
498
|
+
* Obtains the liveness status of the machine during the specified time interval.
|
|
229
499
|
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
230
500
|
* @param workspaceName OMS workspace containing the resources of interest.
|
|
231
501
|
* @param machineName Machine resource name.
|
|
232
|
-
* @param options The
|
|
233
|
-
* @param callback The callback
|
|
502
|
+
* @param options The options parameters.
|
|
234
503
|
*/
|
|
235
|
-
|
|
236
|
-
|
|
504
|
+
getLiveness(
|
|
505
|
+
resourceGroupName: string,
|
|
506
|
+
workspaceName: string,
|
|
507
|
+
machineName: string,
|
|
508
|
+
options?: MachinesGetLivenessOptionalParams
|
|
509
|
+
): Promise<MachinesGetLivenessResponse> {
|
|
237
510
|
return this.client.sendOperationRequest(
|
|
238
|
-
{
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
machineName,
|
|
242
|
-
options
|
|
243
|
-
},
|
|
244
|
-
listPortsOperationSpec,
|
|
245
|
-
callback) as Promise<Models.MachinesListPortsResponse>;
|
|
511
|
+
{ resourceGroupName, workspaceName, machineName, options },
|
|
512
|
+
getLivenessOperationSpec
|
|
513
|
+
);
|
|
246
514
|
}
|
|
247
515
|
|
|
248
516
|
/**
|
|
249
|
-
* Returns a collection of
|
|
250
|
-
* interval.
|
|
517
|
+
* Returns a collection of connections terminating or originating at the specified machine
|
|
251
518
|
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
252
519
|
* @param workspaceName OMS workspace containing the resources of interest.
|
|
253
520
|
* @param machineName Machine resource name.
|
|
254
|
-
* @param
|
|
255
|
-
* @returns Promise<Models.MachinesListMachineGroupMembershipResponse>
|
|
521
|
+
* @param options The options parameters.
|
|
256
522
|
*/
|
|
257
|
-
|
|
523
|
+
private _listConnections(
|
|
524
|
+
resourceGroupName: string,
|
|
525
|
+
workspaceName: string,
|
|
526
|
+
machineName: string,
|
|
527
|
+
options?: MachinesListConnectionsOptionalParams
|
|
528
|
+
): Promise<MachinesListConnectionsResponse> {
|
|
529
|
+
return this.client.sendOperationRequest(
|
|
530
|
+
{ resourceGroupName, workspaceName, machineName, options },
|
|
531
|
+
listConnectionsOperationSpec
|
|
532
|
+
);
|
|
533
|
+
}
|
|
534
|
+
|
|
258
535
|
/**
|
|
536
|
+
* Returns a collection of processes on the specified machine matching the specified conditions. The
|
|
537
|
+
* returned collection represents either processes that are active/live during the specified interval
|
|
538
|
+
* of time (`live=true` and `startTime`/`endTime` are specified) or that are known to have existed at
|
|
539
|
+
* or some time prior to the specified point in time (`live=false` and `timestamp` is specified).
|
|
540
|
+
*
|
|
259
541
|
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
260
542
|
* @param workspaceName OMS workspace containing the resources of interest.
|
|
261
543
|
* @param machineName Machine resource name.
|
|
262
|
-
* @param
|
|
544
|
+
* @param options The options parameters.
|
|
263
545
|
*/
|
|
264
|
-
|
|
546
|
+
private _listProcesses(
|
|
547
|
+
resourceGroupName: string,
|
|
548
|
+
workspaceName: string,
|
|
549
|
+
machineName: string,
|
|
550
|
+
options?: MachinesListProcessesOptionalParams
|
|
551
|
+
): Promise<MachinesListProcessesResponse> {
|
|
552
|
+
return this.client.sendOperationRequest(
|
|
553
|
+
{ resourceGroupName, workspaceName, machineName, options },
|
|
554
|
+
listProcessesOperationSpec
|
|
555
|
+
);
|
|
556
|
+
}
|
|
557
|
+
|
|
265
558
|
/**
|
|
559
|
+
* Returns a collection of live ports on the specified machine during the specified time interval.
|
|
266
560
|
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
267
561
|
* @param workspaceName OMS workspace containing the resources of interest.
|
|
268
562
|
* @param machineName Machine resource name.
|
|
269
|
-
* @param options The
|
|
270
|
-
* @param callback The callback
|
|
563
|
+
* @param options The options parameters.
|
|
271
564
|
*/
|
|
272
|
-
|
|
273
|
-
|
|
565
|
+
private _listPorts(
|
|
566
|
+
resourceGroupName: string,
|
|
567
|
+
workspaceName: string,
|
|
568
|
+
machineName: string,
|
|
569
|
+
options?: MachinesListPortsOptionalParams
|
|
570
|
+
): Promise<MachinesListPortsResponse> {
|
|
274
571
|
return this.client.sendOperationRequest(
|
|
275
|
-
{
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
machineName,
|
|
279
|
-
options
|
|
280
|
-
},
|
|
281
|
-
listMachineGroupMembershipOperationSpec,
|
|
282
|
-
callback) as Promise<Models.MachinesListMachineGroupMembershipResponse>;
|
|
572
|
+
{ resourceGroupName, workspaceName, machineName, options },
|
|
573
|
+
listPortsOperationSpec
|
|
574
|
+
);
|
|
283
575
|
}
|
|
284
576
|
|
|
285
577
|
/**
|
|
286
|
-
* Returns a collection of
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
* @param
|
|
291
|
-
* @param [options] The optional parameters
|
|
292
|
-
* @returns Promise<Models.MachinesListByWorkspaceNextResponse>
|
|
293
|
-
*/
|
|
294
|
-
listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.MachinesListByWorkspaceNextResponse>;
|
|
295
|
-
/**
|
|
296
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
297
|
-
* @param callback The callback
|
|
298
|
-
*/
|
|
299
|
-
listByWorkspaceNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.MachineCollection>): void;
|
|
300
|
-
/**
|
|
301
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
302
|
-
* @param options The optional parameters
|
|
303
|
-
* @param callback The callback
|
|
578
|
+
* Returns a collection of machine groups this machine belongs to during the specified time interval.
|
|
579
|
+
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
580
|
+
* @param workspaceName OMS workspace containing the resources of interest.
|
|
581
|
+
* @param machineName Machine resource name.
|
|
582
|
+
* @param options The options parameters.
|
|
304
583
|
*/
|
|
305
|
-
|
|
306
|
-
|
|
584
|
+
private _listMachineGroupMembership(
|
|
585
|
+
resourceGroupName: string,
|
|
586
|
+
workspaceName: string,
|
|
587
|
+
machineName: string,
|
|
588
|
+
options?: MachinesListMachineGroupMembershipOptionalParams
|
|
589
|
+
): Promise<MachinesListMachineGroupMembershipResponse> {
|
|
307
590
|
return this.client.sendOperationRequest(
|
|
308
|
-
{
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
},
|
|
312
|
-
listByWorkspaceNextOperationSpec,
|
|
313
|
-
callback) as Promise<Models.MachinesListByWorkspaceNextResponse>;
|
|
591
|
+
{ resourceGroupName, workspaceName, machineName, options },
|
|
592
|
+
listMachineGroupMembershipOperationSpec
|
|
593
|
+
);
|
|
314
594
|
}
|
|
315
595
|
|
|
316
596
|
/**
|
|
317
|
-
*
|
|
318
|
-
* @param
|
|
319
|
-
* @param
|
|
320
|
-
* @
|
|
321
|
-
|
|
322
|
-
listConnectionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.MachinesListConnectionsNextResponse>;
|
|
323
|
-
/**
|
|
324
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
325
|
-
* @param callback The callback
|
|
326
|
-
*/
|
|
327
|
-
listConnectionsNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ConnectionCollection>): void;
|
|
328
|
-
/**
|
|
329
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
330
|
-
* @param options The optional parameters
|
|
331
|
-
* @param callback The callback
|
|
597
|
+
* ListByWorkspaceNext
|
|
598
|
+
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
599
|
+
* @param workspaceName OMS workspace containing the resources of interest.
|
|
600
|
+
* @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.
|
|
601
|
+
* @param options The options parameters.
|
|
332
602
|
*/
|
|
333
|
-
|
|
334
|
-
|
|
603
|
+
private _listByWorkspaceNext(
|
|
604
|
+
resourceGroupName: string,
|
|
605
|
+
workspaceName: string,
|
|
606
|
+
nextLink: string,
|
|
607
|
+
options?: MachinesListByWorkspaceNextOptionalParams
|
|
608
|
+
): Promise<MachinesListByWorkspaceNextResponse> {
|
|
335
609
|
return this.client.sendOperationRequest(
|
|
336
|
-
{
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
},
|
|
340
|
-
listConnectionsNextOperationSpec,
|
|
341
|
-
callback) as Promise<Models.MachinesListConnectionsNextResponse>;
|
|
610
|
+
{ resourceGroupName, workspaceName, nextLink, options },
|
|
611
|
+
listByWorkspaceNextOperationSpec
|
|
612
|
+
);
|
|
342
613
|
}
|
|
343
614
|
|
|
344
615
|
/**
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
*
|
|
349
|
-
*
|
|
350
|
-
* @param
|
|
351
|
-
* @param [options] The optional parameters
|
|
352
|
-
* @returns Promise<Models.MachinesListProcessesNextResponse>
|
|
353
|
-
*/
|
|
354
|
-
listProcessesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.MachinesListProcessesNextResponse>;
|
|
355
|
-
/**
|
|
356
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
357
|
-
* @param callback The callback
|
|
358
|
-
*/
|
|
359
|
-
listProcessesNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ProcessCollection>): void;
|
|
360
|
-
/**
|
|
361
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
362
|
-
* @param options The optional parameters
|
|
363
|
-
* @param callback The callback
|
|
616
|
+
* ListConnectionsNext
|
|
617
|
+
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
618
|
+
* @param workspaceName OMS workspace containing the resources of interest.
|
|
619
|
+
* @param machineName Machine resource name.
|
|
620
|
+
* @param nextLink The nextLink from the previous successful call to the ListConnections method.
|
|
621
|
+
* @param options The options parameters.
|
|
364
622
|
*/
|
|
365
|
-
|
|
366
|
-
|
|
623
|
+
private _listConnectionsNext(
|
|
624
|
+
resourceGroupName: string,
|
|
625
|
+
workspaceName: string,
|
|
626
|
+
machineName: string,
|
|
627
|
+
nextLink: string,
|
|
628
|
+
options?: MachinesListConnectionsNextOptionalParams
|
|
629
|
+
): Promise<MachinesListConnectionsNextResponse> {
|
|
367
630
|
return this.client.sendOperationRequest(
|
|
368
|
-
{
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
},
|
|
372
|
-
listProcessesNextOperationSpec,
|
|
373
|
-
callback) as Promise<Models.MachinesListProcessesNextResponse>;
|
|
631
|
+
{ resourceGroupName, workspaceName, machineName, nextLink, options },
|
|
632
|
+
listConnectionsNextOperationSpec
|
|
633
|
+
);
|
|
374
634
|
}
|
|
375
635
|
|
|
376
636
|
/**
|
|
377
|
-
*
|
|
378
|
-
* @param
|
|
379
|
-
* @param
|
|
380
|
-
* @
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
/**
|
|
384
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
385
|
-
* @param callback The callback
|
|
386
|
-
*/
|
|
387
|
-
listPortsNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.PortCollection>): void;
|
|
388
|
-
/**
|
|
389
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
390
|
-
* @param options The optional parameters
|
|
391
|
-
* @param callback The callback
|
|
637
|
+
* ListProcessesNext
|
|
638
|
+
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
639
|
+
* @param workspaceName OMS workspace containing the resources of interest.
|
|
640
|
+
* @param machineName Machine resource name.
|
|
641
|
+
* @param nextLink The nextLink from the previous successful call to the ListProcesses method.
|
|
642
|
+
* @param options The options parameters.
|
|
392
643
|
*/
|
|
393
|
-
|
|
394
|
-
|
|
644
|
+
private _listProcessesNext(
|
|
645
|
+
resourceGroupName: string,
|
|
646
|
+
workspaceName: string,
|
|
647
|
+
machineName: string,
|
|
648
|
+
nextLink: string,
|
|
649
|
+
options?: MachinesListProcessesNextOptionalParams
|
|
650
|
+
): Promise<MachinesListProcessesNextResponse> {
|
|
395
651
|
return this.client.sendOperationRequest(
|
|
396
|
-
{
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
},
|
|
400
|
-
listPortsNextOperationSpec,
|
|
401
|
-
callback) as Promise<Models.MachinesListPortsNextResponse>;
|
|
652
|
+
{ resourceGroupName, workspaceName, machineName, nextLink, options },
|
|
653
|
+
listProcessesNextOperationSpec
|
|
654
|
+
);
|
|
402
655
|
}
|
|
403
656
|
|
|
404
657
|
/**
|
|
405
|
-
*
|
|
406
|
-
*
|
|
407
|
-
* @param
|
|
408
|
-
* @param
|
|
409
|
-
* @
|
|
410
|
-
|
|
411
|
-
listMachineGroupMembershipNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.MachinesListMachineGroupMembershipNextResponse>;
|
|
412
|
-
/**
|
|
413
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
414
|
-
* @param callback The callback
|
|
658
|
+
* ListPortsNext
|
|
659
|
+
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
660
|
+
* @param workspaceName OMS workspace containing the resources of interest.
|
|
661
|
+
* @param machineName Machine resource name.
|
|
662
|
+
* @param nextLink The nextLink from the previous successful call to the ListPorts method.
|
|
663
|
+
* @param options The options parameters.
|
|
415
664
|
*/
|
|
416
|
-
|
|
665
|
+
private _listPortsNext(
|
|
666
|
+
resourceGroupName: string,
|
|
667
|
+
workspaceName: string,
|
|
668
|
+
machineName: string,
|
|
669
|
+
nextLink: string,
|
|
670
|
+
options?: MachinesListPortsNextOptionalParams
|
|
671
|
+
): Promise<MachinesListPortsNextResponse> {
|
|
672
|
+
return this.client.sendOperationRequest(
|
|
673
|
+
{ resourceGroupName, workspaceName, machineName, nextLink, options },
|
|
674
|
+
listPortsNextOperationSpec
|
|
675
|
+
);
|
|
676
|
+
}
|
|
677
|
+
|
|
417
678
|
/**
|
|
418
|
-
*
|
|
419
|
-
* @param
|
|
420
|
-
* @param
|
|
679
|
+
* ListMachineGroupMembershipNext
|
|
680
|
+
* @param resourceGroupName Resource group name within the specified subscriptionId.
|
|
681
|
+
* @param workspaceName OMS workspace containing the resources of interest.
|
|
682
|
+
* @param machineName Machine resource name.
|
|
683
|
+
* @param nextLink The nextLink from the previous successful call to the ListMachineGroupMembership
|
|
684
|
+
* method.
|
|
685
|
+
* @param options The options parameters.
|
|
421
686
|
*/
|
|
422
|
-
|
|
423
|
-
|
|
687
|
+
private _listMachineGroupMembershipNext(
|
|
688
|
+
resourceGroupName: string,
|
|
689
|
+
workspaceName: string,
|
|
690
|
+
machineName: string,
|
|
691
|
+
nextLink: string,
|
|
692
|
+
options?: MachinesListMachineGroupMembershipNextOptionalParams
|
|
693
|
+
): Promise<MachinesListMachineGroupMembershipNextResponse> {
|
|
424
694
|
return this.client.sendOperationRequest(
|
|
425
|
-
{
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
},
|
|
429
|
-
listMachineGroupMembershipNextOperationSpec,
|
|
430
|
-
callback) as Promise<Models.MachinesListMachineGroupMembershipNextResponse>;
|
|
695
|
+
{ resourceGroupName, workspaceName, machineName, nextLink, options },
|
|
696
|
+
listMachineGroupMembershipNextOperationSpec
|
|
697
|
+
);
|
|
431
698
|
}
|
|
432
699
|
}
|
|
433
|
-
|
|
434
700
|
// Operation Specifications
|
|
435
|
-
const serializer =
|
|
436
|
-
|
|
701
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
702
|
+
|
|
703
|
+
const listByWorkspaceOperationSpec: coreClient.OperationSpec = {
|
|
704
|
+
path:
|
|
705
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machines",
|
|
437
706
|
httpMethod: "GET",
|
|
438
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machines",
|
|
439
|
-
urlParameters: [
|
|
440
|
-
Parameters.subscriptionId,
|
|
441
|
-
Parameters.resourceGroupName,
|
|
442
|
-
Parameters.workspaceName
|
|
443
|
-
],
|
|
444
|
-
queryParameters: [
|
|
445
|
-
Parameters.apiVersion,
|
|
446
|
-
Parameters.live,
|
|
447
|
-
Parameters.startTime,
|
|
448
|
-
Parameters.endTime,
|
|
449
|
-
Parameters.timestamp,
|
|
450
|
-
Parameters.top
|
|
451
|
-
],
|
|
452
|
-
headerParameters: [
|
|
453
|
-
Parameters.acceptLanguage
|
|
454
|
-
],
|
|
455
707
|
responses: {
|
|
456
708
|
200: {
|
|
457
709
|
bodyMapper: Mappers.MachineCollection
|
|
@@ -460,25 +712,27 @@ const listByWorkspaceOperationSpec: msRest.OperationSpec = {
|
|
|
460
712
|
bodyMapper: Mappers.ErrorResponse
|
|
461
713
|
}
|
|
462
714
|
},
|
|
463
|
-
serializer
|
|
464
|
-
};
|
|
465
|
-
|
|
466
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
467
|
-
httpMethod: "GET",
|
|
468
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machines/{machineName}",
|
|
469
|
-
urlParameters: [
|
|
470
|
-
Parameters.subscriptionId,
|
|
471
|
-
Parameters.resourceGroupName,
|
|
472
|
-
Parameters.workspaceName,
|
|
473
|
-
Parameters.machineName
|
|
474
|
-
],
|
|
475
715
|
queryParameters: [
|
|
476
716
|
Parameters.apiVersion,
|
|
477
|
-
Parameters.
|
|
717
|
+
Parameters.live,
|
|
718
|
+
Parameters.startTime,
|
|
719
|
+
Parameters.endTime,
|
|
720
|
+
Parameters.timestamp,
|
|
721
|
+
Parameters.top
|
|
478
722
|
],
|
|
479
|
-
|
|
480
|
-
Parameters
|
|
723
|
+
urlParameters: [
|
|
724
|
+
Parameters.$host,
|
|
725
|
+
Parameters.subscriptionId,
|
|
726
|
+
Parameters.resourceGroupName,
|
|
727
|
+
Parameters.workspaceName
|
|
481
728
|
],
|
|
729
|
+
headerParameters: [Parameters.accept],
|
|
730
|
+
serializer
|
|
731
|
+
};
|
|
732
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
733
|
+
path:
|
|
734
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machines/{machineName}",
|
|
735
|
+
httpMethod: "GET",
|
|
482
736
|
responses: {
|
|
483
737
|
200: {
|
|
484
738
|
bodyMapper: Mappers.Machine
|
|
@@ -487,26 +741,21 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
487
741
|
bodyMapper: Mappers.ErrorResponse
|
|
488
742
|
}
|
|
489
743
|
},
|
|
490
|
-
|
|
491
|
-
};
|
|
492
|
-
|
|
493
|
-
const getLivenessOperationSpec: msRest.OperationSpec = {
|
|
494
|
-
httpMethod: "GET",
|
|
495
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machines/{machineName}/liveness",
|
|
744
|
+
queryParameters: [Parameters.apiVersion, Parameters.timestamp],
|
|
496
745
|
urlParameters: [
|
|
746
|
+
Parameters.$host,
|
|
497
747
|
Parameters.subscriptionId,
|
|
498
748
|
Parameters.resourceGroupName,
|
|
499
749
|
Parameters.workspaceName,
|
|
500
750
|
Parameters.machineName
|
|
501
751
|
],
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
],
|
|
752
|
+
headerParameters: [Parameters.accept],
|
|
753
|
+
serializer
|
|
754
|
+
};
|
|
755
|
+
const getLivenessOperationSpec: coreClient.OperationSpec = {
|
|
756
|
+
path:
|
|
757
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machines/{machineName}/liveness",
|
|
758
|
+
httpMethod: "GET",
|
|
510
759
|
responses: {
|
|
511
760
|
200: {
|
|
512
761
|
bodyMapper: Mappers.Liveness
|
|
@@ -515,26 +764,25 @@ const getLivenessOperationSpec: msRest.OperationSpec = {
|
|
|
515
764
|
bodyMapper: Mappers.ErrorResponse
|
|
516
765
|
}
|
|
517
766
|
},
|
|
518
|
-
serializer
|
|
519
|
-
};
|
|
520
|
-
|
|
521
|
-
const listConnectionsOperationSpec: msRest.OperationSpec = {
|
|
522
|
-
httpMethod: "GET",
|
|
523
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machines/{machineName}/connections",
|
|
524
|
-
urlParameters: [
|
|
525
|
-
Parameters.subscriptionId,
|
|
526
|
-
Parameters.resourceGroupName,
|
|
527
|
-
Parameters.workspaceName,
|
|
528
|
-
Parameters.machineName
|
|
529
|
-
],
|
|
530
767
|
queryParameters: [
|
|
531
768
|
Parameters.apiVersion,
|
|
532
769
|
Parameters.startTime,
|
|
533
770
|
Parameters.endTime
|
|
534
771
|
],
|
|
535
|
-
|
|
536
|
-
Parameters
|
|
772
|
+
urlParameters: [
|
|
773
|
+
Parameters.$host,
|
|
774
|
+
Parameters.subscriptionId,
|
|
775
|
+
Parameters.resourceGroupName,
|
|
776
|
+
Parameters.workspaceName,
|
|
777
|
+
Parameters.machineName
|
|
537
778
|
],
|
|
779
|
+
headerParameters: [Parameters.accept],
|
|
780
|
+
serializer
|
|
781
|
+
};
|
|
782
|
+
const listConnectionsOperationSpec: coreClient.OperationSpec = {
|
|
783
|
+
path:
|
|
784
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machines/{machineName}/connections",
|
|
785
|
+
httpMethod: "GET",
|
|
538
786
|
responses: {
|
|
539
787
|
200: {
|
|
540
788
|
bodyMapper: Mappers.ConnectionCollection
|
|
@@ -543,28 +791,25 @@ const listConnectionsOperationSpec: msRest.OperationSpec = {
|
|
|
543
791
|
bodyMapper: Mappers.ErrorResponse
|
|
544
792
|
}
|
|
545
793
|
},
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machines/{machineName}/processes",
|
|
794
|
+
queryParameters: [
|
|
795
|
+
Parameters.apiVersion,
|
|
796
|
+
Parameters.startTime,
|
|
797
|
+
Parameters.endTime
|
|
798
|
+
],
|
|
552
799
|
urlParameters: [
|
|
800
|
+
Parameters.$host,
|
|
553
801
|
Parameters.subscriptionId,
|
|
554
802
|
Parameters.resourceGroupName,
|
|
555
803
|
Parameters.workspaceName,
|
|
556
804
|
Parameters.machineName
|
|
557
805
|
],
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
headerParameters: [
|
|
566
|
-
Parameters.acceptLanguage
|
|
567
|
-
],
|
|
806
|
+
headerParameters: [Parameters.accept],
|
|
807
|
+
serializer
|
|
808
|
+
};
|
|
809
|
+
const listProcessesOperationSpec: coreClient.OperationSpec = {
|
|
810
|
+
path:
|
|
811
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machines/{machineName}/processes",
|
|
812
|
+
httpMethod: "GET",
|
|
568
813
|
responses: {
|
|
569
814
|
200: {
|
|
570
815
|
bodyMapper: Mappers.ProcessCollection
|
|
@@ -573,26 +818,27 @@ const listProcessesOperationSpec: msRest.OperationSpec = {
|
|
|
573
818
|
bodyMapper: Mappers.ErrorResponse
|
|
574
819
|
}
|
|
575
820
|
},
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
821
|
+
queryParameters: [
|
|
822
|
+
Parameters.apiVersion,
|
|
823
|
+
Parameters.live,
|
|
824
|
+
Parameters.startTime,
|
|
825
|
+
Parameters.endTime,
|
|
826
|
+
Parameters.timestamp
|
|
827
|
+
],
|
|
582
828
|
urlParameters: [
|
|
829
|
+
Parameters.$host,
|
|
583
830
|
Parameters.subscriptionId,
|
|
584
831
|
Parameters.resourceGroupName,
|
|
585
832
|
Parameters.workspaceName,
|
|
586
833
|
Parameters.machineName
|
|
587
834
|
],
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
],
|
|
835
|
+
headerParameters: [Parameters.accept],
|
|
836
|
+
serializer
|
|
837
|
+
};
|
|
838
|
+
const listPortsOperationSpec: coreClient.OperationSpec = {
|
|
839
|
+
path:
|
|
840
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machines/{machineName}/ports",
|
|
841
|
+
httpMethod: "GET",
|
|
596
842
|
responses: {
|
|
597
843
|
200: {
|
|
598
844
|
bodyMapper: Mappers.PortCollection
|
|
@@ -601,26 +847,25 @@ const listPortsOperationSpec: msRest.OperationSpec = {
|
|
|
601
847
|
bodyMapper: Mappers.ErrorResponse
|
|
602
848
|
}
|
|
603
849
|
},
|
|
604
|
-
serializer
|
|
605
|
-
};
|
|
606
|
-
|
|
607
|
-
const listMachineGroupMembershipOperationSpec: msRest.OperationSpec = {
|
|
608
|
-
httpMethod: "GET",
|
|
609
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machines/{machineName}/machineGroups",
|
|
610
|
-
urlParameters: [
|
|
611
|
-
Parameters.subscriptionId,
|
|
612
|
-
Parameters.resourceGroupName,
|
|
613
|
-
Parameters.workspaceName,
|
|
614
|
-
Parameters.machineName
|
|
615
|
-
],
|
|
616
850
|
queryParameters: [
|
|
617
851
|
Parameters.apiVersion,
|
|
618
852
|
Parameters.startTime,
|
|
619
853
|
Parameters.endTime
|
|
620
854
|
],
|
|
621
|
-
|
|
622
|
-
Parameters
|
|
855
|
+
urlParameters: [
|
|
856
|
+
Parameters.$host,
|
|
857
|
+
Parameters.subscriptionId,
|
|
858
|
+
Parameters.resourceGroupName,
|
|
859
|
+
Parameters.workspaceName,
|
|
860
|
+
Parameters.machineName
|
|
623
861
|
],
|
|
862
|
+
headerParameters: [Parameters.accept],
|
|
863
|
+
serializer
|
|
864
|
+
};
|
|
865
|
+
const listMachineGroupMembershipOperationSpec: coreClient.OperationSpec = {
|
|
866
|
+
path:
|
|
867
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/features/serviceMap/machines/{machineName}/machineGroups",
|
|
868
|
+
httpMethod: "GET",
|
|
624
869
|
responses: {
|
|
625
870
|
200: {
|
|
626
871
|
bodyMapper: Mappers.MachineGroupCollection
|
|
@@ -629,19 +874,24 @@ const listMachineGroupMembershipOperationSpec: msRest.OperationSpec = {
|
|
|
629
874
|
bodyMapper: Mappers.ErrorResponse
|
|
630
875
|
}
|
|
631
876
|
},
|
|
877
|
+
queryParameters: [
|
|
878
|
+
Parameters.apiVersion,
|
|
879
|
+
Parameters.startTime,
|
|
880
|
+
Parameters.endTime
|
|
881
|
+
],
|
|
882
|
+
urlParameters: [
|
|
883
|
+
Parameters.$host,
|
|
884
|
+
Parameters.subscriptionId,
|
|
885
|
+
Parameters.resourceGroupName,
|
|
886
|
+
Parameters.workspaceName,
|
|
887
|
+
Parameters.machineName
|
|
888
|
+
],
|
|
889
|
+
headerParameters: [Parameters.accept],
|
|
632
890
|
serializer
|
|
633
891
|
};
|
|
634
|
-
|
|
635
|
-
const listByWorkspaceNextOperationSpec: msRest.OperationSpec = {
|
|
636
|
-
httpMethod: "GET",
|
|
637
|
-
baseUrl: "https://management.azure.com",
|
|
892
|
+
const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {
|
|
638
893
|
path: "{nextLink}",
|
|
639
|
-
|
|
640
|
-
Parameters.nextPageLink
|
|
641
|
-
],
|
|
642
|
-
headerParameters: [
|
|
643
|
-
Parameters.acceptLanguage
|
|
644
|
-
],
|
|
894
|
+
httpMethod: "GET",
|
|
645
895
|
responses: {
|
|
646
896
|
200: {
|
|
647
897
|
bodyMapper: Mappers.MachineCollection
|
|
@@ -650,19 +900,27 @@ const listByWorkspaceNextOperationSpec: msRest.OperationSpec = {
|
|
|
650
900
|
bodyMapper: Mappers.ErrorResponse
|
|
651
901
|
}
|
|
652
902
|
},
|
|
903
|
+
queryParameters: [
|
|
904
|
+
Parameters.apiVersion,
|
|
905
|
+
Parameters.live,
|
|
906
|
+
Parameters.startTime,
|
|
907
|
+
Parameters.endTime,
|
|
908
|
+
Parameters.timestamp,
|
|
909
|
+
Parameters.top
|
|
910
|
+
],
|
|
911
|
+
urlParameters: [
|
|
912
|
+
Parameters.$host,
|
|
913
|
+
Parameters.subscriptionId,
|
|
914
|
+
Parameters.resourceGroupName,
|
|
915
|
+
Parameters.workspaceName,
|
|
916
|
+
Parameters.nextLink
|
|
917
|
+
],
|
|
918
|
+
headerParameters: [Parameters.accept],
|
|
653
919
|
serializer
|
|
654
920
|
};
|
|
655
|
-
|
|
656
|
-
const listConnectionsNextOperationSpec: msRest.OperationSpec = {
|
|
657
|
-
httpMethod: "GET",
|
|
658
|
-
baseUrl: "https://management.azure.com",
|
|
921
|
+
const listConnectionsNextOperationSpec: coreClient.OperationSpec = {
|
|
659
922
|
path: "{nextLink}",
|
|
660
|
-
|
|
661
|
-
Parameters.nextPageLink
|
|
662
|
-
],
|
|
663
|
-
headerParameters: [
|
|
664
|
-
Parameters.acceptLanguage
|
|
665
|
-
],
|
|
923
|
+
httpMethod: "GET",
|
|
666
924
|
responses: {
|
|
667
925
|
200: {
|
|
668
926
|
bodyMapper: Mappers.ConnectionCollection
|
|
@@ -671,19 +929,25 @@ const listConnectionsNextOperationSpec: msRest.OperationSpec = {
|
|
|
671
929
|
bodyMapper: Mappers.ErrorResponse
|
|
672
930
|
}
|
|
673
931
|
},
|
|
932
|
+
queryParameters: [
|
|
933
|
+
Parameters.apiVersion,
|
|
934
|
+
Parameters.startTime,
|
|
935
|
+
Parameters.endTime
|
|
936
|
+
],
|
|
937
|
+
urlParameters: [
|
|
938
|
+
Parameters.$host,
|
|
939
|
+
Parameters.subscriptionId,
|
|
940
|
+
Parameters.resourceGroupName,
|
|
941
|
+
Parameters.workspaceName,
|
|
942
|
+
Parameters.machineName,
|
|
943
|
+
Parameters.nextLink
|
|
944
|
+
],
|
|
945
|
+
headerParameters: [Parameters.accept],
|
|
674
946
|
serializer
|
|
675
947
|
};
|
|
676
|
-
|
|
677
|
-
const listProcessesNextOperationSpec: msRest.OperationSpec = {
|
|
678
|
-
httpMethod: "GET",
|
|
679
|
-
baseUrl: "https://management.azure.com",
|
|
948
|
+
const listProcessesNextOperationSpec: coreClient.OperationSpec = {
|
|
680
949
|
path: "{nextLink}",
|
|
681
|
-
|
|
682
|
-
Parameters.nextPageLink
|
|
683
|
-
],
|
|
684
|
-
headerParameters: [
|
|
685
|
-
Parameters.acceptLanguage
|
|
686
|
-
],
|
|
950
|
+
httpMethod: "GET",
|
|
687
951
|
responses: {
|
|
688
952
|
200: {
|
|
689
953
|
bodyMapper: Mappers.ProcessCollection
|
|
@@ -692,19 +956,27 @@ const listProcessesNextOperationSpec: msRest.OperationSpec = {
|
|
|
692
956
|
bodyMapper: Mappers.ErrorResponse
|
|
693
957
|
}
|
|
694
958
|
},
|
|
959
|
+
queryParameters: [
|
|
960
|
+
Parameters.apiVersion,
|
|
961
|
+
Parameters.live,
|
|
962
|
+
Parameters.startTime,
|
|
963
|
+
Parameters.endTime,
|
|
964
|
+
Parameters.timestamp
|
|
965
|
+
],
|
|
966
|
+
urlParameters: [
|
|
967
|
+
Parameters.$host,
|
|
968
|
+
Parameters.subscriptionId,
|
|
969
|
+
Parameters.resourceGroupName,
|
|
970
|
+
Parameters.workspaceName,
|
|
971
|
+
Parameters.machineName,
|
|
972
|
+
Parameters.nextLink
|
|
973
|
+
],
|
|
974
|
+
headerParameters: [Parameters.accept],
|
|
695
975
|
serializer
|
|
696
976
|
};
|
|
697
|
-
|
|
698
|
-
const listPortsNextOperationSpec: msRest.OperationSpec = {
|
|
699
|
-
httpMethod: "GET",
|
|
700
|
-
baseUrl: "https://management.azure.com",
|
|
977
|
+
const listPortsNextOperationSpec: coreClient.OperationSpec = {
|
|
701
978
|
path: "{nextLink}",
|
|
702
|
-
|
|
703
|
-
Parameters.nextPageLink
|
|
704
|
-
],
|
|
705
|
-
headerParameters: [
|
|
706
|
-
Parameters.acceptLanguage
|
|
707
|
-
],
|
|
979
|
+
httpMethod: "GET",
|
|
708
980
|
responses: {
|
|
709
981
|
200: {
|
|
710
982
|
bodyMapper: Mappers.PortCollection
|
|
@@ -713,19 +985,25 @@ const listPortsNextOperationSpec: msRest.OperationSpec = {
|
|
|
713
985
|
bodyMapper: Mappers.ErrorResponse
|
|
714
986
|
}
|
|
715
987
|
},
|
|
988
|
+
queryParameters: [
|
|
989
|
+
Parameters.apiVersion,
|
|
990
|
+
Parameters.startTime,
|
|
991
|
+
Parameters.endTime
|
|
992
|
+
],
|
|
993
|
+
urlParameters: [
|
|
994
|
+
Parameters.$host,
|
|
995
|
+
Parameters.subscriptionId,
|
|
996
|
+
Parameters.resourceGroupName,
|
|
997
|
+
Parameters.workspaceName,
|
|
998
|
+
Parameters.machineName,
|
|
999
|
+
Parameters.nextLink
|
|
1000
|
+
],
|
|
1001
|
+
headerParameters: [Parameters.accept],
|
|
716
1002
|
serializer
|
|
717
1003
|
};
|
|
718
|
-
|
|
719
|
-
const listMachineGroupMembershipNextOperationSpec: msRest.OperationSpec = {
|
|
720
|
-
httpMethod: "GET",
|
|
721
|
-
baseUrl: "https://management.azure.com",
|
|
1004
|
+
const listMachineGroupMembershipNextOperationSpec: coreClient.OperationSpec = {
|
|
722
1005
|
path: "{nextLink}",
|
|
723
|
-
|
|
724
|
-
Parameters.nextPageLink
|
|
725
|
-
],
|
|
726
|
-
headerParameters: [
|
|
727
|
-
Parameters.acceptLanguage
|
|
728
|
-
],
|
|
1006
|
+
httpMethod: "GET",
|
|
729
1007
|
responses: {
|
|
730
1008
|
200: {
|
|
731
1009
|
bodyMapper: Mappers.MachineGroupCollection
|
|
@@ -734,5 +1012,19 @@ const listMachineGroupMembershipNextOperationSpec: msRest.OperationSpec = {
|
|
|
734
1012
|
bodyMapper: Mappers.ErrorResponse
|
|
735
1013
|
}
|
|
736
1014
|
},
|
|
1015
|
+
queryParameters: [
|
|
1016
|
+
Parameters.apiVersion,
|
|
1017
|
+
Parameters.startTime,
|
|
1018
|
+
Parameters.endTime
|
|
1019
|
+
],
|
|
1020
|
+
urlParameters: [
|
|
1021
|
+
Parameters.$host,
|
|
1022
|
+
Parameters.subscriptionId,
|
|
1023
|
+
Parameters.resourceGroupName,
|
|
1024
|
+
Parameters.workspaceName,
|
|
1025
|
+
Parameters.machineName,
|
|
1026
|
+
Parameters.nextLink
|
|
1027
|
+
],
|
|
1028
|
+
headerParameters: [Parameters.accept],
|
|
737
1029
|
serializer
|
|
738
1030
|
};
|