@azure/arm-sphere 1.0.1-alpha.20250620.1 → 1.0.1-alpha.20250721.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/azureSphereManagementClient.js +21 -5
- package/dist/browser/azureSphereManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +54 -21
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/catalogs.js +166 -253
- package/dist/browser/operations/catalogs.js.map +1 -1
- package/dist/browser/operations/certificates.js +23 -40
- package/dist/browser/operations/certificates.js.map +1 -1
- package/dist/browser/operations/deployments.js +45 -52
- package/dist/browser/operations/deployments.js.map +1 -1
- package/dist/browser/operations/deviceGroups.js +67 -64
- package/dist/browser/operations/deviceGroups.js.map +1 -1
- package/dist/browser/operations/devices.js +67 -64
- package/dist/browser/operations/devices.js.map +1 -1
- package/dist/browser/operations/images.js +45 -52
- package/dist/browser/operations/images.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/products.js +78 -97
- package/dist/browser/operations/products.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/azureSphereManagementClient.js +21 -5
- package/dist/commonjs/azureSphereManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +54 -21
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/catalogs.js +166 -252
- package/dist/commonjs/operations/catalogs.js.map +1 -1
- package/dist/commonjs/operations/certificates.js +23 -39
- package/dist/commonjs/operations/certificates.js.map +1 -1
- package/dist/commonjs/operations/deployments.js +45 -51
- package/dist/commonjs/operations/deployments.js.map +1 -1
- package/dist/commonjs/operations/deviceGroups.js +67 -63
- package/dist/commonjs/operations/deviceGroups.js.map +1 -1
- package/dist/commonjs/operations/devices.js +67 -63
- package/dist/commonjs/operations/devices.js.map +1 -1
- package/dist/commonjs/operations/images.js +45 -51
- package/dist/commonjs/operations/images.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/products.js +78 -96
- package/dist/commonjs/operations/products.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/azureSphereManagementClient.js +21 -5
- package/dist/esm/azureSphereManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +54 -21
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/catalogs.js +166 -253
- package/dist/esm/operations/catalogs.js.map +1 -1
- package/dist/esm/operations/certificates.js +23 -40
- package/dist/esm/operations/certificates.js.map +1 -1
- package/dist/esm/operations/deployments.js +45 -52
- package/dist/esm/operations/deployments.js.map +1 -1
- package/dist/esm/operations/deviceGroups.js +67 -64
- package/dist/esm/operations/deviceGroups.js.map +1 -1
- package/dist/esm/operations/devices.js +67 -64
- package/dist/esm/operations/devices.js.map +1 -1
- package/dist/esm/operations/images.js +45 -52
- package/dist/esm/operations/images.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/products.js +78 -97
- package/dist/esm/operations/products.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/azureSphereManagementClient.js +21 -5
- package/dist/react-native/azureSphereManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +54 -21
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/catalogs.js +166 -253
- package/dist/react-native/operations/catalogs.js.map +1 -1
- package/dist/react-native/operations/certificates.js +23 -40
- package/dist/react-native/operations/certificates.js.map +1 -1
- package/dist/react-native/operations/deployments.js +45 -52
- package/dist/react-native/operations/deployments.js.map +1 -1
- package/dist/react-native/operations/deviceGroups.js +67 -64
- package/dist/react-native/operations/deviceGroups.js.map +1 -1
- package/dist/react-native/operations/devices.js +67 -64
- package/dist/react-native/operations/devices.js.map +1 -1
- package/dist/react-native/operations/images.js +45 -52
- package/dist/react-native/operations/images.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/products.js +78 -97
- package/dist/react-native/operations/products.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-sphere.api.md → arm-sphere-node.api.md} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceGroups.js","sourceRoot":"","sources":["../../../src/operations/deviceGroups.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAsB9C,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,aAAa,CAClB,iBAAyB,E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AAC,WAAW;QACtB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DeviceGroups } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureSphereManagementClient } from \"../azureSphereManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n DeviceGroup,\n DeviceGroupsListByProductNextOptionalParams,\n DeviceGroupsListByProductOptionalParams,\n DeviceGroupsListByProductResponse,\n DeviceGroupsGetOptionalParams,\n DeviceGroupsGetResponse,\n DeviceGroupsCreateOrUpdateOptionalParams,\n DeviceGroupsCreateOrUpdateResponse,\n DeviceGroupUpdate,\n DeviceGroupsUpdateOptionalParams,\n DeviceGroupsUpdateResponse,\n DeviceGroupsDeleteOptionalParams,\n ClaimDevicesRequest,\n DeviceGroupsClaimDevicesOptionalParams,\n DeviceGroupsClaimDevicesResponse,\n DeviceGroupsCountDevicesOptionalParams,\n DeviceGroupsCountDevicesResponse,\n DeviceGroupsListByProductNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DeviceGroups operations. */\nexport class DeviceGroupsImpl implements DeviceGroups {\n private readonly client: AzureSphereManagementClient;\n\n /**\n * Initialize a new instance of the class DeviceGroups class.\n * @param client Reference to the service client\n */\n constructor(client: AzureSphereManagementClient) {\n this.client = client;\n }\n\n /**\n * List DeviceGroup resources by Product. '.default' and '.unassigned' are system defined values and\n * cannot be used for product name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param options The options parameters.\n */\n public listByProduct(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n options?: DeviceGroupsListByProductOptionalParams,\n ): PagedAsyncIterableIterator<DeviceGroup> {\n const iter = this.listByProductPagingAll(\n resourceGroupName,\n catalogName,\n productName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByProductPagingPage(\n resourceGroupName,\n catalogName,\n productName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByProductPagingPage(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n options?: DeviceGroupsListByProductOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DeviceGroup[]> {\n let result: DeviceGroupsListByProductResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByProduct(\n resourceGroupName,\n catalogName,\n productName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByProductNext(\n resourceGroupName,\n catalogName,\n productName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByProductPagingAll(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n options?: DeviceGroupsListByProductOptionalParams,\n ): AsyncIterableIterator<DeviceGroup> {\n for await (const page of this.listByProductPagingPage(\n resourceGroupName,\n catalogName,\n productName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List DeviceGroup resources by Product. '.default' and '.unassigned' are system defined values and\n * cannot be used for product name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param options The options parameters.\n */\n private _listByProduct(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n options?: DeviceGroupsListByProductOptionalParams,\n ): Promise<DeviceGroupsListByProductResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, catalogName, productName, options },\n listByProductOperationSpec,\n );\n }\n\n /**\n * Get a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for\n * product or device group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n options?: DeviceGroupsGetOptionalParams,\n ): Promise<DeviceGroupsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, catalogName, productName, deviceGroupName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for\n * product or device group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n resource: DeviceGroup,\n options?: DeviceGroupsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeviceGroupsCreateOrUpdateResponse>,\n DeviceGroupsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DeviceGroupsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n catalogName,\n productName,\n deviceGroupName,\n resource,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n DeviceGroupsCreateOrUpdateResponse,\n OperationState<DeviceGroupsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for\n * product or device group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n resource: DeviceGroup,\n options?: DeviceGroupsCreateOrUpdateOptionalParams,\n ): Promise<DeviceGroupsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n catalogName,\n productName,\n deviceGroupName,\n resource,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for\n * product or device group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param properties The resource properties to be updated.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n properties: DeviceGroupUpdate,\n options?: DeviceGroupsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeviceGroupsUpdateResponse>,\n DeviceGroupsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DeviceGroupsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n catalogName,\n productName,\n deviceGroupName,\n properties,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n DeviceGroupsUpdateResponse,\n OperationState<DeviceGroupsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for\n * product or device group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param properties The resource properties to be updated.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n properties: DeviceGroupUpdate,\n options?: DeviceGroupsUpdateOptionalParams,\n ): Promise<DeviceGroupsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n catalogName,\n productName,\n deviceGroupName,\n properties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for\n * product or device group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n options?: DeviceGroupsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n catalogName,\n productName,\n deviceGroupName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for\n * product or device group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n options?: DeviceGroupsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n catalogName,\n productName,\n deviceGroupName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Bulk claims the devices. Use '.unassigned' or '.default' for the device group and product names when\n * bulk claiming devices to a catalog only.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param claimDevicesRequest Bulk claim devices request body.\n * @param options The options parameters.\n */\n async beginClaimDevices(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n claimDevicesRequest: ClaimDevicesRequest,\n options?: DeviceGroupsClaimDevicesOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeviceGroupsClaimDevicesResponse>,\n DeviceGroupsClaimDevicesResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DeviceGroupsClaimDevicesResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n catalogName,\n productName,\n deviceGroupName,\n claimDevicesRequest,\n options,\n },\n spec: claimDevicesOperationSpec,\n });\n const poller = await createHttpPoller<\n DeviceGroupsClaimDevicesResponse,\n OperationState<DeviceGroupsClaimDevicesResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Bulk claims the devices. Use '.unassigned' or '.default' for the device group and product names when\n * bulk claiming devices to a catalog only.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param claimDevicesRequest Bulk claim devices request body.\n * @param options The options parameters.\n */\n async beginClaimDevicesAndWait(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n claimDevicesRequest: ClaimDevicesRequest,\n options?: DeviceGroupsClaimDevicesOptionalParams,\n ): Promise<DeviceGroupsClaimDevicesResponse> {\n const poller = await this.beginClaimDevices(\n resourceGroupName,\n catalogName,\n productName,\n deviceGroupName,\n claimDevicesRequest,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Counts devices in device group. '.default' and '.unassigned' are system defined values and cannot be\n * used for product or device group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param options The options parameters.\n */\n countDevices(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n options?: DeviceGroupsCountDevicesOptionalParams,\n ): Promise<DeviceGroupsCountDevicesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, catalogName, productName, deviceGroupName, options },\n countDevicesOperationSpec,\n );\n }\n\n /**\n * ListByProductNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param nextLink The nextLink from the previous successful call to the ListByProduct method.\n * @param options The options parameters.\n */\n private _listByProductNext(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n nextLink: string,\n options?: DeviceGroupsListByProductNextOptionalParams,\n ): Promise<DeviceGroupsListByProductNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, catalogName, productName, nextLink, options },\n listByProductNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByProductOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeviceGroupListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.top,\n Parameters.skip,\n Parameters.maxpagesize,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName,\n Parameters.productName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeviceGroup,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName,\n Parameters.productName,\n Parameters.deviceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeviceGroup,\n },\n 201: {\n bodyMapper: Mappers.DeviceGroup,\n },\n 202: {\n bodyMapper: Mappers.DeviceGroup,\n },\n 204: {\n bodyMapper: Mappers.DeviceGroup,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resource3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName,\n Parameters.productName,\n Parameters.deviceGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeviceGroup,\n },\n 201: {\n bodyMapper: Mappers.DeviceGroup,\n },\n 202: {\n bodyMapper: Mappers.DeviceGroup,\n },\n 204: {\n bodyMapper: Mappers.DeviceGroup,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName,\n Parameters.productName,\n Parameters.deviceGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName,\n Parameters.productName,\n Parameters.deviceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst claimDevicesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/claimDevices\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.DeviceGroupsClaimDevicesHeaders,\n },\n 201: {\n headersMapper: Mappers.DeviceGroupsClaimDevicesHeaders,\n },\n 202: {\n headersMapper: Mappers.DeviceGroupsClaimDevicesHeaders,\n },\n 204: {\n headersMapper: Mappers.DeviceGroupsClaimDevicesHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.claimDevicesRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName,\n Parameters.productName,\n Parameters.deviceGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst countDevicesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/countDevices\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CountDevicesResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName,\n Parameters.productName,\n Parameters.deviceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByProductNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeviceGroupListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName,\n Parameters.productName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"deviceGroups.js","sourceRoot":"","sources":["../../../src/operations/deviceGroups.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAA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C5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DeviceGroups } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureSphereManagementClient } from \"../azureSphereManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n DeviceGroup,\n DeviceGroupsListByProductNextOptionalParams,\n DeviceGroupsListByProductOptionalParams,\n DeviceGroupsListByProductResponse,\n DeviceGroupsGetOptionalParams,\n DeviceGroupsGetResponse,\n DeviceGroupsCreateOrUpdateOptionalParams,\n DeviceGroupsCreateOrUpdateResponse,\n DeviceGroupUpdate,\n DeviceGroupsUpdateOptionalParams,\n DeviceGroupsUpdateResponse,\n DeviceGroupsDeleteOptionalParams,\n ClaimDevicesRequest,\n DeviceGroupsClaimDevicesOptionalParams,\n DeviceGroupsClaimDevicesResponse,\n DeviceGroupsCountDevicesOptionalParams,\n DeviceGroupsCountDevicesResponse,\n DeviceGroupsListByProductNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DeviceGroups operations. */\nexport class DeviceGroupsImpl implements DeviceGroups {\n private readonly client: AzureSphereManagementClient;\n\n /**\n * Initialize a new instance of the class DeviceGroups class.\n * @param client Reference to the service client\n */\n constructor(client: AzureSphereManagementClient) {\n this.client = client;\n }\n\n /**\n * List DeviceGroup resources by Product. '.default' and '.unassigned' are system defined values and\n * cannot be used for product name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param options The options parameters.\n */\n public listByProduct(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n options?: DeviceGroupsListByProductOptionalParams,\n ): PagedAsyncIterableIterator<DeviceGroup> {\n const iter = this.listByProductPagingAll(\n resourceGroupName,\n catalogName,\n productName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByProductPagingPage(\n resourceGroupName,\n catalogName,\n productName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByProductPagingPage(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n options?: DeviceGroupsListByProductOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DeviceGroup[]> {\n let result: DeviceGroupsListByProductResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByProduct(\n resourceGroupName,\n catalogName,\n productName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByProductNext(\n resourceGroupName,\n catalogName,\n productName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByProductPagingAll(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n options?: DeviceGroupsListByProductOptionalParams,\n ): AsyncIterableIterator<DeviceGroup> {\n for await (const page of this.listByProductPagingPage(\n resourceGroupName,\n catalogName,\n productName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List DeviceGroup resources by Product. '.default' and '.unassigned' are system defined values and\n * cannot be used for product name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param options The options parameters.\n */\n private _listByProduct(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n options?: DeviceGroupsListByProductOptionalParams,\n ): Promise<DeviceGroupsListByProductResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, catalogName, productName, options },\n listByProductOperationSpec,\n );\n }\n\n /**\n * Get a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for\n * product or device group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n options?: DeviceGroupsGetOptionalParams,\n ): Promise<DeviceGroupsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, catalogName, productName, deviceGroupName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for\n * product or device group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n resource: DeviceGroup,\n options?: DeviceGroupsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeviceGroupsCreateOrUpdateResponse>,\n DeviceGroupsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DeviceGroupsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n catalogName,\n productName,\n deviceGroupName,\n resource,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n DeviceGroupsCreateOrUpdateResponse,\n OperationState<DeviceGroupsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for\n * product or device group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n resource: DeviceGroup,\n options?: DeviceGroupsCreateOrUpdateOptionalParams,\n ): Promise<DeviceGroupsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n catalogName,\n productName,\n deviceGroupName,\n resource,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for\n * product or device group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param properties The resource properties to be updated.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n properties: DeviceGroupUpdate,\n options?: DeviceGroupsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeviceGroupsUpdateResponse>,\n DeviceGroupsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DeviceGroupsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n catalogName,\n productName,\n deviceGroupName,\n properties,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n DeviceGroupsUpdateResponse,\n OperationState<DeviceGroupsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for\n * product or device group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param properties The resource properties to be updated.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n properties: DeviceGroupUpdate,\n options?: DeviceGroupsUpdateOptionalParams,\n ): Promise<DeviceGroupsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n catalogName,\n productName,\n deviceGroupName,\n properties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for\n * product or device group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n options?: DeviceGroupsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n catalogName,\n productName,\n deviceGroupName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for\n * product or device group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n options?: DeviceGroupsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n catalogName,\n productName,\n deviceGroupName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Bulk claims the devices. Use '.unassigned' or '.default' for the device group and product names when\n * bulk claiming devices to a catalog only.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param claimDevicesRequest Bulk claim devices request body.\n * @param options The options parameters.\n */\n async beginClaimDevices(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n claimDevicesRequest: ClaimDevicesRequest,\n options?: DeviceGroupsClaimDevicesOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DeviceGroupsClaimDevicesResponse>,\n DeviceGroupsClaimDevicesResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DeviceGroupsClaimDevicesResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n catalogName,\n productName,\n deviceGroupName,\n claimDevicesRequest,\n options,\n },\n spec: claimDevicesOperationSpec,\n });\n const poller = await createHttpPoller<\n DeviceGroupsClaimDevicesResponse,\n OperationState<DeviceGroupsClaimDevicesResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Bulk claims the devices. Use '.unassigned' or '.default' for the device group and product names when\n * bulk claiming devices to a catalog only.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param claimDevicesRequest Bulk claim devices request body.\n * @param options The options parameters.\n */\n async beginClaimDevicesAndWait(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n claimDevicesRequest: ClaimDevicesRequest,\n options?: DeviceGroupsClaimDevicesOptionalParams,\n ): Promise<DeviceGroupsClaimDevicesResponse> {\n const poller = await this.beginClaimDevices(\n resourceGroupName,\n catalogName,\n productName,\n deviceGroupName,\n claimDevicesRequest,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Counts devices in device group. '.default' and '.unassigned' are system defined values and cannot be\n * used for product or device group name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param deviceGroupName Name of device group.\n * @param options The options parameters.\n */\n countDevices(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n deviceGroupName: string,\n options?: DeviceGroupsCountDevicesOptionalParams,\n ): Promise<DeviceGroupsCountDevicesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, catalogName, productName, deviceGroupName, options },\n countDevicesOperationSpec,\n );\n }\n\n /**\n * ListByProductNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param catalogName Name of catalog\n * @param productName Name of product.\n * @param nextLink The nextLink from the previous successful call to the ListByProduct method.\n * @param options The options parameters.\n */\n private _listByProductNext(\n resourceGroupName: string,\n catalogName: string,\n productName: string,\n nextLink: string,\n options?: DeviceGroupsListByProductNextOptionalParams,\n ): Promise<DeviceGroupsListByProductNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, catalogName, productName, nextLink, options },\n listByProductNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByProductOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeviceGroupListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.top,\n Parameters.skip,\n Parameters.maxpagesize,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName,\n Parameters.productName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeviceGroup,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName,\n Parameters.productName,\n Parameters.deviceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeviceGroup,\n },\n 201: {\n bodyMapper: Mappers.DeviceGroup,\n },\n 202: {\n bodyMapper: Mappers.DeviceGroup,\n },\n 204: {\n bodyMapper: Mappers.DeviceGroup,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resource3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName,\n Parameters.productName,\n Parameters.deviceGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeviceGroup,\n },\n 201: {\n bodyMapper: Mappers.DeviceGroup,\n },\n 202: {\n bodyMapper: Mappers.DeviceGroup,\n },\n 204: {\n bodyMapper: Mappers.DeviceGroup,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName,\n Parameters.productName,\n Parameters.deviceGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName,\n Parameters.productName,\n Parameters.deviceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst claimDevicesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/claimDevices\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.DeviceGroupsClaimDevicesHeaders,\n },\n 201: {\n headersMapper: Mappers.DeviceGroupsClaimDevicesHeaders,\n },\n 202: {\n headersMapper: Mappers.DeviceGroupsClaimDevicesHeaders,\n },\n 204: {\n headersMapper: Mappers.DeviceGroupsClaimDevicesHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.claimDevicesRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName,\n Parameters.productName,\n Parameters.deviceGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst countDevicesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/countDevices\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CountDevicesResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName,\n Parameters.productName,\n Parameters.deviceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByProductNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeviceGroupListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.catalogName,\n Parameters.productName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing Devices operations. */
|
|
17
16
|
export class DevicesImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Devices class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -41,52 +41,35 @@ export class DevicesImpl {
|
|
|
41
41
|
return this;
|
|
42
42
|
},
|
|
43
43
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
45
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
46
|
}
|
|
47
47
|
return this.listByDeviceGroupPagingPage(resourceGroupName, catalogName, productName, deviceGroupName, options, settings);
|
|
48
48
|
},
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
listByDeviceGroupPagingPage(resourceGroupName, catalogName, productName, deviceGroupName, options, settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
});
|
|
51
|
+
async *listByDeviceGroupPagingPage(resourceGroupName, catalogName, productName, deviceGroupName, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._listByDeviceGroup(resourceGroupName, catalogName, productName, deviceGroupName, options);
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
setContinuationToken(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = await this._listByDeviceGroupNext(resourceGroupName, catalogName, productName, deviceGroupName, continuationToken, options);
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
setContinuationToken(page, continuationToken);
|
|
66
|
+
yield page;
|
|
67
|
+
}
|
|
70
68
|
}
|
|
71
|
-
listByDeviceGroupPagingAll(resourceGroupName, catalogName, productName, deviceGroupName, options) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (var _d = true, _e = __asyncValues(this.listByDeviceGroupPagingPage(resourceGroupName, catalogName, productName, deviceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
76
|
-
_c = _f.value;
|
|
77
|
-
_d = false;
|
|
78
|
-
const page = _c;
|
|
79
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
83
|
-
finally {
|
|
84
|
-
try {
|
|
85
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
86
|
-
}
|
|
87
|
-
finally { if (e_1) throw e_1.error; }
|
|
88
|
-
}
|
|
89
|
-
});
|
|
69
|
+
async *listByDeviceGroupPagingAll(resourceGroupName, catalogName, productName, deviceGroupName, options) {
|
|
70
|
+
for await (const page of this.listByDeviceGroupPagingPage(resourceGroupName, catalogName, productName, deviceGroupName, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
90
73
|
}
|
|
91
74
|
/**
|
|
92
75
|
* List Device resources by DeviceGroup. '.default' and '.unassigned' are system defined values and
|
|
@@ -136,14 +119,19 @@ export class DevicesImpl {
|
|
|
136
119
|
return this.client.sendOperationRequest(args, spec);
|
|
137
120
|
};
|
|
138
121
|
const sendOperationFn = async (args, spec) => {
|
|
139
|
-
var _a;
|
|
140
122
|
let currentRawResponse = undefined;
|
|
141
|
-
const providedCallback =
|
|
123
|
+
const providedCallback = args.options?.onResponse;
|
|
142
124
|
const callback = (rawResponse, flatResponse) => {
|
|
143
125
|
currentRawResponse = rawResponse;
|
|
144
|
-
providedCallback
|
|
126
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
127
|
+
};
|
|
128
|
+
const updatedArgs = {
|
|
129
|
+
...args,
|
|
130
|
+
options: {
|
|
131
|
+
...args.options,
|
|
132
|
+
onResponse: callback,
|
|
133
|
+
},
|
|
145
134
|
};
|
|
146
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
147
135
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
148
136
|
return {
|
|
149
137
|
flatResponse,
|
|
@@ -168,8 +156,8 @@ export class DevicesImpl {
|
|
|
168
156
|
spec: createOrUpdateOperationSpec,
|
|
169
157
|
});
|
|
170
158
|
const poller = await createHttpPoller(lro, {
|
|
171
|
-
restoreFrom: options
|
|
172
|
-
intervalInMs: options
|
|
159
|
+
restoreFrom: options?.resumeFrom,
|
|
160
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
173
161
|
resourceLocationConfig: "azure-async-operation",
|
|
174
162
|
});
|
|
175
163
|
await poller.poll();
|
|
@@ -206,14 +194,19 @@ export class DevicesImpl {
|
|
|
206
194
|
return this.client.sendOperationRequest(args, spec);
|
|
207
195
|
};
|
|
208
196
|
const sendOperationFn = async (args, spec) => {
|
|
209
|
-
var _a;
|
|
210
197
|
let currentRawResponse = undefined;
|
|
211
|
-
const providedCallback =
|
|
198
|
+
const providedCallback = args.options?.onResponse;
|
|
212
199
|
const callback = (rawResponse, flatResponse) => {
|
|
213
200
|
currentRawResponse = rawResponse;
|
|
214
|
-
providedCallback
|
|
201
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
202
|
+
};
|
|
203
|
+
const updatedArgs = {
|
|
204
|
+
...args,
|
|
205
|
+
options: {
|
|
206
|
+
...args.options,
|
|
207
|
+
onResponse: callback,
|
|
208
|
+
},
|
|
215
209
|
};
|
|
216
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
217
210
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
218
211
|
return {
|
|
219
212
|
flatResponse,
|
|
@@ -238,8 +231,8 @@ export class DevicesImpl {
|
|
|
238
231
|
spec: updateOperationSpec,
|
|
239
232
|
});
|
|
240
233
|
const poller = await createHttpPoller(lro, {
|
|
241
|
-
restoreFrom: options
|
|
242
|
-
intervalInMs: options
|
|
234
|
+
restoreFrom: options?.resumeFrom,
|
|
235
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
243
236
|
resourceLocationConfig: "location",
|
|
244
237
|
});
|
|
245
238
|
await poller.poll();
|
|
@@ -274,14 +267,19 @@ export class DevicesImpl {
|
|
|
274
267
|
return this.client.sendOperationRequest(args, spec);
|
|
275
268
|
};
|
|
276
269
|
const sendOperationFn = async (args, spec) => {
|
|
277
|
-
var _a;
|
|
278
270
|
let currentRawResponse = undefined;
|
|
279
|
-
const providedCallback =
|
|
271
|
+
const providedCallback = args.options?.onResponse;
|
|
280
272
|
const callback = (rawResponse, flatResponse) => {
|
|
281
273
|
currentRawResponse = rawResponse;
|
|
282
|
-
providedCallback
|
|
274
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
275
|
+
};
|
|
276
|
+
const updatedArgs = {
|
|
277
|
+
...args,
|
|
278
|
+
options: {
|
|
279
|
+
...args.options,
|
|
280
|
+
onResponse: callback,
|
|
281
|
+
},
|
|
283
282
|
};
|
|
284
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
285
283
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
286
284
|
return {
|
|
287
285
|
flatResponse,
|
|
@@ -305,8 +303,8 @@ export class DevicesImpl {
|
|
|
305
303
|
spec: deleteOperationSpec,
|
|
306
304
|
});
|
|
307
305
|
const poller = await createHttpPoller(lro, {
|
|
308
|
-
restoreFrom: options
|
|
309
|
-
intervalInMs: options
|
|
306
|
+
restoreFrom: options?.resumeFrom,
|
|
307
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
310
308
|
resourceLocationConfig: "location",
|
|
311
309
|
});
|
|
312
310
|
await poller.poll();
|
|
@@ -342,14 +340,19 @@ export class DevicesImpl {
|
|
|
342
340
|
return this.client.sendOperationRequest(args, spec);
|
|
343
341
|
};
|
|
344
342
|
const sendOperationFn = async (args, spec) => {
|
|
345
|
-
var _a;
|
|
346
343
|
let currentRawResponse = undefined;
|
|
347
|
-
const providedCallback =
|
|
344
|
+
const providedCallback = args.options?.onResponse;
|
|
348
345
|
const callback = (rawResponse, flatResponse) => {
|
|
349
346
|
currentRawResponse = rawResponse;
|
|
350
|
-
providedCallback
|
|
347
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
348
|
+
};
|
|
349
|
+
const updatedArgs = {
|
|
350
|
+
...args,
|
|
351
|
+
options: {
|
|
352
|
+
...args.options,
|
|
353
|
+
onResponse: callback,
|
|
354
|
+
},
|
|
351
355
|
};
|
|
352
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
353
356
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
354
357
|
return {
|
|
355
358
|
flatResponse,
|
|
@@ -374,8 +377,8 @@ export class DevicesImpl {
|
|
|
374
377
|
spec: generateCapabilityImageOperationSpec,
|
|
375
378
|
});
|
|
376
379
|
const poller = await createHttpPoller(lro, {
|
|
377
|
-
restoreFrom: options
|
|
378
|
-
intervalInMs: options
|
|
380
|
+
restoreFrom: options?.resumeFrom,
|
|
381
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
379
382
|
resourceLocationConfig: "location",
|
|
380
383
|
});
|
|
381
384
|
await poller.poll();
|