@azure/arm-hybridcompute 5.0.0-beta.2 → 5.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/api/extensionMetadata/operations.js +3 -3
- package/dist/browser/api/extensionMetadata/operations.js.map +1 -1
- package/dist/browser/api/extensionMetadataV2/operations.js +3 -3
- package/dist/browser/api/extensionMetadataV2/operations.js.map +1 -1
- package/dist/browser/api/extensionPublisher/operations.js +2 -2
- package/dist/browser/api/extensionPublisher/operations.js.map +1 -1
- package/dist/browser/api/extensionType/operations.js +2 -2
- package/dist/browser/api/extensionType/operations.js.map +1 -1
- package/dist/browser/api/gateways/operations.js +10 -10
- package/dist/browser/api/gateways/operations.js.map +1 -1
- package/dist/browser/api/hybridComputeManagementContext.d.ts +2 -2
- package/dist/browser/api/hybridComputeManagementContext.js +2 -2
- package/dist/browser/api/hybridComputeManagementContext.js.map +1 -1
- package/dist/browser/api/licenseProfiles/operations.js +9 -9
- package/dist/browser/api/licenseProfiles/operations.js.map +1 -1
- package/dist/browser/api/licenses/operations.js +13 -13
- package/dist/browser/api/licenses/operations.js.map +1 -1
- package/dist/browser/api/machineExtensions/operations.js +9 -9
- package/dist/browser/api/machineExtensions/operations.js.map +1 -1
- package/dist/browser/api/machineRunCommands/operations.js +7 -7
- package/dist/browser/api/machineRunCommands/operations.js.map +1 -1
- package/dist/browser/api/machines/operations.js +13 -13
- package/dist/browser/api/machines/operations.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 -5
- package/dist/browser/api/networkSecurityPerimeterConfigurations/operations.js.map +1 -1
- package/dist/browser/api/operations/operations.js +2 -2
- 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/privateEndpointConnections/operations.js +7 -7
- package/dist/browser/api/privateEndpointConnections/operations.js.map +1 -1
- package/dist/browser/api/privateLinkResources/operations.js +3 -3
- package/dist/browser/api/privateLinkResources/operations.js.map +1 -1
- package/dist/browser/api/privateLinkScopes/operations.js +11 -11
- package/dist/browser/api/privateLinkScopes/operations.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/hybridComputeManagementClient.js +1 -1
- 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 +83 -16
- package/dist/browser/models/models.js +87 -8
- 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 -3
- package/dist/commonjs/api/extensionMetadata/operations.js.map +1 -1
- package/dist/commonjs/api/extensionMetadataV2/operations.js +3 -3
- package/dist/commonjs/api/extensionMetadataV2/operations.js.map +1 -1
- package/dist/commonjs/api/extensionPublisher/operations.js +2 -2
- package/dist/commonjs/api/extensionPublisher/operations.js.map +1 -1
- package/dist/commonjs/api/extensionType/operations.js +2 -2
- package/dist/commonjs/api/extensionType/operations.js.map +1 -1
- package/dist/commonjs/api/gateways/operations.js +10 -10
- package/dist/commonjs/api/gateways/operations.js.map +1 -1
- package/dist/commonjs/api/hybridComputeManagementContext.d.ts +2 -2
- package/dist/commonjs/api/hybridComputeManagementContext.js +1 -1
- package/dist/commonjs/api/hybridComputeManagementContext.js.map +1 -1
- package/dist/commonjs/api/licenseProfiles/operations.js +9 -9
- package/dist/commonjs/api/licenseProfiles/operations.js.map +1 -1
- package/dist/commonjs/api/licenses/operations.js +13 -13
- package/dist/commonjs/api/licenses/operations.js.map +1 -1
- package/dist/commonjs/api/machineExtensions/operations.js +9 -9
- package/dist/commonjs/api/machineExtensions/operations.js.map +1 -1
- package/dist/commonjs/api/machineRunCommands/operations.js +7 -7
- package/dist/commonjs/api/machineRunCommands/operations.js.map +1 -1
- package/dist/commonjs/api/machines/operations.js +13 -13
- package/dist/commonjs/api/machines/operations.js.map +1 -1
- package/dist/commonjs/api/networkProfileOperations/operations.js +1 -1
- package/dist/commonjs/api/networkProfileOperations/operations.js.map +1 -1
- package/dist/commonjs/api/networkSecurityPerimeterConfigurations/operations.js +5 -5
- package/dist/commonjs/api/networkSecurityPerimeterConfigurations/operations.js.map +1 -1
- package/dist/commonjs/api/operations/operations.js +2 -2
- package/dist/commonjs/api/operations/operations.js.map +1 -1
- package/dist/commonjs/api/operations.js +4 -4
- package/dist/commonjs/api/operations.js.map +1 -1
- package/dist/commonjs/api/privateEndpointConnections/operations.js +7 -7
- package/dist/commonjs/api/privateEndpointConnections/operations.js.map +1 -1
- package/dist/commonjs/api/privateLinkResources/operations.js +3 -3
- package/dist/commonjs/api/privateLinkResources/operations.js.map +1 -1
- package/dist/commonjs/api/privateLinkScopes/operations.js +11 -11
- package/dist/commonjs/api/privateLinkScopes/operations.js.map +1 -1
- package/dist/commonjs/api/settings/operations.js +3 -3
- package/dist/commonjs/api/settings/operations.js.map +1 -1
- package/dist/commonjs/hybridComputeManagementClient.js +1 -1
- package/dist/commonjs/hybridComputeManagementClient.js.map +1 -1
- 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 +83 -16
- package/dist/commonjs/models/models.js +71 -13
- 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 -3
- package/dist/esm/api/extensionMetadata/operations.js.map +1 -1
- package/dist/esm/api/extensionMetadataV2/operations.js +3 -3
- package/dist/esm/api/extensionMetadataV2/operations.js.map +1 -1
- package/dist/esm/api/extensionPublisher/operations.js +2 -2
- package/dist/esm/api/extensionPublisher/operations.js.map +1 -1
- package/dist/esm/api/extensionType/operations.js +2 -2
- package/dist/esm/api/extensionType/operations.js.map +1 -1
- package/dist/esm/api/gateways/operations.js +10 -10
- package/dist/esm/api/gateways/operations.js.map +1 -1
- package/dist/esm/api/hybridComputeManagementContext.d.ts +2 -2
- package/dist/esm/api/hybridComputeManagementContext.js +2 -2
- package/dist/esm/api/hybridComputeManagementContext.js.map +1 -1
- package/dist/esm/api/licenseProfiles/operations.js +9 -9
- package/dist/esm/api/licenseProfiles/operations.js.map +1 -1
- package/dist/esm/api/licenses/operations.js +13 -13
- package/dist/esm/api/licenses/operations.js.map +1 -1
- package/dist/esm/api/machineExtensions/operations.js +9 -9
- package/dist/esm/api/machineExtensions/operations.js.map +1 -1
- package/dist/esm/api/machineRunCommands/operations.js +7 -7
- package/dist/esm/api/machineRunCommands/operations.js.map +1 -1
- package/dist/esm/api/machines/operations.js +13 -13
- package/dist/esm/api/machines/operations.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 -5
- package/dist/esm/api/networkSecurityPerimeterConfigurations/operations.js.map +1 -1
- package/dist/esm/api/operations/operations.js +2 -2
- 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/privateEndpointConnections/operations.js +7 -7
- package/dist/esm/api/privateEndpointConnections/operations.js.map +1 -1
- package/dist/esm/api/privateLinkResources/operations.js +3 -3
- package/dist/esm/api/privateLinkResources/operations.js.map +1 -1
- package/dist/esm/api/privateLinkScopes/operations.js +11 -11
- package/dist/esm/api/privateLinkScopes/operations.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/hybridComputeManagementClient.js +1 -1
- 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 +83 -16
- package/dist/esm/models/models.js +87 -8
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/api/machineRunCommands/operations.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type { MachineRunCommand, _MachineRunCommandsListResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n machineRunCommandSerializer,\n machineRunCommandDeserializer,\n _machineRunCommandsListResultDeserializer,\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 MachineRunCommandsListOptionalParams,\n MachineRunCommandsDeleteOptionalParams,\n MachineRunCommandsCreateOrUpdateOptionalParams,\n MachineRunCommandsGetOptionalParams,\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: MachineRunCommandsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands{?api%2Dversion,%24expand}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n \"api%2Dversion\": context.apiVersion ?? \"
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type { MachineRunCommand, _MachineRunCommandsListResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n machineRunCommandSerializer,\n machineRunCommandDeserializer,\n _machineRunCommandsListResultDeserializer,\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 MachineRunCommandsListOptionalParams,\n MachineRunCommandsDeleteOptionalParams,\n MachineRunCommandsCreateOrUpdateOptionalParams,\n MachineRunCommandsGetOptionalParams,\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: MachineRunCommandsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands{?api%2Dversion,%24expand}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-16-preview\",\n \"%24expand\": options?.expand,\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<_MachineRunCommandsListResult> {\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 _machineRunCommandsListResultDeserializer(result.body);\n}\n\n/** The operation to get all the run commands of a non-Azure machine. */\nexport function list(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: MachineRunCommandsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<MachineRunCommand> {\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 ?? \"2026-06-16-preview\",\n },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n runCommandName: string,\n options: MachineRunCommandsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n runCommandName: runCommandName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-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 run command. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n runCommandName: string,\n options: MachineRunCommandsDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _$deleteSend(context, resourceGroupName, machineName, runCommandName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-06-16-preview\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n runCommandName: string,\n runCommandProperties: MachineRunCommand,\n options: MachineRunCommandsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n runCommandName: runCommandName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-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: machineRunCommandSerializer(runCommandProperties),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<MachineRunCommand> {\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 machineRunCommandDeserializer(result.body);\n}\n\n/** The operation to create or update a run command. */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n runCommandName: string,\n runCommandProperties: MachineRunCommand,\n options: MachineRunCommandsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<MachineRunCommand>, MachineRunCommand> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(\n context,\n resourceGroupName,\n machineName,\n runCommandName,\n runCommandProperties,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n apiVersion: context.apiVersion ?? \"2026-06-16-preview\",\n }) as PollerLike<OperationState<MachineRunCommand>, MachineRunCommand>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n runCommandName: string,\n options: MachineRunCommandsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n runCommandName: runCommandName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-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<MachineRunCommand> {\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 machineRunCommandDeserializer(result.body);\n}\n\n/** The operation to get a run command. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n runCommandName: string,\n options: MachineRunCommandsGetOptionalParams = { requestOptions: {} },\n): Promise<MachineRunCommand> {\n const result = await _getSend(context, resourceGroupName, machineName, runCommandName, options);\n return _getDeserialize(result);\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAKO;AAEP,2BAAwC;AACxC,4BAAqC;AACrC,yBAAkC;AAQlC,yBAAqE;AAG9D,SAAS,UACd,SACA,mBACA,aACA,UAAgD,EAAE,gBAAgB,CAAC,EAAE,GACnD;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA;AAAA,MACA,iBAAiB,QAAQ,cAAc;AAAA,MACvC,aAAa,SAAS;AAAA,IACxB;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,IAAI;AAAA,IAC5B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E,CAAC;AACH;AAEA,eAAsB,iBACpB,QACwC;AACxC,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,yCAA0B,OAAO,IAAI;AAAA,IACvD;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,yDAA0C,OAAO,IAAI;AAC9D;AAGO,SAA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A,mBACA,aACA,gBACA,UAA+C,EAAE,gBAAgB,CAAC,EAAE,GAClD;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA;AAAA,MACA;AAAA,MACA,iBAAiB,QAAQ,cAAc;AAAA,IACzC;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,IAAI;AAAA,IAC5B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E,CAAC;AACH;AAEA,eAAsB,gBAAgB,QAA2D;AAC/F,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,yCAA0B,OAAO,IAAI;AAAA,IACvD;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,6CAA8B,OAAO,IAAI;AAClD;AAGA,eAAsB,IACpB,SACA,mBACA,aACA,gBACA,UAA+C,EAAE,gBAAgB,CAAC,EAAE,GACxC;AAC5B,QAAM,SAAS,MAAM,SAAS,SAAS,mBAAmB,aAAa,gBAAgB,OAAO;AAC9F,SAAO,gBAAgB,MAAM;AAC/B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -55,7 +55,7 @@ function _installPatchesSend(context, resourceGroupName, name, installPatchesInp
|
|
|
55
55
|
subscriptionId: context.subscriptionId,
|
|
56
56
|
resourceGroupName,
|
|
57
57
|
name,
|
|
58
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
58
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -85,7 +85,7 @@ function installPatches(context, resourceGroupName, name, installPatchesInput, o
|
|
|
85
85
|
abortSignal: options?.abortSignal,
|
|
86
86
|
getInitialResponse: () => _installPatchesSend(context, resourceGroupName, name, installPatchesInput, options),
|
|
87
87
|
resourceLocationConfig: "location",
|
|
88
|
-
apiVersion: context.apiVersion ?? "
|
|
88
|
+
apiVersion: context.apiVersion ?? "2026-06-16-preview"
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
function _assessPatchesSend(context, resourceGroupName, name, options = { requestOptions: {} }) {
|
|
@@ -95,7 +95,7 @@ function _assessPatchesSend(context, resourceGroupName, name, options = { reques
|
|
|
95
95
|
subscriptionId: context.subscriptionId,
|
|
96
96
|
resourceGroupName,
|
|
97
97
|
name,
|
|
98
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
98
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -123,7 +123,7 @@ function assessPatches(context, resourceGroupName, name, options = { requestOpti
|
|
|
123
123
|
abortSignal: options?.abortSignal,
|
|
124
124
|
getInitialResponse: () => _assessPatchesSend(context, resourceGroupName, name, options),
|
|
125
125
|
resourceLocationConfig: "location",
|
|
126
|
-
apiVersion: context.apiVersion ?? "
|
|
126
|
+
apiVersion: context.apiVersion ?? "2026-06-16-preview"
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
function _listBySubscriptionSend(context, options = { requestOptions: {} }) {
|
|
@@ -131,7 +131,7 @@ function _listBySubscriptionSend(context, options = { requestOptions: {} }) {
|
|
|
131
131
|
"/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines{?api%2Dversion}",
|
|
132
132
|
{
|
|
133
133
|
subscriptionId: context.subscriptionId,
|
|
134
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
134
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview"
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -162,7 +162,7 @@ function listBySubscription(context, options = { requestOptions: {} }) {
|
|
|
162
162
|
{
|
|
163
163
|
itemName: "value",
|
|
164
164
|
nextLinkName: "nextLink",
|
|
165
|
-
apiVersion: context.apiVersion ?? "
|
|
165
|
+
apiVersion: context.apiVersion ?? "2026-06-16-preview"
|
|
166
166
|
}
|
|
167
167
|
);
|
|
168
168
|
}
|
|
@@ -172,7 +172,7 @@ function _listByResourceGroupSend(context, resourceGroupName, options = { reques
|
|
|
172
172
|
{
|
|
173
173
|
subscriptionId: context.subscriptionId,
|
|
174
174
|
resourceGroupName,
|
|
175
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
175
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview",
|
|
176
176
|
"%24expand": options?.expand
|
|
177
177
|
},
|
|
178
178
|
{
|
|
@@ -204,7 +204,7 @@ function listByResourceGroup(context, resourceGroupName, options = { requestOpti
|
|
|
204
204
|
{
|
|
205
205
|
itemName: "value",
|
|
206
206
|
nextLinkName: "nextLink",
|
|
207
|
-
apiVersion: context.apiVersion ?? "
|
|
207
|
+
apiVersion: context.apiVersion ?? "2026-06-16-preview"
|
|
208
208
|
}
|
|
209
209
|
);
|
|
210
210
|
}
|
|
@@ -215,7 +215,7 @@ function _$deleteSend(context, resourceGroupName, machineName, options = { reque
|
|
|
215
215
|
subscriptionId: context.subscriptionId,
|
|
216
216
|
resourceGroupName,
|
|
217
217
|
machineName,
|
|
218
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
218
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview"
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
221
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -240,7 +240,7 @@ function $delete(context, resourceGroupName, machineName, options = { requestOpt
|
|
|
240
240
|
abortSignal: options?.abortSignal,
|
|
241
241
|
getInitialResponse: () => _$deleteSend(context, resourceGroupName, machineName, options),
|
|
242
242
|
resourceLocationConfig: "location",
|
|
243
|
-
apiVersion: context.apiVersion ?? "
|
|
243
|
+
apiVersion: context.apiVersion ?? "2026-06-16-preview"
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
function _updateSend(context, resourceGroupName, machineName, parameters, options = { requestOptions: {} }) {
|
|
@@ -250,7 +250,7 @@ function _updateSend(context, resourceGroupName, machineName, parameters, option
|
|
|
250
250
|
subscriptionId: context.subscriptionId,
|
|
251
251
|
resourceGroupName,
|
|
252
252
|
machineName,
|
|
253
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
253
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview"
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
256
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -285,7 +285,7 @@ function _createOrUpdateSend(context, resourceGroupName, machineName, parameters
|
|
|
285
285
|
subscriptionId: context.subscriptionId,
|
|
286
286
|
resourceGroupName,
|
|
287
287
|
machineName,
|
|
288
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
288
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview",
|
|
289
289
|
"%24expand": options?.expand
|
|
290
290
|
},
|
|
291
291
|
{
|
|
@@ -327,7 +327,7 @@ function _getSend(context, resourceGroupName, machineName, options = { requestOp
|
|
|
327
327
|
subscriptionId: context.subscriptionId,
|
|
328
328
|
resourceGroupName,
|
|
329
329
|
machineName,
|
|
330
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
330
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview",
|
|
331
331
|
"%24expand": options?.expand
|
|
332
332
|
},
|
|
333
333
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/api/machines/operations.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type {\n Machine,\n MachineUpdate,\n _MachineListResult,\n MachineAssessPatchesResult,\n MachineInstallPatchesParameters,\n MachineInstallPatchesResult,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n machineSerializer,\n machineDeserializer,\n machineUpdateSerializer,\n _machineListResultDeserializer,\n machineAssessPatchesResultDeserializer,\n machineInstallPatchesParametersSerializer,\n machineInstallPatchesResultDeserializer,\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 MachinesInstallPatchesOptionalParams,\n MachinesAssessPatchesOptionalParams,\n MachinesListBySubscriptionOptionalParams,\n MachinesListByResourceGroupOptionalParams,\n MachinesDeleteOptionalParams,\n MachinesUpdateOptionalParams,\n MachinesCreateOrUpdateOptionalParams,\n MachinesGetOptionalParams,\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 _installPatchesSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n installPatchesInput: MachineInstallPatchesParameters,\n options: MachinesInstallPatchesOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/installPatches{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\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: machineInstallPatchesParametersSerializer(installPatchesInput),\n });\n}\n\nexport async function _installPatchesDeserialize(\n result: PathUncheckedResponse,\n): Promise<MachineInstallPatchesResult> {\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 machineInstallPatchesResultDeserializer(result.body);\n}\n\n/** The operation to install patches on a hybrid machine identity in Azure. */\nexport function installPatches(\n context: Client,\n resourceGroupName: string,\n name: string,\n installPatchesInput: MachineInstallPatchesParameters,\n options: MachinesInstallPatchesOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<MachineInstallPatchesResult>, MachineInstallPatchesResult> {\n return getLongRunningPoller(context, _installPatchesDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _installPatchesSend(context, resourceGroupName, name, installPatchesInput, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n }) as PollerLike<OperationState<MachineInstallPatchesResult>, MachineInstallPatchesResult>;\n}\n\nexport function _assessPatchesSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n options: MachinesAssessPatchesOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/assessPatches{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\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 headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _assessPatchesDeserialize(\n result: PathUncheckedResponse,\n): Promise<MachineAssessPatchesResult> {\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 machineAssessPatchesResultDeserializer(result.body);\n}\n\n/** The operation to assess patches on a hybrid machine identity in Azure. */\nexport function assessPatches(\n context: Client,\n resourceGroupName: string,\n name: string,\n options: MachinesAssessPatchesOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<MachineAssessPatchesResult>, MachineAssessPatchesResult> {\n return getLongRunningPoller(context, _assessPatchesDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _assessPatchesSend(context, resourceGroupName, name, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n }) as PollerLike<OperationState<MachineAssessPatchesResult>, MachineAssessPatchesResult>;\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: MachinesListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines{?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<_MachineListResult> {\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 _machineListResultDeserializer(result.body);\n}\n\n/** Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines. */\nexport function listBySubscription(\n context: Client,\n options: MachinesListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Machine> {\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: MachinesListByResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines{?api%2Dversion,%24expand}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\n \"%24expand\": options?.expand,\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<_MachineListResult> {\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 _machineListResultDeserializer(result.body);\n}\n\n/** Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines. */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: MachinesListByResourceGroupOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Machine> {\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 machineName: string,\n options: MachinesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}{?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).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 hybrid machine. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: MachinesDeleteOptionalParams = { 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: MachineUpdate,\n options: MachinesUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}{?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).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: machineUpdateSerializer(parameters),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<Machine> {\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 machineDeserializer(result.body);\n}\n\n/** The operation to update a hybrid machine. */\nexport async function update(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: MachineUpdate,\n options: MachinesUpdateOptionalParams = { requestOptions: {} },\n): Promise<Machine> {\n const result = await _updateSend(context, resourceGroupName, machineName, parameters, options);\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: Machine,\n options: MachinesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}{?api%2Dversion,%24expand}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\n \"%24expand\": options?.expand,\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: machineSerializer(parameters),\n });\n}\n\nexport async function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<Machine> {\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 machineDeserializer(result.body);\n}\n\n/** The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation. */\nexport async function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: Machine,\n options: MachinesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): Promise<Machine> {\n const result = await _createOrUpdateSend(\n context,\n resourceGroupName,\n machineName,\n parameters,\n options,\n );\n return _createOrUpdateDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: MachinesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}{?api%2Dversion,%24expand}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\n \"%24expand\": options?.expand,\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<Machine> {\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 machineDeserializer(result.body);\n}\n\n/** Retrieves information about the model view or the instance view of a hybrid machine. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: MachinesGetOptionalParams = { requestOptions: {} },\n): Promise<Machine> {\n const result = await _getSend(context, resourceGroupName, machineName, options);\n return _getDeserialize(result);\n}\n"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type {\n Machine,\n MachineUpdate,\n _MachineListResult,\n MachineAssessPatchesResult,\n MachineInstallPatchesParameters,\n MachineInstallPatchesResult,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n machineSerializer,\n machineDeserializer,\n machineUpdateSerializer,\n _machineListResultDeserializer,\n machineAssessPatchesResultDeserializer,\n machineInstallPatchesParametersSerializer,\n machineInstallPatchesResultDeserializer,\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 MachinesInstallPatchesOptionalParams,\n MachinesAssessPatchesOptionalParams,\n MachinesListBySubscriptionOptionalParams,\n MachinesListByResourceGroupOptionalParams,\n MachinesDeleteOptionalParams,\n MachinesUpdateOptionalParams,\n MachinesCreateOrUpdateOptionalParams,\n MachinesGetOptionalParams,\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 _installPatchesSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n installPatchesInput: MachineInstallPatchesParameters,\n options: MachinesInstallPatchesOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/installPatches{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-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: machineInstallPatchesParametersSerializer(installPatchesInput),\n });\n}\n\nexport async function _installPatchesDeserialize(\n result: PathUncheckedResponse,\n): Promise<MachineInstallPatchesResult> {\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 machineInstallPatchesResultDeserializer(result.body);\n}\n\n/** The operation to install patches on a hybrid machine identity in Azure. */\nexport function installPatches(\n context: Client,\n resourceGroupName: string,\n name: string,\n installPatchesInput: MachineInstallPatchesParameters,\n options: MachinesInstallPatchesOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<MachineInstallPatchesResult>, MachineInstallPatchesResult> {\n return getLongRunningPoller(context, _installPatchesDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _installPatchesSend(context, resourceGroupName, name, installPatchesInput, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-06-16-preview\",\n }) as PollerLike<OperationState<MachineInstallPatchesResult>, MachineInstallPatchesResult>;\n}\n\nexport function _assessPatchesSend(\n context: Client,\n resourceGroupName: string,\n name: string,\n options: MachinesAssessPatchesOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/assessPatches{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n name: name,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-16-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _assessPatchesDeserialize(\n result: PathUncheckedResponse,\n): Promise<MachineAssessPatchesResult> {\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 machineAssessPatchesResultDeserializer(result.body);\n}\n\n/** The operation to assess patches on a hybrid machine identity in Azure. */\nexport function assessPatches(\n context: Client,\n resourceGroupName: string,\n name: string,\n options: MachinesAssessPatchesOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<MachineAssessPatchesResult>, MachineAssessPatchesResult> {\n return getLongRunningPoller(context, _assessPatchesDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _assessPatchesSend(context, resourceGroupName, name, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-06-16-preview\",\n }) as PollerLike<OperationState<MachineAssessPatchesResult>, MachineAssessPatchesResult>;\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: MachinesListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-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<_MachineListResult> {\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 _machineListResultDeserializer(result.body);\n}\n\n/** Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines. */\nexport function listBySubscription(\n context: Client,\n options: MachinesListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Machine> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2026-06-16-preview\",\n },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: MachinesListByResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines{?api%2Dversion,%24expand}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-16-preview\",\n \"%24expand\": options?.expand,\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<_MachineListResult> {\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 _machineListResultDeserializer(result.body);\n}\n\n/** Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines. */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: MachinesListByResourceGroupOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Machine> {\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 ?? \"2026-06-16-preview\",\n },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: MachinesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-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 hybrid machine. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: MachinesDeleteOptionalParams = { 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-06-16-preview\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: MachineUpdate,\n options: MachinesUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-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: machineUpdateSerializer(parameters),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<Machine> {\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 machineDeserializer(result.body);\n}\n\n/** The operation to update a hybrid machine. */\nexport async function update(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: MachineUpdate,\n options: MachinesUpdateOptionalParams = { requestOptions: {} },\n): Promise<Machine> {\n const result = await _updateSend(context, resourceGroupName, machineName, parameters, options);\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: Machine,\n options: MachinesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}{?api%2Dversion,%24expand}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-16-preview\",\n \"%24expand\": options?.expand,\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: machineSerializer(parameters),\n });\n}\n\nexport async function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<Machine> {\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 machineDeserializer(result.body);\n}\n\n/** The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation. */\nexport async function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: Machine,\n options: MachinesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): Promise<Machine> {\n const result = await _createOrUpdateSend(\n context,\n resourceGroupName,\n machineName,\n parameters,\n options,\n );\n return _createOrUpdateDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: MachinesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}{?api%2Dversion,%24expand}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-16-preview\",\n \"%24expand\": options?.expand,\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<Machine> {\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 machineDeserializer(result.body);\n}\n\n/** Retrieves information about the model view or the instance view of a hybrid machine. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: MachinesGetOptionalParams = { requestOptions: {} },\n): Promise<Machine> {\n const result = await _getSend(context, resourceGroupName, machineName, options);\n return _getDeserialize(result);\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYA,oBASO;AAEP,2BAAwC;AACxC,4BAAqC;AACrC,yBAAkC;AAYlC,yBAAqE;AAG9D,SAAS,oBACd,SACA,mBACA,MACA,qBACA,UAAgD,EAAE,gBAAgB,CAAC,EAAE,GACnD;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA;AAAA,MACA,iBAAiB,QAAQ,cAAc;AAAA,IACzC;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,KAAK;AAAA,IAC7B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,aAAa;AAAA,IACb,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,IAC1E,UAAM,yDAA0C,mBAAmB;AAAA,EACrE,CAAC;AACH;AAEA,eAAsB,2BACpB,QACsC;AACtC,QAAM,mBAAmB,CAAC,OAAO,OAAO,KAAK;AAC7C,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,yCAA0B,OAAO,IAAI;AAAA,IACvD;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,uDAAwC,OAAO,IAAI;AAC5D;AAGO,SAAS,eACd,SACA,mBACA,MACA,qBACA,UAAgD,EAAE,gBAAgB,CAAC,EAAE,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;AAAA,EACF;AACA,SAAO,2BAA2B,MAAM;AAC1C;AAEO,SAAS,SACd,SACA,mBACA,aACA,UAAqC,EAAE,gBAAgB,CAAC,EAAE,GACxC;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA;AAAA,MACA,iBAAiB,QAAQ,cAAc;AAAA,MACvC,aAAa,SAAS;AAAA,IACxB;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,IAAI;AAAA,IAC5B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E,CAAC;AACH;AAEA,eAAsB,gBAAgB,QAAiD;AACrF,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,yCAA0B,OAAO,IAAI;AAAA,IACvD;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,mCAAoB,OAAO,IAAI;AACxC;AAGA,eAAsB,IACpB,SACA,mBACA,aACA,UAAqC,EAAE,gBAAgB,CAAC,EAAE,GACxC;AAClB,QAAM,SAAS,MAAM,SAAS,SAAS,mBAAmB,aAAa,OAAO;AAC9E,SAAO,gBAAgB,MAAM;AAC/B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -32,7 +32,7 @@ function _getSend(context, resourceGroupName, machineName, options = { requestOp
|
|
|
32
32
|
subscriptionId: context.subscriptionId,
|
|
33
33
|
resourceGroupName,
|
|
34
34
|
machineName,
|
|
35
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
35
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/api/networkProfileOperations/operations.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type { NetworkProfile } from \"../../models/models.js\";\nimport { errorResponseDeserializer, networkProfileDeserializer } from \"../../models/models.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type { NetworkProfileOperationsGetOptionalParams } from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: NetworkProfileOperationsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/networkProfile{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n \"api%2Dversion\": context.apiVersion ?? \"
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type { NetworkProfile } from \"../../models/models.js\";\nimport { errorResponseDeserializer, networkProfileDeserializer } from \"../../models/models.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type { NetworkProfileOperationsGetOptionalParams } from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: NetworkProfileOperationsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/networkProfile{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-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<NetworkProfile> {\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 networkProfileDeserializer(result.body);\n}\n\n/** The operation to get network information of hybrid machine */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: NetworkProfileOperationsGetOptionalParams = { requestOptions: {} },\n): Promise<NetworkProfile> {\n const result = await _getSend(context, resourceGroupName, machineName, options);\n return _getDeserialize(result);\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAAsE;AACtE,yBAAkC;AAGlC,yBAAqE;AAE9D,SAAS,SACd,SACA,mBACA,aACA,UAAqD,EAAE,gBAAgB,CAAC,EAAE,GACxD;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA;AAAA,MACA,iBAAiB,QAAQ,cAAc;AAAA,IACzC;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,IAAI;AAAA,IAC5B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E,CAAC;AACH;AAEA,eAAsB,gBAAgB,QAAwD;AAC5F,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,yCAA0B,OAAO,IAAI;AAAA,IACvD;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,0CAA2B,OAAO,IAAI;AAC/C;AAGA,eAAsB,IACpB,SACA,mBACA,aACA,UAAqD,EAAE,gBAAgB,CAAC,EAAE,GACjD;AACzB,QAAM,SAAS,MAAM,SAAS,SAAS,mBAAmB,aAAa,OAAO;AAC9E,SAAO,gBAAgB,MAAM;AAC/B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -43,7 +43,7 @@ function _reconcileForPrivateLinkScopeSend(context, resourceGroupName, scopeName
|
|
|
43
43
|
resourceGroupName,
|
|
44
44
|
scopeName,
|
|
45
45
|
perimeterName,
|
|
46
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
46
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -83,7 +83,7 @@ function reconcileForPrivateLinkScope(context, resourceGroupName, scopeName, per
|
|
|
83
83
|
options
|
|
84
84
|
),
|
|
85
85
|
resourceLocationConfig: "location",
|
|
86
|
-
apiVersion: context.apiVersion ?? "
|
|
86
|
+
apiVersion: context.apiVersion ?? "2026-06-16-preview"
|
|
87
87
|
}
|
|
88
88
|
);
|
|
89
89
|
}
|
|
@@ -96,7 +96,7 @@ function _listByPrivateLinkScopeSend(context, resourceGroupName, scopeName, opti
|
|
|
96
96
|
subscriptionId: context.subscriptionId,
|
|
97
97
|
resourceGroupName,
|
|
98
98
|
scopeName,
|
|
99
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
99
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -129,7 +129,7 @@ function listByPrivateLinkScope(context, resourceGroupName, scopeName, options =
|
|
|
129
129
|
{
|
|
130
130
|
itemName: "value",
|
|
131
131
|
nextLinkName: "nextLink",
|
|
132
|
-
apiVersion: context.apiVersion ?? "
|
|
132
|
+
apiVersion: context.apiVersion ?? "2026-06-16-preview"
|
|
133
133
|
}
|
|
134
134
|
);
|
|
135
135
|
}
|
|
@@ -143,7 +143,7 @@ function _getByPrivateLinkScopeSend(context, resourceGroupName, scopeName, perim
|
|
|
143
143
|
resourceGroupName,
|
|
144
144
|
scopeName,
|
|
145
145
|
perimeterName,
|
|
146
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
146
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview"
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/api/networkSecurityPerimeterConfigurations/operations.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type {\n NetworkSecurityPerimeterConfiguration,\n _NetworkSecurityPerimeterConfigurationListResult,\n NetworkSecurityPerimeterConfigurationReconcileResult,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n networkSecurityPerimeterConfigurationDeserializer,\n _networkSecurityPerimeterConfigurationListResultDeserializer,\n networkSecurityPerimeterConfigurationReconcileResultDeserializer,\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 NetworkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeOptionalParams,\n NetworkSecurityPerimeterConfigurationsListByPrivateLinkScopeOptionalParams,\n NetworkSecurityPerimeterConfigurationsGetByPrivateLinkScopeOptionalParams,\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 _reconcileForPrivateLinkScopeSend(\n context: Client,\n resourceGroupName: string,\n scopeName: string,\n perimeterName: string,\n options: NetworkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/networkSecurityPerimeterConfigurations/{perimeterName}/reconcile{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n scopeName: scopeName,\n perimeterName: perimeterName,\n \"api%2Dversion\": context.apiVersion ?? \"
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type {\n NetworkSecurityPerimeterConfiguration,\n _NetworkSecurityPerimeterConfigurationListResult,\n NetworkSecurityPerimeterConfigurationReconcileResult,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n networkSecurityPerimeterConfigurationDeserializer,\n _networkSecurityPerimeterConfigurationListResultDeserializer,\n networkSecurityPerimeterConfigurationReconcileResultDeserializer,\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 NetworkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeOptionalParams,\n NetworkSecurityPerimeterConfigurationsListByPrivateLinkScopeOptionalParams,\n NetworkSecurityPerimeterConfigurationsGetByPrivateLinkScopeOptionalParams,\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 _reconcileForPrivateLinkScopeSend(\n context: Client,\n resourceGroupName: string,\n scopeName: string,\n perimeterName: string,\n options: NetworkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/networkSecurityPerimeterConfigurations/{perimeterName}/reconcile{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n scopeName: scopeName,\n perimeterName: perimeterName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-16-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _reconcileForPrivateLinkScopeDeserialize(\n result: PathUncheckedResponse,\n): Promise<NetworkSecurityPerimeterConfigurationReconcileResult> {\n const expectedStatuses = [\"202\", \"200\", \"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 networkSecurityPerimeterConfigurationReconcileResultDeserializer(result.body);\n}\n\n/** Forces the network security perimeter configuration to refresh for a private link scope. */\nexport function reconcileForPrivateLinkScope(\n context: Client,\n resourceGroupName: string,\n scopeName: string,\n perimeterName: string,\n options: NetworkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<\n OperationState<NetworkSecurityPerimeterConfigurationReconcileResult>,\n NetworkSecurityPerimeterConfigurationReconcileResult\n> {\n return getLongRunningPoller(\n context,\n _reconcileForPrivateLinkScopeDeserialize,\n [\"202\", \"200\", \"201\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _reconcileForPrivateLinkScopeSend(\n context,\n resourceGroupName,\n scopeName,\n perimeterName,\n options,\n ),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-06-16-preview\",\n },\n ) as PollerLike<\n OperationState<NetworkSecurityPerimeterConfigurationReconcileResult>,\n NetworkSecurityPerimeterConfigurationReconcileResult\n >;\n}\n\nexport function _listByPrivateLinkScopeSend(\n context: Client,\n resourceGroupName: string,\n scopeName: string,\n options: NetworkSecurityPerimeterConfigurationsListByPrivateLinkScopeOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/networkSecurityPerimeterConfigurations{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n scopeName: scopeName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-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 _listByPrivateLinkScopeDeserialize(\n result: PathUncheckedResponse,\n): Promise<_NetworkSecurityPerimeterConfigurationListResult> {\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 _networkSecurityPerimeterConfigurationListResultDeserializer(result.body);\n}\n\n/** Lists the network security perimeter configurations for a private link scope. */\nexport function listByPrivateLinkScope(\n context: Client,\n resourceGroupName: string,\n scopeName: string,\n options: NetworkSecurityPerimeterConfigurationsListByPrivateLinkScopeOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<NetworkSecurityPerimeterConfiguration> {\n return buildPagedAsyncIterator(\n context,\n () => _listByPrivateLinkScopeSend(context, resourceGroupName, scopeName, options),\n _listByPrivateLinkScopeDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2026-06-16-preview\",\n },\n );\n}\n\nexport function _getByPrivateLinkScopeSend(\n context: Client,\n resourceGroupName: string,\n scopeName: string,\n perimeterName: string,\n options: NetworkSecurityPerimeterConfigurationsGetByPrivateLinkScopeOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/networkSecurityPerimeterConfigurations/{perimeterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n scopeName: scopeName,\n perimeterName: perimeterName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-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 _getByPrivateLinkScopeDeserialize(\n result: PathUncheckedResponse,\n): Promise<NetworkSecurityPerimeterConfiguration> {\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 networkSecurityPerimeterConfigurationDeserializer(result.body);\n}\n\n/** Gets the network security perimeter configuration for a private link scope. */\nexport async function getByPrivateLinkScope(\n context: Client,\n resourceGroupName: string,\n scopeName: string,\n perimeterName: string,\n options: NetworkSecurityPerimeterConfigurationsGetByPrivateLinkScopeOptionalParams = {\n requestOptions: {},\n },\n): Promise<NetworkSecurityPerimeterConfiguration> {\n const result = await _getByPrivateLinkScopeSend(\n context,\n resourceGroupName,\n scopeName,\n perimeterName,\n options,\n );\n return _getByPrivateLinkScopeDeserialize(result);\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,oBAKO;AAEP,2BAAwC;AACxC,4BAAqC;AACrC,yBAAkC;AAOlC,yBAAqE;AAG9D,SAAS,kCACd,SACA,mBACA,WACA,eACA,UAA4F;AAAA,EAC1F,gBAAgB,CAAC;AACnB,GACkB;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA;AAAA,MACA;AAAA,MACA,iBAAiB,QAAQ,cAAc;AAAA,IACzC;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,KAAK;AAAA,IAC7B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E,CAAC;AACH;AAEA,eAAsB,yCACpB,QAC+D;AAC/D,QAAM,mBAAmB,CAA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CAAC;AACnB,GACgD;AAChD,QAAM,SAAS,MAAM;AAAA,IACnB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACA,SAAO,kCAAkC,MAAM;AACjD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -30,7 +30,7 @@ function _listSend(context, options = { requestOptions: {} }) {
|
|
|
30
30
|
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
31
31
|
"/providers/Microsoft.HybridCompute/operations{?api%2Dversion}",
|
|
32
32
|
{
|
|
33
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
33
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -61,7 +61,7 @@ function list(context, options = { requestOptions: {} }) {
|
|
|
61
61
|
{
|
|
62
62
|
itemName: "value",
|
|
63
63
|
nextLinkName: "nextLink",
|
|
64
|
-
apiVersion: context.apiVersion ?? "
|
|
64
|
+
apiVersion: context.apiVersion ?? "2026-06-16-preview"
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/api/operations/operations.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type { _OperationListResult, OperationValue } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n _operationListResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type { OperationsListOptionalParams } from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.HybridCompute/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion ?? \"
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type { _OperationListResult, OperationValue } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n _operationListResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type { OperationsListOptionalParams } from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.HybridCompute/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-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<_OperationListResult> {\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 _operationListResultDeserializer(result.body);\n}\n\n/** Gets a list of hybrid compute operations. */\nexport function list(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<OperationValue> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2026-06-16-preview\",\n },\n );\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAGO;AAEP,2BAAwC;AACxC,yBAAkC;AAGlC,yBAAqE;AAE9D,SAAS,UACd,SACA,UAAwC,EAAE,gBAAgB,CAAC,EAAE,GAC3C;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,iBAAiB,QAAQ,cAAc;AAAA,IACzC;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,IAAI;AAAA,IAC5B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E,CAAC;AACH;AAEA,eAAsB,iBACpB,QAC+B;AAC/B,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,yCAA0B,OAAO,IAAI;AAAA,IACvD;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,gDAAiC,OAAO,IAAI;AACrD;AAGO,SAAS,KACd,SACA,UAAwC,EAAE,gBAAgB,CAAC,EAAE,GACjB;AAC5C,aAAO;AAAA,IACL;AAAA,IACA,MAAM,UAAU,SAAS,OAAO;AAAA,IAChC;AAAA,IACA,CAAC,KAAK;AAAA,IACN;AAAA,MACE,UAAU;AAAA,MACV,cAAc;AAAA,MACd,YAAY,QAAQ,cAAc;AAAA,IACpC;AAAA,EACF;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -36,7 +36,7 @@ function _setupExtensionsSend(context, resourceGroupName, machineName, extension
|
|
|
36
36
|
subscriptionId: context.subscriptionId,
|
|
37
37
|
resourceGroupName,
|
|
38
38
|
machineName,
|
|
39
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
39
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -66,7 +66,7 @@ function setupExtensions(context, resourceGroupName, machineName, extensions, op
|
|
|
66
66
|
abortSignal: options?.abortSignal,
|
|
67
67
|
getInitialResponse: () => _setupExtensionsSend(context, resourceGroupName, machineName, extensions, options),
|
|
68
68
|
resourceLocationConfig: "location",
|
|
69
|
-
apiVersion: context.apiVersion ?? "
|
|
69
|
+
apiVersion: context.apiVersion ?? "2026-06-16-preview"
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
function _upgradeExtensionsSend(context, resourceGroupName, machineName, extensionUpgradeParameters, options = { requestOptions: {} }) {
|
|
@@ -76,7 +76,7 @@ function _upgradeExtensionsSend(context, resourceGroupName, machineName, extensi
|
|
|
76
76
|
subscriptionId: context.subscriptionId,
|
|
77
77
|
resourceGroupName,
|
|
78
78
|
machineName,
|
|
79
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
79
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview"
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -111,7 +111,7 @@ function upgradeExtensions(context, resourceGroupName, machineName, extensionUpg
|
|
|
111
111
|
options
|
|
112
112
|
),
|
|
113
113
|
resourceLocationConfig: "location",
|
|
114
|
-
apiVersion: context.apiVersion ?? "
|
|
114
|
+
apiVersion: context.apiVersion ?? "2026-06-16-preview"
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/api/operations.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"./index.js\";\nimport type { MachineExtensionUpgrade, SetupExtensionRequest } from \"../models/models.js\";\nimport {\n machineExtensionUpgradeSerializer,\n errorResponseDeserializer,\n setupExtensionRequestSerializer,\n setupExtensionRequestDeserializer,\n} from \"../models/models.js\";\nimport { getLongRunningPoller } from \"../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../static-helpers/urlTemplate.js\";\nimport type { SetupExtensionsOptionalParams, UpgradeExtensionsOptionalParams } 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 _setupExtensionsSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n extensions: SetupExtensionRequest,\n options: SetupExtensionsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/addExtensions{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n \"api%2Dversion\": context.apiVersion ?? \"
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"./index.js\";\nimport type { MachineExtensionUpgrade, SetupExtensionRequest } from \"../models/models.js\";\nimport {\n machineExtensionUpgradeSerializer,\n errorResponseDeserializer,\n setupExtensionRequestSerializer,\n setupExtensionRequestDeserializer,\n} from \"../models/models.js\";\nimport { getLongRunningPoller } from \"../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../static-helpers/urlTemplate.js\";\nimport type { SetupExtensionsOptionalParams, UpgradeExtensionsOptionalParams } 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 _setupExtensionsSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n extensions: SetupExtensionRequest,\n options: SetupExtensionsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/addExtensions{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-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: setupExtensionRequestSerializer(extensions),\n });\n}\n\nexport async function _setupExtensionsDeserialize(\n result: PathUncheckedResponse,\n): Promise<SetupExtensionRequest> {\n const expectedStatuses = [\"202\", \"200\", \"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 setupExtensionRequestDeserializer(result.body);\n}\n\n/** The operation to Setup Machine Extensions. */\nexport function setupExtensions(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n extensions: SetupExtensionRequest,\n options: SetupExtensionsOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<SetupExtensionRequest>, SetupExtensionRequest> {\n return getLongRunningPoller(context, _setupExtensionsDeserialize, [\"202\", \"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _setupExtensionsSend(context, resourceGroupName, machineName, extensions, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-06-16-preview\",\n }) as PollerLike<OperationState<SetupExtensionRequest>, SetupExtensionRequest>;\n}\n\nexport function _upgradeExtensionsSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n extensionUpgradeParameters: MachineExtensionUpgrade,\n options: UpgradeExtensionsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/upgradeExtensions{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-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 body: machineExtensionUpgradeSerializer(extensionUpgradeParameters),\n });\n}\n\nexport async function _upgradeExtensionsDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"200\", \"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;\n}\n\n/** The operation to Upgrade Machine Extensions. */\nexport function upgradeExtensions(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n extensionUpgradeParameters: MachineExtensionUpgrade,\n options: UpgradeExtensionsOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _upgradeExtensionsDeserialize, [\"202\", \"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _upgradeExtensionsSend(\n context,\n resourceGroupName,\n machineName,\n extensionUpgradeParameters,\n options,\n ),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-06-16-preview\",\n }) as PollerLike<OperationState<void>, void>;\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAKO;AACP,4BAAqC;AACrC,yBAAkC;AAGlC,yBAAqE;AAG9D,SAAS,qBACd,SACA,mBACA,aACA,YACA,UAAyC,EAAE,gBAAgB,CAAC,EAAE,GAC5C;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA;AAAA,MACA,iBAAiB,QAAQ,cAAc;AAAA,IACzC;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,KAAK;AAAA,IAC7B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,aAAa;AAAA,IACb,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,IAC1E,UAAM,+CAAgC,UAAU;AAAA,EAClD,CAAC;AACH;AAEA,eAAsB,4BACpB,QACgC;AAChC,QAAM,mBAAmB,CAAC,OAAO,OAAO,KAAK;AAC7C,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,yCAA0B,OAAO,IAAI;AAAA,IACvD;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,iDAAkC,OAAO,IAAI;AACtD;AAGO,SAAS,gBACd,SACA,mBACA,aACA,YACA,UAAyC,EAAE,gBAAgB,CAAC,EAAE,GACY;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ACA;AAAA,IACF;AAAA,IACF,wBAAwB;AAAA,IACxB,YAAY,QAAQ,cAAc;AAAA,EACpC,CAAC;AACH;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -43,7 +43,7 @@ function _listByPrivateLinkScopeSend(context, resourceGroupName, scopeName, opti
|
|
|
43
43
|
subscriptionId: context.subscriptionId,
|
|
44
44
|
resourceGroupName,
|
|
45
45
|
scopeName,
|
|
46
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
46
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -74,7 +74,7 @@ function listByPrivateLinkScope(context, resourceGroupName, scopeName, options =
|
|
|
74
74
|
{
|
|
75
75
|
itemName: "value",
|
|
76
76
|
nextLinkName: "nextLink",
|
|
77
|
-
apiVersion: context.apiVersion ?? "
|
|
77
|
+
apiVersion: context.apiVersion ?? "2026-06-16-preview"
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
80
|
}
|
|
@@ -86,7 +86,7 @@ function _$deleteSend(context, resourceGroupName, scopeName, privateEndpointConn
|
|
|
86
86
|
resourceGroupName,
|
|
87
87
|
scopeName,
|
|
88
88
|
privateEndpointConnectionName,
|
|
89
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
89
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview"
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -111,7 +111,7 @@ function $delete(context, resourceGroupName, scopeName, privateEndpointConnectio
|
|
|
111
111
|
abortSignal: options?.abortSignal,
|
|
112
112
|
getInitialResponse: () => _$deleteSend(context, resourceGroupName, scopeName, privateEndpointConnectionName, options),
|
|
113
113
|
resourceLocationConfig: "location",
|
|
114
|
-
apiVersion: context.apiVersion ?? "
|
|
114
|
+
apiVersion: context.apiVersion ?? "2026-06-16-preview"
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
function _createOrUpdateSend(context, resourceGroupName, scopeName, privateEndpointConnectionName, parameters, options = { requestOptions: {} }) {
|
|
@@ -122,7 +122,7 @@ function _createOrUpdateSend(context, resourceGroupName, scopeName, privateEndpo
|
|
|
122
122
|
resourceGroupName,
|
|
123
123
|
scopeName,
|
|
124
124
|
privateEndpointConnectionName,
|
|
125
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
125
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview"
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -159,7 +159,7 @@ function createOrUpdate(context, resourceGroupName, scopeName, privateEndpointCo
|
|
|
159
159
|
options
|
|
160
160
|
),
|
|
161
161
|
resourceLocationConfig: "location",
|
|
162
|
-
apiVersion: context.apiVersion ?? "
|
|
162
|
+
apiVersion: context.apiVersion ?? "2026-06-16-preview"
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
function _getSend(context, resourceGroupName, scopeName, privateEndpointConnectionName, options = { requestOptions: {} }) {
|
|
@@ -170,7 +170,7 @@ function _getSend(context, resourceGroupName, scopeName, privateEndpointConnecti
|
|
|
170
170
|
resourceGroupName,
|
|
171
171
|
scopeName,
|
|
172
172
|
privateEndpointConnectionName,
|
|
173
|
-
"api%2Dversion": context.apiVersion ?? "
|
|
173
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-16-preview"
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|