@azure/arm-hybridcompute 2.1.1 → 3.0.0
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 -85
- package/dist/index.js +3565 -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/approveOrRejectAPrivateEndpointConnectionWithAGivenName.d.ts +2 -0
- package/dist-esm/samples-dev/approveOrRejectAPrivateEndpointConnectionWithAGivenName.d.ts.map +1 -0
- package/dist-esm/samples-dev/approveOrRejectAPrivateEndpointConnectionWithAGivenName.js +40 -0
- package/dist-esm/samples-dev/approveOrRejectAPrivateEndpointConnectionWithAGivenName.js.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateAMachineExtension.d.ts +2 -0
- package/dist-esm/samples-dev/createOrUpdateAMachineExtension.d.ts.map +1 -0
- package/dist-esm/samples-dev/createOrUpdateAMachineExtension.js +42 -0
- package/dist-esm/samples-dev/createOrUpdateAMachineExtension.js.map +1 -0
- package/dist-esm/samples-dev/deleteAMachine.d.ts +2 -0
- package/dist-esm/samples-dev/deleteAMachine.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteAMachine.js +31 -0
- package/dist-esm/samples-dev/deleteAMachine.js.map +1 -0
- package/dist-esm/samples-dev/deleteAMachineExtension.d.ts +2 -0
- package/dist-esm/samples-dev/deleteAMachineExtension.d.ts.map +1 -0
- package/dist-esm/samples-dev/deleteAMachineExtension.js +32 -0
- package/dist-esm/samples-dev/deleteAMachineExtension.js.map +1 -0
- package/dist-esm/samples-dev/deletesAPrivateEndpointConnectionWithAGivenName.d.ts +2 -0
- package/dist-esm/samples-dev/deletesAPrivateEndpointConnectionWithAGivenName.d.ts.map +1 -0
- package/dist-esm/samples-dev/deletesAPrivateEndpointConnectionWithAGivenName.js +32 -0
- package/dist-esm/samples-dev/deletesAPrivateEndpointConnectionWithAGivenName.js.map +1 -0
- package/dist-esm/samples-dev/getAllMachineExtensions.d.ts +2 -0
- package/dist-esm/samples-dev/getAllMachineExtensions.d.ts.map +1 -0
- package/dist-esm/samples-dev/getAllMachineExtensions.js +45 -0
- package/dist-esm/samples-dev/getAllMachineExtensions.js.map +1 -0
- package/dist-esm/samples-dev/getMachine.d.ts +2 -0
- package/dist-esm/samples-dev/getMachine.d.ts.map +1 -0
- package/dist-esm/samples-dev/getMachine.js +31 -0
- package/dist-esm/samples-dev/getMachine.js.map +1 -0
- package/dist-esm/samples-dev/getMachineExtension.d.ts +2 -0
- package/dist-esm/samples-dev/getMachineExtension.d.ts.map +1 -0
- package/dist-esm/samples-dev/getMachineExtension.js +32 -0
- package/dist-esm/samples-dev/getMachineExtension.js.map +1 -0
- package/dist-esm/samples-dev/getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope.d.ts +2 -0
- package/dist-esm/samples-dev/getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope.d.ts.map +1 -0
- package/dist-esm/samples-dev/getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope.js +45 -0
- package/dist-esm/samples-dev/getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope.js.map +1 -0
- package/dist-esm/samples-dev/getsPrivateEndpointConnection.d.ts +2 -0
- package/dist-esm/samples-dev/getsPrivateEndpointConnection.d.ts.map +1 -0
- package/dist-esm/samples-dev/getsPrivateEndpointConnection.js +32 -0
- package/dist-esm/samples-dev/getsPrivateEndpointConnection.js.map +1 -0
- package/dist-esm/samples-dev/listMachinesByResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/listMachinesByResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/listMachinesByResourceGroup.js +43 -0
- package/dist-esm/samples-dev/listMachinesByResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkScopeCreate.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkScopeCreate.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkScopeCreate.js +32 -0
- package/dist-esm/samples-dev/privateLinkScopeCreate.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkScopeGet.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkScopeGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkScopeGet.js +31 -0
- package/dist-esm/samples-dev/privateLinkScopeGet.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkScopeListByResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkScopeListByResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkScopeListByResourceGroup.js +44 -0
- package/dist-esm/samples-dev/privateLinkScopeListByResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkScopeUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkScopeUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkScopeUpdate.js +35 -0
- package/dist-esm/samples-dev/privateLinkScopeUpdate.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkScopeUpdateTagsOnly.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkScopeUpdateTagsOnly.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkScopeUpdateTagsOnly.js +34 -0
- package/dist-esm/samples-dev/privateLinkScopeUpdateTagsOnly.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkScopesDelete.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkScopesDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkScopesDelete.js +31 -0
- package/dist-esm/samples-dev/privateLinkScopesDelete.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkScopesListJson.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkScopesListJson.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkScopesListJson.js +43 -0
- package/dist-esm/samples-dev/privateLinkScopesListJson.js.map +1 -0
- package/dist-esm/samples-dev/upgradeMachineExtensions.d.ts +2 -0
- package/dist-esm/samples-dev/upgradeMachineExtensions.d.ts.map +1 -0
- package/dist-esm/samples-dev/upgradeMachineExtensions.js +37 -0
- package/dist-esm/samples-dev/upgradeMachineExtensions.js.map +1 -0
- package/dist-esm/src/hybridComputeManagementClient.d.ts +40 -0
- package/dist-esm/src/hybridComputeManagementClient.d.ts.map +1 -0
- package/dist-esm/src/hybridComputeManagementClient.js +138 -0
- package/dist-esm/src/hybridComputeManagementClient.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/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +875 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +43 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +45 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +829 -555
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +25 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +219 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +7 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +14 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/machineExtensions.d.ts +99 -0
- package/dist-esm/src/operations/machineExtensions.d.ts.map +1 -0
- package/dist-esm/src/operations/machineExtensions.js +429 -0
- package/dist-esm/src/operations/machineExtensions.js.map +1 -0
- package/dist-esm/src/operations/machines.d.ts +71 -0
- package/dist-esm/src/operations/machines.d.ts.map +1 -0
- package/dist-esm/src/operations/machines.js +294 -0
- package/dist-esm/src/operations/machines.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +90 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +81 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +337 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +46 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +169 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/privateLinkScopes.d.ts +108 -0
- package/dist-esm/src/operations/privateLinkScopes.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkScopes.js +466 -0
- package/dist-esm/src/operations/privateLinkScopes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +14 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/machineExtensions.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/machineExtensions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/machineExtensions.js +9 -0
- package/dist-esm/src/operationsInterfaces/machineExtensions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/machines.d.ts +33 -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/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkScopes.d.ts +72 -0
- package/dist-esm/src/operationsInterfaces/privateLinkScopes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkScopes.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkScopes.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 +80 -33
- package/review/arm-hybridcompute.api.md +708 -0
- package/rollup.config.js +181 -30
- package/src/hybridComputeManagementClient.ts +204 -37
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +744 -786
- package/src/models/mappers.ts +836 -576
- package/src/models/parameters.ts +192 -33
- package/src/operations/index.ts +6 -5
- package/src/operations/machineExtensions.ts +484 -275
- package/src/operations/machines.ts +240 -225
- package/src/operations/operations.ts +66 -42
- package/src/operations/privateEndpointConnections.ts +483 -0
- package/src/operations/privateLinkResources.ts +233 -0
- package/src/operations/privateLinkScopes.ts +599 -0
- package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +7 -6
- package/src/operationsInterfaces/machineExtensions.ts +147 -0
- package/src/operationsInterfaces/machines.ts +62 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
- package/src/operationsInterfaces/privateLinkResources.ts +44 -0
- package/src/operationsInterfaces/privateLinkScopes.ts +132 -0
- package/tsconfig.json +5 -4
- package/types/arm-hybridcompute.d.ts +1280 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-hybridcompute.js +0 -1971
- package/dist/arm-hybridcompute.js.map +0 -1
- package/dist/arm-hybridcompute.min.js +0 -1
- package/dist/arm-hybridcompute.min.js.map +0 -1
- package/esm/hybridComputeManagementClient.d.ts +0 -27
- package/esm/hybridComputeManagementClient.d.ts.map +0 -1
- package/esm/hybridComputeManagementClient.js +0 -41
- package/esm/hybridComputeManagementClient.js.map +0 -1
- package/esm/hybridComputeManagementClientContext.d.ts +0 -23
- package/esm/hybridComputeManagementClientContext.d.ts.map +0 -1
- package/esm/hybridComputeManagementClientContext.js +0 -62
- package/esm/hybridComputeManagementClientContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -971
- 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/machineExtensionsMappers.d.ts +0 -2
- package/esm/models/machineExtensionsMappers.d.ts.map +0 -1
- package/esm/models/machineExtensionsMappers.js +0 -9
- package/esm/models/machineExtensionsMappers.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 -32
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -10
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -93
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/index.d.ts +0 -4
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/machineExtensions.d.ts +0 -135
- package/esm/operations/machineExtensions.d.ts.map +0 -1
- package/esm/operations/machineExtensions.js +0 -294
- package/esm/operations/machineExtensions.js.map +0 -1
- package/esm/operations/machines.d.ts +0 -128
- package/esm/operations/machines.d.ts.map +0 -1
- package/esm/operations/machines.js +0 -197
- package/esm/operations/machines.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/src/hybridComputeManagementClientContext.ts +0 -69
- package/src/models/machineExtensionsMappers.ts +0 -31
- package/src/models/machinesMappers.ts +0 -28
- package/src/models/operationsMappers.ts +0 -14
|
@@ -1,224 +1,245 @@
|
|
|
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 { HybridComputeManagementClient } from "../hybridComputeManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
Machine,
|
|
17
|
+
MachinesListByResourceGroupNextOptionalParams,
|
|
18
|
+
MachinesListByResourceGroupOptionalParams,
|
|
19
|
+
MachinesListBySubscriptionNextOptionalParams,
|
|
20
|
+
MachinesListBySubscriptionOptionalParams,
|
|
21
|
+
MachinesDeleteOptionalParams,
|
|
22
|
+
MachinesGetOptionalParams,
|
|
23
|
+
MachinesGetResponse,
|
|
24
|
+
MachinesListByResourceGroupResponse,
|
|
25
|
+
MachinesListBySubscriptionResponse,
|
|
26
|
+
MachinesListByResourceGroupNextResponse,
|
|
27
|
+
MachinesListBySubscriptionNextResponse
|
|
28
|
+
} from "../models";
|
|
16
29
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
30
|
+
/// <reference lib="esnext.asynciterable" />
|
|
31
|
+
/** Class containing Machines operations. */
|
|
32
|
+
export class MachinesImpl implements Machines {
|
|
33
|
+
private readonly client: HybridComputeManagementClient;
|
|
20
34
|
|
|
21
35
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
36
|
+
* Initialize a new instance of the class Machines class.
|
|
37
|
+
* @param client Reference to the service client
|
|
24
38
|
*/
|
|
25
|
-
constructor(client:
|
|
39
|
+
constructor(client: HybridComputeManagementClient) {
|
|
26
40
|
this.client = client;
|
|
27
41
|
}
|
|
28
42
|
|
|
29
43
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* @param
|
|
33
|
-
* @param
|
|
34
|
-
* @returns Promise<msRest.RestResponse>
|
|
35
|
-
*/
|
|
36
|
-
deleteMethod(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* @param resourceGroupName The name of the resource group.
|
|
39
|
-
* @param name The name of the hybrid machine.
|
|
40
|
-
* @param callback The callback
|
|
41
|
-
*/
|
|
42
|
-
deleteMethod(resourceGroupName: string, name: string, callback: msRest.ServiceCallback<void>): void;
|
|
43
|
-
/**
|
|
44
|
-
* @param resourceGroupName The name of the resource group.
|
|
45
|
-
* @param name The name of the hybrid machine.
|
|
46
|
-
* @param options The optional parameters
|
|
47
|
-
* @param callback The callback
|
|
44
|
+
* Lists all the hybrid machines in the specified resource group. Use the nextLink property in the
|
|
45
|
+
* response to get the next page of hybrid machines.
|
|
46
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
47
|
+
* @param options The options parameters.
|
|
48
48
|
*/
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
public listByResourceGroup(
|
|
50
|
+
resourceGroupName: string,
|
|
51
|
+
options?: MachinesListByResourceGroupOptionalParams
|
|
52
|
+
): PagedAsyncIterableIterator<Machine> {
|
|
53
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
54
|
+
return {
|
|
55
|
+
next() {
|
|
56
|
+
return iter.next();
|
|
56
57
|
},
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
[Symbol.asyncIterator]() {
|
|
59
|
+
return this;
|
|
60
|
+
},
|
|
61
|
+
byPage: () => {
|
|
62
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
59
65
|
}
|
|
60
66
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
* @param resourceGroupName The name of the resource group.
|
|
71
|
-
* @param name The name of the hybrid machine.
|
|
72
|
-
* @param callback The callback
|
|
73
|
-
*/
|
|
74
|
-
get(resourceGroupName: string, name: string, callback: msRest.ServiceCallback<Models.Machine>): void;
|
|
75
|
-
/**
|
|
76
|
-
* @param resourceGroupName The name of the resource group.
|
|
77
|
-
* @param name The name of the hybrid machine.
|
|
78
|
-
* @param options The optional parameters
|
|
79
|
-
* @param callback The callback
|
|
80
|
-
*/
|
|
81
|
-
get(resourceGroupName: string, name: string, options: Models.MachinesGetOptionalParams, callback: msRest.ServiceCallback<Models.Machine>): void;
|
|
82
|
-
get(resourceGroupName: string, name: string, options?: Models.MachinesGetOptionalParams | msRest.ServiceCallback<Models.Machine>, callback?: msRest.ServiceCallback<Models.Machine>): Promise<Models.MachinesGetResponse> {
|
|
83
|
-
return this.client.sendOperationRequest(
|
|
84
|
-
{
|
|
67
|
+
private async *listByResourceGroupPagingPage(
|
|
68
|
+
resourceGroupName: string,
|
|
69
|
+
options?: MachinesListByResourceGroupOptionalParams
|
|
70
|
+
): AsyncIterableIterator<Machine[]> {
|
|
71
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
72
|
+
yield result.value || [];
|
|
73
|
+
let continuationToken = result.nextLink;
|
|
74
|
+
while (continuationToken) {
|
|
75
|
+
result = await this._listByResourceGroupNext(
|
|
85
76
|
resourceGroupName,
|
|
86
|
-
|
|
77
|
+
continuationToken,
|
|
87
78
|
options
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
79
|
+
);
|
|
80
|
+
continuationToken = result.nextLink;
|
|
81
|
+
yield result.value || [];
|
|
82
|
+
}
|
|
91
83
|
}
|
|
92
84
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
* @param callback The callback
|
|
104
|
-
*/
|
|
105
|
-
listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.MachineListResult>): void;
|
|
106
|
-
/**
|
|
107
|
-
* @param resourceGroupName The name of the resource group.
|
|
108
|
-
* @param options The optional parameters
|
|
109
|
-
* @param callback The callback
|
|
110
|
-
*/
|
|
111
|
-
listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.MachineListResult>): void;
|
|
112
|
-
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.MachineListResult>, callback?: msRest.ServiceCallback<Models.MachineListResult>): Promise<Models.MachinesListByResourceGroupResponse> {
|
|
113
|
-
return this.client.sendOperationRequest(
|
|
114
|
-
{
|
|
115
|
-
resourceGroupName,
|
|
116
|
-
options
|
|
117
|
-
},
|
|
118
|
-
listByResourceGroupOperationSpec,
|
|
119
|
-
callback) as Promise<Models.MachinesListByResourceGroupResponse>;
|
|
85
|
+
private async *listByResourceGroupPagingAll(
|
|
86
|
+
resourceGroupName: string,
|
|
87
|
+
options?: MachinesListByResourceGroupOptionalParams
|
|
88
|
+
): AsyncIterableIterator<Machine> {
|
|
89
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
90
|
+
resourceGroupName,
|
|
91
|
+
options
|
|
92
|
+
)) {
|
|
93
|
+
yield* page;
|
|
94
|
+
}
|
|
120
95
|
}
|
|
121
96
|
|
|
122
97
|
/**
|
|
123
98
|
* Lists all the hybrid machines in the specified subscription. Use the nextLink property in the
|
|
124
99
|
* response to get the next page of hybrid machines.
|
|
125
|
-
* @param
|
|
126
|
-
* @returns Promise<Models.MachinesListBySubscriptionResponse>
|
|
100
|
+
* @param options The options parameters.
|
|
127
101
|
*/
|
|
128
|
-
listBySubscription(
|
|
102
|
+
public listBySubscription(
|
|
103
|
+
options?: MachinesListBySubscriptionOptionalParams
|
|
104
|
+
): PagedAsyncIterableIterator<Machine> {
|
|
105
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
106
|
+
return {
|
|
107
|
+
next() {
|
|
108
|
+
return iter.next();
|
|
109
|
+
},
|
|
110
|
+
[Symbol.asyncIterator]() {
|
|
111
|
+
return this;
|
|
112
|
+
},
|
|
113
|
+
byPage: () => {
|
|
114
|
+
return this.listBySubscriptionPagingPage(options);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
private async *listBySubscriptionPagingPage(
|
|
120
|
+
options?: MachinesListBySubscriptionOptionalParams
|
|
121
|
+
): AsyncIterableIterator<Machine[]> {
|
|
122
|
+
let result = await this._listBySubscription(options);
|
|
123
|
+
yield result.value || [];
|
|
124
|
+
let continuationToken = result.nextLink;
|
|
125
|
+
while (continuationToken) {
|
|
126
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
127
|
+
continuationToken = result.nextLink;
|
|
128
|
+
yield result.value || [];
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
private async *listBySubscriptionPagingAll(
|
|
133
|
+
options?: MachinesListBySubscriptionOptionalParams
|
|
134
|
+
): AsyncIterableIterator<Machine> {
|
|
135
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
136
|
+
yield* page;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
129
140
|
/**
|
|
130
|
-
*
|
|
141
|
+
* The operation to remove a hybrid machine identity in Azure.
|
|
142
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
143
|
+
* @param machineName The name of the hybrid machine.
|
|
144
|
+
* @param options The options parameters.
|
|
131
145
|
*/
|
|
132
|
-
|
|
146
|
+
delete(
|
|
147
|
+
resourceGroupName: string,
|
|
148
|
+
machineName: string,
|
|
149
|
+
options?: MachinesDeleteOptionalParams
|
|
150
|
+
): Promise<void> {
|
|
151
|
+
return this.client.sendOperationRequest(
|
|
152
|
+
{ resourceGroupName, machineName, options },
|
|
153
|
+
deleteOperationSpec
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
133
157
|
/**
|
|
134
|
-
*
|
|
135
|
-
* @param
|
|
158
|
+
* Retrieves information about the model view or the instance view of a hybrid machine.
|
|
159
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
160
|
+
* @param machineName The name of the hybrid machine.
|
|
161
|
+
* @param options The options parameters.
|
|
136
162
|
*/
|
|
137
|
-
|
|
138
|
-
|
|
163
|
+
get(
|
|
164
|
+
resourceGroupName: string,
|
|
165
|
+
machineName: string,
|
|
166
|
+
options?: MachinesGetOptionalParams
|
|
167
|
+
): Promise<MachinesGetResponse> {
|
|
139
168
|
return this.client.sendOperationRequest(
|
|
140
|
-
{
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
listBySubscriptionOperationSpec,
|
|
144
|
-
callback) as Promise<Models.MachinesListBySubscriptionResponse>;
|
|
169
|
+
{ resourceGroupName, machineName, options },
|
|
170
|
+
getOperationSpec
|
|
171
|
+
);
|
|
145
172
|
}
|
|
146
173
|
|
|
147
174
|
/**
|
|
148
175
|
* Lists all the hybrid machines in the specified resource group. Use the nextLink property in the
|
|
149
176
|
* response to get the next page of hybrid machines.
|
|
150
|
-
* @param
|
|
151
|
-
* @param
|
|
152
|
-
* @returns Promise<Models.MachinesListByResourceGroupNextResponse>
|
|
153
|
-
*/
|
|
154
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.MachinesListByResourceGroupNextResponse>;
|
|
155
|
-
/**
|
|
156
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
157
|
-
* @param callback The callback
|
|
177
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
178
|
+
* @param options The options parameters.
|
|
158
179
|
*/
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
* @param callback The callback
|
|
164
|
-
*/
|
|
165
|
-
listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.MachineListResult>): void;
|
|
166
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.MachineListResult>, callback?: msRest.ServiceCallback<Models.MachineListResult>): Promise<Models.MachinesListByResourceGroupNextResponse> {
|
|
180
|
+
private _listByResourceGroup(
|
|
181
|
+
resourceGroupName: string,
|
|
182
|
+
options?: MachinesListByResourceGroupOptionalParams
|
|
183
|
+
): Promise<MachinesListByResourceGroupResponse> {
|
|
167
184
|
return this.client.sendOperationRequest(
|
|
168
|
-
{
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
},
|
|
172
|
-
listByResourceGroupNextOperationSpec,
|
|
173
|
-
callback) as Promise<Models.MachinesListByResourceGroupNextResponse>;
|
|
185
|
+
{ resourceGroupName, options },
|
|
186
|
+
listByResourceGroupOperationSpec
|
|
187
|
+
);
|
|
174
188
|
}
|
|
175
189
|
|
|
176
190
|
/**
|
|
177
191
|
* Lists all the hybrid machines in the specified subscription. Use the nextLink property in the
|
|
178
192
|
* response to get the next page of hybrid machines.
|
|
179
|
-
* @param
|
|
180
|
-
* @param [options] The optional parameters
|
|
181
|
-
* @returns Promise<Models.MachinesListBySubscriptionNextResponse>
|
|
193
|
+
* @param options The options parameters.
|
|
182
194
|
*/
|
|
183
|
-
|
|
195
|
+
private _listBySubscription(
|
|
196
|
+
options?: MachinesListBySubscriptionOptionalParams
|
|
197
|
+
): Promise<MachinesListBySubscriptionResponse> {
|
|
198
|
+
return this.client.sendOperationRequest(
|
|
199
|
+
{ options },
|
|
200
|
+
listBySubscriptionOperationSpec
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
|
|
184
204
|
/**
|
|
185
|
-
*
|
|
186
|
-
* @param
|
|
205
|
+
* ListByResourceGroupNext
|
|
206
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
207
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
208
|
+
* @param options The options parameters.
|
|
187
209
|
*/
|
|
188
|
-
|
|
210
|
+
private _listByResourceGroupNext(
|
|
211
|
+
resourceGroupName: string,
|
|
212
|
+
nextLink: string,
|
|
213
|
+
options?: MachinesListByResourceGroupNextOptionalParams
|
|
214
|
+
): Promise<MachinesListByResourceGroupNextResponse> {
|
|
215
|
+
return this.client.sendOperationRequest(
|
|
216
|
+
{ resourceGroupName, nextLink, options },
|
|
217
|
+
listByResourceGroupNextOperationSpec
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
|
|
189
221
|
/**
|
|
190
|
-
*
|
|
191
|
-
* @param
|
|
192
|
-
* @param
|
|
222
|
+
* ListBySubscriptionNext
|
|
223
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
224
|
+
* @param options The options parameters.
|
|
193
225
|
*/
|
|
194
|
-
|
|
195
|
-
|
|
226
|
+
private _listBySubscriptionNext(
|
|
227
|
+
nextLink: string,
|
|
228
|
+
options?: MachinesListBySubscriptionNextOptionalParams
|
|
229
|
+
): Promise<MachinesListBySubscriptionNextResponse> {
|
|
196
230
|
return this.client.sendOperationRequest(
|
|
197
|
-
{
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
},
|
|
201
|
-
listBySubscriptionNextOperationSpec,
|
|
202
|
-
callback) as Promise<Models.MachinesListBySubscriptionNextResponse>;
|
|
231
|
+
{ nextLink, options },
|
|
232
|
+
listBySubscriptionNextOperationSpec
|
|
233
|
+
);
|
|
203
234
|
}
|
|
204
235
|
}
|
|
205
|
-
|
|
206
236
|
// Operation Specifications
|
|
207
|
-
const serializer =
|
|
208
|
-
|
|
237
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
238
|
+
|
|
239
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
240
|
+
path:
|
|
241
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}",
|
|
209
242
|
httpMethod: "DELETE",
|
|
210
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}",
|
|
211
|
-
urlParameters: [
|
|
212
|
-
Parameters.subscriptionId,
|
|
213
|
-
Parameters.resourceGroupName,
|
|
214
|
-
Parameters.name
|
|
215
|
-
],
|
|
216
|
-
queryParameters: [
|
|
217
|
-
Parameters.apiVersion
|
|
218
|
-
],
|
|
219
|
-
headerParameters: [
|
|
220
|
-
Parameters.acceptLanguage
|
|
221
|
-
],
|
|
222
243
|
responses: {
|
|
223
244
|
200: {},
|
|
224
245
|
204: {},
|
|
@@ -226,24 +247,20 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
|
226
247
|
bodyMapper: Mappers.ErrorResponse
|
|
227
248
|
}
|
|
228
249
|
},
|
|
229
|
-
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
233
|
-
httpMethod: "GET",
|
|
234
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}",
|
|
250
|
+
queryParameters: [Parameters.apiVersion],
|
|
235
251
|
urlParameters: [
|
|
252
|
+
Parameters.$host,
|
|
236
253
|
Parameters.subscriptionId,
|
|
237
254
|
Parameters.resourceGroupName,
|
|
238
|
-
Parameters.
|
|
239
|
-
],
|
|
240
|
-
queryParameters: [
|
|
241
|
-
Parameters.apiVersion,
|
|
242
|
-
Parameters.expand
|
|
243
|
-
],
|
|
244
|
-
headerParameters: [
|
|
245
|
-
Parameters.acceptLanguage
|
|
255
|
+
Parameters.machineName
|
|
246
256
|
],
|
|
257
|
+
headerParameters: [Parameters.accept],
|
|
258
|
+
serializer
|
|
259
|
+
};
|
|
260
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
261
|
+
path:
|
|
262
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}",
|
|
263
|
+
httpMethod: "GET",
|
|
247
264
|
responses: {
|
|
248
265
|
200: {
|
|
249
266
|
bodyMapper: Mappers.Machine
|
|
@@ -252,22 +269,20 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
252
269
|
bodyMapper: Mappers.ErrorResponse
|
|
253
270
|
}
|
|
254
271
|
},
|
|
255
|
-
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
259
|
-
httpMethod: "GET",
|
|
260
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines",
|
|
272
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
261
273
|
urlParameters: [
|
|
274
|
+
Parameters.$host,
|
|
262
275
|
Parameters.subscriptionId,
|
|
263
|
-
Parameters.resourceGroupName
|
|
264
|
-
|
|
265
|
-
queryParameters: [
|
|
266
|
-
Parameters.apiVersion
|
|
267
|
-
],
|
|
268
|
-
headerParameters: [
|
|
269
|
-
Parameters.acceptLanguage
|
|
276
|
+
Parameters.resourceGroupName,
|
|
277
|
+
Parameters.machineName
|
|
270
278
|
],
|
|
279
|
+
headerParameters: [Parameters.accept],
|
|
280
|
+
serializer
|
|
281
|
+
};
|
|
282
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
283
|
+
path:
|
|
284
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines",
|
|
285
|
+
httpMethod: "GET",
|
|
271
286
|
responses: {
|
|
272
287
|
200: {
|
|
273
288
|
bodyMapper: Mappers.MachineListResult
|
|
@@ -276,21 +291,19 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
276
291
|
bodyMapper: Mappers.ErrorResponse
|
|
277
292
|
}
|
|
278
293
|
},
|
|
294
|
+
queryParameters: [Parameters.apiVersion],
|
|
295
|
+
urlParameters: [
|
|
296
|
+
Parameters.$host,
|
|
297
|
+
Parameters.subscriptionId,
|
|
298
|
+
Parameters.resourceGroupName
|
|
299
|
+
],
|
|
300
|
+
headerParameters: [Parameters.accept],
|
|
279
301
|
serializer
|
|
280
302
|
};
|
|
281
|
-
|
|
282
|
-
|
|
303
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
304
|
+
path:
|
|
305
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines",
|
|
283
306
|
httpMethod: "GET",
|
|
284
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines",
|
|
285
|
-
urlParameters: [
|
|
286
|
-
Parameters.subscriptionId
|
|
287
|
-
],
|
|
288
|
-
queryParameters: [
|
|
289
|
-
Parameters.apiVersion
|
|
290
|
-
],
|
|
291
|
-
headerParameters: [
|
|
292
|
-
Parameters.acceptLanguage
|
|
293
|
-
],
|
|
294
307
|
responses: {
|
|
295
308
|
200: {
|
|
296
309
|
bodyMapper: Mappers.MachineListResult
|
|
@@ -299,19 +312,14 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = {
|
|
|
299
312
|
bodyMapper: Mappers.ErrorResponse
|
|
300
313
|
}
|
|
301
314
|
},
|
|
315
|
+
queryParameters: [Parameters.apiVersion],
|
|
316
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
317
|
+
headerParameters: [Parameters.accept],
|
|
302
318
|
serializer
|
|
303
319
|
};
|
|
304
|
-
|
|
305
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
306
|
-
httpMethod: "GET",
|
|
307
|
-
baseUrl: "https://management.azure.com",
|
|
320
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
308
321
|
path: "{nextLink}",
|
|
309
|
-
|
|
310
|
-
Parameters.nextPageLink
|
|
311
|
-
],
|
|
312
|
-
headerParameters: [
|
|
313
|
-
Parameters.acceptLanguage
|
|
314
|
-
],
|
|
322
|
+
httpMethod: "GET",
|
|
315
323
|
responses: {
|
|
316
324
|
200: {
|
|
317
325
|
bodyMapper: Mappers.MachineListResult
|
|
@@ -320,19 +328,19 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
|
320
328
|
bodyMapper: Mappers.ErrorResponse
|
|
321
329
|
}
|
|
322
330
|
},
|
|
331
|
+
queryParameters: [Parameters.apiVersion],
|
|
332
|
+
urlParameters: [
|
|
333
|
+
Parameters.$host,
|
|
334
|
+
Parameters.subscriptionId,
|
|
335
|
+
Parameters.resourceGroupName,
|
|
336
|
+
Parameters.nextLink
|
|
337
|
+
],
|
|
338
|
+
headerParameters: [Parameters.accept],
|
|
323
339
|
serializer
|
|
324
340
|
};
|
|
325
|
-
|
|
326
|
-
const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
|
|
327
|
-
httpMethod: "GET",
|
|
328
|
-
baseUrl: "https://management.azure.com",
|
|
341
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
329
342
|
path: "{nextLink}",
|
|
330
|
-
|
|
331
|
-
Parameters.nextPageLink
|
|
332
|
-
],
|
|
333
|
-
headerParameters: [
|
|
334
|
-
Parameters.acceptLanguage
|
|
335
|
-
],
|
|
343
|
+
httpMethod: "GET",
|
|
336
344
|
responses: {
|
|
337
345
|
200: {
|
|
338
346
|
bodyMapper: Mappers.MachineListResult
|
|
@@ -341,5 +349,12 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
|
|
|
341
349
|
bodyMapper: Mappers.ErrorResponse
|
|
342
350
|
}
|
|
343
351
|
},
|
|
352
|
+
queryParameters: [Parameters.apiVersion],
|
|
353
|
+
urlParameters: [
|
|
354
|
+
Parameters.$host,
|
|
355
|
+
Parameters.subscriptionId,
|
|
356
|
+
Parameters.nextLink
|
|
357
|
+
],
|
|
358
|
+
headerParameters: [Parameters.accept],
|
|
344
359
|
serializer
|
|
345
360
|
};
|