@azure/arm-iothub-profile-2020-09-01-hybrid 2.1.1-alpha.20250717.1 → 2.1.1-alpha.20250718.2

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.
Files changed (75) hide show
  1. package/dist/browser/iotHubClient.js +18 -5
  2. package/dist/browser/iotHubClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +11 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +9 -4
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/certificates.js +1 -0
  8. package/dist/browser/operations/certificates.js.map +1 -1
  9. package/dist/browser/operations/iotHub.js +12 -6
  10. package/dist/browser/operations/iotHub.js.map +1 -1
  11. package/dist/browser/operations/iotHubResource.js +210 -331
  12. package/dist/browser/operations/iotHubResource.js.map +1 -1
  13. package/dist/browser/operations/operations.js +23 -40
  14. package/dist/browser/operations/operations.js.map +1 -1
  15. package/dist/browser/operations/resourceProviderCommon.js +1 -0
  16. package/dist/browser/operations/resourceProviderCommon.js.map +1 -1
  17. package/dist/browser/pagingHelper.js +2 -4
  18. package/dist/browser/pagingHelper.js.map +1 -1
  19. package/dist/commonjs/iotHubClient.js +18 -5
  20. package/dist/commonjs/iotHubClient.js.map +1 -1
  21. package/dist/commonjs/lroImpl.js +11 -3
  22. package/dist/commonjs/lroImpl.js.map +1 -1
  23. package/dist/commonjs/models/mappers.js +9 -4
  24. package/dist/commonjs/models/mappers.js.map +1 -1
  25. package/dist/commonjs/operations/certificates.js +1 -0
  26. package/dist/commonjs/operations/certificates.js.map +1 -1
  27. package/dist/commonjs/operations/iotHub.js +12 -6
  28. package/dist/commonjs/operations/iotHub.js.map +1 -1
  29. package/dist/commonjs/operations/iotHubResource.js +210 -330
  30. package/dist/commonjs/operations/iotHubResource.js.map +1 -1
  31. package/dist/commonjs/operations/operations.js +23 -39
  32. package/dist/commonjs/operations/operations.js.map +1 -1
  33. package/dist/commonjs/operations/resourceProviderCommon.js +1 -0
  34. package/dist/commonjs/operations/resourceProviderCommon.js.map +1 -1
  35. package/dist/commonjs/pagingHelper.js +2 -4
  36. package/dist/commonjs/pagingHelper.js.map +1 -1
  37. package/dist/commonjs/tsdoc-metadata.json +11 -11
  38. package/dist/esm/iotHubClient.js +18 -5
  39. package/dist/esm/iotHubClient.js.map +1 -1
  40. package/dist/esm/lroImpl.js +11 -3
  41. package/dist/esm/lroImpl.js.map +1 -1
  42. package/dist/esm/models/mappers.js +9 -4
  43. package/dist/esm/models/mappers.js.map +1 -1
  44. package/dist/esm/operations/certificates.js +1 -0
  45. package/dist/esm/operations/certificates.js.map +1 -1
  46. package/dist/esm/operations/iotHub.js +12 -6
  47. package/dist/esm/operations/iotHub.js.map +1 -1
  48. package/dist/esm/operations/iotHubResource.js +210 -331
  49. package/dist/esm/operations/iotHubResource.js.map +1 -1
  50. package/dist/esm/operations/operations.js +23 -40
  51. package/dist/esm/operations/operations.js.map +1 -1
  52. package/dist/esm/operations/resourceProviderCommon.js +1 -0
  53. package/dist/esm/operations/resourceProviderCommon.js.map +1 -1
  54. package/dist/esm/pagingHelper.js +2 -4
  55. package/dist/esm/pagingHelper.js.map +1 -1
  56. package/dist/react-native/iotHubClient.js +18 -5
  57. package/dist/react-native/iotHubClient.js.map +1 -1
  58. package/dist/react-native/lroImpl.js +11 -3
  59. package/dist/react-native/lroImpl.js.map +1 -1
  60. package/dist/react-native/models/mappers.js +9 -4
  61. package/dist/react-native/models/mappers.js.map +1 -1
  62. package/dist/react-native/operations/certificates.js +1 -0
  63. package/dist/react-native/operations/certificates.js.map +1 -1
  64. package/dist/react-native/operations/iotHub.js +12 -6
  65. package/dist/react-native/operations/iotHub.js.map +1 -1
  66. package/dist/react-native/operations/iotHubResource.js +210 -331
  67. package/dist/react-native/operations/iotHubResource.js.map +1 -1
  68. package/dist/react-native/operations/operations.js +23 -40
  69. package/dist/react-native/operations/operations.js.map +1 -1
  70. package/dist/react-native/operations/resourceProviderCommon.js +1 -0
  71. package/dist/react-native/operations/resourceProviderCommon.js.map +1 -1
  72. package/dist/react-native/pagingHelper.js +2 -4
  73. package/dist/react-native/pagingHelper.js.map +1 -1
  74. package/package.json +2 -2
  75. package/review/arm-iothub-profile-2020-09-01-hybrid-node.api.md +1022 -1022
@@ -1 +1 @@
1
- {"version":3,"file":"iotHub.js","sourceRoot":"","sources":["../../../src/operations/iotHub.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAGxC,0CAA0C;AAC1C,MAAa,UAAU;IAGrB;;;OAGG;IACH,YAAY,MAAoB;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,mBAAmB,CACvB,UAAkB,EAClB,iBAAyB,EACzB,aAA4B,EAC5B,OAA4C;QAE5C,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EACf,EAAE;YACjB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC,CAAC;QACF,MAAM,aAAa,GAAG,KAAK,EACzB,IAAmC,EACnC,IAA8B,EAC9B,EAAE;;YACF,IAAI,kBAAkB,GAEN,SAAS,CAAC;YAC1B,MAAM,gBAAgB,GAAG,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAC;YAClD,MAAM,QAAQ,GAAmC,CAC/C,WAA6C,EAC7C,YAAqB,EACrB,EAAE;gBACF,kBAAkB,GAAG,WAAW,CAAC;gBACjC,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAG,WAAW,EAAE,YAAY,CAAC,CAAC;YAChD,CAAC,CAAC;YACF,MAAM,WAAW,mCACZ,IAAI,KACP,OAAO,kCACF,IAAI,CAAC,OAAO,KACf,UAAU,EAAE,Q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AE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,aAAa;IACrC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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 { IotHub } 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 { IotHubClient } from \"../iotHubClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport { FailoverInput, IotHubManualFailoverOptionalParams } from \"../models/index.js\";\n\n/** Class containing IotHub operations. */\nexport class IotHubImpl implements IotHub {\n private readonly client: IotHubClient;\n\n /**\n * Initialize a new instance of the class IotHub class.\n * @param client Reference to the service client\n */\n constructor(client: IotHubClient) {\n this.client = client;\n }\n\n /**\n * Perform manual fail over of given hub\n * @param iotHubName IotHub to fail over\n * @param resourceGroupName resource group which Iot Hub belongs to\n * @param failoverInput Region to failover to. Must be a azure DR pair\n * @param options The options parameters.\n */\n async beginManualFailover(\n iotHubName: string,\n resourceGroupName: string,\n failoverInput: FailoverInput,\n options?: IotHubManualFailoverOptionalParams\n ): Promise<PollerLike<PollOperationState<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 sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = 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 = new LroImpl(\n sendOperation,\n { iotHubName, resourceGroupName, failoverInput, options },\n manualFailoverOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Perform manual fail over of given hub\n * @param iotHubName IotHub to fail over\n * @param resourceGroupName resource group which Iot Hub belongs to\n * @param failoverInput Region to failover to. Must be a azure DR pair\n * @param options The options parameters.\n */\n async beginManualFailoverAndWait(\n iotHubName: string,\n resourceGroupName: string,\n failoverInput: FailoverInput,\n options?: IotHubManualFailoverOptionalParams\n ): Promise<void> {\n const poller = await this.beginManualFailover(\n iotHubName,\n resourceGroupName,\n failoverInput,\n options\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst manualFailoverOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/failover\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorDetails\n }\n },\n requestBody: Parameters.failoverInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.iotHubName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
1
+ {"version":3,"file":"iotHub.js","sourceRoot":"","sources":["../../../src/operations/iotHub.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAGxC,0CAA0C;AAC1C,MAAa,UAAU;IACJ,MAAM,CAAe;IAEtC;;;OAGG;IACH,YAAY,MAAoB;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,mBAAmB,CACvB,UAAkB,EAClB,iBAAyB,EACzB,aAA4B,EAC5B,OAA4C;QAE5C,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EACf,EAAE;YACjB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC,CAAC;QACF,MAAM,aAAa,GAAG,KAAK,EACzB,IAAmC,EACnC,IAA8B,EAC9B,EAAE;YACF,IAAI,kBAAkB,GAEN,SAAS,CAAC;YAC1B,MAAM,gBAAgB,GAAG,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC;YAClD,MAAM,QAAQ,GAAmC,CAC/C,WAA6C,EAC7C,YAAqB,EACrB,EAAE;gBACF,kBAAkB,GAAG,WAAW,CAAC;gBACjC,gBAAgB,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;YAChD,CAAC,CAAC;YACF,MAAM,WAAW,GAAG;gBAClB,GAA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AAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,aAAa;IACrC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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 { IotHub } 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 { IotHubClient } from \"../iotHubClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport { FailoverInput, IotHubManualFailoverOptionalParams } from \"../models/index.js\";\n\n/** Class containing IotHub operations. */\nexport class IotHubImpl implements IotHub {\n private readonly client: IotHubClient;\n\n /**\n * Initialize a new instance of the class IotHub class.\n * @param client Reference to the service client\n */\n constructor(client: IotHubClient) {\n this.client = client;\n }\n\n /**\n * Perform manual fail over of given hub\n * @param iotHubName IotHub to fail over\n * @param resourceGroupName resource group which Iot Hub belongs to\n * @param failoverInput Region to failover to. Must be a azure DR pair\n * @param options The options parameters.\n */\n async beginManualFailover(\n iotHubName: string,\n resourceGroupName: string,\n failoverInput: FailoverInput,\n options?: IotHubManualFailoverOptionalParams\n ): Promise<PollerLike<PollOperationState<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 sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = 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 = new LroImpl(\n sendOperation,\n { iotHubName, resourceGroupName, failoverInput, options },\n manualFailoverOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Perform manual fail over of given hub\n * @param iotHubName IotHub to fail over\n * @param resourceGroupName resource group which Iot Hub belongs to\n * @param failoverInput Region to failover to. Must be a azure DR pair\n * @param options The options parameters.\n */\n async beginManualFailoverAndWait(\n iotHubName: string,\n resourceGroupName: string,\n failoverInput: FailoverInput,\n options?: IotHubManualFailoverOptionalParams\n ): Promise<void> {\n const poller = await this.beginManualFailover(\n iotHubName,\n resourceGroupName,\n failoverInput,\n options\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst manualFailoverOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/failover\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorDetails\n }\n },\n requestBody: Parameters.failoverInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.iotHubName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}