@azure/arm-hybridcompute 1.0.0 → 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 +72 -79
- 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 +753 -716
- 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 -32
- package/review/arm-hybridcompute.api.md +708 -0
- package/rollup.config.js +181 -30
- package/src/hybridComputeManagementClient.ts +203 -29
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +744 -939
- package/src/models/mappers.ts +721 -708
- package/src/models/parameters.ts +187 -34
- 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 -2224
- 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 -20
- package/esm/hybridComputeManagementClient.d.ts.map +0 -1
- package/esm/hybridComputeManagementClient.js +0 -35
- package/esm/hybridComputeManagementClient.js.map +0 -1
- package/esm/hybridComputeManagementClientContext.d.ts +0 -16
- package/esm/hybridComputeManagementClientContext.d.ts.map +0 -1
- package/esm/hybridComputeManagementClientContext.js +0 -56
- package/esm/hybridComputeManagementClientContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -1115
- 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 -41
- 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 -99
- 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 -62
- package/src/models/machineExtensionsMappers.ts +0 -37
- package/src/models/machinesMappers.ts +0 -35
- package/src/models/operationsMappers.ts +0 -14
package/dist/index.js
ADDED
|
@@ -0,0 +1,3565 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib = require('tslib');
|
|
6
|
+
var coreClient = require('@azure/core-client');
|
|
7
|
+
var coreLro = require('@azure/core-lro');
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright (c) Microsoft Corporation.
|
|
11
|
+
* Licensed under the MIT License.
|
|
12
|
+
*
|
|
13
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
|
+
*/
|
|
16
|
+
(function (KnownInstanceViewTypes) {
|
|
17
|
+
KnownInstanceViewTypes["InstanceView"] = "instanceView";
|
|
18
|
+
})(exports.KnownInstanceViewTypes || (exports.KnownInstanceViewTypes = {}));
|
|
19
|
+
(function (KnownStatusTypes) {
|
|
20
|
+
KnownStatusTypes["Connected"] = "Connected";
|
|
21
|
+
KnownStatusTypes["Disconnected"] = "Disconnected";
|
|
22
|
+
KnownStatusTypes["Error"] = "Error";
|
|
23
|
+
})(exports.KnownStatusTypes || (exports.KnownStatusTypes = {}));
|
|
24
|
+
(function (KnownStatusLevelTypes) {
|
|
25
|
+
KnownStatusLevelTypes["Info"] = "Info";
|
|
26
|
+
KnownStatusLevelTypes["Warning"] = "Warning";
|
|
27
|
+
KnownStatusLevelTypes["Error"] = "Error";
|
|
28
|
+
})(exports.KnownStatusLevelTypes || (exports.KnownStatusLevelTypes = {}));
|
|
29
|
+
(function (KnownCreatedByType) {
|
|
30
|
+
KnownCreatedByType["User"] = "User";
|
|
31
|
+
KnownCreatedByType["Application"] = "Application";
|
|
32
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
33
|
+
KnownCreatedByType["Key"] = "Key";
|
|
34
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
35
|
+
(function (KnownPublicNetworkAccessType) {
|
|
36
|
+
/** Allows Azure Arc agents to communicate with Azure Arc services over both public (internet) and private endpoints. */
|
|
37
|
+
KnownPublicNetworkAccessType["Enabled"] = "Enabled";
|
|
38
|
+
/** Does not allow Azure Arc agents to communicate with Azure Arc services over public (internet) endpoints. The agents must use the private link. */
|
|
39
|
+
KnownPublicNetworkAccessType["Disabled"] = "Disabled";
|
|
40
|
+
})(exports.KnownPublicNetworkAccessType || (exports.KnownPublicNetworkAccessType = {}));
|
|
41
|
+
|
|
42
|
+
/*
|
|
43
|
+
* Copyright (c) Microsoft Corporation.
|
|
44
|
+
* Licensed under the MIT License.
|
|
45
|
+
*
|
|
46
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
47
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
48
|
+
*/
|
|
49
|
+
class LroImpl {
|
|
50
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
51
|
+
this.sendOperationFn = sendOperationFn;
|
|
52
|
+
this.args = args;
|
|
53
|
+
this.spec = spec;
|
|
54
|
+
this.requestPath = requestPath;
|
|
55
|
+
this.requestMethod = requestMethod;
|
|
56
|
+
}
|
|
57
|
+
sendInitialRequest() {
|
|
58
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
sendPollRequest(path) {
|
|
63
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
65
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/*
|
|
71
|
+
* Copyright (c) Microsoft Corporation.
|
|
72
|
+
* Licensed under the MIT License.
|
|
73
|
+
*
|
|
74
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
75
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
76
|
+
*/
|
|
77
|
+
const ErrorResponse = {
|
|
78
|
+
type: {
|
|
79
|
+
name: "Composite",
|
|
80
|
+
className: "ErrorResponse",
|
|
81
|
+
modelProperties: {
|
|
82
|
+
error: {
|
|
83
|
+
serializedName: "error",
|
|
84
|
+
type: {
|
|
85
|
+
name: "Composite",
|
|
86
|
+
className: "ErrorDetail"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
const ErrorDetail = {
|
|
93
|
+
type: {
|
|
94
|
+
name: "Composite",
|
|
95
|
+
className: "ErrorDetail",
|
|
96
|
+
modelProperties: {
|
|
97
|
+
code: {
|
|
98
|
+
serializedName: "code",
|
|
99
|
+
readOnly: true,
|
|
100
|
+
type: {
|
|
101
|
+
name: "String"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
message: {
|
|
105
|
+
serializedName: "message",
|
|
106
|
+
readOnly: true,
|
|
107
|
+
type: {
|
|
108
|
+
name: "String"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
target: {
|
|
112
|
+
serializedName: "target",
|
|
113
|
+
readOnly: true,
|
|
114
|
+
type: {
|
|
115
|
+
name: "String"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
details: {
|
|
119
|
+
serializedName: "details",
|
|
120
|
+
readOnly: true,
|
|
121
|
+
type: {
|
|
122
|
+
name: "Sequence",
|
|
123
|
+
element: {
|
|
124
|
+
type: {
|
|
125
|
+
name: "Composite",
|
|
126
|
+
className: "ErrorDetail"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
additionalInfo: {
|
|
132
|
+
serializedName: "additionalInfo",
|
|
133
|
+
readOnly: true,
|
|
134
|
+
type: {
|
|
135
|
+
name: "Sequence",
|
|
136
|
+
element: {
|
|
137
|
+
type: {
|
|
138
|
+
name: "Composite",
|
|
139
|
+
className: "ErrorAdditionalInfo"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
const ErrorAdditionalInfo = {
|
|
148
|
+
type: {
|
|
149
|
+
name: "Composite",
|
|
150
|
+
className: "ErrorAdditionalInfo",
|
|
151
|
+
modelProperties: {
|
|
152
|
+
type: {
|
|
153
|
+
serializedName: "type",
|
|
154
|
+
readOnly: true,
|
|
155
|
+
type: {
|
|
156
|
+
name: "String"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
info: {
|
|
160
|
+
serializedName: "info",
|
|
161
|
+
readOnly: true,
|
|
162
|
+
type: {
|
|
163
|
+
name: "Dictionary",
|
|
164
|
+
value: { type: { name: "any" } }
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
const MachineProperties = {
|
|
171
|
+
type: {
|
|
172
|
+
name: "Composite",
|
|
173
|
+
className: "MachineProperties",
|
|
174
|
+
modelProperties: {
|
|
175
|
+
locationData: {
|
|
176
|
+
serializedName: "locationData",
|
|
177
|
+
type: {
|
|
178
|
+
name: "Composite",
|
|
179
|
+
className: "LocationData"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
osProfile: {
|
|
183
|
+
serializedName: "osProfile",
|
|
184
|
+
type: {
|
|
185
|
+
name: "Composite",
|
|
186
|
+
className: "OSProfile"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
provisioningState: {
|
|
190
|
+
serializedName: "provisioningState",
|
|
191
|
+
readOnly: true,
|
|
192
|
+
type: {
|
|
193
|
+
name: "String"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
status: {
|
|
197
|
+
serializedName: "status",
|
|
198
|
+
readOnly: true,
|
|
199
|
+
type: {
|
|
200
|
+
name: "String"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
lastStatusChange: {
|
|
204
|
+
serializedName: "lastStatusChange",
|
|
205
|
+
readOnly: true,
|
|
206
|
+
type: {
|
|
207
|
+
name: "DateTime"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
errorDetails: {
|
|
211
|
+
serializedName: "errorDetails",
|
|
212
|
+
readOnly: true,
|
|
213
|
+
type: {
|
|
214
|
+
name: "Sequence",
|
|
215
|
+
element: {
|
|
216
|
+
type: {
|
|
217
|
+
name: "Composite",
|
|
218
|
+
className: "ErrorDetail"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
agentVersion: {
|
|
224
|
+
serializedName: "agentVersion",
|
|
225
|
+
readOnly: true,
|
|
226
|
+
type: {
|
|
227
|
+
name: "String"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
vmId: {
|
|
231
|
+
serializedName: "vmId",
|
|
232
|
+
type: {
|
|
233
|
+
name: "String"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
displayName: {
|
|
237
|
+
serializedName: "displayName",
|
|
238
|
+
readOnly: true,
|
|
239
|
+
type: {
|
|
240
|
+
name: "String"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
machineFqdn: {
|
|
244
|
+
serializedName: "machineFqdn",
|
|
245
|
+
readOnly: true,
|
|
246
|
+
type: {
|
|
247
|
+
name: "String"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
clientPublicKey: {
|
|
251
|
+
serializedName: "clientPublicKey",
|
|
252
|
+
type: {
|
|
253
|
+
name: "String"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
osName: {
|
|
257
|
+
serializedName: "osName",
|
|
258
|
+
readOnly: true,
|
|
259
|
+
type: {
|
|
260
|
+
name: "String"
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
osVersion: {
|
|
264
|
+
serializedName: "osVersion",
|
|
265
|
+
readOnly: true,
|
|
266
|
+
type: {
|
|
267
|
+
name: "String"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
vmUuid: {
|
|
271
|
+
serializedName: "vmUuid",
|
|
272
|
+
readOnly: true,
|
|
273
|
+
type: {
|
|
274
|
+
name: "String"
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
extensions: {
|
|
278
|
+
serializedName: "extensions",
|
|
279
|
+
type: {
|
|
280
|
+
name: "Sequence",
|
|
281
|
+
element: {
|
|
282
|
+
type: {
|
|
283
|
+
name: "Composite",
|
|
284
|
+
className: "MachineExtensionInstanceView"
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
osSku: {
|
|
290
|
+
serializedName: "osSku",
|
|
291
|
+
readOnly: true,
|
|
292
|
+
type: {
|
|
293
|
+
name: "String"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
domainName: {
|
|
297
|
+
serializedName: "domainName",
|
|
298
|
+
readOnly: true,
|
|
299
|
+
type: {
|
|
300
|
+
name: "String"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
adFqdn: {
|
|
304
|
+
serializedName: "adFqdn",
|
|
305
|
+
readOnly: true,
|
|
306
|
+
type: {
|
|
307
|
+
name: "String"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
dnsFqdn: {
|
|
311
|
+
serializedName: "dnsFqdn",
|
|
312
|
+
readOnly: true,
|
|
313
|
+
type: {
|
|
314
|
+
name: "String"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
privateLinkScopeResourceId: {
|
|
318
|
+
serializedName: "privateLinkScopeResourceId",
|
|
319
|
+
type: {
|
|
320
|
+
name: "String"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
parentClusterResourceId: {
|
|
324
|
+
serializedName: "parentClusterResourceId",
|
|
325
|
+
type: {
|
|
326
|
+
name: "String"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
detectedProperties: {
|
|
330
|
+
serializedName: "detectedProperties",
|
|
331
|
+
readOnly: true,
|
|
332
|
+
type: {
|
|
333
|
+
name: "Dictionary",
|
|
334
|
+
value: { type: { name: "String" } }
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
const LocationData = {
|
|
341
|
+
type: {
|
|
342
|
+
name: "Composite",
|
|
343
|
+
className: "LocationData",
|
|
344
|
+
modelProperties: {
|
|
345
|
+
name: {
|
|
346
|
+
constraints: {
|
|
347
|
+
MaxLength: 256
|
|
348
|
+
},
|
|
349
|
+
serializedName: "name",
|
|
350
|
+
required: true,
|
|
351
|
+
type: {
|
|
352
|
+
name: "String"
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
city: {
|
|
356
|
+
serializedName: "city",
|
|
357
|
+
type: {
|
|
358
|
+
name: "String"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
district: {
|
|
362
|
+
serializedName: "district",
|
|
363
|
+
type: {
|
|
364
|
+
name: "String"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
countryOrRegion: {
|
|
368
|
+
serializedName: "countryOrRegion",
|
|
369
|
+
type: {
|
|
370
|
+
name: "String"
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
const OSProfile = {
|
|
377
|
+
type: {
|
|
378
|
+
name: "Composite",
|
|
379
|
+
className: "OSProfile",
|
|
380
|
+
modelProperties: {
|
|
381
|
+
computerName: {
|
|
382
|
+
serializedName: "computerName",
|
|
383
|
+
readOnly: true,
|
|
384
|
+
type: {
|
|
385
|
+
name: "String"
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
const MachineExtensionInstanceView = {
|
|
392
|
+
type: {
|
|
393
|
+
name: "Composite",
|
|
394
|
+
className: "MachineExtensionInstanceView",
|
|
395
|
+
modelProperties: {
|
|
396
|
+
name: {
|
|
397
|
+
serializedName: "name",
|
|
398
|
+
type: {
|
|
399
|
+
name: "String"
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
type: {
|
|
403
|
+
serializedName: "type",
|
|
404
|
+
type: {
|
|
405
|
+
name: "String"
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
typeHandlerVersion: {
|
|
409
|
+
serializedName: "typeHandlerVersion",
|
|
410
|
+
type: {
|
|
411
|
+
name: "String"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
status: {
|
|
415
|
+
serializedName: "status",
|
|
416
|
+
type: {
|
|
417
|
+
name: "Composite",
|
|
418
|
+
className: "MachineExtensionInstanceViewStatus"
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
const MachineExtensionInstanceViewStatus = {
|
|
425
|
+
type: {
|
|
426
|
+
name: "Composite",
|
|
427
|
+
className: "MachineExtensionInstanceViewStatus",
|
|
428
|
+
modelProperties: {
|
|
429
|
+
code: {
|
|
430
|
+
serializedName: "code",
|
|
431
|
+
type: {
|
|
432
|
+
name: "String"
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
level: {
|
|
436
|
+
serializedName: "level",
|
|
437
|
+
type: {
|
|
438
|
+
name: "String"
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
displayStatus: {
|
|
442
|
+
serializedName: "displayStatus",
|
|
443
|
+
type: {
|
|
444
|
+
name: "String"
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
message: {
|
|
448
|
+
serializedName: "message",
|
|
449
|
+
type: {
|
|
450
|
+
name: "String"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
time: {
|
|
454
|
+
serializedName: "time",
|
|
455
|
+
type: {
|
|
456
|
+
name: "DateTime"
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
const Identity = {
|
|
463
|
+
type: {
|
|
464
|
+
name: "Composite",
|
|
465
|
+
className: "Identity",
|
|
466
|
+
modelProperties: {
|
|
467
|
+
principalId: {
|
|
468
|
+
serializedName: "principalId",
|
|
469
|
+
readOnly: true,
|
|
470
|
+
type: {
|
|
471
|
+
name: "String"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
tenantId: {
|
|
475
|
+
serializedName: "tenantId",
|
|
476
|
+
readOnly: true,
|
|
477
|
+
type: {
|
|
478
|
+
name: "String"
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
type: {
|
|
482
|
+
defaultValue: "SystemAssigned",
|
|
483
|
+
isConstant: true,
|
|
484
|
+
serializedName: "type",
|
|
485
|
+
type: {
|
|
486
|
+
name: "String"
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
};
|
|
492
|
+
const SystemData = {
|
|
493
|
+
type: {
|
|
494
|
+
name: "Composite",
|
|
495
|
+
className: "SystemData",
|
|
496
|
+
modelProperties: {
|
|
497
|
+
createdBy: {
|
|
498
|
+
serializedName: "createdBy",
|
|
499
|
+
type: {
|
|
500
|
+
name: "String"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
createdByType: {
|
|
504
|
+
serializedName: "createdByType",
|
|
505
|
+
type: {
|
|
506
|
+
name: "String"
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
createdAt: {
|
|
510
|
+
serializedName: "createdAt",
|
|
511
|
+
type: {
|
|
512
|
+
name: "DateTime"
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
lastModifiedBy: {
|
|
516
|
+
serializedName: "lastModifiedBy",
|
|
517
|
+
type: {
|
|
518
|
+
name: "String"
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
lastModifiedByType: {
|
|
522
|
+
serializedName: "lastModifiedByType",
|
|
523
|
+
type: {
|
|
524
|
+
name: "String"
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
lastModifiedAt: {
|
|
528
|
+
serializedName: "lastModifiedAt",
|
|
529
|
+
type: {
|
|
530
|
+
name: "DateTime"
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
const Resource = {
|
|
537
|
+
type: {
|
|
538
|
+
name: "Composite",
|
|
539
|
+
className: "Resource",
|
|
540
|
+
modelProperties: {
|
|
541
|
+
id: {
|
|
542
|
+
serializedName: "id",
|
|
543
|
+
readOnly: true,
|
|
544
|
+
type: {
|
|
545
|
+
name: "String"
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
name: {
|
|
549
|
+
serializedName: "name",
|
|
550
|
+
readOnly: true,
|
|
551
|
+
type: {
|
|
552
|
+
name: "String"
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
type: {
|
|
556
|
+
serializedName: "type",
|
|
557
|
+
readOnly: true,
|
|
558
|
+
type: {
|
|
559
|
+
name: "String"
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
};
|
|
565
|
+
const MachineListResult = {
|
|
566
|
+
type: {
|
|
567
|
+
name: "Composite",
|
|
568
|
+
className: "MachineListResult",
|
|
569
|
+
modelProperties: {
|
|
570
|
+
value: {
|
|
571
|
+
serializedName: "value",
|
|
572
|
+
required: true,
|
|
573
|
+
type: {
|
|
574
|
+
name: "Sequence",
|
|
575
|
+
element: {
|
|
576
|
+
type: {
|
|
577
|
+
name: "Composite",
|
|
578
|
+
className: "Machine"
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
nextLink: {
|
|
584
|
+
serializedName: "nextLink",
|
|
585
|
+
type: {
|
|
586
|
+
name: "String"
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
};
|
|
592
|
+
const MachineExtensionProperties = {
|
|
593
|
+
type: {
|
|
594
|
+
name: "Composite",
|
|
595
|
+
className: "MachineExtensionProperties",
|
|
596
|
+
modelProperties: {
|
|
597
|
+
forceUpdateTag: {
|
|
598
|
+
serializedName: "forceUpdateTag",
|
|
599
|
+
type: {
|
|
600
|
+
name: "String"
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
publisher: {
|
|
604
|
+
serializedName: "publisher",
|
|
605
|
+
type: {
|
|
606
|
+
name: "String"
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
type: {
|
|
610
|
+
serializedName: "type",
|
|
611
|
+
type: {
|
|
612
|
+
name: "String"
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
typeHandlerVersion: {
|
|
616
|
+
serializedName: "typeHandlerVersion",
|
|
617
|
+
type: {
|
|
618
|
+
name: "String"
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
autoUpgradeMinorVersion: {
|
|
622
|
+
serializedName: "autoUpgradeMinorVersion",
|
|
623
|
+
type: {
|
|
624
|
+
name: "Boolean"
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
settings: {
|
|
628
|
+
serializedName: "settings",
|
|
629
|
+
type: {
|
|
630
|
+
name: "Dictionary",
|
|
631
|
+
value: { type: { name: "any" } }
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
protectedSettings: {
|
|
635
|
+
serializedName: "protectedSettings",
|
|
636
|
+
type: {
|
|
637
|
+
name: "Dictionary",
|
|
638
|
+
value: { type: { name: "any" } }
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
provisioningState: {
|
|
642
|
+
serializedName: "provisioningState",
|
|
643
|
+
readOnly: true,
|
|
644
|
+
type: {
|
|
645
|
+
name: "String"
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
instanceView: {
|
|
649
|
+
serializedName: "instanceView",
|
|
650
|
+
type: {
|
|
651
|
+
name: "Composite",
|
|
652
|
+
className: "MachineExtensionInstanceView"
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
};
|
|
658
|
+
const MachineExtensionUpdateProperties = {
|
|
659
|
+
type: {
|
|
660
|
+
name: "Composite",
|
|
661
|
+
className: "MachineExtensionUpdateProperties",
|
|
662
|
+
modelProperties: {
|
|
663
|
+
forceUpdateTag: {
|
|
664
|
+
serializedName: "forceUpdateTag",
|
|
665
|
+
type: {
|
|
666
|
+
name: "String"
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
publisher: {
|
|
670
|
+
serializedName: "publisher",
|
|
671
|
+
type: {
|
|
672
|
+
name: "String"
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
type: {
|
|
676
|
+
serializedName: "type",
|
|
677
|
+
type: {
|
|
678
|
+
name: "String"
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
typeHandlerVersion: {
|
|
682
|
+
serializedName: "typeHandlerVersion",
|
|
683
|
+
type: {
|
|
684
|
+
name: "String"
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
autoUpgradeMinorVersion: {
|
|
688
|
+
serializedName: "autoUpgradeMinorVersion",
|
|
689
|
+
type: {
|
|
690
|
+
name: "Boolean"
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
settings: {
|
|
694
|
+
serializedName: "settings",
|
|
695
|
+
type: {
|
|
696
|
+
name: "Dictionary",
|
|
697
|
+
value: { type: { name: "any" } }
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
protectedSettings: {
|
|
701
|
+
serializedName: "protectedSettings",
|
|
702
|
+
type: {
|
|
703
|
+
name: "Dictionary",
|
|
704
|
+
value: { type: { name: "any" } }
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
};
|
|
710
|
+
const ResourceUpdate = {
|
|
711
|
+
type: {
|
|
712
|
+
name: "Composite",
|
|
713
|
+
className: "ResourceUpdate",
|
|
714
|
+
modelProperties: {
|
|
715
|
+
tags: {
|
|
716
|
+
serializedName: "tags",
|
|
717
|
+
type: {
|
|
718
|
+
name: "Dictionary",
|
|
719
|
+
value: { type: { name: "String" } }
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
};
|
|
725
|
+
const MachineExtensionsListResult = {
|
|
726
|
+
type: {
|
|
727
|
+
name: "Composite",
|
|
728
|
+
className: "MachineExtensionsListResult",
|
|
729
|
+
modelProperties: {
|
|
730
|
+
value: {
|
|
731
|
+
serializedName: "value",
|
|
732
|
+
type: {
|
|
733
|
+
name: "Sequence",
|
|
734
|
+
element: {
|
|
735
|
+
type: {
|
|
736
|
+
name: "Composite",
|
|
737
|
+
className: "MachineExtension"
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
nextLink: {
|
|
743
|
+
serializedName: "nextLink",
|
|
744
|
+
type: {
|
|
745
|
+
name: "String"
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
};
|
|
751
|
+
const MachineExtensionUpgrade = {
|
|
752
|
+
type: {
|
|
753
|
+
name: "Composite",
|
|
754
|
+
className: "MachineExtensionUpgrade",
|
|
755
|
+
modelProperties: {
|
|
756
|
+
extensionTargets: {
|
|
757
|
+
serializedName: "extensionTargets",
|
|
758
|
+
type: {
|
|
759
|
+
name: "Dictionary",
|
|
760
|
+
value: {
|
|
761
|
+
type: { name: "Composite", className: "ExtensionTargetProperties" }
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
};
|
|
768
|
+
const ExtensionTargetProperties = {
|
|
769
|
+
type: {
|
|
770
|
+
name: "Composite",
|
|
771
|
+
className: "ExtensionTargetProperties",
|
|
772
|
+
modelProperties: {
|
|
773
|
+
targetVersion: {
|
|
774
|
+
serializedName: "targetVersion",
|
|
775
|
+
type: {
|
|
776
|
+
name: "String"
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
};
|
|
782
|
+
const OperationListResult = {
|
|
783
|
+
type: {
|
|
784
|
+
name: "Composite",
|
|
785
|
+
className: "OperationListResult",
|
|
786
|
+
modelProperties: {
|
|
787
|
+
value: {
|
|
788
|
+
serializedName: "value",
|
|
789
|
+
readOnly: true,
|
|
790
|
+
type: {
|
|
791
|
+
name: "Sequence",
|
|
792
|
+
element: {
|
|
793
|
+
type: {
|
|
794
|
+
name: "Composite",
|
|
795
|
+
className: "OperationValue"
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
};
|
|
803
|
+
const OperationValue = {
|
|
804
|
+
type: {
|
|
805
|
+
name: "Composite",
|
|
806
|
+
className: "OperationValue",
|
|
807
|
+
modelProperties: {
|
|
808
|
+
origin: {
|
|
809
|
+
serializedName: "origin",
|
|
810
|
+
readOnly: true,
|
|
811
|
+
type: {
|
|
812
|
+
name: "String"
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
name: {
|
|
816
|
+
serializedName: "name",
|
|
817
|
+
readOnly: true,
|
|
818
|
+
type: {
|
|
819
|
+
name: "String"
|
|
820
|
+
}
|
|
821
|
+
},
|
|
822
|
+
display: {
|
|
823
|
+
serializedName: "display",
|
|
824
|
+
type: {
|
|
825
|
+
name: "Composite",
|
|
826
|
+
className: "OperationValueDisplay"
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
};
|
|
832
|
+
const OperationValueDisplay = {
|
|
833
|
+
type: {
|
|
834
|
+
name: "Composite",
|
|
835
|
+
className: "OperationValueDisplay",
|
|
836
|
+
modelProperties: {
|
|
837
|
+
operation: {
|
|
838
|
+
serializedName: "operation",
|
|
839
|
+
readOnly: true,
|
|
840
|
+
type: {
|
|
841
|
+
name: "String"
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
resource: {
|
|
845
|
+
serializedName: "resource",
|
|
846
|
+
readOnly: true,
|
|
847
|
+
type: {
|
|
848
|
+
name: "String"
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
description: {
|
|
852
|
+
serializedName: "description",
|
|
853
|
+
readOnly: true,
|
|
854
|
+
type: {
|
|
855
|
+
name: "String"
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
provider: {
|
|
859
|
+
serializedName: "provider",
|
|
860
|
+
readOnly: true,
|
|
861
|
+
type: {
|
|
862
|
+
name: "String"
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
};
|
|
868
|
+
const HybridComputePrivateLinkScopeListResult = {
|
|
869
|
+
type: {
|
|
870
|
+
name: "Composite",
|
|
871
|
+
className: "HybridComputePrivateLinkScopeListResult",
|
|
872
|
+
modelProperties: {
|
|
873
|
+
value: {
|
|
874
|
+
serializedName: "value",
|
|
875
|
+
required: true,
|
|
876
|
+
type: {
|
|
877
|
+
name: "Sequence",
|
|
878
|
+
element: {
|
|
879
|
+
type: {
|
|
880
|
+
name: "Composite",
|
|
881
|
+
className: "HybridComputePrivateLinkScope"
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
},
|
|
886
|
+
nextLink: {
|
|
887
|
+
serializedName: "nextLink",
|
|
888
|
+
type: {
|
|
889
|
+
name: "String"
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
};
|
|
895
|
+
const HybridComputePrivateLinkScopeProperties = {
|
|
896
|
+
type: {
|
|
897
|
+
name: "Composite",
|
|
898
|
+
className: "HybridComputePrivateLinkScopeProperties",
|
|
899
|
+
modelProperties: {
|
|
900
|
+
publicNetworkAccess: {
|
|
901
|
+
defaultValue: "Disabled",
|
|
902
|
+
serializedName: "publicNetworkAccess",
|
|
903
|
+
type: {
|
|
904
|
+
name: "String"
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
provisioningState: {
|
|
908
|
+
serializedName: "provisioningState",
|
|
909
|
+
readOnly: true,
|
|
910
|
+
type: {
|
|
911
|
+
name: "String"
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
privateLinkScopeId: {
|
|
915
|
+
serializedName: "privateLinkScopeId",
|
|
916
|
+
readOnly: true,
|
|
917
|
+
type: {
|
|
918
|
+
name: "String"
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
};
|
|
924
|
+
const PrivateLinkScopesResource = {
|
|
925
|
+
type: {
|
|
926
|
+
name: "Composite",
|
|
927
|
+
className: "PrivateLinkScopesResource",
|
|
928
|
+
modelProperties: {
|
|
929
|
+
id: {
|
|
930
|
+
serializedName: "id",
|
|
931
|
+
readOnly: true,
|
|
932
|
+
type: {
|
|
933
|
+
name: "String"
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
name: {
|
|
937
|
+
serializedName: "name",
|
|
938
|
+
readOnly: true,
|
|
939
|
+
type: {
|
|
940
|
+
name: "String"
|
|
941
|
+
}
|
|
942
|
+
},
|
|
943
|
+
type: {
|
|
944
|
+
serializedName: "type",
|
|
945
|
+
readOnly: true,
|
|
946
|
+
type: {
|
|
947
|
+
name: "String"
|
|
948
|
+
}
|
|
949
|
+
},
|
|
950
|
+
location: {
|
|
951
|
+
serializedName: "location",
|
|
952
|
+
required: true,
|
|
953
|
+
type: {
|
|
954
|
+
name: "String"
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
tags: {
|
|
958
|
+
serializedName: "tags",
|
|
959
|
+
type: {
|
|
960
|
+
name: "Dictionary",
|
|
961
|
+
value: { type: { name: "String" } }
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
};
|
|
967
|
+
const TagsResource = {
|
|
968
|
+
type: {
|
|
969
|
+
name: "Composite",
|
|
970
|
+
className: "TagsResource",
|
|
971
|
+
modelProperties: {
|
|
972
|
+
tags: {
|
|
973
|
+
serializedName: "tags",
|
|
974
|
+
type: {
|
|
975
|
+
name: "Dictionary",
|
|
976
|
+
value: { type: { name: "String" } }
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
};
|
|
982
|
+
const PrivateLinkResourceListResult = {
|
|
983
|
+
type: {
|
|
984
|
+
name: "Composite",
|
|
985
|
+
className: "PrivateLinkResourceListResult",
|
|
986
|
+
modelProperties: {
|
|
987
|
+
value: {
|
|
988
|
+
serializedName: "value",
|
|
989
|
+
readOnly: true,
|
|
990
|
+
type: {
|
|
991
|
+
name: "Sequence",
|
|
992
|
+
element: {
|
|
993
|
+
type: {
|
|
994
|
+
name: "Composite",
|
|
995
|
+
className: "PrivateLinkResource"
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
nextLink: {
|
|
1001
|
+
serializedName: "nextLink",
|
|
1002
|
+
readOnly: true,
|
|
1003
|
+
type: {
|
|
1004
|
+
name: "String"
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
};
|
|
1010
|
+
const PrivateLinkResourceProperties = {
|
|
1011
|
+
type: {
|
|
1012
|
+
name: "Composite",
|
|
1013
|
+
className: "PrivateLinkResourceProperties",
|
|
1014
|
+
modelProperties: {
|
|
1015
|
+
groupId: {
|
|
1016
|
+
serializedName: "groupId",
|
|
1017
|
+
readOnly: true,
|
|
1018
|
+
type: {
|
|
1019
|
+
name: "String"
|
|
1020
|
+
}
|
|
1021
|
+
},
|
|
1022
|
+
requiredMembers: {
|
|
1023
|
+
serializedName: "requiredMembers",
|
|
1024
|
+
readOnly: true,
|
|
1025
|
+
type: {
|
|
1026
|
+
name: "Sequence",
|
|
1027
|
+
element: {
|
|
1028
|
+
type: {
|
|
1029
|
+
name: "String"
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
},
|
|
1034
|
+
requiredZoneNames: {
|
|
1035
|
+
serializedName: "requiredZoneNames",
|
|
1036
|
+
readOnly: true,
|
|
1037
|
+
type: {
|
|
1038
|
+
name: "Sequence",
|
|
1039
|
+
element: {
|
|
1040
|
+
type: {
|
|
1041
|
+
name: "String"
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
};
|
|
1049
|
+
const PrivateEndpointConnectionProperties = {
|
|
1050
|
+
type: {
|
|
1051
|
+
name: "Composite",
|
|
1052
|
+
className: "PrivateEndpointConnectionProperties",
|
|
1053
|
+
modelProperties: {
|
|
1054
|
+
privateEndpoint: {
|
|
1055
|
+
serializedName: "privateEndpoint",
|
|
1056
|
+
type: {
|
|
1057
|
+
name: "Composite",
|
|
1058
|
+
className: "PrivateEndpointProperty"
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
privateLinkServiceConnectionState: {
|
|
1062
|
+
serializedName: "privateLinkServiceConnectionState",
|
|
1063
|
+
type: {
|
|
1064
|
+
name: "Composite",
|
|
1065
|
+
className: "PrivateLinkServiceConnectionStateProperty"
|
|
1066
|
+
}
|
|
1067
|
+
},
|
|
1068
|
+
provisioningState: {
|
|
1069
|
+
serializedName: "provisioningState",
|
|
1070
|
+
readOnly: true,
|
|
1071
|
+
type: {
|
|
1072
|
+
name: "String"
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
};
|
|
1078
|
+
const PrivateEndpointProperty = {
|
|
1079
|
+
type: {
|
|
1080
|
+
name: "Composite",
|
|
1081
|
+
className: "PrivateEndpointProperty",
|
|
1082
|
+
modelProperties: {
|
|
1083
|
+
id: {
|
|
1084
|
+
serializedName: "id",
|
|
1085
|
+
type: {
|
|
1086
|
+
name: "String"
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
};
|
|
1092
|
+
const PrivateLinkServiceConnectionStateProperty = {
|
|
1093
|
+
type: {
|
|
1094
|
+
name: "Composite",
|
|
1095
|
+
className: "PrivateLinkServiceConnectionStateProperty",
|
|
1096
|
+
modelProperties: {
|
|
1097
|
+
status: {
|
|
1098
|
+
serializedName: "status",
|
|
1099
|
+
required: true,
|
|
1100
|
+
type: {
|
|
1101
|
+
name: "String"
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
description: {
|
|
1105
|
+
serializedName: "description",
|
|
1106
|
+
required: true,
|
|
1107
|
+
type: {
|
|
1108
|
+
name: "String"
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
actionsRequired: {
|
|
1112
|
+
serializedName: "actionsRequired",
|
|
1113
|
+
readOnly: true,
|
|
1114
|
+
type: {
|
|
1115
|
+
name: "String"
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
};
|
|
1121
|
+
const PrivateEndpointConnectionListResult = {
|
|
1122
|
+
type: {
|
|
1123
|
+
name: "Composite",
|
|
1124
|
+
className: "PrivateEndpointConnectionListResult",
|
|
1125
|
+
modelProperties: {
|
|
1126
|
+
value: {
|
|
1127
|
+
serializedName: "value",
|
|
1128
|
+
readOnly: true,
|
|
1129
|
+
type: {
|
|
1130
|
+
name: "Sequence",
|
|
1131
|
+
element: {
|
|
1132
|
+
type: {
|
|
1133
|
+
name: "Composite",
|
|
1134
|
+
className: "PrivateEndpointConnection"
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
},
|
|
1139
|
+
nextLink: {
|
|
1140
|
+
serializedName: "nextLink",
|
|
1141
|
+
readOnly: true,
|
|
1142
|
+
type: {
|
|
1143
|
+
name: "String"
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
};
|
|
1149
|
+
const PrivateLinkScopeValidationDetails = {
|
|
1150
|
+
type: {
|
|
1151
|
+
name: "Composite",
|
|
1152
|
+
className: "PrivateLinkScopeValidationDetails",
|
|
1153
|
+
modelProperties: {
|
|
1154
|
+
id: {
|
|
1155
|
+
serializedName: "id",
|
|
1156
|
+
readOnly: true,
|
|
1157
|
+
type: {
|
|
1158
|
+
name: "String"
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
publicNetworkAccess: {
|
|
1162
|
+
defaultValue: "Disabled",
|
|
1163
|
+
serializedName: "publicNetworkAccess",
|
|
1164
|
+
type: {
|
|
1165
|
+
name: "String"
|
|
1166
|
+
}
|
|
1167
|
+
},
|
|
1168
|
+
connectionDetails: {
|
|
1169
|
+
serializedName: "connectionDetails",
|
|
1170
|
+
type: {
|
|
1171
|
+
name: "Sequence",
|
|
1172
|
+
element: {
|
|
1173
|
+
type: {
|
|
1174
|
+
name: "Composite",
|
|
1175
|
+
className: "ConnectionDetail"
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
};
|
|
1183
|
+
const ConnectionDetail = {
|
|
1184
|
+
type: {
|
|
1185
|
+
name: "Composite",
|
|
1186
|
+
className: "ConnectionDetail",
|
|
1187
|
+
modelProperties: {
|
|
1188
|
+
id: {
|
|
1189
|
+
serializedName: "id",
|
|
1190
|
+
readOnly: true,
|
|
1191
|
+
type: {
|
|
1192
|
+
name: "String"
|
|
1193
|
+
}
|
|
1194
|
+
},
|
|
1195
|
+
privateIpAddress: {
|
|
1196
|
+
serializedName: "privateIpAddress",
|
|
1197
|
+
readOnly: true,
|
|
1198
|
+
type: {
|
|
1199
|
+
name: "String"
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1202
|
+
linkIdentifier: {
|
|
1203
|
+
serializedName: "linkIdentifier",
|
|
1204
|
+
readOnly: true,
|
|
1205
|
+
type: {
|
|
1206
|
+
name: "String"
|
|
1207
|
+
}
|
|
1208
|
+
},
|
|
1209
|
+
groupId: {
|
|
1210
|
+
serializedName: "groupId",
|
|
1211
|
+
readOnly: true,
|
|
1212
|
+
type: {
|
|
1213
|
+
name: "String"
|
|
1214
|
+
}
|
|
1215
|
+
},
|
|
1216
|
+
memberName: {
|
|
1217
|
+
serializedName: "memberName",
|
|
1218
|
+
readOnly: true,
|
|
1219
|
+
type: {
|
|
1220
|
+
name: "String"
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
};
|
|
1226
|
+
const MachineUpdateProperties = {
|
|
1227
|
+
type: {
|
|
1228
|
+
name: "Composite",
|
|
1229
|
+
className: "MachineUpdateProperties",
|
|
1230
|
+
modelProperties: {
|
|
1231
|
+
locationData: {
|
|
1232
|
+
serializedName: "locationData",
|
|
1233
|
+
type: {
|
|
1234
|
+
name: "Composite",
|
|
1235
|
+
className: "LocationData"
|
|
1236
|
+
}
|
|
1237
|
+
},
|
|
1238
|
+
parentClusterResourceId: {
|
|
1239
|
+
serializedName: "parentClusterResourceId",
|
|
1240
|
+
type: {
|
|
1241
|
+
name: "String"
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
privateLinkScopeResourceId: {
|
|
1245
|
+
serializedName: "privateLinkScopeResourceId",
|
|
1246
|
+
type: {
|
|
1247
|
+
name: "String"
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
};
|
|
1253
|
+
const TrackedResource = {
|
|
1254
|
+
type: {
|
|
1255
|
+
name: "Composite",
|
|
1256
|
+
className: "TrackedResource",
|
|
1257
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
1258
|
+
serializedName: "tags",
|
|
1259
|
+
type: {
|
|
1260
|
+
name: "Dictionary",
|
|
1261
|
+
value: { type: { name: "String" } }
|
|
1262
|
+
}
|
|
1263
|
+
}, location: {
|
|
1264
|
+
serializedName: "location",
|
|
1265
|
+
required: true,
|
|
1266
|
+
type: {
|
|
1267
|
+
name: "String"
|
|
1268
|
+
}
|
|
1269
|
+
} })
|
|
1270
|
+
}
|
|
1271
|
+
};
|
|
1272
|
+
const ProxyResource = {
|
|
1273
|
+
type: {
|
|
1274
|
+
name: "Composite",
|
|
1275
|
+
className: "ProxyResource",
|
|
1276
|
+
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
|
1277
|
+
}
|
|
1278
|
+
};
|
|
1279
|
+
const MachineExtensionUpdate = {
|
|
1280
|
+
type: {
|
|
1281
|
+
name: "Composite",
|
|
1282
|
+
className: "MachineExtensionUpdate",
|
|
1283
|
+
modelProperties: Object.assign(Object.assign({}, ResourceUpdate.type.modelProperties), { properties: {
|
|
1284
|
+
serializedName: "properties",
|
|
1285
|
+
type: {
|
|
1286
|
+
name: "Composite",
|
|
1287
|
+
className: "MachineExtensionUpdateProperties"
|
|
1288
|
+
}
|
|
1289
|
+
} })
|
|
1290
|
+
}
|
|
1291
|
+
};
|
|
1292
|
+
const MachineUpdate = {
|
|
1293
|
+
type: {
|
|
1294
|
+
name: "Composite",
|
|
1295
|
+
className: "MachineUpdate",
|
|
1296
|
+
modelProperties: Object.assign(Object.assign({}, ResourceUpdate.type.modelProperties), { identity: {
|
|
1297
|
+
serializedName: "identity",
|
|
1298
|
+
type: {
|
|
1299
|
+
name: "Composite",
|
|
1300
|
+
className: "Identity"
|
|
1301
|
+
}
|
|
1302
|
+
}, properties: {
|
|
1303
|
+
serializedName: "properties",
|
|
1304
|
+
type: {
|
|
1305
|
+
name: "Composite",
|
|
1306
|
+
className: "MachineUpdateProperties"
|
|
1307
|
+
}
|
|
1308
|
+
} })
|
|
1309
|
+
}
|
|
1310
|
+
};
|
|
1311
|
+
const HybridComputePrivateLinkScope = {
|
|
1312
|
+
type: {
|
|
1313
|
+
name: "Composite",
|
|
1314
|
+
className: "HybridComputePrivateLinkScope",
|
|
1315
|
+
modelProperties: Object.assign(Object.assign({}, PrivateLinkScopesResource.type.modelProperties), { properties: {
|
|
1316
|
+
serializedName: "properties",
|
|
1317
|
+
type: {
|
|
1318
|
+
name: "Composite",
|
|
1319
|
+
className: "HybridComputePrivateLinkScopeProperties"
|
|
1320
|
+
}
|
|
1321
|
+
}, systemData: {
|
|
1322
|
+
serializedName: "systemData",
|
|
1323
|
+
type: {
|
|
1324
|
+
name: "Composite",
|
|
1325
|
+
className: "SystemData"
|
|
1326
|
+
}
|
|
1327
|
+
} })
|
|
1328
|
+
}
|
|
1329
|
+
};
|
|
1330
|
+
const Machine = {
|
|
1331
|
+
type: {
|
|
1332
|
+
name: "Composite",
|
|
1333
|
+
className: "Machine",
|
|
1334
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { properties: {
|
|
1335
|
+
serializedName: "properties",
|
|
1336
|
+
type: {
|
|
1337
|
+
name: "Composite",
|
|
1338
|
+
className: "MachineProperties"
|
|
1339
|
+
}
|
|
1340
|
+
}, identity: {
|
|
1341
|
+
serializedName: "identity",
|
|
1342
|
+
type: {
|
|
1343
|
+
name: "Composite",
|
|
1344
|
+
className: "Identity"
|
|
1345
|
+
}
|
|
1346
|
+
}, systemData: {
|
|
1347
|
+
serializedName: "systemData",
|
|
1348
|
+
type: {
|
|
1349
|
+
name: "Composite",
|
|
1350
|
+
className: "SystemData"
|
|
1351
|
+
}
|
|
1352
|
+
} })
|
|
1353
|
+
}
|
|
1354
|
+
};
|
|
1355
|
+
const MachineExtension = {
|
|
1356
|
+
type: {
|
|
1357
|
+
name: "Composite",
|
|
1358
|
+
className: "MachineExtension",
|
|
1359
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { properties: {
|
|
1360
|
+
serializedName: "properties",
|
|
1361
|
+
type: {
|
|
1362
|
+
name: "Composite",
|
|
1363
|
+
className: "MachineExtensionProperties"
|
|
1364
|
+
}
|
|
1365
|
+
}, systemData: {
|
|
1366
|
+
serializedName: "systemData",
|
|
1367
|
+
type: {
|
|
1368
|
+
name: "Composite",
|
|
1369
|
+
className: "SystemData"
|
|
1370
|
+
}
|
|
1371
|
+
} })
|
|
1372
|
+
}
|
|
1373
|
+
};
|
|
1374
|
+
const PrivateLinkResource = {
|
|
1375
|
+
type: {
|
|
1376
|
+
name: "Composite",
|
|
1377
|
+
className: "PrivateLinkResource",
|
|
1378
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
|
|
1379
|
+
serializedName: "properties",
|
|
1380
|
+
type: {
|
|
1381
|
+
name: "Composite",
|
|
1382
|
+
className: "PrivateLinkResourceProperties"
|
|
1383
|
+
}
|
|
1384
|
+
}, systemData: {
|
|
1385
|
+
serializedName: "systemData",
|
|
1386
|
+
type: {
|
|
1387
|
+
name: "Composite",
|
|
1388
|
+
className: "SystemData"
|
|
1389
|
+
}
|
|
1390
|
+
} })
|
|
1391
|
+
}
|
|
1392
|
+
};
|
|
1393
|
+
const PrivateEndpointConnection = {
|
|
1394
|
+
type: {
|
|
1395
|
+
name: "Composite",
|
|
1396
|
+
className: "PrivateEndpointConnection",
|
|
1397
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
|
|
1398
|
+
serializedName: "properties",
|
|
1399
|
+
type: {
|
|
1400
|
+
name: "Composite",
|
|
1401
|
+
className: "PrivateEndpointConnectionProperties"
|
|
1402
|
+
}
|
|
1403
|
+
}, systemData: {
|
|
1404
|
+
serializedName: "systemData",
|
|
1405
|
+
type: {
|
|
1406
|
+
name: "Composite",
|
|
1407
|
+
className: "SystemData"
|
|
1408
|
+
}
|
|
1409
|
+
} })
|
|
1410
|
+
}
|
|
1411
|
+
};
|
|
1412
|
+
|
|
1413
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1414
|
+
__proto__: null,
|
|
1415
|
+
ErrorResponse: ErrorResponse,
|
|
1416
|
+
ErrorDetail: ErrorDetail,
|
|
1417
|
+
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1418
|
+
MachineProperties: MachineProperties,
|
|
1419
|
+
LocationData: LocationData,
|
|
1420
|
+
OSProfile: OSProfile,
|
|
1421
|
+
MachineExtensionInstanceView: MachineExtensionInstanceView,
|
|
1422
|
+
MachineExtensionInstanceViewStatus: MachineExtensionInstanceViewStatus,
|
|
1423
|
+
Identity: Identity,
|
|
1424
|
+
SystemData: SystemData,
|
|
1425
|
+
Resource: Resource,
|
|
1426
|
+
MachineListResult: MachineListResult,
|
|
1427
|
+
MachineExtensionProperties: MachineExtensionProperties,
|
|
1428
|
+
MachineExtensionUpdateProperties: MachineExtensionUpdateProperties,
|
|
1429
|
+
ResourceUpdate: ResourceUpdate,
|
|
1430
|
+
MachineExtensionsListResult: MachineExtensionsListResult,
|
|
1431
|
+
MachineExtensionUpgrade: MachineExtensionUpgrade,
|
|
1432
|
+
ExtensionTargetProperties: ExtensionTargetProperties,
|
|
1433
|
+
OperationListResult: OperationListResult,
|
|
1434
|
+
OperationValue: OperationValue,
|
|
1435
|
+
OperationValueDisplay: OperationValueDisplay,
|
|
1436
|
+
HybridComputePrivateLinkScopeListResult: HybridComputePrivateLinkScopeListResult,
|
|
1437
|
+
HybridComputePrivateLinkScopeProperties: HybridComputePrivateLinkScopeProperties,
|
|
1438
|
+
PrivateLinkScopesResource: PrivateLinkScopesResource,
|
|
1439
|
+
TagsResource: TagsResource,
|
|
1440
|
+
PrivateLinkResourceListResult: PrivateLinkResourceListResult,
|
|
1441
|
+
PrivateLinkResourceProperties: PrivateLinkResourceProperties,
|
|
1442
|
+
PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
|
|
1443
|
+
PrivateEndpointProperty: PrivateEndpointProperty,
|
|
1444
|
+
PrivateLinkServiceConnectionStateProperty: PrivateLinkServiceConnectionStateProperty,
|
|
1445
|
+
PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
|
|
1446
|
+
PrivateLinkScopeValidationDetails: PrivateLinkScopeValidationDetails,
|
|
1447
|
+
ConnectionDetail: ConnectionDetail,
|
|
1448
|
+
MachineUpdateProperties: MachineUpdateProperties,
|
|
1449
|
+
TrackedResource: TrackedResource,
|
|
1450
|
+
ProxyResource: ProxyResource,
|
|
1451
|
+
MachineExtensionUpdate: MachineExtensionUpdate,
|
|
1452
|
+
MachineUpdate: MachineUpdate,
|
|
1453
|
+
HybridComputePrivateLinkScope: HybridComputePrivateLinkScope,
|
|
1454
|
+
Machine: Machine,
|
|
1455
|
+
MachineExtension: MachineExtension,
|
|
1456
|
+
PrivateLinkResource: PrivateLinkResource,
|
|
1457
|
+
PrivateEndpointConnection: PrivateEndpointConnection
|
|
1458
|
+
});
|
|
1459
|
+
|
|
1460
|
+
/*
|
|
1461
|
+
* Copyright (c) Microsoft Corporation.
|
|
1462
|
+
* Licensed under the MIT License.
|
|
1463
|
+
*
|
|
1464
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1465
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1466
|
+
*/
|
|
1467
|
+
const accept = {
|
|
1468
|
+
parameterPath: "accept",
|
|
1469
|
+
mapper: {
|
|
1470
|
+
defaultValue: "application/json",
|
|
1471
|
+
isConstant: true,
|
|
1472
|
+
serializedName: "Accept",
|
|
1473
|
+
type: {
|
|
1474
|
+
name: "String"
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
};
|
|
1478
|
+
const $host = {
|
|
1479
|
+
parameterPath: "$host",
|
|
1480
|
+
mapper: {
|
|
1481
|
+
serializedName: "$host",
|
|
1482
|
+
required: true,
|
|
1483
|
+
type: {
|
|
1484
|
+
name: "String"
|
|
1485
|
+
}
|
|
1486
|
+
},
|
|
1487
|
+
skipEncoding: true
|
|
1488
|
+
};
|
|
1489
|
+
const apiVersion = {
|
|
1490
|
+
parameterPath: "apiVersion",
|
|
1491
|
+
mapper: {
|
|
1492
|
+
defaultValue: "2021-05-20",
|
|
1493
|
+
isConstant: true,
|
|
1494
|
+
serializedName: "api-version",
|
|
1495
|
+
type: {
|
|
1496
|
+
name: "String"
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
};
|
|
1500
|
+
const subscriptionId = {
|
|
1501
|
+
parameterPath: "subscriptionId",
|
|
1502
|
+
mapper: {
|
|
1503
|
+
constraints: {
|
|
1504
|
+
MinLength: 1
|
|
1505
|
+
},
|
|
1506
|
+
serializedName: "subscriptionId",
|
|
1507
|
+
required: true,
|
|
1508
|
+
type: {
|
|
1509
|
+
name: "String"
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
};
|
|
1513
|
+
const resourceGroupName = {
|
|
1514
|
+
parameterPath: "resourceGroupName",
|
|
1515
|
+
mapper: {
|
|
1516
|
+
constraints: {
|
|
1517
|
+
MaxLength: 90,
|
|
1518
|
+
MinLength: 1
|
|
1519
|
+
},
|
|
1520
|
+
serializedName: "resourceGroupName",
|
|
1521
|
+
required: true,
|
|
1522
|
+
type: {
|
|
1523
|
+
name: "String"
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
};
|
|
1527
|
+
const machineName = {
|
|
1528
|
+
parameterPath: "machineName",
|
|
1529
|
+
mapper: {
|
|
1530
|
+
serializedName: "machineName",
|
|
1531
|
+
required: true,
|
|
1532
|
+
type: {
|
|
1533
|
+
name: "String"
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
};
|
|
1537
|
+
const expand = {
|
|
1538
|
+
parameterPath: ["options", "expand"],
|
|
1539
|
+
mapper: {
|
|
1540
|
+
serializedName: "$expand",
|
|
1541
|
+
type: {
|
|
1542
|
+
name: "String"
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
};
|
|
1546
|
+
const nextLink = {
|
|
1547
|
+
parameterPath: "nextLink",
|
|
1548
|
+
mapper: {
|
|
1549
|
+
serializedName: "nextLink",
|
|
1550
|
+
required: true,
|
|
1551
|
+
type: {
|
|
1552
|
+
name: "String"
|
|
1553
|
+
}
|
|
1554
|
+
},
|
|
1555
|
+
skipEncoding: true
|
|
1556
|
+
};
|
|
1557
|
+
const contentType = {
|
|
1558
|
+
parameterPath: ["options", "contentType"],
|
|
1559
|
+
mapper: {
|
|
1560
|
+
defaultValue: "application/json",
|
|
1561
|
+
isConstant: true,
|
|
1562
|
+
serializedName: "Content-Type",
|
|
1563
|
+
type: {
|
|
1564
|
+
name: "String"
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
};
|
|
1568
|
+
const extensionParameters = {
|
|
1569
|
+
parameterPath: "extensionParameters",
|
|
1570
|
+
mapper: MachineExtension
|
|
1571
|
+
};
|
|
1572
|
+
const extensionName = {
|
|
1573
|
+
parameterPath: "extensionName",
|
|
1574
|
+
mapper: {
|
|
1575
|
+
serializedName: "extensionName",
|
|
1576
|
+
required: true,
|
|
1577
|
+
type: {
|
|
1578
|
+
name: "String"
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
};
|
|
1582
|
+
const extensionParameters1 = {
|
|
1583
|
+
parameterPath: "extensionParameters",
|
|
1584
|
+
mapper: MachineExtensionUpdate
|
|
1585
|
+
};
|
|
1586
|
+
const expand1 = {
|
|
1587
|
+
parameterPath: ["options", "expand"],
|
|
1588
|
+
mapper: {
|
|
1589
|
+
serializedName: "$expand",
|
|
1590
|
+
type: {
|
|
1591
|
+
name: "String"
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
};
|
|
1595
|
+
const extensionUpgradeParameters = {
|
|
1596
|
+
parameterPath: "extensionUpgradeParameters",
|
|
1597
|
+
mapper: MachineExtensionUpgrade
|
|
1598
|
+
};
|
|
1599
|
+
const scopeName = {
|
|
1600
|
+
parameterPath: "scopeName",
|
|
1601
|
+
mapper: {
|
|
1602
|
+
serializedName: "scopeName",
|
|
1603
|
+
required: true,
|
|
1604
|
+
type: {
|
|
1605
|
+
name: "String"
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
};
|
|
1609
|
+
const parameters = {
|
|
1610
|
+
parameterPath: "parameters",
|
|
1611
|
+
mapper: HybridComputePrivateLinkScope
|
|
1612
|
+
};
|
|
1613
|
+
const privateLinkScopeTags = {
|
|
1614
|
+
parameterPath: "privateLinkScopeTags",
|
|
1615
|
+
mapper: TagsResource
|
|
1616
|
+
};
|
|
1617
|
+
const location = {
|
|
1618
|
+
parameterPath: "location",
|
|
1619
|
+
mapper: {
|
|
1620
|
+
constraints: {
|
|
1621
|
+
MinLength: 1
|
|
1622
|
+
},
|
|
1623
|
+
serializedName: "location",
|
|
1624
|
+
required: true,
|
|
1625
|
+
type: {
|
|
1626
|
+
name: "String"
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
};
|
|
1630
|
+
const privateLinkScopeId = {
|
|
1631
|
+
parameterPath: "privateLinkScopeId",
|
|
1632
|
+
mapper: {
|
|
1633
|
+
serializedName: "privateLinkScopeId",
|
|
1634
|
+
required: true,
|
|
1635
|
+
type: {
|
|
1636
|
+
name: "String"
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
};
|
|
1640
|
+
const machineName1 = {
|
|
1641
|
+
parameterPath: "machineName",
|
|
1642
|
+
mapper: {
|
|
1643
|
+
constraints: {
|
|
1644
|
+
MinLength: 1
|
|
1645
|
+
},
|
|
1646
|
+
serializedName: "machineName",
|
|
1647
|
+
required: true,
|
|
1648
|
+
type: {
|
|
1649
|
+
name: "String"
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
};
|
|
1653
|
+
const groupName = {
|
|
1654
|
+
parameterPath: "groupName",
|
|
1655
|
+
mapper: {
|
|
1656
|
+
serializedName: "groupName",
|
|
1657
|
+
required: true,
|
|
1658
|
+
type: {
|
|
1659
|
+
name: "String"
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
};
|
|
1663
|
+
const privateEndpointConnectionName = {
|
|
1664
|
+
parameterPath: "privateEndpointConnectionName",
|
|
1665
|
+
mapper: {
|
|
1666
|
+
serializedName: "privateEndpointConnectionName",
|
|
1667
|
+
required: true,
|
|
1668
|
+
type: {
|
|
1669
|
+
name: "String"
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
};
|
|
1673
|
+
const parameters1 = {
|
|
1674
|
+
parameterPath: "parameters",
|
|
1675
|
+
mapper: PrivateEndpointConnection
|
|
1676
|
+
};
|
|
1677
|
+
|
|
1678
|
+
/*
|
|
1679
|
+
* Copyright (c) Microsoft Corporation.
|
|
1680
|
+
* Licensed under the MIT License.
|
|
1681
|
+
*
|
|
1682
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1683
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1684
|
+
*/
|
|
1685
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1686
|
+
/** Class containing Machines operations. */
|
|
1687
|
+
class MachinesImpl {
|
|
1688
|
+
/**
|
|
1689
|
+
* Initialize a new instance of the class Machines class.
|
|
1690
|
+
* @param client Reference to the service client
|
|
1691
|
+
*/
|
|
1692
|
+
constructor(client) {
|
|
1693
|
+
this.client = client;
|
|
1694
|
+
}
|
|
1695
|
+
/**
|
|
1696
|
+
* Lists all the hybrid machines in the specified resource group. Use the nextLink property in the
|
|
1697
|
+
* response to get the next page of hybrid machines.
|
|
1698
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1699
|
+
* @param options The options parameters.
|
|
1700
|
+
*/
|
|
1701
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
1702
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1703
|
+
return {
|
|
1704
|
+
next() {
|
|
1705
|
+
return iter.next();
|
|
1706
|
+
},
|
|
1707
|
+
[Symbol.asyncIterator]() {
|
|
1708
|
+
return this;
|
|
1709
|
+
},
|
|
1710
|
+
byPage: () => {
|
|
1711
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
1712
|
+
}
|
|
1713
|
+
};
|
|
1714
|
+
}
|
|
1715
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1716
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1717
|
+
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1718
|
+
yield yield tslib.__await(result.value || []);
|
|
1719
|
+
let continuationToken = result.nextLink;
|
|
1720
|
+
while (continuationToken) {
|
|
1721
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1722
|
+
continuationToken = result.nextLink;
|
|
1723
|
+
yield yield tslib.__await(result.value || []);
|
|
1724
|
+
}
|
|
1725
|
+
});
|
|
1726
|
+
}
|
|
1727
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1728
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1729
|
+
var e_1, _a;
|
|
1730
|
+
try {
|
|
1731
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1732
|
+
const page = _c.value;
|
|
1733
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1737
|
+
finally {
|
|
1738
|
+
try {
|
|
1739
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1740
|
+
}
|
|
1741
|
+
finally { if (e_1) throw e_1.error; }
|
|
1742
|
+
}
|
|
1743
|
+
});
|
|
1744
|
+
}
|
|
1745
|
+
/**
|
|
1746
|
+
* Lists all the hybrid machines in the specified subscription. Use the nextLink property in the
|
|
1747
|
+
* response to get the next page of hybrid machines.
|
|
1748
|
+
* @param options The options parameters.
|
|
1749
|
+
*/
|
|
1750
|
+
listBySubscription(options) {
|
|
1751
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
1752
|
+
return {
|
|
1753
|
+
next() {
|
|
1754
|
+
return iter.next();
|
|
1755
|
+
},
|
|
1756
|
+
[Symbol.asyncIterator]() {
|
|
1757
|
+
return this;
|
|
1758
|
+
},
|
|
1759
|
+
byPage: () => {
|
|
1760
|
+
return this.listBySubscriptionPagingPage(options);
|
|
1761
|
+
}
|
|
1762
|
+
};
|
|
1763
|
+
}
|
|
1764
|
+
listBySubscriptionPagingPage(options) {
|
|
1765
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1766
|
+
let result = yield tslib.__await(this._listBySubscription(options));
|
|
1767
|
+
yield yield tslib.__await(result.value || []);
|
|
1768
|
+
let continuationToken = result.nextLink;
|
|
1769
|
+
while (continuationToken) {
|
|
1770
|
+
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1771
|
+
continuationToken = result.nextLink;
|
|
1772
|
+
yield yield tslib.__await(result.value || []);
|
|
1773
|
+
}
|
|
1774
|
+
});
|
|
1775
|
+
}
|
|
1776
|
+
listBySubscriptionPagingAll(options) {
|
|
1777
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1778
|
+
var e_2, _a;
|
|
1779
|
+
try {
|
|
1780
|
+
for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1781
|
+
const page = _c.value;
|
|
1782
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1786
|
+
finally {
|
|
1787
|
+
try {
|
|
1788
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1789
|
+
}
|
|
1790
|
+
finally { if (e_2) throw e_2.error; }
|
|
1791
|
+
}
|
|
1792
|
+
});
|
|
1793
|
+
}
|
|
1794
|
+
/**
|
|
1795
|
+
* The operation to remove a hybrid machine identity in Azure.
|
|
1796
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1797
|
+
* @param machineName The name of the hybrid machine.
|
|
1798
|
+
* @param options The options parameters.
|
|
1799
|
+
*/
|
|
1800
|
+
delete(resourceGroupName, machineName, options) {
|
|
1801
|
+
return this.client.sendOperationRequest({ resourceGroupName, machineName, options }, deleteOperationSpec);
|
|
1802
|
+
}
|
|
1803
|
+
/**
|
|
1804
|
+
* Retrieves information about the model view or the instance view of a hybrid machine.
|
|
1805
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1806
|
+
* @param machineName The name of the hybrid machine.
|
|
1807
|
+
* @param options The options parameters.
|
|
1808
|
+
*/
|
|
1809
|
+
get(resourceGroupName, machineName, options) {
|
|
1810
|
+
return this.client.sendOperationRequest({ resourceGroupName, machineName, options }, getOperationSpec);
|
|
1811
|
+
}
|
|
1812
|
+
/**
|
|
1813
|
+
* Lists all the hybrid machines in the specified resource group. Use the nextLink property in the
|
|
1814
|
+
* response to get the next page of hybrid machines.
|
|
1815
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1816
|
+
* @param options The options parameters.
|
|
1817
|
+
*/
|
|
1818
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
1819
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1820
|
+
}
|
|
1821
|
+
/**
|
|
1822
|
+
* Lists all the hybrid machines in the specified subscription. Use the nextLink property in the
|
|
1823
|
+
* response to get the next page of hybrid machines.
|
|
1824
|
+
* @param options The options parameters.
|
|
1825
|
+
*/
|
|
1826
|
+
_listBySubscription(options) {
|
|
1827
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
1828
|
+
}
|
|
1829
|
+
/**
|
|
1830
|
+
* ListByResourceGroupNext
|
|
1831
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1832
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1833
|
+
* @param options The options parameters.
|
|
1834
|
+
*/
|
|
1835
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1836
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
1837
|
+
}
|
|
1838
|
+
/**
|
|
1839
|
+
* ListBySubscriptionNext
|
|
1840
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
1841
|
+
* @param options The options parameters.
|
|
1842
|
+
*/
|
|
1843
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
1844
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
// Operation Specifications
|
|
1848
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1849
|
+
const deleteOperationSpec = {
|
|
1850
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}",
|
|
1851
|
+
httpMethod: "DELETE",
|
|
1852
|
+
responses: {
|
|
1853
|
+
200: {},
|
|
1854
|
+
204: {},
|
|
1855
|
+
default: {
|
|
1856
|
+
bodyMapper: ErrorResponse
|
|
1857
|
+
}
|
|
1858
|
+
},
|
|
1859
|
+
queryParameters: [apiVersion],
|
|
1860
|
+
urlParameters: [
|
|
1861
|
+
$host,
|
|
1862
|
+
subscriptionId,
|
|
1863
|
+
resourceGroupName,
|
|
1864
|
+
machineName
|
|
1865
|
+
],
|
|
1866
|
+
headerParameters: [accept],
|
|
1867
|
+
serializer
|
|
1868
|
+
};
|
|
1869
|
+
const getOperationSpec = {
|
|
1870
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}",
|
|
1871
|
+
httpMethod: "GET",
|
|
1872
|
+
responses: {
|
|
1873
|
+
200: {
|
|
1874
|
+
bodyMapper: Machine
|
|
1875
|
+
},
|
|
1876
|
+
default: {
|
|
1877
|
+
bodyMapper: ErrorResponse
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1880
|
+
queryParameters: [apiVersion, expand],
|
|
1881
|
+
urlParameters: [
|
|
1882
|
+
$host,
|
|
1883
|
+
subscriptionId,
|
|
1884
|
+
resourceGroupName,
|
|
1885
|
+
machineName
|
|
1886
|
+
],
|
|
1887
|
+
headerParameters: [accept],
|
|
1888
|
+
serializer
|
|
1889
|
+
};
|
|
1890
|
+
const listByResourceGroupOperationSpec = {
|
|
1891
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines",
|
|
1892
|
+
httpMethod: "GET",
|
|
1893
|
+
responses: {
|
|
1894
|
+
200: {
|
|
1895
|
+
bodyMapper: MachineListResult
|
|
1896
|
+
},
|
|
1897
|
+
default: {
|
|
1898
|
+
bodyMapper: ErrorResponse
|
|
1899
|
+
}
|
|
1900
|
+
},
|
|
1901
|
+
queryParameters: [apiVersion],
|
|
1902
|
+
urlParameters: [
|
|
1903
|
+
$host,
|
|
1904
|
+
subscriptionId,
|
|
1905
|
+
resourceGroupName
|
|
1906
|
+
],
|
|
1907
|
+
headerParameters: [accept],
|
|
1908
|
+
serializer
|
|
1909
|
+
};
|
|
1910
|
+
const listBySubscriptionOperationSpec = {
|
|
1911
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines",
|
|
1912
|
+
httpMethod: "GET",
|
|
1913
|
+
responses: {
|
|
1914
|
+
200: {
|
|
1915
|
+
bodyMapper: MachineListResult
|
|
1916
|
+
},
|
|
1917
|
+
default: {
|
|
1918
|
+
bodyMapper: ErrorResponse
|
|
1919
|
+
}
|
|
1920
|
+
},
|
|
1921
|
+
queryParameters: [apiVersion],
|
|
1922
|
+
urlParameters: [$host, subscriptionId],
|
|
1923
|
+
headerParameters: [accept],
|
|
1924
|
+
serializer
|
|
1925
|
+
};
|
|
1926
|
+
const listByResourceGroupNextOperationSpec = {
|
|
1927
|
+
path: "{nextLink}",
|
|
1928
|
+
httpMethod: "GET",
|
|
1929
|
+
responses: {
|
|
1930
|
+
200: {
|
|
1931
|
+
bodyMapper: MachineListResult
|
|
1932
|
+
},
|
|
1933
|
+
default: {
|
|
1934
|
+
bodyMapper: ErrorResponse
|
|
1935
|
+
}
|
|
1936
|
+
},
|
|
1937
|
+
queryParameters: [apiVersion],
|
|
1938
|
+
urlParameters: [
|
|
1939
|
+
$host,
|
|
1940
|
+
subscriptionId,
|
|
1941
|
+
resourceGroupName,
|
|
1942
|
+
nextLink
|
|
1943
|
+
],
|
|
1944
|
+
headerParameters: [accept],
|
|
1945
|
+
serializer
|
|
1946
|
+
};
|
|
1947
|
+
const listBySubscriptionNextOperationSpec = {
|
|
1948
|
+
path: "{nextLink}",
|
|
1949
|
+
httpMethod: "GET",
|
|
1950
|
+
responses: {
|
|
1951
|
+
200: {
|
|
1952
|
+
bodyMapper: MachineListResult
|
|
1953
|
+
},
|
|
1954
|
+
default: {
|
|
1955
|
+
bodyMapper: ErrorResponse
|
|
1956
|
+
}
|
|
1957
|
+
},
|
|
1958
|
+
queryParameters: [apiVersion],
|
|
1959
|
+
urlParameters: [
|
|
1960
|
+
$host,
|
|
1961
|
+
subscriptionId,
|
|
1962
|
+
nextLink
|
|
1963
|
+
],
|
|
1964
|
+
headerParameters: [accept],
|
|
1965
|
+
serializer
|
|
1966
|
+
};
|
|
1967
|
+
|
|
1968
|
+
/*
|
|
1969
|
+
* Copyright (c) Microsoft Corporation.
|
|
1970
|
+
* Licensed under the MIT License.
|
|
1971
|
+
*
|
|
1972
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1973
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1974
|
+
*/
|
|
1975
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1976
|
+
/** Class containing MachineExtensions operations. */
|
|
1977
|
+
class MachineExtensionsImpl {
|
|
1978
|
+
/**
|
|
1979
|
+
* Initialize a new instance of the class MachineExtensions class.
|
|
1980
|
+
* @param client Reference to the service client
|
|
1981
|
+
*/
|
|
1982
|
+
constructor(client) {
|
|
1983
|
+
this.client = client;
|
|
1984
|
+
}
|
|
1985
|
+
/**
|
|
1986
|
+
* The operation to get all extensions of a non-Azure machine
|
|
1987
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1988
|
+
* @param machineName The name of the machine containing the extension.
|
|
1989
|
+
* @param options The options parameters.
|
|
1990
|
+
*/
|
|
1991
|
+
list(resourceGroupName, machineName, options) {
|
|
1992
|
+
const iter = this.listPagingAll(resourceGroupName, machineName, options);
|
|
1993
|
+
return {
|
|
1994
|
+
next() {
|
|
1995
|
+
return iter.next();
|
|
1996
|
+
},
|
|
1997
|
+
[Symbol.asyncIterator]() {
|
|
1998
|
+
return this;
|
|
1999
|
+
},
|
|
2000
|
+
byPage: () => {
|
|
2001
|
+
return this.listPagingPage(resourceGroupName, machineName, options);
|
|
2002
|
+
}
|
|
2003
|
+
};
|
|
2004
|
+
}
|
|
2005
|
+
listPagingPage(resourceGroupName, machineName, options) {
|
|
2006
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2007
|
+
let result = yield tslib.__await(this._list(resourceGroupName, machineName, options));
|
|
2008
|
+
yield yield tslib.__await(result.value || []);
|
|
2009
|
+
let continuationToken = result.nextLink;
|
|
2010
|
+
while (continuationToken) {
|
|
2011
|
+
result = yield tslib.__await(this._listNext(resourceGroupName, machineName, continuationToken, options));
|
|
2012
|
+
continuationToken = result.nextLink;
|
|
2013
|
+
yield yield tslib.__await(result.value || []);
|
|
2014
|
+
}
|
|
2015
|
+
});
|
|
2016
|
+
}
|
|
2017
|
+
listPagingAll(resourceGroupName, machineName, options) {
|
|
2018
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2019
|
+
var e_1, _a;
|
|
2020
|
+
try {
|
|
2021
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, machineName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2022
|
+
const page = _c.value;
|
|
2023
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2027
|
+
finally {
|
|
2028
|
+
try {
|
|
2029
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2030
|
+
}
|
|
2031
|
+
finally { if (e_1) throw e_1.error; }
|
|
2032
|
+
}
|
|
2033
|
+
});
|
|
2034
|
+
}
|
|
2035
|
+
/**
|
|
2036
|
+
* The operation to create or update the extension.
|
|
2037
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2038
|
+
* @param machineName The name of the machine where the extension should be created or updated.
|
|
2039
|
+
* @param extensionName The name of the machine extension.
|
|
2040
|
+
* @param extensionParameters Parameters supplied to the Create Machine Extension operation.
|
|
2041
|
+
* @param options The options parameters.
|
|
2042
|
+
*/
|
|
2043
|
+
beginCreateOrUpdate(resourceGroupName, machineName, extensionName, extensionParameters, options) {
|
|
2044
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2045
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2046
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2047
|
+
});
|
|
2048
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2049
|
+
var _a;
|
|
2050
|
+
let currentRawResponse = undefined;
|
|
2051
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2052
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2053
|
+
currentRawResponse = rawResponse;
|
|
2054
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2055
|
+
};
|
|
2056
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2057
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2058
|
+
return {
|
|
2059
|
+
flatResponse,
|
|
2060
|
+
rawResponse: {
|
|
2061
|
+
statusCode: currentRawResponse.status,
|
|
2062
|
+
body: currentRawResponse.parsedBody,
|
|
2063
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2064
|
+
}
|
|
2065
|
+
};
|
|
2066
|
+
});
|
|
2067
|
+
const lro = new LroImpl(sendOperation, {
|
|
2068
|
+
resourceGroupName,
|
|
2069
|
+
machineName,
|
|
2070
|
+
extensionName,
|
|
2071
|
+
extensionParameters,
|
|
2072
|
+
options
|
|
2073
|
+
}, createOrUpdateOperationSpec);
|
|
2074
|
+
return new coreLro.LroEngine(lro, {
|
|
2075
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2076
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2077
|
+
});
|
|
2078
|
+
});
|
|
2079
|
+
}
|
|
2080
|
+
/**
|
|
2081
|
+
* The operation to create or update the extension.
|
|
2082
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2083
|
+
* @param machineName The name of the machine where the extension should be created or updated.
|
|
2084
|
+
* @param extensionName The name of the machine extension.
|
|
2085
|
+
* @param extensionParameters Parameters supplied to the Create Machine Extension operation.
|
|
2086
|
+
* @param options The options parameters.
|
|
2087
|
+
*/
|
|
2088
|
+
beginCreateOrUpdateAndWait(resourceGroupName, machineName, extensionName, extensionParameters, options) {
|
|
2089
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2090
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, machineName, extensionName, extensionParameters, options);
|
|
2091
|
+
return poller.pollUntilDone();
|
|
2092
|
+
});
|
|
2093
|
+
}
|
|
2094
|
+
/**
|
|
2095
|
+
* The operation to create or update the extension.
|
|
2096
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2097
|
+
* @param machineName The name of the machine where the extension should be created or updated.
|
|
2098
|
+
* @param extensionName The name of the machine extension.
|
|
2099
|
+
* @param extensionParameters Parameters supplied to the Create Machine Extension operation.
|
|
2100
|
+
* @param options The options parameters.
|
|
2101
|
+
*/
|
|
2102
|
+
beginUpdate(resourceGroupName, machineName, extensionName, extensionParameters, options) {
|
|
2103
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2104
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2105
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2106
|
+
});
|
|
2107
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2108
|
+
var _a;
|
|
2109
|
+
let currentRawResponse = undefined;
|
|
2110
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2111
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2112
|
+
currentRawResponse = rawResponse;
|
|
2113
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2114
|
+
};
|
|
2115
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2116
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2117
|
+
return {
|
|
2118
|
+
flatResponse,
|
|
2119
|
+
rawResponse: {
|
|
2120
|
+
statusCode: currentRawResponse.status,
|
|
2121
|
+
body: currentRawResponse.parsedBody,
|
|
2122
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2123
|
+
}
|
|
2124
|
+
};
|
|
2125
|
+
});
|
|
2126
|
+
const lro = new LroImpl(sendOperation, {
|
|
2127
|
+
resourceGroupName,
|
|
2128
|
+
machineName,
|
|
2129
|
+
extensionName,
|
|
2130
|
+
extensionParameters,
|
|
2131
|
+
options
|
|
2132
|
+
}, updateOperationSpec);
|
|
2133
|
+
return new coreLro.LroEngine(lro, {
|
|
2134
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2135
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2136
|
+
});
|
|
2137
|
+
});
|
|
2138
|
+
}
|
|
2139
|
+
/**
|
|
2140
|
+
* The operation to create or update the extension.
|
|
2141
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2142
|
+
* @param machineName The name of the machine where the extension should be created or updated.
|
|
2143
|
+
* @param extensionName The name of the machine extension.
|
|
2144
|
+
* @param extensionParameters Parameters supplied to the Create Machine Extension operation.
|
|
2145
|
+
* @param options The options parameters.
|
|
2146
|
+
*/
|
|
2147
|
+
beginUpdateAndWait(resourceGroupName, machineName, extensionName, extensionParameters, options) {
|
|
2148
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2149
|
+
const poller = yield this.beginUpdate(resourceGroupName, machineName, extensionName, extensionParameters, options);
|
|
2150
|
+
return poller.pollUntilDone();
|
|
2151
|
+
});
|
|
2152
|
+
}
|
|
2153
|
+
/**
|
|
2154
|
+
* The operation to delete the extension.
|
|
2155
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2156
|
+
* @param machineName The name of the machine where the extension should be deleted.
|
|
2157
|
+
* @param extensionName The name of the machine extension.
|
|
2158
|
+
* @param options The options parameters.
|
|
2159
|
+
*/
|
|
2160
|
+
beginDelete(resourceGroupName, machineName, extensionName, options) {
|
|
2161
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2162
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2163
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2164
|
+
});
|
|
2165
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2166
|
+
var _a;
|
|
2167
|
+
let currentRawResponse = undefined;
|
|
2168
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2169
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2170
|
+
currentRawResponse = rawResponse;
|
|
2171
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2172
|
+
};
|
|
2173
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2174
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2175
|
+
return {
|
|
2176
|
+
flatResponse,
|
|
2177
|
+
rawResponse: {
|
|
2178
|
+
statusCode: currentRawResponse.status,
|
|
2179
|
+
body: currentRawResponse.parsedBody,
|
|
2180
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2181
|
+
}
|
|
2182
|
+
};
|
|
2183
|
+
});
|
|
2184
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, machineName, extensionName, options }, deleteOperationSpec$1);
|
|
2185
|
+
return new coreLro.LroEngine(lro, {
|
|
2186
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2187
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2188
|
+
});
|
|
2189
|
+
});
|
|
2190
|
+
}
|
|
2191
|
+
/**
|
|
2192
|
+
* The operation to delete the extension.
|
|
2193
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2194
|
+
* @param machineName The name of the machine where the extension should be deleted.
|
|
2195
|
+
* @param extensionName The name of the machine extension.
|
|
2196
|
+
* @param options The options parameters.
|
|
2197
|
+
*/
|
|
2198
|
+
beginDeleteAndWait(resourceGroupName, machineName, extensionName, options) {
|
|
2199
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2200
|
+
const poller = yield this.beginDelete(resourceGroupName, machineName, extensionName, options);
|
|
2201
|
+
return poller.pollUntilDone();
|
|
2202
|
+
});
|
|
2203
|
+
}
|
|
2204
|
+
/**
|
|
2205
|
+
* The operation to get the extension.
|
|
2206
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2207
|
+
* @param machineName The name of the machine containing the extension.
|
|
2208
|
+
* @param extensionName The name of the machine extension.
|
|
2209
|
+
* @param options The options parameters.
|
|
2210
|
+
*/
|
|
2211
|
+
get(resourceGroupName, machineName, extensionName, options) {
|
|
2212
|
+
return this.client.sendOperationRequest({ resourceGroupName, machineName, extensionName, options }, getOperationSpec$1);
|
|
2213
|
+
}
|
|
2214
|
+
/**
|
|
2215
|
+
* The operation to get all extensions of a non-Azure machine
|
|
2216
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2217
|
+
* @param machineName The name of the machine containing the extension.
|
|
2218
|
+
* @param options The options parameters.
|
|
2219
|
+
*/
|
|
2220
|
+
_list(resourceGroupName, machineName, options) {
|
|
2221
|
+
return this.client.sendOperationRequest({ resourceGroupName, machineName, options }, listOperationSpec);
|
|
2222
|
+
}
|
|
2223
|
+
/**
|
|
2224
|
+
* ListNext
|
|
2225
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2226
|
+
* @param machineName The name of the machine containing the extension.
|
|
2227
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
2228
|
+
* @param options The options parameters.
|
|
2229
|
+
*/
|
|
2230
|
+
_listNext(resourceGroupName, machineName, nextLink, options) {
|
|
2231
|
+
return this.client.sendOperationRequest({ resourceGroupName, machineName, nextLink, options }, listNextOperationSpec);
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
// Operation Specifications
|
|
2235
|
+
const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2236
|
+
const createOrUpdateOperationSpec = {
|
|
2237
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}",
|
|
2238
|
+
httpMethod: "PUT",
|
|
2239
|
+
responses: {
|
|
2240
|
+
200: {
|
|
2241
|
+
bodyMapper: MachineExtension
|
|
2242
|
+
},
|
|
2243
|
+
201: {
|
|
2244
|
+
bodyMapper: MachineExtension
|
|
2245
|
+
},
|
|
2246
|
+
202: {
|
|
2247
|
+
bodyMapper: MachineExtension
|
|
2248
|
+
},
|
|
2249
|
+
204: {
|
|
2250
|
+
bodyMapper: MachineExtension
|
|
2251
|
+
},
|
|
2252
|
+
default: {
|
|
2253
|
+
bodyMapper: ErrorResponse
|
|
2254
|
+
}
|
|
2255
|
+
},
|
|
2256
|
+
requestBody: extensionParameters,
|
|
2257
|
+
queryParameters: [apiVersion],
|
|
2258
|
+
urlParameters: [
|
|
2259
|
+
$host,
|
|
2260
|
+
subscriptionId,
|
|
2261
|
+
resourceGroupName,
|
|
2262
|
+
machineName,
|
|
2263
|
+
extensionName
|
|
2264
|
+
],
|
|
2265
|
+
headerParameters: [accept, contentType],
|
|
2266
|
+
mediaType: "json",
|
|
2267
|
+
serializer: serializer$1
|
|
2268
|
+
};
|
|
2269
|
+
const updateOperationSpec = {
|
|
2270
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}",
|
|
2271
|
+
httpMethod: "PATCH",
|
|
2272
|
+
responses: {
|
|
2273
|
+
200: {
|
|
2274
|
+
bodyMapper: MachineExtension
|
|
2275
|
+
},
|
|
2276
|
+
201: {
|
|
2277
|
+
bodyMapper: MachineExtension
|
|
2278
|
+
},
|
|
2279
|
+
202: {
|
|
2280
|
+
bodyMapper: MachineExtension
|
|
2281
|
+
},
|
|
2282
|
+
204: {
|
|
2283
|
+
bodyMapper: MachineExtension
|
|
2284
|
+
},
|
|
2285
|
+
default: {
|
|
2286
|
+
bodyMapper: ErrorResponse
|
|
2287
|
+
}
|
|
2288
|
+
},
|
|
2289
|
+
requestBody: extensionParameters1,
|
|
2290
|
+
queryParameters: [apiVersion],
|
|
2291
|
+
urlParameters: [
|
|
2292
|
+
$host,
|
|
2293
|
+
subscriptionId,
|
|
2294
|
+
resourceGroupName,
|
|
2295
|
+
machineName,
|
|
2296
|
+
extensionName
|
|
2297
|
+
],
|
|
2298
|
+
headerParameters: [accept, contentType],
|
|
2299
|
+
mediaType: "json",
|
|
2300
|
+
serializer: serializer$1
|
|
2301
|
+
};
|
|
2302
|
+
const deleteOperationSpec$1 = {
|
|
2303
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}",
|
|
2304
|
+
httpMethod: "DELETE",
|
|
2305
|
+
responses: {
|
|
2306
|
+
200: {},
|
|
2307
|
+
201: {},
|
|
2308
|
+
202: {},
|
|
2309
|
+
204: {},
|
|
2310
|
+
default: {
|
|
2311
|
+
bodyMapper: ErrorResponse
|
|
2312
|
+
}
|
|
2313
|
+
},
|
|
2314
|
+
queryParameters: [apiVersion],
|
|
2315
|
+
urlParameters: [
|
|
2316
|
+
$host,
|
|
2317
|
+
subscriptionId,
|
|
2318
|
+
resourceGroupName,
|
|
2319
|
+
machineName,
|
|
2320
|
+
extensionName
|
|
2321
|
+
],
|
|
2322
|
+
headerParameters: [accept],
|
|
2323
|
+
serializer: serializer$1
|
|
2324
|
+
};
|
|
2325
|
+
const getOperationSpec$1 = {
|
|
2326
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}",
|
|
2327
|
+
httpMethod: "GET",
|
|
2328
|
+
responses: {
|
|
2329
|
+
200: {
|
|
2330
|
+
bodyMapper: MachineExtension
|
|
2331
|
+
},
|
|
2332
|
+
default: {
|
|
2333
|
+
bodyMapper: ErrorResponse
|
|
2334
|
+
}
|
|
2335
|
+
},
|
|
2336
|
+
queryParameters: [apiVersion],
|
|
2337
|
+
urlParameters: [
|
|
2338
|
+
$host,
|
|
2339
|
+
subscriptionId,
|
|
2340
|
+
resourceGroupName,
|
|
2341
|
+
machineName,
|
|
2342
|
+
extensionName
|
|
2343
|
+
],
|
|
2344
|
+
headerParameters: [accept],
|
|
2345
|
+
serializer: serializer$1
|
|
2346
|
+
};
|
|
2347
|
+
const listOperationSpec = {
|
|
2348
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions",
|
|
2349
|
+
httpMethod: "GET",
|
|
2350
|
+
responses: {
|
|
2351
|
+
200: {
|
|
2352
|
+
bodyMapper: MachineExtensionsListResult
|
|
2353
|
+
},
|
|
2354
|
+
default: {
|
|
2355
|
+
bodyMapper: ErrorResponse
|
|
2356
|
+
}
|
|
2357
|
+
},
|
|
2358
|
+
queryParameters: [apiVersion, expand1],
|
|
2359
|
+
urlParameters: [
|
|
2360
|
+
$host,
|
|
2361
|
+
subscriptionId,
|
|
2362
|
+
resourceGroupName,
|
|
2363
|
+
machineName
|
|
2364
|
+
],
|
|
2365
|
+
headerParameters: [accept],
|
|
2366
|
+
serializer: serializer$1
|
|
2367
|
+
};
|
|
2368
|
+
const listNextOperationSpec = {
|
|
2369
|
+
path: "{nextLink}",
|
|
2370
|
+
httpMethod: "GET",
|
|
2371
|
+
responses: {
|
|
2372
|
+
200: {
|
|
2373
|
+
bodyMapper: MachineExtensionsListResult
|
|
2374
|
+
},
|
|
2375
|
+
default: {
|
|
2376
|
+
bodyMapper: ErrorResponse
|
|
2377
|
+
}
|
|
2378
|
+
},
|
|
2379
|
+
queryParameters: [apiVersion, expand1],
|
|
2380
|
+
urlParameters: [
|
|
2381
|
+
$host,
|
|
2382
|
+
subscriptionId,
|
|
2383
|
+
resourceGroupName,
|
|
2384
|
+
machineName,
|
|
2385
|
+
nextLink
|
|
2386
|
+
],
|
|
2387
|
+
headerParameters: [accept],
|
|
2388
|
+
serializer: serializer$1
|
|
2389
|
+
};
|
|
2390
|
+
|
|
2391
|
+
/*
|
|
2392
|
+
* Copyright (c) Microsoft Corporation.
|
|
2393
|
+
* Licensed under the MIT License.
|
|
2394
|
+
*
|
|
2395
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2396
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2397
|
+
*/
|
|
2398
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2399
|
+
/** Class containing Operations operations. */
|
|
2400
|
+
class OperationsImpl {
|
|
2401
|
+
/**
|
|
2402
|
+
* Initialize a new instance of the class Operations class.
|
|
2403
|
+
* @param client Reference to the service client
|
|
2404
|
+
*/
|
|
2405
|
+
constructor(client) {
|
|
2406
|
+
this.client = client;
|
|
2407
|
+
}
|
|
2408
|
+
/**
|
|
2409
|
+
* Gets a list of hybrid compute operations.
|
|
2410
|
+
* @param options The options parameters.
|
|
2411
|
+
*/
|
|
2412
|
+
list(options) {
|
|
2413
|
+
const iter = this.listPagingAll(options);
|
|
2414
|
+
return {
|
|
2415
|
+
next() {
|
|
2416
|
+
return iter.next();
|
|
2417
|
+
},
|
|
2418
|
+
[Symbol.asyncIterator]() {
|
|
2419
|
+
return this;
|
|
2420
|
+
},
|
|
2421
|
+
byPage: () => {
|
|
2422
|
+
return this.listPagingPage(options);
|
|
2423
|
+
}
|
|
2424
|
+
};
|
|
2425
|
+
}
|
|
2426
|
+
listPagingPage(options) {
|
|
2427
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2428
|
+
let result = yield tslib.__await(this._list(options));
|
|
2429
|
+
yield yield tslib.__await(result.value || []);
|
|
2430
|
+
});
|
|
2431
|
+
}
|
|
2432
|
+
listPagingAll(options) {
|
|
2433
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2434
|
+
var e_1, _a;
|
|
2435
|
+
try {
|
|
2436
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2437
|
+
const page = _c.value;
|
|
2438
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2442
|
+
finally {
|
|
2443
|
+
try {
|
|
2444
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2445
|
+
}
|
|
2446
|
+
finally { if (e_1) throw e_1.error; }
|
|
2447
|
+
}
|
|
2448
|
+
});
|
|
2449
|
+
}
|
|
2450
|
+
/**
|
|
2451
|
+
* Gets a list of hybrid compute operations.
|
|
2452
|
+
* @param options The options parameters.
|
|
2453
|
+
*/
|
|
2454
|
+
_list(options) {
|
|
2455
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
// Operation Specifications
|
|
2459
|
+
const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2460
|
+
const listOperationSpec$1 = {
|
|
2461
|
+
path: "/providers/Microsoft.HybridCompute/operations",
|
|
2462
|
+
httpMethod: "GET",
|
|
2463
|
+
responses: {
|
|
2464
|
+
200: {
|
|
2465
|
+
bodyMapper: OperationListResult
|
|
2466
|
+
},
|
|
2467
|
+
default: {
|
|
2468
|
+
bodyMapper: ErrorResponse
|
|
2469
|
+
}
|
|
2470
|
+
},
|
|
2471
|
+
queryParameters: [apiVersion],
|
|
2472
|
+
urlParameters: [$host],
|
|
2473
|
+
headerParameters: [accept],
|
|
2474
|
+
serializer: serializer$2
|
|
2475
|
+
};
|
|
2476
|
+
|
|
2477
|
+
/*
|
|
2478
|
+
* Copyright (c) Microsoft Corporation.
|
|
2479
|
+
* Licensed under the MIT License.
|
|
2480
|
+
*
|
|
2481
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2482
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2483
|
+
*/
|
|
2484
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2485
|
+
/** Class containing PrivateLinkScopes operations. */
|
|
2486
|
+
class PrivateLinkScopesImpl {
|
|
2487
|
+
/**
|
|
2488
|
+
* Initialize a new instance of the class PrivateLinkScopes class.
|
|
2489
|
+
* @param client Reference to the service client
|
|
2490
|
+
*/
|
|
2491
|
+
constructor(client) {
|
|
2492
|
+
this.client = client;
|
|
2493
|
+
}
|
|
2494
|
+
/**
|
|
2495
|
+
* Gets a list of all Azure Arc PrivateLinkScopes within a subscription.
|
|
2496
|
+
* @param options The options parameters.
|
|
2497
|
+
*/
|
|
2498
|
+
list(options) {
|
|
2499
|
+
const iter = this.listPagingAll(options);
|
|
2500
|
+
return {
|
|
2501
|
+
next() {
|
|
2502
|
+
return iter.next();
|
|
2503
|
+
},
|
|
2504
|
+
[Symbol.asyncIterator]() {
|
|
2505
|
+
return this;
|
|
2506
|
+
},
|
|
2507
|
+
byPage: () => {
|
|
2508
|
+
return this.listPagingPage(options);
|
|
2509
|
+
}
|
|
2510
|
+
};
|
|
2511
|
+
}
|
|
2512
|
+
listPagingPage(options) {
|
|
2513
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2514
|
+
let result = yield tslib.__await(this._list(options));
|
|
2515
|
+
yield yield tslib.__await(result.value || []);
|
|
2516
|
+
let continuationToken = result.nextLink;
|
|
2517
|
+
while (continuationToken) {
|
|
2518
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2519
|
+
continuationToken = result.nextLink;
|
|
2520
|
+
yield yield tslib.__await(result.value || []);
|
|
2521
|
+
}
|
|
2522
|
+
});
|
|
2523
|
+
}
|
|
2524
|
+
listPagingAll(options) {
|
|
2525
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2526
|
+
var e_1, _a;
|
|
2527
|
+
try {
|
|
2528
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2529
|
+
const page = _c.value;
|
|
2530
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2531
|
+
}
|
|
2532
|
+
}
|
|
2533
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2534
|
+
finally {
|
|
2535
|
+
try {
|
|
2536
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2537
|
+
}
|
|
2538
|
+
finally { if (e_1) throw e_1.error; }
|
|
2539
|
+
}
|
|
2540
|
+
});
|
|
2541
|
+
}
|
|
2542
|
+
/**
|
|
2543
|
+
* Gets a list of Azure Arc PrivateLinkScopes within a resource group.
|
|
2544
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2545
|
+
* @param options The options parameters.
|
|
2546
|
+
*/
|
|
2547
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
2548
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
2549
|
+
return {
|
|
2550
|
+
next() {
|
|
2551
|
+
return iter.next();
|
|
2552
|
+
},
|
|
2553
|
+
[Symbol.asyncIterator]() {
|
|
2554
|
+
return this;
|
|
2555
|
+
},
|
|
2556
|
+
byPage: () => {
|
|
2557
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
2558
|
+
}
|
|
2559
|
+
};
|
|
2560
|
+
}
|
|
2561
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
2562
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2563
|
+
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2564
|
+
yield yield tslib.__await(result.value || []);
|
|
2565
|
+
let continuationToken = result.nextLink;
|
|
2566
|
+
while (continuationToken) {
|
|
2567
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
2568
|
+
continuationToken = result.nextLink;
|
|
2569
|
+
yield yield tslib.__await(result.value || []);
|
|
2570
|
+
}
|
|
2571
|
+
});
|
|
2572
|
+
}
|
|
2573
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
2574
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
2575
|
+
var e_2, _a;
|
|
2576
|
+
try {
|
|
2577
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2578
|
+
const page = _c.value;
|
|
2579
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2582
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
2583
|
+
finally {
|
|
2584
|
+
try {
|
|
2585
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2586
|
+
}
|
|
2587
|
+
finally { if (e_2) throw e_2.error; }
|
|
2588
|
+
}
|
|
2589
|
+
});
|
|
2590
|
+
}
|
|
2591
|
+
/**
|
|
2592
|
+
* Gets a list of all Azure Arc PrivateLinkScopes within a subscription.
|
|
2593
|
+
* @param options The options parameters.
|
|
2594
|
+
*/
|
|
2595
|
+
_list(options) {
|
|
2596
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
2597
|
+
}
|
|
2598
|
+
/**
|
|
2599
|
+
* Gets a list of Azure Arc PrivateLinkScopes within a resource group.
|
|
2600
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2601
|
+
* @param options The options parameters.
|
|
2602
|
+
*/
|
|
2603
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
2604
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
|
|
2605
|
+
}
|
|
2606
|
+
/**
|
|
2607
|
+
* Deletes a Azure Arc PrivateLinkScope.
|
|
2608
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2609
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
2610
|
+
* @param options The options parameters.
|
|
2611
|
+
*/
|
|
2612
|
+
beginDelete(resourceGroupName, scopeName, options) {
|
|
2613
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2614
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2615
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2616
|
+
});
|
|
2617
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2618
|
+
var _a;
|
|
2619
|
+
let currentRawResponse = undefined;
|
|
2620
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2621
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2622
|
+
currentRawResponse = rawResponse;
|
|
2623
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2624
|
+
};
|
|
2625
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2626
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2627
|
+
return {
|
|
2628
|
+
flatResponse,
|
|
2629
|
+
rawResponse: {
|
|
2630
|
+
statusCode: currentRawResponse.status,
|
|
2631
|
+
body: currentRawResponse.parsedBody,
|
|
2632
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2633
|
+
}
|
|
2634
|
+
};
|
|
2635
|
+
});
|
|
2636
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, scopeName, options }, deleteOperationSpec$2);
|
|
2637
|
+
return new coreLro.LroEngine(lro, {
|
|
2638
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2639
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2640
|
+
});
|
|
2641
|
+
});
|
|
2642
|
+
}
|
|
2643
|
+
/**
|
|
2644
|
+
* Deletes a Azure Arc PrivateLinkScope.
|
|
2645
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2646
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
2647
|
+
* @param options The options parameters.
|
|
2648
|
+
*/
|
|
2649
|
+
beginDeleteAndWait(resourceGroupName, scopeName, options) {
|
|
2650
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2651
|
+
const poller = yield this.beginDelete(resourceGroupName, scopeName, options);
|
|
2652
|
+
return poller.pollUntilDone();
|
|
2653
|
+
});
|
|
2654
|
+
}
|
|
2655
|
+
/**
|
|
2656
|
+
* Returns a Azure Arc PrivateLinkScope.
|
|
2657
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2658
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
2659
|
+
* @param options The options parameters.
|
|
2660
|
+
*/
|
|
2661
|
+
get(resourceGroupName, scopeName, options) {
|
|
2662
|
+
return this.client.sendOperationRequest({ resourceGroupName, scopeName, options }, getOperationSpec$2);
|
|
2663
|
+
}
|
|
2664
|
+
/**
|
|
2665
|
+
* Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for
|
|
2666
|
+
* InstrumentationKey nor AppId in the Put operation.
|
|
2667
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2668
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
2669
|
+
* @param parameters Properties that need to be specified to create or update a Azure Arc for Servers
|
|
2670
|
+
* and Clusters PrivateLinkScope.
|
|
2671
|
+
* @param options The options parameters.
|
|
2672
|
+
*/
|
|
2673
|
+
createOrUpdate(resourceGroupName, scopeName, parameters, options) {
|
|
2674
|
+
return this.client.sendOperationRequest({ resourceGroupName, scopeName, parameters, options }, createOrUpdateOperationSpec$1);
|
|
2675
|
+
}
|
|
2676
|
+
/**
|
|
2677
|
+
* Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
|
|
2678
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2679
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
2680
|
+
* @param privateLinkScopeTags Updated tag information to set into the PrivateLinkScope instance.
|
|
2681
|
+
* @param options The options parameters.
|
|
2682
|
+
*/
|
|
2683
|
+
updateTags(resourceGroupName, scopeName, privateLinkScopeTags, options) {
|
|
2684
|
+
return this.client.sendOperationRequest({ resourceGroupName, scopeName, privateLinkScopeTags, options }, updateTagsOperationSpec);
|
|
2685
|
+
}
|
|
2686
|
+
/**
|
|
2687
|
+
* Returns a Azure Arc PrivateLinkScope's validation details.
|
|
2688
|
+
* @param location The location of the target resource.
|
|
2689
|
+
* @param privateLinkScopeId The id (Guid) of the Azure Arc PrivateLinkScope resource.
|
|
2690
|
+
* @param options The options parameters.
|
|
2691
|
+
*/
|
|
2692
|
+
getValidationDetails(location, privateLinkScopeId, options) {
|
|
2693
|
+
return this.client.sendOperationRequest({ location, privateLinkScopeId, options }, getValidationDetailsOperationSpec);
|
|
2694
|
+
}
|
|
2695
|
+
/**
|
|
2696
|
+
* Returns a Azure Arc PrivateLinkScope's validation details for a given machine.
|
|
2697
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2698
|
+
* @param machineName The name of the target machine to get the private link scope validation details
|
|
2699
|
+
* for.
|
|
2700
|
+
* @param options The options parameters.
|
|
2701
|
+
*/
|
|
2702
|
+
getValidationDetailsForMachine(resourceGroupName, machineName, options) {
|
|
2703
|
+
return this.client.sendOperationRequest({ resourceGroupName, machineName, options }, getValidationDetailsForMachineOperationSpec);
|
|
2704
|
+
}
|
|
2705
|
+
/**
|
|
2706
|
+
* ListNext
|
|
2707
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
2708
|
+
* @param options The options parameters.
|
|
2709
|
+
*/
|
|
2710
|
+
_listNext(nextLink, options) {
|
|
2711
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
|
|
2712
|
+
}
|
|
2713
|
+
/**
|
|
2714
|
+
* ListByResourceGroupNext
|
|
2715
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2716
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
2717
|
+
* @param options The options parameters.
|
|
2718
|
+
*/
|
|
2719
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
2720
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
|
|
2721
|
+
}
|
|
2722
|
+
}
|
|
2723
|
+
// Operation Specifications
|
|
2724
|
+
const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2725
|
+
const listOperationSpec$2 = {
|
|
2726
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/privateLinkScopes",
|
|
2727
|
+
httpMethod: "GET",
|
|
2728
|
+
responses: {
|
|
2729
|
+
200: {
|
|
2730
|
+
bodyMapper: HybridComputePrivateLinkScopeListResult
|
|
2731
|
+
},
|
|
2732
|
+
default: {
|
|
2733
|
+
bodyMapper: ErrorResponse
|
|
2734
|
+
}
|
|
2735
|
+
},
|
|
2736
|
+
queryParameters: [apiVersion],
|
|
2737
|
+
urlParameters: [$host, subscriptionId],
|
|
2738
|
+
headerParameters: [accept],
|
|
2739
|
+
serializer: serializer$3
|
|
2740
|
+
};
|
|
2741
|
+
const listByResourceGroupOperationSpec$1 = {
|
|
2742
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes",
|
|
2743
|
+
httpMethod: "GET",
|
|
2744
|
+
responses: {
|
|
2745
|
+
200: {
|
|
2746
|
+
bodyMapper: HybridComputePrivateLinkScopeListResult
|
|
2747
|
+
},
|
|
2748
|
+
default: {
|
|
2749
|
+
bodyMapper: ErrorResponse
|
|
2750
|
+
}
|
|
2751
|
+
},
|
|
2752
|
+
queryParameters: [apiVersion],
|
|
2753
|
+
urlParameters: [
|
|
2754
|
+
$host,
|
|
2755
|
+
subscriptionId,
|
|
2756
|
+
resourceGroupName
|
|
2757
|
+
],
|
|
2758
|
+
headerParameters: [accept],
|
|
2759
|
+
serializer: serializer$3
|
|
2760
|
+
};
|
|
2761
|
+
const deleteOperationSpec$2 = {
|
|
2762
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}",
|
|
2763
|
+
httpMethod: "DELETE",
|
|
2764
|
+
responses: {
|
|
2765
|
+
200: {},
|
|
2766
|
+
201: {},
|
|
2767
|
+
202: {},
|
|
2768
|
+
204: {},
|
|
2769
|
+
default: {
|
|
2770
|
+
bodyMapper: ErrorResponse
|
|
2771
|
+
}
|
|
2772
|
+
},
|
|
2773
|
+
queryParameters: [apiVersion],
|
|
2774
|
+
urlParameters: [
|
|
2775
|
+
$host,
|
|
2776
|
+
subscriptionId,
|
|
2777
|
+
resourceGroupName,
|
|
2778
|
+
scopeName
|
|
2779
|
+
],
|
|
2780
|
+
headerParameters: [accept],
|
|
2781
|
+
serializer: serializer$3
|
|
2782
|
+
};
|
|
2783
|
+
const getOperationSpec$2 = {
|
|
2784
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}",
|
|
2785
|
+
httpMethod: "GET",
|
|
2786
|
+
responses: {
|
|
2787
|
+
200: {
|
|
2788
|
+
bodyMapper: HybridComputePrivateLinkScope
|
|
2789
|
+
},
|
|
2790
|
+
default: {
|
|
2791
|
+
bodyMapper: ErrorResponse
|
|
2792
|
+
}
|
|
2793
|
+
},
|
|
2794
|
+
queryParameters: [apiVersion],
|
|
2795
|
+
urlParameters: [
|
|
2796
|
+
$host,
|
|
2797
|
+
subscriptionId,
|
|
2798
|
+
resourceGroupName,
|
|
2799
|
+
scopeName
|
|
2800
|
+
],
|
|
2801
|
+
headerParameters: [accept],
|
|
2802
|
+
serializer: serializer$3
|
|
2803
|
+
};
|
|
2804
|
+
const createOrUpdateOperationSpec$1 = {
|
|
2805
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}",
|
|
2806
|
+
httpMethod: "PUT",
|
|
2807
|
+
responses: {
|
|
2808
|
+
200: {
|
|
2809
|
+
bodyMapper: HybridComputePrivateLinkScope
|
|
2810
|
+
},
|
|
2811
|
+
201: {
|
|
2812
|
+
bodyMapper: HybridComputePrivateLinkScope
|
|
2813
|
+
},
|
|
2814
|
+
default: {
|
|
2815
|
+
bodyMapper: ErrorResponse
|
|
2816
|
+
}
|
|
2817
|
+
},
|
|
2818
|
+
requestBody: parameters,
|
|
2819
|
+
queryParameters: [apiVersion],
|
|
2820
|
+
urlParameters: [
|
|
2821
|
+
$host,
|
|
2822
|
+
subscriptionId,
|
|
2823
|
+
resourceGroupName,
|
|
2824
|
+
scopeName
|
|
2825
|
+
],
|
|
2826
|
+
headerParameters: [accept, contentType],
|
|
2827
|
+
mediaType: "json",
|
|
2828
|
+
serializer: serializer$3
|
|
2829
|
+
};
|
|
2830
|
+
const updateTagsOperationSpec = {
|
|
2831
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}",
|
|
2832
|
+
httpMethod: "PATCH",
|
|
2833
|
+
responses: {
|
|
2834
|
+
200: {
|
|
2835
|
+
bodyMapper: HybridComputePrivateLinkScope
|
|
2836
|
+
},
|
|
2837
|
+
default: {
|
|
2838
|
+
bodyMapper: ErrorResponse
|
|
2839
|
+
}
|
|
2840
|
+
},
|
|
2841
|
+
requestBody: privateLinkScopeTags,
|
|
2842
|
+
queryParameters: [apiVersion],
|
|
2843
|
+
urlParameters: [
|
|
2844
|
+
$host,
|
|
2845
|
+
subscriptionId,
|
|
2846
|
+
resourceGroupName,
|
|
2847
|
+
scopeName
|
|
2848
|
+
],
|
|
2849
|
+
headerParameters: [accept, contentType],
|
|
2850
|
+
mediaType: "json",
|
|
2851
|
+
serializer: serializer$3
|
|
2852
|
+
};
|
|
2853
|
+
const getValidationDetailsOperationSpec = {
|
|
2854
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/privateLinkScopes/{privateLinkScopeId}",
|
|
2855
|
+
httpMethod: "GET",
|
|
2856
|
+
responses: {
|
|
2857
|
+
200: {
|
|
2858
|
+
bodyMapper: PrivateLinkScopeValidationDetails
|
|
2859
|
+
},
|
|
2860
|
+
default: {
|
|
2861
|
+
bodyMapper: ErrorResponse
|
|
2862
|
+
}
|
|
2863
|
+
},
|
|
2864
|
+
queryParameters: [apiVersion],
|
|
2865
|
+
urlParameters: [
|
|
2866
|
+
$host,
|
|
2867
|
+
subscriptionId,
|
|
2868
|
+
location,
|
|
2869
|
+
privateLinkScopeId
|
|
2870
|
+
],
|
|
2871
|
+
headerParameters: [accept],
|
|
2872
|
+
serializer: serializer$3
|
|
2873
|
+
};
|
|
2874
|
+
const getValidationDetailsForMachineOperationSpec = {
|
|
2875
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/privateLinkScopes/current",
|
|
2876
|
+
httpMethod: "GET",
|
|
2877
|
+
responses: {
|
|
2878
|
+
200: {
|
|
2879
|
+
bodyMapper: PrivateLinkScopeValidationDetails
|
|
2880
|
+
},
|
|
2881
|
+
default: {
|
|
2882
|
+
bodyMapper: ErrorResponse
|
|
2883
|
+
}
|
|
2884
|
+
},
|
|
2885
|
+
queryParameters: [apiVersion],
|
|
2886
|
+
urlParameters: [
|
|
2887
|
+
$host,
|
|
2888
|
+
subscriptionId,
|
|
2889
|
+
resourceGroupName,
|
|
2890
|
+
machineName1
|
|
2891
|
+
],
|
|
2892
|
+
headerParameters: [accept],
|
|
2893
|
+
serializer: serializer$3
|
|
2894
|
+
};
|
|
2895
|
+
const listNextOperationSpec$1 = {
|
|
2896
|
+
path: "{nextLink}",
|
|
2897
|
+
httpMethod: "GET",
|
|
2898
|
+
responses: {
|
|
2899
|
+
200: {
|
|
2900
|
+
bodyMapper: HybridComputePrivateLinkScopeListResult
|
|
2901
|
+
},
|
|
2902
|
+
default: {
|
|
2903
|
+
bodyMapper: ErrorResponse
|
|
2904
|
+
}
|
|
2905
|
+
},
|
|
2906
|
+
queryParameters: [apiVersion],
|
|
2907
|
+
urlParameters: [
|
|
2908
|
+
$host,
|
|
2909
|
+
subscriptionId,
|
|
2910
|
+
nextLink
|
|
2911
|
+
],
|
|
2912
|
+
headerParameters: [accept],
|
|
2913
|
+
serializer: serializer$3
|
|
2914
|
+
};
|
|
2915
|
+
const listByResourceGroupNextOperationSpec$1 = {
|
|
2916
|
+
path: "{nextLink}",
|
|
2917
|
+
httpMethod: "GET",
|
|
2918
|
+
responses: {
|
|
2919
|
+
200: {
|
|
2920
|
+
bodyMapper: HybridComputePrivateLinkScopeListResult
|
|
2921
|
+
},
|
|
2922
|
+
default: {
|
|
2923
|
+
bodyMapper: ErrorResponse
|
|
2924
|
+
}
|
|
2925
|
+
},
|
|
2926
|
+
queryParameters: [apiVersion],
|
|
2927
|
+
urlParameters: [
|
|
2928
|
+
$host,
|
|
2929
|
+
subscriptionId,
|
|
2930
|
+
resourceGroupName,
|
|
2931
|
+
nextLink
|
|
2932
|
+
],
|
|
2933
|
+
headerParameters: [accept],
|
|
2934
|
+
serializer: serializer$3
|
|
2935
|
+
};
|
|
2936
|
+
|
|
2937
|
+
/*
|
|
2938
|
+
* Copyright (c) Microsoft Corporation.
|
|
2939
|
+
* Licensed under the MIT License.
|
|
2940
|
+
*
|
|
2941
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2942
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2943
|
+
*/
|
|
2944
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2945
|
+
/** Class containing PrivateLinkResources operations. */
|
|
2946
|
+
class PrivateLinkResourcesImpl {
|
|
2947
|
+
/**
|
|
2948
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
2949
|
+
* @param client Reference to the service client
|
|
2950
|
+
*/
|
|
2951
|
+
constructor(client) {
|
|
2952
|
+
this.client = client;
|
|
2953
|
+
}
|
|
2954
|
+
/**
|
|
2955
|
+
* Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
|
|
2956
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2957
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
2958
|
+
* @param options The options parameters.
|
|
2959
|
+
*/
|
|
2960
|
+
listByPrivateLinkScope(resourceGroupName, scopeName, options) {
|
|
2961
|
+
const iter = this.listByPrivateLinkScopePagingAll(resourceGroupName, scopeName, options);
|
|
2962
|
+
return {
|
|
2963
|
+
next() {
|
|
2964
|
+
return iter.next();
|
|
2965
|
+
},
|
|
2966
|
+
[Symbol.asyncIterator]() {
|
|
2967
|
+
return this;
|
|
2968
|
+
},
|
|
2969
|
+
byPage: () => {
|
|
2970
|
+
return this.listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options);
|
|
2971
|
+
}
|
|
2972
|
+
};
|
|
2973
|
+
}
|
|
2974
|
+
listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options) {
|
|
2975
|
+
return tslib.__asyncGenerator(this, arguments, function* listByPrivateLinkScopePagingPage_1() {
|
|
2976
|
+
let result = yield tslib.__await(this._listByPrivateLinkScope(resourceGroupName, scopeName, options));
|
|
2977
|
+
yield yield tslib.__await(result.value || []);
|
|
2978
|
+
let continuationToken = result.nextLink;
|
|
2979
|
+
while (continuationToken) {
|
|
2980
|
+
result = yield tslib.__await(this._listByPrivateLinkScopeNext(resourceGroupName, scopeName, continuationToken, options));
|
|
2981
|
+
continuationToken = result.nextLink;
|
|
2982
|
+
yield yield tslib.__await(result.value || []);
|
|
2983
|
+
}
|
|
2984
|
+
});
|
|
2985
|
+
}
|
|
2986
|
+
listByPrivateLinkScopePagingAll(resourceGroupName, scopeName, options) {
|
|
2987
|
+
return tslib.__asyncGenerator(this, arguments, function* listByPrivateLinkScopePagingAll_1() {
|
|
2988
|
+
var e_1, _a;
|
|
2989
|
+
try {
|
|
2990
|
+
for (var _b = tslib.__asyncValues(this.listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2991
|
+
const page = _c.value;
|
|
2992
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2993
|
+
}
|
|
2994
|
+
}
|
|
2995
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2996
|
+
finally {
|
|
2997
|
+
try {
|
|
2998
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2999
|
+
}
|
|
3000
|
+
finally { if (e_1) throw e_1.error; }
|
|
3001
|
+
}
|
|
3002
|
+
});
|
|
3003
|
+
}
|
|
3004
|
+
/**
|
|
3005
|
+
* Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
|
|
3006
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3007
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
3008
|
+
* @param options The options parameters.
|
|
3009
|
+
*/
|
|
3010
|
+
_listByPrivateLinkScope(resourceGroupName, scopeName, options) {
|
|
3011
|
+
return this.client.sendOperationRequest({ resourceGroupName, scopeName, options }, listByPrivateLinkScopeOperationSpec);
|
|
3012
|
+
}
|
|
3013
|
+
/**
|
|
3014
|
+
* Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
|
|
3015
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3016
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
3017
|
+
* @param groupName The name of the private link resource.
|
|
3018
|
+
* @param options The options parameters.
|
|
3019
|
+
*/
|
|
3020
|
+
get(resourceGroupName, scopeName, groupName, options) {
|
|
3021
|
+
return this.client.sendOperationRequest({ resourceGroupName, scopeName, groupName, options }, getOperationSpec$3);
|
|
3022
|
+
}
|
|
3023
|
+
/**
|
|
3024
|
+
* ListByPrivateLinkScopeNext
|
|
3025
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3026
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
3027
|
+
* @param nextLink The nextLink from the previous successful call to the ListByPrivateLinkScope method.
|
|
3028
|
+
* @param options The options parameters.
|
|
3029
|
+
*/
|
|
3030
|
+
_listByPrivateLinkScopeNext(resourceGroupName, scopeName, nextLink, options) {
|
|
3031
|
+
return this.client.sendOperationRequest({ resourceGroupName, scopeName, nextLink, options }, listByPrivateLinkScopeNextOperationSpec);
|
|
3032
|
+
}
|
|
3033
|
+
}
|
|
3034
|
+
// Operation Specifications
|
|
3035
|
+
const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
3036
|
+
const listByPrivateLinkScopeOperationSpec = {
|
|
3037
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateLinkResources",
|
|
3038
|
+
httpMethod: "GET",
|
|
3039
|
+
responses: {
|
|
3040
|
+
200: {
|
|
3041
|
+
bodyMapper: PrivateLinkResourceListResult
|
|
3042
|
+
},
|
|
3043
|
+
default: {
|
|
3044
|
+
bodyMapper: ErrorResponse
|
|
3045
|
+
}
|
|
3046
|
+
},
|
|
3047
|
+
queryParameters: [apiVersion],
|
|
3048
|
+
urlParameters: [
|
|
3049
|
+
$host,
|
|
3050
|
+
subscriptionId,
|
|
3051
|
+
resourceGroupName,
|
|
3052
|
+
scopeName
|
|
3053
|
+
],
|
|
3054
|
+
headerParameters: [accept],
|
|
3055
|
+
serializer: serializer$4
|
|
3056
|
+
};
|
|
3057
|
+
const getOperationSpec$3 = {
|
|
3058
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateLinkResources/{groupName}",
|
|
3059
|
+
httpMethod: "GET",
|
|
3060
|
+
responses: {
|
|
3061
|
+
200: {
|
|
3062
|
+
bodyMapper: PrivateLinkResource
|
|
3063
|
+
},
|
|
3064
|
+
default: {
|
|
3065
|
+
bodyMapper: ErrorResponse
|
|
3066
|
+
}
|
|
3067
|
+
},
|
|
3068
|
+
queryParameters: [apiVersion],
|
|
3069
|
+
urlParameters: [
|
|
3070
|
+
$host,
|
|
3071
|
+
subscriptionId,
|
|
3072
|
+
resourceGroupName,
|
|
3073
|
+
scopeName,
|
|
3074
|
+
groupName
|
|
3075
|
+
],
|
|
3076
|
+
headerParameters: [accept],
|
|
3077
|
+
serializer: serializer$4
|
|
3078
|
+
};
|
|
3079
|
+
const listByPrivateLinkScopeNextOperationSpec = {
|
|
3080
|
+
path: "{nextLink}",
|
|
3081
|
+
httpMethod: "GET",
|
|
3082
|
+
responses: {
|
|
3083
|
+
200: {
|
|
3084
|
+
bodyMapper: PrivateLinkResourceListResult
|
|
3085
|
+
},
|
|
3086
|
+
default: {
|
|
3087
|
+
bodyMapper: ErrorResponse
|
|
3088
|
+
}
|
|
3089
|
+
},
|
|
3090
|
+
queryParameters: [apiVersion],
|
|
3091
|
+
urlParameters: [
|
|
3092
|
+
$host,
|
|
3093
|
+
subscriptionId,
|
|
3094
|
+
resourceGroupName,
|
|
3095
|
+
nextLink,
|
|
3096
|
+
scopeName
|
|
3097
|
+
],
|
|
3098
|
+
headerParameters: [accept],
|
|
3099
|
+
serializer: serializer$4
|
|
3100
|
+
};
|
|
3101
|
+
|
|
3102
|
+
/*
|
|
3103
|
+
* Copyright (c) Microsoft Corporation.
|
|
3104
|
+
* Licensed under the MIT License.
|
|
3105
|
+
*
|
|
3106
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3107
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3108
|
+
*/
|
|
3109
|
+
/// <reference lib="esnext.asynciterable" />
|
|
3110
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
3111
|
+
class PrivateEndpointConnectionsImpl {
|
|
3112
|
+
/**
|
|
3113
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
3114
|
+
* @param client Reference to the service client
|
|
3115
|
+
*/
|
|
3116
|
+
constructor(client) {
|
|
3117
|
+
this.client = client;
|
|
3118
|
+
}
|
|
3119
|
+
/**
|
|
3120
|
+
* Gets all private endpoint connections on a private link scope.
|
|
3121
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3122
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
3123
|
+
* @param options The options parameters.
|
|
3124
|
+
*/
|
|
3125
|
+
listByPrivateLinkScope(resourceGroupName, scopeName, options) {
|
|
3126
|
+
const iter = this.listByPrivateLinkScopePagingAll(resourceGroupName, scopeName, options);
|
|
3127
|
+
return {
|
|
3128
|
+
next() {
|
|
3129
|
+
return iter.next();
|
|
3130
|
+
},
|
|
3131
|
+
[Symbol.asyncIterator]() {
|
|
3132
|
+
return this;
|
|
3133
|
+
},
|
|
3134
|
+
byPage: () => {
|
|
3135
|
+
return this.listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options);
|
|
3136
|
+
}
|
|
3137
|
+
};
|
|
3138
|
+
}
|
|
3139
|
+
listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options) {
|
|
3140
|
+
return tslib.__asyncGenerator(this, arguments, function* listByPrivateLinkScopePagingPage_1() {
|
|
3141
|
+
let result = yield tslib.__await(this._listByPrivateLinkScope(resourceGroupName, scopeName, options));
|
|
3142
|
+
yield yield tslib.__await(result.value || []);
|
|
3143
|
+
let continuationToken = result.nextLink;
|
|
3144
|
+
while (continuationToken) {
|
|
3145
|
+
result = yield tslib.__await(this._listByPrivateLinkScopeNext(resourceGroupName, scopeName, continuationToken, options));
|
|
3146
|
+
continuationToken = result.nextLink;
|
|
3147
|
+
yield yield tslib.__await(result.value || []);
|
|
3148
|
+
}
|
|
3149
|
+
});
|
|
3150
|
+
}
|
|
3151
|
+
listByPrivateLinkScopePagingAll(resourceGroupName, scopeName, options) {
|
|
3152
|
+
return tslib.__asyncGenerator(this, arguments, function* listByPrivateLinkScopePagingAll_1() {
|
|
3153
|
+
var e_1, _a;
|
|
3154
|
+
try {
|
|
3155
|
+
for (var _b = tslib.__asyncValues(this.listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
3156
|
+
const page = _c.value;
|
|
3157
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3158
|
+
}
|
|
3159
|
+
}
|
|
3160
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3161
|
+
finally {
|
|
3162
|
+
try {
|
|
3163
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
3164
|
+
}
|
|
3165
|
+
finally { if (e_1) throw e_1.error; }
|
|
3166
|
+
}
|
|
3167
|
+
});
|
|
3168
|
+
}
|
|
3169
|
+
/**
|
|
3170
|
+
* Gets a private endpoint connection.
|
|
3171
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3172
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
3173
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
3174
|
+
* @param options The options parameters.
|
|
3175
|
+
*/
|
|
3176
|
+
get(resourceGroupName, scopeName, privateEndpointConnectionName, options) {
|
|
3177
|
+
return this.client.sendOperationRequest({ resourceGroupName, scopeName, privateEndpointConnectionName, options }, getOperationSpec$4);
|
|
3178
|
+
}
|
|
3179
|
+
/**
|
|
3180
|
+
* Approve or reject a private endpoint connection with a given name.
|
|
3181
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3182
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
3183
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
3184
|
+
* @param parameters A private endpoint connection
|
|
3185
|
+
* @param options The options parameters.
|
|
3186
|
+
*/
|
|
3187
|
+
beginCreateOrUpdate(resourceGroupName, scopeName, privateEndpointConnectionName, parameters, options) {
|
|
3188
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3189
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3190
|
+
return this.client.sendOperationRequest(args, spec);
|
|
3191
|
+
});
|
|
3192
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3193
|
+
var _a;
|
|
3194
|
+
let currentRawResponse = undefined;
|
|
3195
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3196
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3197
|
+
currentRawResponse = rawResponse;
|
|
3198
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3199
|
+
};
|
|
3200
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3201
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3202
|
+
return {
|
|
3203
|
+
flatResponse,
|
|
3204
|
+
rawResponse: {
|
|
3205
|
+
statusCode: currentRawResponse.status,
|
|
3206
|
+
body: currentRawResponse.parsedBody,
|
|
3207
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3208
|
+
}
|
|
3209
|
+
};
|
|
3210
|
+
});
|
|
3211
|
+
const lro = new LroImpl(sendOperation, {
|
|
3212
|
+
resourceGroupName,
|
|
3213
|
+
scopeName,
|
|
3214
|
+
privateEndpointConnectionName,
|
|
3215
|
+
parameters,
|
|
3216
|
+
options
|
|
3217
|
+
}, createOrUpdateOperationSpec$2);
|
|
3218
|
+
return new coreLro.LroEngine(lro, {
|
|
3219
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3220
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3221
|
+
});
|
|
3222
|
+
});
|
|
3223
|
+
}
|
|
3224
|
+
/**
|
|
3225
|
+
* Approve or reject a private endpoint connection with a given name.
|
|
3226
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3227
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
3228
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
3229
|
+
* @param parameters A private endpoint connection
|
|
3230
|
+
* @param options The options parameters.
|
|
3231
|
+
*/
|
|
3232
|
+
beginCreateOrUpdateAndWait(resourceGroupName, scopeName, privateEndpointConnectionName, parameters, options) {
|
|
3233
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3234
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, scopeName, privateEndpointConnectionName, parameters, options);
|
|
3235
|
+
return poller.pollUntilDone();
|
|
3236
|
+
});
|
|
3237
|
+
}
|
|
3238
|
+
/**
|
|
3239
|
+
* Deletes a private endpoint connection with a given name.
|
|
3240
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3241
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
3242
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
3243
|
+
* @param options The options parameters.
|
|
3244
|
+
*/
|
|
3245
|
+
beginDelete(resourceGroupName, scopeName, privateEndpointConnectionName, options) {
|
|
3246
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3247
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3248
|
+
return this.client.sendOperationRequest(args, spec);
|
|
3249
|
+
});
|
|
3250
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3251
|
+
var _a;
|
|
3252
|
+
let currentRawResponse = undefined;
|
|
3253
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3254
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3255
|
+
currentRawResponse = rawResponse;
|
|
3256
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3257
|
+
};
|
|
3258
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3259
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3260
|
+
return {
|
|
3261
|
+
flatResponse,
|
|
3262
|
+
rawResponse: {
|
|
3263
|
+
statusCode: currentRawResponse.status,
|
|
3264
|
+
body: currentRawResponse.parsedBody,
|
|
3265
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3266
|
+
}
|
|
3267
|
+
};
|
|
3268
|
+
});
|
|
3269
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, scopeName, privateEndpointConnectionName, options }, deleteOperationSpec$3);
|
|
3270
|
+
return new coreLro.LroEngine(lro, {
|
|
3271
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3272
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3273
|
+
});
|
|
3274
|
+
});
|
|
3275
|
+
}
|
|
3276
|
+
/**
|
|
3277
|
+
* Deletes a private endpoint connection with a given name.
|
|
3278
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3279
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
3280
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
3281
|
+
* @param options The options parameters.
|
|
3282
|
+
*/
|
|
3283
|
+
beginDeleteAndWait(resourceGroupName, scopeName, privateEndpointConnectionName, options) {
|
|
3284
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3285
|
+
const poller = yield this.beginDelete(resourceGroupName, scopeName, privateEndpointConnectionName, options);
|
|
3286
|
+
return poller.pollUntilDone();
|
|
3287
|
+
});
|
|
3288
|
+
}
|
|
3289
|
+
/**
|
|
3290
|
+
* Gets all private endpoint connections on a private link scope.
|
|
3291
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3292
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
3293
|
+
* @param options The options parameters.
|
|
3294
|
+
*/
|
|
3295
|
+
_listByPrivateLinkScope(resourceGroupName, scopeName, options) {
|
|
3296
|
+
return this.client.sendOperationRequest({ resourceGroupName, scopeName, options }, listByPrivateLinkScopeOperationSpec$1);
|
|
3297
|
+
}
|
|
3298
|
+
/**
|
|
3299
|
+
* ListByPrivateLinkScopeNext
|
|
3300
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3301
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
3302
|
+
* @param nextLink The nextLink from the previous successful call to the ListByPrivateLinkScope method.
|
|
3303
|
+
* @param options The options parameters.
|
|
3304
|
+
*/
|
|
3305
|
+
_listByPrivateLinkScopeNext(resourceGroupName, scopeName, nextLink, options) {
|
|
3306
|
+
return this.client.sendOperationRequest({ resourceGroupName, scopeName, nextLink, options }, listByPrivateLinkScopeNextOperationSpec$1);
|
|
3307
|
+
}
|
|
3308
|
+
}
|
|
3309
|
+
// Operation Specifications
|
|
3310
|
+
const serializer$5 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
3311
|
+
const getOperationSpec$4 = {
|
|
3312
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
3313
|
+
httpMethod: "GET",
|
|
3314
|
+
responses: {
|
|
3315
|
+
200: {
|
|
3316
|
+
bodyMapper: PrivateEndpointConnection
|
|
3317
|
+
},
|
|
3318
|
+
default: {
|
|
3319
|
+
bodyMapper: ErrorResponse
|
|
3320
|
+
}
|
|
3321
|
+
},
|
|
3322
|
+
queryParameters: [apiVersion],
|
|
3323
|
+
urlParameters: [
|
|
3324
|
+
$host,
|
|
3325
|
+
subscriptionId,
|
|
3326
|
+
resourceGroupName,
|
|
3327
|
+
scopeName,
|
|
3328
|
+
privateEndpointConnectionName
|
|
3329
|
+
],
|
|
3330
|
+
headerParameters: [accept],
|
|
3331
|
+
serializer: serializer$5
|
|
3332
|
+
};
|
|
3333
|
+
const createOrUpdateOperationSpec$2 = {
|
|
3334
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
3335
|
+
httpMethod: "PUT",
|
|
3336
|
+
responses: {
|
|
3337
|
+
200: {
|
|
3338
|
+
bodyMapper: PrivateEndpointConnection
|
|
3339
|
+
},
|
|
3340
|
+
201: {
|
|
3341
|
+
bodyMapper: PrivateEndpointConnection
|
|
3342
|
+
},
|
|
3343
|
+
202: {
|
|
3344
|
+
bodyMapper: PrivateEndpointConnection
|
|
3345
|
+
},
|
|
3346
|
+
204: {
|
|
3347
|
+
bodyMapper: PrivateEndpointConnection
|
|
3348
|
+
},
|
|
3349
|
+
default: {
|
|
3350
|
+
bodyMapper: ErrorResponse
|
|
3351
|
+
}
|
|
3352
|
+
},
|
|
3353
|
+
requestBody: parameters1,
|
|
3354
|
+
queryParameters: [apiVersion],
|
|
3355
|
+
urlParameters: [
|
|
3356
|
+
$host,
|
|
3357
|
+
subscriptionId,
|
|
3358
|
+
resourceGroupName,
|
|
3359
|
+
scopeName,
|
|
3360
|
+
privateEndpointConnectionName
|
|
3361
|
+
],
|
|
3362
|
+
headerParameters: [accept, contentType],
|
|
3363
|
+
mediaType: "json",
|
|
3364
|
+
serializer: serializer$5
|
|
3365
|
+
};
|
|
3366
|
+
const deleteOperationSpec$3 = {
|
|
3367
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
3368
|
+
httpMethod: "DELETE",
|
|
3369
|
+
responses: {
|
|
3370
|
+
200: {},
|
|
3371
|
+
201: {},
|
|
3372
|
+
202: {},
|
|
3373
|
+
204: {},
|
|
3374
|
+
default: {
|
|
3375
|
+
bodyMapper: ErrorResponse
|
|
3376
|
+
}
|
|
3377
|
+
},
|
|
3378
|
+
queryParameters: [apiVersion],
|
|
3379
|
+
urlParameters: [
|
|
3380
|
+
$host,
|
|
3381
|
+
subscriptionId,
|
|
3382
|
+
resourceGroupName,
|
|
3383
|
+
scopeName,
|
|
3384
|
+
privateEndpointConnectionName
|
|
3385
|
+
],
|
|
3386
|
+
headerParameters: [accept],
|
|
3387
|
+
serializer: serializer$5
|
|
3388
|
+
};
|
|
3389
|
+
const listByPrivateLinkScopeOperationSpec$1 = {
|
|
3390
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections",
|
|
3391
|
+
httpMethod: "GET",
|
|
3392
|
+
responses: {
|
|
3393
|
+
200: {
|
|
3394
|
+
bodyMapper: PrivateEndpointConnectionListResult
|
|
3395
|
+
},
|
|
3396
|
+
default: {
|
|
3397
|
+
bodyMapper: ErrorResponse
|
|
3398
|
+
}
|
|
3399
|
+
},
|
|
3400
|
+
queryParameters: [apiVersion],
|
|
3401
|
+
urlParameters: [
|
|
3402
|
+
$host,
|
|
3403
|
+
subscriptionId,
|
|
3404
|
+
resourceGroupName,
|
|
3405
|
+
scopeName
|
|
3406
|
+
],
|
|
3407
|
+
headerParameters: [accept],
|
|
3408
|
+
serializer: serializer$5
|
|
3409
|
+
};
|
|
3410
|
+
const listByPrivateLinkScopeNextOperationSpec$1 = {
|
|
3411
|
+
path: "{nextLink}",
|
|
3412
|
+
httpMethod: "GET",
|
|
3413
|
+
responses: {
|
|
3414
|
+
200: {
|
|
3415
|
+
bodyMapper: PrivateEndpointConnectionListResult
|
|
3416
|
+
},
|
|
3417
|
+
default: {
|
|
3418
|
+
bodyMapper: ErrorResponse
|
|
3419
|
+
}
|
|
3420
|
+
},
|
|
3421
|
+
queryParameters: [apiVersion],
|
|
3422
|
+
urlParameters: [
|
|
3423
|
+
$host,
|
|
3424
|
+
subscriptionId,
|
|
3425
|
+
resourceGroupName,
|
|
3426
|
+
nextLink,
|
|
3427
|
+
scopeName
|
|
3428
|
+
],
|
|
3429
|
+
headerParameters: [accept],
|
|
3430
|
+
serializer: serializer$5
|
|
3431
|
+
};
|
|
3432
|
+
|
|
3433
|
+
/*
|
|
3434
|
+
* Copyright (c) Microsoft Corporation.
|
|
3435
|
+
* Licensed under the MIT License.
|
|
3436
|
+
*
|
|
3437
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3438
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3439
|
+
*/
|
|
3440
|
+
class HybridComputeManagementClient extends coreClient.ServiceClient {
|
|
3441
|
+
/**
|
|
3442
|
+
* Initializes a new instance of the HybridComputeManagementClient class.
|
|
3443
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
3444
|
+
* @param subscriptionId The ID of the target subscription.
|
|
3445
|
+
* @param options The parameter options
|
|
3446
|
+
*/
|
|
3447
|
+
constructor(credentials, subscriptionId, options) {
|
|
3448
|
+
if (credentials === undefined) {
|
|
3449
|
+
throw new Error("'credentials' cannot be null");
|
|
3450
|
+
}
|
|
3451
|
+
if (subscriptionId === undefined) {
|
|
3452
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
3453
|
+
}
|
|
3454
|
+
// Initializing default values for options
|
|
3455
|
+
if (!options) {
|
|
3456
|
+
options = {};
|
|
3457
|
+
}
|
|
3458
|
+
const defaults = {
|
|
3459
|
+
requestContentType: "application/json; charset=utf-8",
|
|
3460
|
+
credential: credentials
|
|
3461
|
+
};
|
|
3462
|
+
const packageDetails = `azsdk-js-arm-hybridcompute/3.0.0`;
|
|
3463
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3464
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3465
|
+
: `${packageDetails}`;
|
|
3466
|
+
if (!options.credentialScopes) {
|
|
3467
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
3468
|
+
}
|
|
3469
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
3470
|
+
userAgentPrefix
|
|
3471
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
3472
|
+
super(optionsWithDefaults);
|
|
3473
|
+
// Parameter assignments
|
|
3474
|
+
this.subscriptionId = subscriptionId;
|
|
3475
|
+
// Assigning values to Constant parameters
|
|
3476
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
3477
|
+
this.apiVersion = options.apiVersion || "2021-05-20";
|
|
3478
|
+
this.machines = new MachinesImpl(this);
|
|
3479
|
+
this.machineExtensions = new MachineExtensionsImpl(this);
|
|
3480
|
+
this.operations = new OperationsImpl(this);
|
|
3481
|
+
this.privateLinkScopes = new PrivateLinkScopesImpl(this);
|
|
3482
|
+
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
3483
|
+
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
3484
|
+
}
|
|
3485
|
+
/**
|
|
3486
|
+
* The operation to Upgrade Machine Extensions.
|
|
3487
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3488
|
+
* @param machineName The name of the hybrid machine.
|
|
3489
|
+
* @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions operation.
|
|
3490
|
+
* @param options The options parameters.
|
|
3491
|
+
*/
|
|
3492
|
+
beginUpgradeExtensions(resourceGroupName, machineName, extensionUpgradeParameters, options) {
|
|
3493
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3494
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3495
|
+
return this.sendOperationRequest(args, spec);
|
|
3496
|
+
});
|
|
3497
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3498
|
+
var _a;
|
|
3499
|
+
let currentRawResponse = undefined;
|
|
3500
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3501
|
+
const callback = (rawResponse, flatResponse) => {
|
|
3502
|
+
currentRawResponse = rawResponse;
|
|
3503
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3504
|
+
};
|
|
3505
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3506
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3507
|
+
return {
|
|
3508
|
+
flatResponse,
|
|
3509
|
+
rawResponse: {
|
|
3510
|
+
statusCode: currentRawResponse.status,
|
|
3511
|
+
body: currentRawResponse.parsedBody,
|
|
3512
|
+
headers: currentRawResponse.headers.toJSON()
|
|
3513
|
+
}
|
|
3514
|
+
};
|
|
3515
|
+
});
|
|
3516
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, machineName, extensionUpgradeParameters, options }, upgradeExtensionsOperationSpec);
|
|
3517
|
+
return new coreLro.LroEngine(lro, {
|
|
3518
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3519
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3520
|
+
});
|
|
3521
|
+
});
|
|
3522
|
+
}
|
|
3523
|
+
/**
|
|
3524
|
+
* The operation to Upgrade Machine Extensions.
|
|
3525
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3526
|
+
* @param machineName The name of the hybrid machine.
|
|
3527
|
+
* @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions operation.
|
|
3528
|
+
* @param options The options parameters.
|
|
3529
|
+
*/
|
|
3530
|
+
beginUpgradeExtensionsAndWait(resourceGroupName, machineName, extensionUpgradeParameters, options) {
|
|
3531
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3532
|
+
const poller = yield this.beginUpgradeExtensions(resourceGroupName, machineName, extensionUpgradeParameters, options);
|
|
3533
|
+
return poller.pollUntilDone();
|
|
3534
|
+
});
|
|
3535
|
+
}
|
|
3536
|
+
}
|
|
3537
|
+
// Operation Specifications
|
|
3538
|
+
const serializer$6 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
3539
|
+
const upgradeExtensionsOperationSpec = {
|
|
3540
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/upgradeExtensions",
|
|
3541
|
+
httpMethod: "POST",
|
|
3542
|
+
responses: {
|
|
3543
|
+
200: {},
|
|
3544
|
+
201: {},
|
|
3545
|
+
202: {},
|
|
3546
|
+
204: {},
|
|
3547
|
+
default: {
|
|
3548
|
+
bodyMapper: ErrorResponse
|
|
3549
|
+
}
|
|
3550
|
+
},
|
|
3551
|
+
requestBody: extensionUpgradeParameters,
|
|
3552
|
+
queryParameters: [apiVersion],
|
|
3553
|
+
urlParameters: [
|
|
3554
|
+
$host,
|
|
3555
|
+
subscriptionId,
|
|
3556
|
+
resourceGroupName,
|
|
3557
|
+
machineName
|
|
3558
|
+
],
|
|
3559
|
+
headerParameters: [accept, contentType],
|
|
3560
|
+
mediaType: "json",
|
|
3561
|
+
serializer: serializer$6
|
|
3562
|
+
};
|
|
3563
|
+
|
|
3564
|
+
exports.HybridComputeManagementClient = HybridComputeManagementClient;
|
|
3565
|
+
//# sourceMappingURL=index.js.map
|