@azure/arm-hybridcompute 5.0.0-beta.2 → 5.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/README.md +1 -1
- package/dist/browser/api/extensionMetadata/operations.js +3 -7
- package/dist/browser/api/extensionMetadata/operations.js.map +1 -1
- package/dist/browser/api/extensionMetadata/options.js.map +1 -1
- package/dist/browser/api/extensionMetadataV2/operations.js +3 -7
- package/dist/browser/api/extensionMetadataV2/operations.js.map +1 -1
- package/dist/browser/api/extensionMetadataV2/options.js.map +1 -1
- package/dist/browser/api/extensionPublisher/operations.js +2 -6
- package/dist/browser/api/extensionPublisher/operations.js.map +1 -1
- package/dist/browser/api/extensionType/operations.js +2 -6
- package/dist/browser/api/extensionType/operations.js.map +1 -1
- package/dist/browser/api/gateways/operations.js +10 -18
- package/dist/browser/api/gateways/operations.js.map +1 -1
- package/dist/browser/api/gateways/options.js.map +1 -1
- package/dist/browser/api/hybridComputeManagementContext.d.ts +2 -2
- package/dist/browser/api/hybridComputeManagementContext.js +4 -4
- package/dist/browser/api/hybridComputeManagementContext.js.map +1 -1
- package/dist/browser/api/licenseProfiles/operations.js +9 -13
- package/dist/browser/api/licenseProfiles/operations.js.map +1 -1
- package/dist/browser/api/licenseProfiles/options.js.map +1 -1
- package/dist/browser/api/licenses/operations.js +13 -21
- package/dist/browser/api/licenses/operations.js.map +1 -1
- package/dist/browser/api/licenses/options.js.map +1 -1
- package/dist/browser/api/machineExtensions/operations.js +9 -13
- package/dist/browser/api/machineExtensions/operations.js.map +1 -1
- package/dist/browser/api/machineExtensions/options.js.map +1 -1
- package/dist/browser/api/machineRunCommands/operations.js +7 -11
- package/dist/browser/api/machineRunCommands/operations.js.map +1 -1
- package/dist/browser/api/machineRunCommands/options.js.map +1 -1
- package/dist/browser/api/machines/operations.js +13 -21
- package/dist/browser/api/machines/operations.js.map +1 -1
- package/dist/browser/api/machines/options.js.map +1 -1
- package/dist/browser/api/networkProfileOperations/operations.js +1 -1
- package/dist/browser/api/networkProfileOperations/operations.js.map +1 -1
- package/dist/browser/api/networkSecurityPerimeterConfigurations/operations.js +5 -9
- package/dist/browser/api/networkSecurityPerimeterConfigurations/operations.js.map +1 -1
- package/dist/browser/api/networkSecurityPerimeterConfigurations/options.js.map +1 -1
- package/dist/browser/api/operations/operations.js +2 -6
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/operations.js +4 -4
- package/dist/browser/api/operations.js.map +1 -1
- package/dist/browser/api/options.js.map +1 -1
- package/dist/browser/api/privateEndpointConnections/operations.js +7 -11
- package/dist/browser/api/privateEndpointConnections/operations.js.map +1 -1
- package/dist/browser/api/privateEndpointConnections/options.js.map +1 -1
- package/dist/browser/api/privateLinkResources/operations.js +3 -7
- package/dist/browser/api/privateLinkResources/operations.js.map +1 -1
- package/dist/browser/api/privateLinkResources/options.js.map +1 -1
- package/dist/browser/api/privateLinkScopes/operations.js +11 -19
- package/dist/browser/api/privateLinkScopes/operations.js.map +1 -1
- package/dist/browser/api/privateLinkScopes/options.js.map +1 -1
- package/dist/browser/api/settings/operations.js +3 -3
- package/dist/browser/api/settings/operations.js.map +1 -1
- package/dist/browser/api/settings/options.js.map +1 -1
- package/dist/browser/classic/extensionMetadata/index.js.map +1 -1
- package/dist/browser/classic/extensionMetadataV2/index.js.map +1 -1
- package/dist/browser/classic/extensionPublisher/index.js.map +1 -1
- package/dist/browser/classic/extensionType/index.js.map +1 -1
- package/dist/browser/classic/gateways/index.js.map +1 -1
- package/dist/browser/classic/licenseProfiles/index.js.map +1 -1
- package/dist/browser/classic/licenses/index.js.map +1 -1
- package/dist/browser/classic/machineExtensions/index.js.map +1 -1
- package/dist/browser/classic/machineRunCommands/index.js.map +1 -1
- package/dist/browser/classic/machines/index.js.map +1 -1
- package/dist/browser/classic/networkProfileOperations/index.js.map +1 -1
- package/dist/browser/classic/networkSecurityPerimeterConfigurations/index.js.map +1 -1
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/classic/privateEndpointConnections/index.js.map +1 -1
- package/dist/browser/classic/privateLinkResources/index.js.map +1 -1
- package/dist/browser/classic/privateLinkScopes/index.js.map +1 -1
- package/dist/browser/classic/settings/index.js.map +1 -1
- package/dist/browser/hybridComputeManagementClient.js +2 -9
- package/dist/browser/hybridComputeManagementClient.js.map +1 -1
- package/dist/browser/index.d.ts +2 -2
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +2 -2
- package/dist/browser/models/index.js +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +78 -21
- package/dist/browser/models/models.js +89 -10
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/api/extensionMetadata/operations.js +3 -7
- package/dist/commonjs/api/extensionMetadata/operations.js.map +2 -2
- package/dist/commonjs/api/extensionMetadata/options.js.map +1 -1
- package/dist/commonjs/api/extensionMetadataV2/operations.js +3 -7
- package/dist/commonjs/api/extensionMetadataV2/operations.js.map +2 -2
- package/dist/commonjs/api/extensionMetadataV2/options.js.map +1 -1
- package/dist/commonjs/api/extensionPublisher/operations.js +2 -6
- package/dist/commonjs/api/extensionPublisher/operations.js.map +2 -2
- package/dist/commonjs/api/extensionType/operations.js +2 -6
- package/dist/commonjs/api/extensionType/operations.js.map +2 -2
- package/dist/commonjs/api/gateways/operations.js +10 -18
- package/dist/commonjs/api/gateways/operations.js.map +2 -2
- package/dist/commonjs/api/gateways/options.js.map +1 -1
- package/dist/commonjs/api/hybridComputeManagementContext.d.ts +2 -2
- package/dist/commonjs/api/hybridComputeManagementContext.js +2 -2
- package/dist/commonjs/api/hybridComputeManagementContext.js.map +2 -2
- package/dist/commonjs/api/licenseProfiles/operations.js +9 -13
- package/dist/commonjs/api/licenseProfiles/operations.js.map +2 -2
- package/dist/commonjs/api/licenseProfiles/options.js.map +1 -1
- package/dist/commonjs/api/licenses/operations.js +13 -21
- package/dist/commonjs/api/licenses/operations.js.map +2 -2
- package/dist/commonjs/api/licenses/options.js.map +1 -1
- package/dist/commonjs/api/machineExtensions/operations.js +9 -13
- package/dist/commonjs/api/machineExtensions/operations.js.map +2 -2
- package/dist/commonjs/api/machineExtensions/options.js.map +1 -1
- package/dist/commonjs/api/machineRunCommands/operations.js +7 -11
- package/dist/commonjs/api/machineRunCommands/operations.js.map +2 -2
- package/dist/commonjs/api/machineRunCommands/options.js.map +1 -1
- package/dist/commonjs/api/machines/operations.js +13 -21
- package/dist/commonjs/api/machines/operations.js.map +2 -2
- package/dist/commonjs/api/machines/options.js.map +1 -1
- package/dist/commonjs/api/networkProfileOperations/operations.js +1 -1
- package/dist/commonjs/api/networkProfileOperations/operations.js.map +2 -2
- package/dist/commonjs/api/networkSecurityPerimeterConfigurations/operations.js +5 -9
- package/dist/commonjs/api/networkSecurityPerimeterConfigurations/operations.js.map +2 -2
- package/dist/commonjs/api/networkSecurityPerimeterConfigurations/options.js.map +1 -1
- package/dist/commonjs/api/operations/operations.js +2 -6
- package/dist/commonjs/api/operations/operations.js.map +2 -2
- package/dist/commonjs/api/operations.js +4 -4
- package/dist/commonjs/api/operations.js.map +2 -2
- package/dist/commonjs/api/options.js.map +1 -1
- package/dist/commonjs/api/privateEndpointConnections/operations.js +7 -11
- package/dist/commonjs/api/privateEndpointConnections/operations.js.map +2 -2
- package/dist/commonjs/api/privateEndpointConnections/options.js.map +1 -1
- package/dist/commonjs/api/privateLinkResources/operations.js +3 -7
- package/dist/commonjs/api/privateLinkResources/operations.js.map +2 -2
- package/dist/commonjs/api/privateLinkResources/options.js.map +1 -1
- package/dist/commonjs/api/privateLinkScopes/operations.js +11 -19
- package/dist/commonjs/api/privateLinkScopes/operations.js.map +2 -2
- package/dist/commonjs/api/privateLinkScopes/options.js.map +1 -1
- package/dist/commonjs/api/settings/operations.js +3 -3
- package/dist/commonjs/api/settings/operations.js.map +2 -2
- package/dist/commonjs/api/settings/options.js.map +1 -1
- package/dist/commonjs/classic/extensionMetadata/index.js.map +2 -2
- package/dist/commonjs/classic/extensionMetadataV2/index.js.map +2 -2
- package/dist/commonjs/classic/extensionPublisher/index.js.map +2 -2
- package/dist/commonjs/classic/extensionType/index.js.map +2 -2
- package/dist/commonjs/classic/gateways/index.js.map +2 -2
- package/dist/commonjs/classic/licenseProfiles/index.js.map +2 -2
- package/dist/commonjs/classic/licenses/index.js.map +2 -2
- package/dist/commonjs/classic/machineExtensions/index.js.map +2 -2
- package/dist/commonjs/classic/machineRunCommands/index.js.map +2 -2
- package/dist/commonjs/classic/machines/index.js.map +2 -2
- package/dist/commonjs/classic/networkProfileOperations/index.js.map +2 -2
- package/dist/commonjs/classic/networkSecurityPerimeterConfigurations/index.js.map +2 -2
- package/dist/commonjs/classic/operations/index.js.map +2 -2
- package/dist/commonjs/classic/privateEndpointConnections/index.js.map +2 -2
- package/dist/commonjs/classic/privateLinkResources/index.js.map +2 -2
- package/dist/commonjs/classic/privateLinkScopes/index.js.map +2 -2
- package/dist/commonjs/classic/settings/index.js.map +2 -2
- package/dist/commonjs/hybridComputeManagementClient.js +2 -7
- package/dist/commonjs/hybridComputeManagementClient.js.map +2 -2
- package/dist/commonjs/index.d.ts +2 -2
- package/dist/commonjs/index.js +4 -0
- package/dist/commonjs/index.js.map +2 -2
- package/dist/commonjs/models/index.d.ts +2 -2
- package/dist/commonjs/models/index.js +4 -0
- package/dist/commonjs/models/index.js.map +2 -2
- package/dist/commonjs/models/models.d.ts +78 -21
- package/dist/commonjs/models/models.js +69 -14
- package/dist/commonjs/models/models.js.map +3 -3
- package/dist/commonjs/restorePollerHelpers.js.map +2 -2
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/extensionMetadata/operations.js +3 -7
- package/dist/esm/api/extensionMetadata/operations.js.map +1 -1
- package/dist/esm/api/extensionMetadata/options.js.map +1 -1
- package/dist/esm/api/extensionMetadataV2/operations.js +3 -7
- package/dist/esm/api/extensionMetadataV2/operations.js.map +1 -1
- package/dist/esm/api/extensionMetadataV2/options.js.map +1 -1
- package/dist/esm/api/extensionPublisher/operations.js +2 -6
- package/dist/esm/api/extensionPublisher/operations.js.map +1 -1
- package/dist/esm/api/extensionType/operations.js +2 -6
- package/dist/esm/api/extensionType/operations.js.map +1 -1
- package/dist/esm/api/gateways/operations.js +10 -18
- package/dist/esm/api/gateways/operations.js.map +1 -1
- package/dist/esm/api/gateways/options.js.map +1 -1
- package/dist/esm/api/hybridComputeManagementContext.d.ts +2 -2
- package/dist/esm/api/hybridComputeManagementContext.js +4 -4
- package/dist/esm/api/hybridComputeManagementContext.js.map +1 -1
- package/dist/esm/api/licenseProfiles/operations.js +9 -13
- package/dist/esm/api/licenseProfiles/operations.js.map +1 -1
- package/dist/esm/api/licenseProfiles/options.js.map +1 -1
- package/dist/esm/api/licenses/operations.js +13 -21
- package/dist/esm/api/licenses/operations.js.map +1 -1
- package/dist/esm/api/licenses/options.js.map +1 -1
- package/dist/esm/api/machineExtensions/operations.js +9 -13
- package/dist/esm/api/machineExtensions/operations.js.map +1 -1
- package/dist/esm/api/machineExtensions/options.js.map +1 -1
- package/dist/esm/api/machineRunCommands/operations.js +7 -11
- package/dist/esm/api/machineRunCommands/operations.js.map +1 -1
- package/dist/esm/api/machineRunCommands/options.js.map +1 -1
- package/dist/esm/api/machines/operations.js +13 -21
- package/dist/esm/api/machines/operations.js.map +1 -1
- package/dist/esm/api/machines/options.js.map +1 -1
- package/dist/esm/api/networkProfileOperations/operations.js +1 -1
- package/dist/esm/api/networkProfileOperations/operations.js.map +1 -1
- package/dist/esm/api/networkSecurityPerimeterConfigurations/operations.js +5 -9
- package/dist/esm/api/networkSecurityPerimeterConfigurations/operations.js.map +1 -1
- package/dist/esm/api/networkSecurityPerimeterConfigurations/options.js.map +1 -1
- package/dist/esm/api/operations/operations.js +2 -6
- package/dist/esm/api/operations/operations.js.map +1 -1
- package/dist/esm/api/operations.js +4 -4
- package/dist/esm/api/operations.js.map +1 -1
- package/dist/esm/api/options.js.map +1 -1
- package/dist/esm/api/privateEndpointConnections/operations.js +7 -11
- package/dist/esm/api/privateEndpointConnections/operations.js.map +1 -1
- package/dist/esm/api/privateEndpointConnections/options.js.map +1 -1
- package/dist/esm/api/privateLinkResources/operations.js +3 -7
- package/dist/esm/api/privateLinkResources/operations.js.map +1 -1
- package/dist/esm/api/privateLinkResources/options.js.map +1 -1
- package/dist/esm/api/privateLinkScopes/operations.js +11 -19
- package/dist/esm/api/privateLinkScopes/operations.js.map +1 -1
- package/dist/esm/api/privateLinkScopes/options.js.map +1 -1
- package/dist/esm/api/settings/operations.js +3 -3
- package/dist/esm/api/settings/operations.js.map +1 -1
- package/dist/esm/api/settings/options.js.map +1 -1
- package/dist/esm/classic/extensionMetadata/index.js.map +1 -1
- package/dist/esm/classic/extensionMetadataV2/index.js.map +1 -1
- package/dist/esm/classic/extensionPublisher/index.js.map +1 -1
- package/dist/esm/classic/extensionType/index.js.map +1 -1
- package/dist/esm/classic/gateways/index.js.map +1 -1
- package/dist/esm/classic/licenseProfiles/index.js.map +1 -1
- package/dist/esm/classic/licenses/index.js.map +1 -1
- package/dist/esm/classic/machineExtensions/index.js.map +1 -1
- package/dist/esm/classic/machineRunCommands/index.js.map +1 -1
- package/dist/esm/classic/machines/index.js.map +1 -1
- package/dist/esm/classic/networkProfileOperations/index.js.map +1 -1
- package/dist/esm/classic/networkSecurityPerimeterConfigurations/index.js.map +1 -1
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/classic/privateEndpointConnections/index.js.map +1 -1
- package/dist/esm/classic/privateLinkResources/index.js.map +1 -1
- package/dist/esm/classic/privateLinkScopes/index.js.map +1 -1
- package/dist/esm/classic/settings/index.js.map +1 -1
- package/dist/esm/hybridComputeManagementClient.js +2 -9
- package/dist/esm/hybridComputeManagementClient.js.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +2 -2
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +78 -21
- package/dist/esm/models/models.js +89 -10
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/package.json +9 -9
|
@@ -10,7 +10,7 @@ export function _listSend(context, resourceGroupName, machineName, options = { r
|
|
|
10
10
|
subscriptionId: context.subscriptionId,
|
|
11
11
|
resourceGroupName: resourceGroupName,
|
|
12
12
|
machineName: machineName,
|
|
13
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
13
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-15",
|
|
14
14
|
}, {
|
|
15
15
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
16
16
|
});
|
|
@@ -32,11 +32,7 @@ export async function _listDeserialize(result) {
|
|
|
32
32
|
}
|
|
33
33
|
/** The operation to get all license profiles of a non-Azure machine */
|
|
34
34
|
export function list(context, resourceGroupName, machineName, options = { requestOptions: {} }) {
|
|
35
|
-
return buildPagedAsyncIterator(context, () => _listSend(context, resourceGroupName, machineName, options), _listDeserialize, ["200"], {
|
|
36
|
-
itemName: "value",
|
|
37
|
-
nextLinkName: "nextLink",
|
|
38
|
-
apiVersion: context.apiVersion ?? "2025-09-16-preview",
|
|
39
|
-
});
|
|
35
|
+
return buildPagedAsyncIterator(context, () => _listSend(context, resourceGroupName, machineName, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-07-15" });
|
|
40
36
|
}
|
|
41
37
|
export function _$deleteSend(context, resourceGroupName, machineName, options = { requestOptions: {} }) {
|
|
42
38
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}{?api%2Dversion}", {
|
|
@@ -44,7 +40,7 @@ export function _$deleteSend(context, resourceGroupName, machineName, options =
|
|
|
44
40
|
resourceGroupName: resourceGroupName,
|
|
45
41
|
machineName: machineName,
|
|
46
42
|
licenseProfileName: "default",
|
|
47
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
43
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-15",
|
|
48
44
|
}, {
|
|
49
45
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
50
46
|
});
|
|
@@ -68,7 +64,7 @@ export function $delete(context, resourceGroupName, machineName, options = { req
|
|
|
68
64
|
abortSignal: options?.abortSignal,
|
|
69
65
|
getInitialResponse: () => _$deleteSend(context, resourceGroupName, machineName, options),
|
|
70
66
|
resourceLocationConfig: "location",
|
|
71
|
-
apiVersion: context.apiVersion ?? "
|
|
67
|
+
apiVersion: context.apiVersion ?? "2026-07-15",
|
|
72
68
|
});
|
|
73
69
|
}
|
|
74
70
|
export function _updateSend(context, resourceGroupName, machineName, parameters, options = { requestOptions: {} }) {
|
|
@@ -77,7 +73,7 @@ export function _updateSend(context, resourceGroupName, machineName, parameters,
|
|
|
77
73
|
resourceGroupName: resourceGroupName,
|
|
78
74
|
machineName: machineName,
|
|
79
75
|
licenseProfileName: "default",
|
|
80
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
76
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-15",
|
|
81
77
|
}, {
|
|
82
78
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
83
79
|
});
|
|
@@ -106,7 +102,7 @@ export function update(context, resourceGroupName, machineName, parameters, opti
|
|
|
106
102
|
abortSignal: options?.abortSignal,
|
|
107
103
|
getInitialResponse: () => _updateSend(context, resourceGroupName, machineName, parameters, options),
|
|
108
104
|
resourceLocationConfig: "location",
|
|
109
|
-
apiVersion: context.apiVersion ?? "
|
|
105
|
+
apiVersion: context.apiVersion ?? "2026-07-15",
|
|
110
106
|
});
|
|
111
107
|
}
|
|
112
108
|
export function _createOrUpdateSend(context, resourceGroupName, machineName, parameters, options = { requestOptions: {} }) {
|
|
@@ -115,7 +111,7 @@ export function _createOrUpdateSend(context, resourceGroupName, machineName, par
|
|
|
115
111
|
resourceGroupName: resourceGroupName,
|
|
116
112
|
machineName: machineName,
|
|
117
113
|
licenseProfileName: "default",
|
|
118
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
114
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-15",
|
|
119
115
|
}, {
|
|
120
116
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
121
117
|
});
|
|
@@ -144,7 +140,7 @@ export function createOrUpdate(context, resourceGroupName, machineName, paramete
|
|
|
144
140
|
abortSignal: options?.abortSignal,
|
|
145
141
|
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, machineName, parameters, options),
|
|
146
142
|
resourceLocationConfig: "location",
|
|
147
|
-
apiVersion: context.apiVersion ?? "
|
|
143
|
+
apiVersion: context.apiVersion ?? "2026-07-15",
|
|
148
144
|
});
|
|
149
145
|
}
|
|
150
146
|
export function _getSend(context, resourceGroupName, machineName, options = { requestOptions: {} }) {
|
|
@@ -153,7 +149,7 @@ export function _getSend(context, resourceGroupName, machineName, options = { re
|
|
|
153
149
|
resourceGroupName: resourceGroupName,
|
|
154
150
|
machineName: machineName,
|
|
155
151
|
licenseProfileName: "default",
|
|
156
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
152
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-15",
|
|
157
153
|
}, {
|
|
158
154
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
159
155
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/licenseProfiles/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,EAC9B,sCAAsC,GACvC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,E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B,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACzD,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,0BAA0B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACjD,CAAC;AAED,iEAAiE;AACjE,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,WAAmB,EACnB,UAA4C,EAAE,cAAc,EAAE,EAAE,EAAE;IAElE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAChF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type {\n LicenseProfile,\n LicenseProfileUpdate,\n _LicenseProfilesListResult,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n licenseProfileSerializer,\n licenseProfileDeserializer,\n licenseProfileUpdateSerializer,\n _licenseProfilesListResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n LicenseProfilesListOptionalParams,\n LicenseProfilesDeleteOptionalParams,\n LicenseProfilesUpdateOptionalParams,\n LicenseProfilesCreateOrUpdateOptionalParams,\n LicenseProfilesGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _listSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_LicenseProfilesListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _licenseProfilesListResultDeserializer(result.body);\n}\n\n/** The operation to get all license profiles of a non-Azure machine */\nexport function list(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<LicenseProfile> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, resourceGroupName, machineName, options),\n _listDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n licenseProfileName: \"default\",\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** The operation to delete a license profile. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, machineName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: LicenseProfileUpdate,\n options: LicenseProfilesUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n licenseProfileName: \"default\",\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: licenseProfileUpdateSerializer(parameters),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<LicenseProfile> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseProfileDeserializer(result.body);\n}\n\n/** The operation to update a license profile. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: LicenseProfileUpdate,\n options: LicenseProfilesUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<LicenseProfile>, LicenseProfile> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, machineName, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n }) as PollerLike<OperationState<LicenseProfile>, LicenseProfile>;\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: LicenseProfile,\n options: LicenseProfilesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n licenseProfileName: \"default\",\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: licenseProfileSerializer(parameters),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<LicenseProfile> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseProfileDeserializer(result.body);\n}\n\n/** The operation to create or update a license profile. */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: LicenseProfile,\n options: LicenseProfilesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<LicenseProfile>, LicenseProfile> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, machineName, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n }) as PollerLike<OperationState<LicenseProfile>, LicenseProfile>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n licenseProfileName: \"default\",\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<LicenseProfile> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseProfileDeserializer(result.body);\n}\n\n/** Retrieves information about the view of a license profile. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesGetOptionalParams = { requestOptions: {} },\n): Promise<LicenseProfile> {\n const result = await _getSend(context, resourceGroupName, machineName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/licenseProfiles/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,EAC9B,sCAAsC,GACvC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AASxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAG/F,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,iBAAyB,EACzB,WAAmB,EACnB,UAA6C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEnE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,6JAA6J,EAC7J;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,WAAW,EAAE,WAAW;QACxB,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,YAAY;KACpD,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAA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AAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type {\n LicenseProfile,\n LicenseProfileUpdate,\n _LicenseProfilesListResult,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n licenseProfileSerializer,\n licenseProfileDeserializer,\n licenseProfileUpdateSerializer,\n _licenseProfilesListResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n LicenseProfilesListOptionalParams,\n LicenseProfilesDeleteOptionalParams,\n LicenseProfilesUpdateOptionalParams,\n LicenseProfilesCreateOrUpdateOptionalParams,\n LicenseProfilesGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _listSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_LicenseProfilesListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _licenseProfilesListResultDeserializer(result.body);\n}\n/** The operation to get all license profiles of a non-Azure machine */\nexport function list(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<LicenseProfile> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, resourceGroupName, machineName, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-07-15\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n licenseProfileName: \"default\",\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n/** The operation to delete a license profile. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, machineName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-07-15\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: LicenseProfileUpdate,\n options: LicenseProfilesUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n licenseProfileName: \"default\",\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: licenseProfileUpdateSerializer(parameters),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<LicenseProfile> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseProfileDeserializer(result.body);\n}\n/** The operation to update a license profile. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: LicenseProfileUpdate,\n options: LicenseProfilesUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<LicenseProfile>, LicenseProfile> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, machineName, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-07-15\",\n }) as PollerLike<OperationState<LicenseProfile>, LicenseProfile>;\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: LicenseProfile,\n options: LicenseProfilesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n licenseProfileName: \"default\",\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: licenseProfileSerializer(parameters),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<LicenseProfile> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseProfileDeserializer(result.body);\n}\n/** The operation to create or update a license profile. */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: LicenseProfile,\n options: LicenseProfilesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<LicenseProfile>, LicenseProfile> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, machineName, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-07-15\",\n }) as PollerLike<OperationState<LicenseProfile>, LicenseProfile>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n licenseProfileName: \"default\",\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<LicenseProfile> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseProfileDeserializer(result.body);\n}\n/** Retrieves information about the view of a license profile. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesGetOptionalParams = { requestOptions: {} },\n): Promise<LicenseProfile> {\n const result = await _getSend(context, resourceGroupName, machineName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/licenseProfiles/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface LicenseProfilesListOptionalParams extends OperationOptions {}\n
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/licenseProfiles/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface LicenseProfilesListOptionalParams extends OperationOptions {}\n/** Optional parameters. */\nexport interface LicenseProfilesDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface LicenseProfilesUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface LicenseProfilesCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface LicenseProfilesGetOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -8,7 +8,7 @@ import { createRestError, operationOptionsToRequestParameters } from "@azure-res
|
|
|
8
8
|
export function _validateLicenseSend(context, parameters, options = { requestOptions: {} }) {
|
|
9
9
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/validateLicense{?api%2Dversion}", {
|
|
10
10
|
subscriptionId: context.subscriptionId,
|
|
11
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
11
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-15",
|
|
12
12
|
}, {
|
|
13
13
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
14
14
|
});
|
|
@@ -37,13 +37,13 @@ export function validateLicense(context, parameters, options = { requestOptions:
|
|
|
37
37
|
abortSignal: options?.abortSignal,
|
|
38
38
|
getInitialResponse: () => _validateLicenseSend(context, parameters, options),
|
|
39
39
|
resourceLocationConfig: "location",
|
|
40
|
-
apiVersion: context.apiVersion ?? "
|
|
40
|
+
apiVersion: context.apiVersion ?? "2026-07-15",
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
export function _listBySubscriptionSend(context, options = { requestOptions: {} }) {
|
|
44
44
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/licenses{?api%2Dversion}", {
|
|
45
45
|
subscriptionId: context.subscriptionId,
|
|
46
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
46
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-15",
|
|
47
47
|
}, {
|
|
48
48
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
49
49
|
});
|
|
@@ -65,17 +65,13 @@ export async function _listBySubscriptionDeserialize(result) {
|
|
|
65
65
|
}
|
|
66
66
|
/** The operation to get all licenses of a non-Azure machine */
|
|
67
67
|
export function listBySubscription(context, options = { requestOptions: {} }) {
|
|
68
|
-
return buildPagedAsyncIterator(context, () => _listBySubscriptionSend(context, options), _listBySubscriptionDeserialize, ["200"], {
|
|
69
|
-
itemName: "value",
|
|
70
|
-
nextLinkName: "nextLink",
|
|
71
|
-
apiVersion: context.apiVersion ?? "2025-09-16-preview",
|
|
72
|
-
});
|
|
68
|
+
return buildPagedAsyncIterator(context, () => _listBySubscriptionSend(context, options), _listBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-07-15" });
|
|
73
69
|
}
|
|
74
70
|
export function _listByResourceGroupSend(context, resourceGroupName, options = { requestOptions: {} }) {
|
|
75
71
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses{?api%2Dversion}", {
|
|
76
72
|
subscriptionId: context.subscriptionId,
|
|
77
73
|
resourceGroupName: resourceGroupName,
|
|
78
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
74
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-15",
|
|
79
75
|
}, {
|
|
80
76
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
81
77
|
});
|
|
@@ -97,18 +93,14 @@ export async function _listByResourceGroupDeserialize(result) {
|
|
|
97
93
|
}
|
|
98
94
|
/** The operation to get all licenses of a non-Azure machine */
|
|
99
95
|
export function listByResourceGroup(context, resourceGroupName, options = { requestOptions: {} }) {
|
|
100
|
-
return buildPagedAsyncIterator(context, () => _listByResourceGroupSend(context, resourceGroupName, options), _listByResourceGroupDeserialize, ["200"], {
|
|
101
|
-
itemName: "value",
|
|
102
|
-
nextLinkName: "nextLink",
|
|
103
|
-
apiVersion: context.apiVersion ?? "2025-09-16-preview",
|
|
104
|
-
});
|
|
96
|
+
return buildPagedAsyncIterator(context, () => _listByResourceGroupSend(context, resourceGroupName, options), _listByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-07-15" });
|
|
105
97
|
}
|
|
106
98
|
export function _$deleteSend(context, resourceGroupName, licenseName, options = { requestOptions: {} }) {
|
|
107
99
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}{?api%2Dversion}", {
|
|
108
100
|
subscriptionId: context.subscriptionId,
|
|
109
101
|
resourceGroupName: resourceGroupName,
|
|
110
102
|
licenseName: licenseName,
|
|
111
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
103
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-15",
|
|
112
104
|
}, {
|
|
113
105
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
114
106
|
});
|
|
@@ -132,7 +124,7 @@ export function $delete(context, resourceGroupName, licenseName, options = { req
|
|
|
132
124
|
abortSignal: options?.abortSignal,
|
|
133
125
|
getInitialResponse: () => _$deleteSend(context, resourceGroupName, licenseName, options),
|
|
134
126
|
resourceLocationConfig: "location",
|
|
135
|
-
apiVersion: context.apiVersion ?? "
|
|
127
|
+
apiVersion: context.apiVersion ?? "2026-07-15",
|
|
136
128
|
});
|
|
137
129
|
}
|
|
138
130
|
export function _updateSend(context, resourceGroupName, licenseName, parameters, options = { requestOptions: {} }) {
|
|
@@ -140,7 +132,7 @@ export function _updateSend(context, resourceGroupName, licenseName, parameters,
|
|
|
140
132
|
subscriptionId: context.subscriptionId,
|
|
141
133
|
resourceGroupName: resourceGroupName,
|
|
142
134
|
licenseName: licenseName,
|
|
143
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
135
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-15",
|
|
144
136
|
}, {
|
|
145
137
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
146
138
|
});
|
|
@@ -169,7 +161,7 @@ export function update(context, resourceGroupName, licenseName, parameters, opti
|
|
|
169
161
|
abortSignal: options?.abortSignal,
|
|
170
162
|
getInitialResponse: () => _updateSend(context, resourceGroupName, licenseName, parameters, options),
|
|
171
163
|
resourceLocationConfig: "location",
|
|
172
|
-
apiVersion: context.apiVersion ?? "
|
|
164
|
+
apiVersion: context.apiVersion ?? "2026-07-15",
|
|
173
165
|
});
|
|
174
166
|
}
|
|
175
167
|
export function _createOrUpdateSend(context, resourceGroupName, licenseName, parameters, options = { requestOptions: {} }) {
|
|
@@ -177,7 +169,7 @@ export function _createOrUpdateSend(context, resourceGroupName, licenseName, par
|
|
|
177
169
|
subscriptionId: context.subscriptionId,
|
|
178
170
|
resourceGroupName: resourceGroupName,
|
|
179
171
|
licenseName: licenseName,
|
|
180
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
172
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-15",
|
|
181
173
|
}, {
|
|
182
174
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
183
175
|
});
|
|
@@ -206,7 +198,7 @@ export function createOrUpdate(context, resourceGroupName, licenseName, paramete
|
|
|
206
198
|
abortSignal: options?.abortSignal,
|
|
207
199
|
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, licenseName, parameters, options),
|
|
208
200
|
resourceLocationConfig: "location",
|
|
209
|
-
apiVersion: context.apiVersion ?? "
|
|
201
|
+
apiVersion: context.apiVersion ?? "2026-07-15",
|
|
210
202
|
});
|
|
211
203
|
}
|
|
212
204
|
export function _getSend(context, resourceGroupName, licenseName, options = { requestOptions: {} }) {
|
|
@@ -214,7 +206,7 @@ export function _getSend(context, resourceGroupName, licenseName, options = { re
|
|
|
214
206
|
subscriptionId: context.subscriptionId,
|
|
215
207
|
resourceGroupName: resourceGroupName,
|
|
216
208
|
licenseName: licenseName,
|
|
217
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
209
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-15",
|
|
218
210
|
}, {
|
|
219
211
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
220
212
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/licenses/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAWxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAG/F,MAAM,UAAU,oBAAoB,CAClC,OAAe,EACf,UAAmB,EACnB,UAAiD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEvE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,mGAAmG,EACnG;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,oBAAoB;KAC5D,EACD;QACE,aAAa,EAAE,OAAO,EAAE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AC,CAAC;QACtC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACzD,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC;AAED,yDAAyD;AACzD,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,WAAmB,EACnB,UAAqC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE3D,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAChF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type { License, LicenseUpdate, _LicensesListResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n licenseSerializer,\n licenseDeserializer,\n licenseUpdateSerializer,\n _licensesListResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n LicensesValidateLicenseOptionalParams,\n LicensesListBySubscriptionOptionalParams,\n LicensesListByResourceGroupOptionalParams,\n LicensesDeleteOptionalParams,\n LicensesUpdateOptionalParams,\n LicensesCreateOrUpdateOptionalParams,\n LicensesGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _validateLicenseSend(\n context: Client,\n parameters: License,\n options: LicensesValidateLicenseOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/validateLicense{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: licenseSerializer(parameters),\n });\n}\n\nexport async function _validateLicenseDeserialize(result: PathUncheckedResponse): Promise<License> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseDeserializer(result.body);\n}\n\n/** The operation to validate a license. */\nexport function validateLicense(\n context: Client,\n parameters: License,\n options: LicensesValidateLicenseOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<License>, License> {\n return getLongRunningPoller(context, _validateLicenseDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _validateLicenseSend(context, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n }) as PollerLike<OperationState<License>, License>;\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: LicensesListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/licenses{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_LicensesListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _licensesListResultDeserializer(result.body);\n}\n\n/** The operation to get all licenses of a non-Azure machine */\nexport function listBySubscription(\n context: Client,\n options: LicensesListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<License> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: LicensesListByResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_LicensesListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _licensesListResultDeserializer(result.body);\n}\n\n/** The operation to get all licenses of a non-Azure machine */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: LicensesListByResourceGroupOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<License> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n options: LicensesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n licenseName: licenseName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** The operation to delete a license. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n options: LicensesDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"200\", \"204\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, licenseName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n parameters: LicenseUpdate,\n options: LicensesUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n licenseName: licenseName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: licenseUpdateSerializer(parameters),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<License> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseDeserializer(result.body);\n}\n\n/** The operation to update a license. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n parameters: LicenseUpdate,\n options: LicensesUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<License>, License> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, licenseName, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n }) as PollerLike<OperationState<License>, License>;\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n parameters: License,\n options: LicensesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n licenseName: licenseName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: licenseSerializer(parameters),\n });\n}\n\nexport async function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<License> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseDeserializer(result.body);\n}\n\n/** The operation to create or update a license. */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n parameters: License,\n options: LicensesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<License>, License> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, licenseName, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n }) as PollerLike<OperationState<License>, License>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n options: LicensesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n licenseName: licenseName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<License> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseDeserializer(result.body);\n}\n\n/** Retrieves information about the view of a license. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n options: LicensesGetOptionalParams = { requestOptions: {} },\n): Promise<License> {\n const result = await _getSend(context, resourceGroupName, licenseName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/licenses/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAWxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAG/F,MAAM,UAAU,oBAAoB,CAClC,OAAe,EACf,UAAmB,EACnB,UAAiD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEvE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,mGAAmG,EACnG;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,YAAY;KACpD,EACD;QACE,aAAa,EAAE,OAAO,EAA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M,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACzD,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC;AACD,yDAAyD;AACzD,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,WAAmB,EACnB,UAAqC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE3D,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAChF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type { License, LicenseUpdate, _LicensesListResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n licenseSerializer,\n licenseDeserializer,\n licenseUpdateSerializer,\n _licensesListResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n LicensesValidateLicenseOptionalParams,\n LicensesListBySubscriptionOptionalParams,\n LicensesListByResourceGroupOptionalParams,\n LicensesDeleteOptionalParams,\n LicensesUpdateOptionalParams,\n LicensesCreateOrUpdateOptionalParams,\n LicensesGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _validateLicenseSend(\n context: Client,\n parameters: License,\n options: LicensesValidateLicenseOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/validateLicense{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: licenseSerializer(parameters),\n });\n}\n\nexport async function _validateLicenseDeserialize(result: PathUncheckedResponse): Promise<License> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseDeserializer(result.body);\n}\n/** The operation to validate a license. */\nexport function validateLicense(\n context: Client,\n parameters: License,\n options: LicensesValidateLicenseOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<License>, License> {\n return getLongRunningPoller(context, _validateLicenseDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _validateLicenseSend(context, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-07-15\",\n }) as PollerLike<OperationState<License>, License>;\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: LicensesListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/licenses{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_LicensesListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _licensesListResultDeserializer(result.body);\n}\n/** The operation to get all licenses of a non-Azure machine */\nexport function listBySubscription(\n context: Client,\n options: LicensesListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<License> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-07-15\" },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: LicensesListByResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_LicensesListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _licensesListResultDeserializer(result.body);\n}\n/** The operation to get all licenses of a non-Azure machine */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: LicensesListByResourceGroupOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<License> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-07-15\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n options: LicensesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n licenseName: licenseName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n/** The operation to delete a license. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n options: LicensesDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"200\", \"204\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, licenseName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-07-15\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n parameters: LicenseUpdate,\n options: LicensesUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n licenseName: licenseName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: licenseUpdateSerializer(parameters),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<License> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseDeserializer(result.body);\n}\n/** The operation to update a license. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n parameters: LicenseUpdate,\n options: LicensesUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<License>, License> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, licenseName, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-07-15\",\n }) as PollerLike<OperationState<License>, License>;\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n parameters: License,\n options: LicensesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n licenseName: licenseName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: licenseSerializer(parameters),\n });\n}\n\nexport async function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<License> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseDeserializer(result.body);\n}\n/** The operation to create or update a license. */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n parameters: License,\n options: LicensesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<License>, License> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, licenseName, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-07-15\",\n }) as PollerLike<OperationState<License>, License>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n options: LicensesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n licenseName: licenseName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<License> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseDeserializer(result.body);\n}\n/** Retrieves information about the view of a license. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n options: LicensesGetOptionalParams = { requestOptions: {} },\n): Promise<License> {\n const result = await _getSend(context, resourceGroupName, licenseName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/licenses/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface LicensesValidateLicenseOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/licenses/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface LicensesValidateLicenseOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface LicensesListBySubscriptionOptionalParams extends OperationOptions {}\n/** Optional parameters. */\nexport interface LicensesListByResourceGroupOptionalParams extends OperationOptions {}\n/** Optional parameters. */\nexport interface LicensesDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface LicensesUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface LicensesCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface LicensesGetOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -10,7 +10,7 @@ export function _listSend(context, resourceGroupName, machineName, options = { r
|
|
|
10
10
|
subscriptionId: context.subscriptionId,
|
|
11
11
|
resourceGroupName: resourceGroupName,
|
|
12
12
|
machineName: machineName,
|
|
13
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
13
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-15",
|
|
14
14
|
"%24expand": options?.expand,
|
|
15
15
|
}, {
|
|
16
16
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
@@ -33,11 +33,7 @@ export async function _listDeserialize(result) {
|
|
|
33
33
|
}
|
|
34
34
|
/** The operation to get all extensions of a non-Azure machine */
|
|
35
35
|
export function list(context, resourceGroupName, machineName, options = { requestOptions: {} }) {
|
|
36
|
-
return buildPagedAsyncIterator(context, () => _listSend(context, resourceGroupName, machineName, options), _listDeserialize, ["200"], {
|
|
37
|
-
itemName: "value",
|
|
38
|
-
nextLinkName: "nextLink",
|
|
39
|
-
apiVersion: context.apiVersion ?? "2025-09-16-preview",
|
|
40
|
-
});
|
|
36
|
+
return buildPagedAsyncIterator(context, () => _listSend(context, resourceGroupName, machineName, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-07-15" });
|
|
41
37
|
}
|
|
42
38
|
export function _$deleteSend(context, resourceGroupName, machineName, extensionName, options = { requestOptions: {} }) {
|
|
43
39
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}{?api%2Dversion}", {
|
|
@@ -45,7 +41,7 @@ export function _$deleteSend(context, resourceGroupName, machineName, extensionN
|
|
|
45
41
|
resourceGroupName: resourceGroupName,
|
|
46
42
|
machineName: machineName,
|
|
47
43
|
extensionName: extensionName,
|
|
48
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
44
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-15",
|
|
49
45
|
}, {
|
|
50
46
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
51
47
|
});
|
|
@@ -69,7 +65,7 @@ export function $delete(context, resourceGroupName, machineName, extensionName,
|
|
|
69
65
|
abortSignal: options?.abortSignal,
|
|
70
66
|
getInitialResponse: () => _$deleteSend(context, resourceGroupName, machineName, extensionName, options),
|
|
71
67
|
resourceLocationConfig: "location",
|
|
72
|
-
apiVersion: context.apiVersion ?? "
|
|
68
|
+
apiVersion: context.apiVersion ?? "2026-07-15",
|
|
73
69
|
});
|
|
74
70
|
}
|
|
75
71
|
export function _updateSend(context, resourceGroupName, machineName, extensionName, extensionParameters, options = { requestOptions: {} }) {
|
|
@@ -78,7 +74,7 @@ export function _updateSend(context, resourceGroupName, machineName, extensionNa
|
|
|
78
74
|
resourceGroupName: resourceGroupName,
|
|
79
75
|
machineName: machineName,
|
|
80
76
|
extensionName: extensionName,
|
|
81
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
77
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-15",
|
|
82
78
|
}, {
|
|
83
79
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
84
80
|
});
|
|
@@ -107,7 +103,7 @@ export function update(context, resourceGroupName, machineName, extensionName, e
|
|
|
107
103
|
abortSignal: options?.abortSignal,
|
|
108
104
|
getInitialResponse: () => _updateSend(context, resourceGroupName, machineName, extensionName, extensionParameters, options),
|
|
109
105
|
resourceLocationConfig: "location",
|
|
110
|
-
apiVersion: context.apiVersion ?? "
|
|
106
|
+
apiVersion: context.apiVersion ?? "2026-07-15",
|
|
111
107
|
});
|
|
112
108
|
}
|
|
113
109
|
export function _createOrUpdateSend(context, resourceGroupName, machineName, extensionName, extensionParameters, options = { requestOptions: {} }) {
|
|
@@ -116,7 +112,7 @@ export function _createOrUpdateSend(context, resourceGroupName, machineName, ext
|
|
|
116
112
|
resourceGroupName: resourceGroupName,
|
|
117
113
|
machineName: machineName,
|
|
118
114
|
extensionName: extensionName,
|
|
119
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
115
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-15",
|
|
120
116
|
}, {
|
|
121
117
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
122
118
|
});
|
|
@@ -145,7 +141,7 @@ export function createOrUpdate(context, resourceGroupName, machineName, extensio
|
|
|
145
141
|
abortSignal: options?.abortSignal,
|
|
146
142
|
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, machineName, extensionName, extensionParameters, options),
|
|
147
143
|
resourceLocationConfig: "location",
|
|
148
|
-
apiVersion: context.apiVersion ?? "
|
|
144
|
+
apiVersion: context.apiVersion ?? "2026-07-15",
|
|
149
145
|
});
|
|
150
146
|
}
|
|
151
147
|
export function _getSend(context, resourceGroupName, machineName, extensionName, options = { requestOptions: {} }) {
|
|
@@ -154,7 +150,7 @@ export function _getSend(context, resourceGroupName, machineName, extensionName,
|
|
|
154
150
|
resourceGroupName: resourceGroupName,
|
|
155
151
|
machineName: machineName,
|
|
156
152
|
extensionName: extensionName,
|
|
157
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
153
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-15",
|
|
158
154
|
}, {
|
|
159
155
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
160
156
|
});
|