@azure/arm-digitaltwins 2.1.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -83
  4. package/dist/index.js +2613 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/azureDigitalTwinsManagementClient.d.ts +22 -0
  9. package/dist-esm/src/azureDigitalTwinsManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/azureDigitalTwinsManagementClient.js +55 -0
  11. package/dist-esm/src/azureDigitalTwinsManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +677 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +85 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +40 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +441 -491
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +19 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +171 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/digitalTwins.d.ts +119 -0
  33. package/dist-esm/src/operations/digitalTwins.d.ts.map +1 -0
  34. package/dist-esm/src/operations/digitalTwins.js +549 -0
  35. package/dist-esm/src/operations/digitalTwins.js.map +1 -0
  36. package/dist-esm/src/operations/digitalTwinsEndpoint.d.ts +81 -0
  37. package/dist-esm/src/operations/digitalTwinsEndpoint.d.ts.map +1 -0
  38. package/dist-esm/src/operations/digitalTwinsEndpoint.js +345 -0
  39. package/dist-esm/src/operations/digitalTwinsEndpoint.js.map +1 -0
  40. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  41. package/dist-esm/src/operations/index.d.ts.map +1 -0
  42. package/{esm → dist-esm/src}/operations/index.js +1 -2
  43. package/dist-esm/src/operations/index.js.map +1 -0
  44. package/dist-esm/src/operations/operations.d.ts +32 -0
  45. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/operations.js +120 -0
  47. package/dist-esm/src/operations/operations.js.map +1 -0
  48. package/dist-esm/src/operations/privateEndpointConnections.d.ts +63 -0
  49. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  50. package/dist-esm/src/operations/privateEndpointConnections.js +264 -0
  51. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  52. package/dist-esm/src/operations/privateLinkResources.d.ts +28 -0
  53. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  54. package/dist-esm/src/operations/privateLinkResources.js +85 -0
  55. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/digitalTwins.d.ts +83 -0
  57. package/dist-esm/src/operationsInterfaces/digitalTwins.d.ts.map +1 -0
  58. package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/digitalTwins.js} +2 -9
  59. package/dist-esm/src/operationsInterfaces/digitalTwins.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.d.ts +56 -0
  61. package/dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.d.ts.map +1 -0
  62. package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.js} +2 -2
  63. package/dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  67. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  69. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  70. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/operations.js} +2 -1
  71. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +55 -0
  73. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +20 -0
  77. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  80. package/dist-esm/test/sampleTest.d.ts +2 -0
  81. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  82. package/dist-esm/test/sampleTest.js +40 -0
  83. package/dist-esm/test/sampleTest.js.map +1 -0
  84. package/package.json +65 -32
  85. package/review/arm-digitaltwins.api.md +620 -0
  86. package/rollup.config.js +181 -30
  87. package/src/azureDigitalTwinsManagementClient.ts +80 -40
  88. package/src/{models/privateLinkResourcesMappers.ts → index.ts} +4 -9
  89. package/src/lroImpl.ts +34 -0
  90. package/src/models/index.ts +589 -1071
  91. package/src/models/mappers.ts +444 -492
  92. package/src/models/parameters.ts +119 -54
  93. package/src/operations/digitalTwins.ts +555 -371
  94. package/src/operations/digitalTwinsEndpoint.ts +338 -192
  95. package/src/operations/index.ts +1 -2
  96. package/src/operations/operations.ts +85 -73
  97. package/src/operations/privateEndpointConnections.ts +246 -151
  98. package/src/operations/privateLinkResources.ts +60 -92
  99. package/src/operationsInterfaces/digitalTwins.ts +164 -0
  100. package/src/operationsInterfaces/digitalTwinsEndpoint.ts +115 -0
  101. package/src/operationsInterfaces/index.ts +13 -0
  102. package/src/operationsInterfaces/operations.ts +22 -0
  103. package/src/operationsInterfaces/privateEndpointConnections.ts +108 -0
  104. package/src/operationsInterfaces/privateLinkResources.ts +42 -0
  105. package/tsconfig.json +3 -3
  106. package/types/arm-digitaltwins.d.ts +1009 -0
  107. package/types/tsdoc-metadata.json +11 -0
  108. package/dist/arm-digitaltwins.js +0 -2418
  109. package/dist/arm-digitaltwins.js.map +0 -1
  110. package/dist/arm-digitaltwins.min.js +0 -1
  111. package/dist/arm-digitaltwins.min.js.map +0 -1
  112. package/esm/azureDigitalTwinsManagementClient.d.ts +0 -28
  113. package/esm/azureDigitalTwinsManagementClient.d.ts.map +0 -1
  114. package/esm/azureDigitalTwinsManagementClient.js +0 -41
  115. package/esm/azureDigitalTwinsManagementClient.js.map +0 -1
  116. package/esm/azureDigitalTwinsManagementClientContext.d.ts +0 -22
  117. package/esm/azureDigitalTwinsManagementClientContext.d.ts.map +0 -1
  118. package/esm/azureDigitalTwinsManagementClientContext.js +0 -60
  119. package/esm/azureDigitalTwinsManagementClientContext.js.map +0 -1
  120. package/esm/models/digitalTwinsEndpointMappers.d.ts +0 -2
  121. package/esm/models/digitalTwinsEndpointMappers.d.ts.map +0 -1
  122. package/esm/models/digitalTwinsEndpointMappers.js +0 -9
  123. package/esm/models/digitalTwinsEndpointMappers.js.map +0 -1
  124. package/esm/models/digitalTwinsMappers.d.ts +0 -2
  125. package/esm/models/digitalTwinsMappers.d.ts.map +0 -1
  126. package/esm/models/digitalTwinsMappers.js +0 -9
  127. package/esm/models/digitalTwinsMappers.js.map +0 -1
  128. package/esm/models/index.d.ts +0 -1169
  129. package/esm/models/index.d.ts.map +0 -1
  130. package/esm/models/index.js.map +0 -1
  131. package/esm/models/mappers.d.ts +0 -42
  132. package/esm/models/mappers.d.ts.map +0 -1
  133. package/esm/models/mappers.js.map +0 -1
  134. package/esm/models/operationsMappers.d.ts +0 -2
  135. package/esm/models/operationsMappers.d.ts.map +0 -1
  136. package/esm/models/operationsMappers.js.map +0 -1
  137. package/esm/models/parameters.d.ts +0 -12
  138. package/esm/models/parameters.d.ts.map +0 -1
  139. package/esm/models/parameters.js +0 -132
  140. package/esm/models/parameters.js.map +0 -1
  141. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  142. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  143. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  144. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  145. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  146. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  147. package/esm/models/privateLinkResourcesMappers.js +0 -9
  148. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  149. package/esm/operations/digitalTwins.d.ts +0 -181
  150. package/esm/operations/digitalTwins.d.ts.map +0 -1
  151. package/esm/operations/digitalTwins.js +0 -383
  152. package/esm/operations/digitalTwins.js.map +0 -1
  153. package/esm/operations/digitalTwinsEndpoint.d.ts +0 -115
  154. package/esm/operations/digitalTwinsEndpoint.d.ts.map +0 -1
  155. package/esm/operations/digitalTwinsEndpoint.js +0 -242
  156. package/esm/operations/digitalTwinsEndpoint.js.map +0 -1
  157. package/esm/operations/index.d.ts.map +0 -1
  158. package/esm/operations/index.js.map +0 -1
  159. package/esm/operations/operations.d.ts +0 -46
  160. package/esm/operations/operations.d.ts.map +0 -1
  161. package/esm/operations/operations.js +0 -79
  162. package/esm/operations/operations.js.map +0 -1
  163. package/esm/operations/privateEndpointConnections.d.ts +0 -97
  164. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  165. package/esm/operations/privateEndpointConnections.js +0 -209
  166. package/esm/operations/privateEndpointConnections.js.map +0 -1
  167. package/esm/operations/privateLinkResources.d.ts +0 -58
  168. package/esm/operations/privateLinkResources.d.ts.map +0 -1
  169. package/esm/operations/privateLinkResources.js +0 -90
  170. package/esm/operations/privateLinkResources.js.map +0 -1
  171. package/src/azureDigitalTwinsManagementClientContext.ts +0 -67
  172. package/src/models/digitalTwinsEndpointMappers.ts +0 -31
  173. package/src/models/digitalTwinsMappers.ts +0 -35
  174. package/src/models/privateEndpointConnectionsMappers.ts +0 -31
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/models/index.ts","../src/models/mappers.ts","../src/models/parameters.ts","../src/lroImpl.ts","../src/operations/digitalTwins.ts","../src/operations/digitalTwinsEndpoint.ts","../src/operations/operations.ts","../src/operations/privateLinkResources.ts","../src/operations/privateEndpointConnections.ts","../src/azureDigitalTwinsManagementClient.ts"],"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 * as coreClient from \"@azure/core-client\";\n\nexport type DigitalTwinsEndpointResourcePropertiesUnion =\n | DigitalTwinsEndpointResourceProperties\n | ServiceBus\n | EventHub\n | EventGrid;\n\n/** The private endpoint connection of a Digital Twin. */\nexport interface PrivateEndpointConnection {\n /**\n * The resource identifier.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The resource name.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The resource type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n properties: PrivateEndpointConnectionProperties;\n}\n\n/** The properties of a private endpoint connection. */\nexport interface ConnectionProperties {\n /**\n * The provisioning state.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: ConnectionPropertiesProvisioningState;\n privateEndpoint?: ConnectionPropertiesPrivateEndpoint;\n /** The list of group ids for the private endpoint connection. */\n groupIds?: string[];\n privateLinkServiceConnectionState?: ConnectionPropertiesPrivateLinkServiceConnectionState;\n}\n\n/** The private endpoint property of a private endpoint connection. */\nexport interface PrivateEndpoint {\n /**\n * The resource identifier.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n}\n\n/** The current state of a private endpoint connection. */\nexport interface ConnectionState {\n /** The status of a private endpoint connection. */\n status: PrivateLinkServiceConnectionStatus;\n /** The description for the current state of a private endpoint connection. */\n description: string;\n /** Actions required for a private endpoint connection. */\n actionsRequired?: string;\n}\n\n/** The common properties of a DigitalTwinsInstance. */\nexport interface DigitalTwinsResource {\n /**\n * The resource identifier.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The resource name.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The resource type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /** The resource location. */\n location: string;\n /** The resource tags. */\n tags?: { [propertyName: string]: string };\n /** The managed identity for the DigitalTwinsInstance. */\n identity?: DigitalTwinsIdentity;\n}\n\n/** The managed identity for the DigitalTwinsInstance. */\nexport interface DigitalTwinsIdentity {\n /** The type of Managed Identity used by the DigitalTwinsInstance. Only SystemAssigned is supported. */\n type?: DigitalTwinsIdentityType;\n /**\n * The object id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-identity-principal-id header in the PUT request if the resource has a systemAssigned(implicit) identity\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly principalId?: string;\n /**\n * The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT request if the resource has a systemAssigned(implicit) identity\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantId?: string;\n}\n\n/** Error response. */\nexport interface ErrorResponse {\n /** Error description */\n error?: ErrorDefinition;\n}\n\n/** Error definition. */\nexport interface ErrorDefinition {\n /**\n * Service specific error code which serves as the substatus for the HTTP error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * Description of the error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * Internal error details.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: ErrorDefinition[];\n}\n\n/** The description of the DigitalTwins service. */\nexport interface DigitalTwinsPatchDescription {\n /** Instance patch properties */\n tags?: { [propertyName: string]: string };\n /** The managed identity for the DigitalTwinsInstance. */\n identity?: DigitalTwinsIdentity;\n /** Properties for the DigitalTwinsInstance. */\n properties?: DigitalTwinsPatchProperties;\n}\n\n/** The properties of a DigitalTwinsInstance. */\nexport interface DigitalTwinsPatchProperties {\n /** Public network access for the DigitalTwinsInstance. */\n publicNetworkAccess?: PublicNetworkAccess;\n}\n\n/** A list of DigitalTwinsInstance Endpoints with a next link. */\nexport interface DigitalTwinsEndpointResourceListResult {\n /** The link used to get the next page of DigitalTwinsInstance Endpoints. */\n nextLink?: string;\n /** A list of DigitalTwinsInstance Endpoints. */\n value?: DigitalTwinsEndpointResource[];\n}\n\n/** Properties related to Digital Twins Endpoint */\nexport interface DigitalTwinsEndpointResourceProperties {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n endpointType: \"ServiceBus\" | \"EventHub\" | \"EventGrid\";\n /**\n * The provisioning state.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: EndpointProvisioningState;\n /**\n * Time when the Endpoint was added to DigitalTwinsInstance.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly createdTime?: Date;\n /** Specifies the authentication type being used for connecting to the endpoint. */\n authenticationType?: AuthenticationType;\n /** Dead letter storage secret for key-based authentication. Will be obfuscated during read. */\n deadLetterSecret?: string;\n /** Dead letter storage URL for identity-based authentication. */\n deadLetterUri?: string;\n}\n\n/** Definition of a resource. */\nexport interface ExternalResource {\n /**\n * The resource identifier.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * Extension resource name.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The resource type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n}\n\n/** A list of DigitalTwins description objects with a next link. */\nexport interface DigitalTwinsDescriptionListResult {\n /** The link used to get the next page of DigitalTwins description objects. */\n nextLink?: string;\n /** A list of DigitalTwins description objects. */\n value?: DigitalTwinsDescription[];\n}\n\n/** A list of DigitalTwins service operations. It contains a list of operations and a URL link to get the next set of results. */\nexport interface OperationListResult {\n /** The link used to get the next page of DigitalTwins description objects. */\n nextLink?: string;\n /**\n * A list of DigitalTwins operations supported by the Microsoft.DigitalTwins resource provider.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: Operation[];\n}\n\n/** DigitalTwins service REST API operation */\nexport interface Operation {\n /**\n * Operation name: {provider}/{resource}/{read | write | action | delete}\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /** Operation properties display */\n display?: OperationDisplay;\n /**\n * The intended executor of the operation.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly origin?: string;\n /**\n * If the operation is a data action (for data plane rbac).\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly isDataAction?: boolean;\n}\n\n/** The object that represents the operation. */\nexport interface OperationDisplay {\n /**\n * Service provider: Microsoft DigitalTwins\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provider?: string;\n /**\n * Resource Type: DigitalTwinsInstances\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly resource?: string;\n /**\n * Name of the operation\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly operation?: string;\n /**\n * Friendly description for the operation,\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly description?: string;\n}\n\n/** The result returned from a database check name availability request. */\nexport interface CheckNameRequest {\n /** Resource name. */\n name: string;\n /** The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances. */\n type: \"Microsoft.DigitalTwins/digitalTwinsInstances\";\n}\n\n/** The result returned from a check name availability request. */\nexport interface CheckNameResult {\n /** Specifies a Boolean value that indicates if the name is available. */\n nameAvailable?: boolean;\n /** Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated. */\n message?: string;\n /** Message providing the reason why the given name is invalid. */\n reason?: Reason;\n}\n\n/** The available private link resources for a Digital Twin. */\nexport interface GroupIdInformationResponse {\n /** The list of available private link resources for a Digital Twin. */\n value?: GroupIdInformation[];\n}\n\n/** The group information for creating a private endpoint on Digital Twin. */\nexport interface GroupIdInformation {\n properties: GroupIdInformationProperties;\n /** The resource identifier. */\n id?: string;\n /**\n * The resource name.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The resource type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n}\n\n/** The properties for a group information object. */\nexport interface GroupIdInformationPropertiesAutoGenerated {\n /** The group id */\n groupId?: string;\n /** The required members for a specific group id. */\n requiredMembers?: string[];\n /** The required DNS zones for a specific group id. */\n requiredZoneNames?: string[];\n}\n\n/** The available private link connections for a Digital Twin. */\nexport interface PrivateEndpointConnectionsResponse {\n /** The list of available private link connections for a Digital Twin. */\n value?: PrivateEndpointConnection[];\n}\n\nexport type PrivateEndpointConnectionProperties = ConnectionProperties & {};\n\nexport type ConnectionPropertiesPrivateEndpoint = PrivateEndpoint & {};\n\nexport type ConnectionPropertiesPrivateLinkServiceConnectionState = ConnectionState & {};\n\n/** The description of the DigitalTwins service. */\nexport type DigitalTwinsDescription = DigitalTwinsResource & {\n /**\n * Time when DigitalTwinsInstance was created.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly createdTime?: Date;\n /**\n * Time when DigitalTwinsInstance was updated.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly lastUpdatedTime?: Date;\n /**\n * The provisioning state.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: ProvisioningState;\n /**\n * Api endpoint to work with DigitalTwinsInstance.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly hostName?: string;\n privateEndpointConnections?: PrivateEndpointConnection[];\n /** Public network access for the DigitalTwinsInstance. */\n publicNetworkAccess?: PublicNetworkAccess;\n};\n\n/** Properties related to ServiceBus. */\nexport type ServiceBus = DigitalTwinsEndpointResourceProperties & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n endpointType: \"ServiceBus\";\n /** PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. */\n primaryConnectionString?: string;\n /** SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. */\n secondaryConnectionString?: string;\n /** The URL of the ServiceBus namespace for identity-based authentication. It must include the protocol sb:// */\n endpointUri?: string;\n /** The ServiceBus Topic name for identity-based authentication */\n entityPath?: string;\n};\n\n/** Properties related to EventHub. */\nexport type EventHub = DigitalTwinsEndpointResourceProperties & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n endpointType: \"EventHub\";\n /** PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. */\n connectionStringPrimaryKey?: string;\n /** SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. */\n connectionStringSecondaryKey?: string;\n /** The URL of the EventHub namespace for identity-based authentication. It must include the protocol sb:// */\n endpointUri?: string;\n /** The EventHub name in the EventHub namespace for identity-based authentication. */\n entityPath?: string;\n};\n\n/** Properties related to EventGrid. */\nexport type EventGrid = DigitalTwinsEndpointResourceProperties & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n endpointType: \"EventGrid\";\n /** EventGrid Topic Endpoint */\n topicEndpoint: string;\n /** EventGrid secondary accesskey. Will be obfuscated during read. */\n accessKey1: string | null;\n /** EventGrid secondary accesskey. Will be obfuscated during read. */\n accessKey2?: string;\n};\n\n/** DigitalTwinsInstance endpoint resource. */\nexport type DigitalTwinsEndpointResource = ExternalResource & {\n /** DigitalTwinsInstance endpoint resource properties. */\n properties: DigitalTwinsEndpointResourcePropertiesUnion;\n};\n\nexport type GroupIdInformationProperties = GroupIdInformationPropertiesAutoGenerated & {};\n\n/** Known values of {@link ProvisioningState} that the service accepts. */\nexport enum KnownProvisioningState {\n Provisioning = \"Provisioning\",\n Deleting = \"Deleting\",\n Updating = \"Updating\",\n Succeeded = \"Succeeded\",\n Failed = \"Failed\",\n Canceled = \"Canceled\",\n Deleted = \"Deleted\",\n Warning = \"Warning\",\n Suspending = \"Suspending\",\n Restoring = \"Restoring\",\n Moving = \"Moving\"\n}\n\n/**\n * Defines values for ProvisioningState. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Provisioning** \\\n * **Deleting** \\\n * **Updating** \\\n * **Succeeded** \\\n * **Failed** \\\n * **Canceled** \\\n * **Deleted** \\\n * **Warning** \\\n * **Suspending** \\\n * **Restoring** \\\n * **Moving**\n */\nexport type ProvisioningState = string;\n\n/** Known values of {@link ConnectionPropertiesProvisioningState} that the service accepts. */\nexport enum KnownConnectionPropertiesProvisioningState {\n Pending = \"Pending\",\n Approved = \"Approved\",\n Rejected = \"Rejected\",\n Disconnected = \"Disconnected\"\n}\n\n/**\n * Defines values for ConnectionPropertiesProvisioningState. \\\n * {@link KnownConnectionPropertiesProvisioningState} can be used interchangeably with ConnectionPropertiesProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Pending** \\\n * **Approved** \\\n * **Rejected** \\\n * **Disconnected**\n */\nexport type ConnectionPropertiesProvisioningState = string;\n\n/** Known values of {@link PrivateLinkServiceConnectionStatus} that the service accepts. */\nexport enum KnownPrivateLinkServiceConnectionStatus {\n Pending = \"Pending\",\n Approved = \"Approved\",\n Rejected = \"Rejected\",\n Disconnected = \"Disconnected\"\n}\n\n/**\n * Defines values for PrivateLinkServiceConnectionStatus. \\\n * {@link KnownPrivateLinkServiceConnectionStatus} can be used interchangeably with PrivateLinkServiceConnectionStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Pending** \\\n * **Approved** \\\n * **Rejected** \\\n * **Disconnected**\n */\nexport type PrivateLinkServiceConnectionStatus = string;\n\n/** Known values of {@link PublicNetworkAccess} that the service accepts. */\nexport enum KnownPublicNetworkAccess {\n Enabled = \"Enabled\",\n Disabled = \"Disabled\"\n}\n\n/**\n * Defines values for PublicNetworkAccess. \\\n * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Enabled** \\\n * **Disabled**\n */\nexport type PublicNetworkAccess = string;\n\n/** Known values of {@link DigitalTwinsIdentityType} that the service accepts. */\nexport enum KnownDigitalTwinsIdentityType {\n None = \"None\",\n SystemAssigned = \"SystemAssigned\"\n}\n\n/**\n * Defines values for DigitalTwinsIdentityType. \\\n * {@link KnownDigitalTwinsIdentityType} can be used interchangeably with DigitalTwinsIdentityType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None** \\\n * **SystemAssigned**\n */\nexport type DigitalTwinsIdentityType = string;\n\n/** Known values of {@link EndpointType} that the service accepts. */\nexport enum KnownEndpointType {\n EventHub = \"EventHub\",\n EventGrid = \"EventGrid\",\n ServiceBus = \"ServiceBus\"\n}\n\n/**\n * Defines values for EndpointType. \\\n * {@link KnownEndpointType} can be used interchangeably with EndpointType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **EventHub** \\\n * **EventGrid** \\\n * **ServiceBus**\n */\nexport type EndpointType = string;\n\n/** Known values of {@link EndpointProvisioningState} that the service accepts. */\nexport enum KnownEndpointProvisioningState {\n Provisioning = \"Provisioning\",\n Deleting = \"Deleting\",\n Succeeded = \"Succeeded\",\n Failed = \"Failed\",\n Canceled = \"Canceled\",\n Deleted = \"Deleted\",\n Warning = \"Warning\",\n Suspending = \"Suspending\",\n Restoring = \"Restoring\",\n Moving = \"Moving\",\n Disabled = \"Disabled\"\n}\n\n/**\n * Defines values for EndpointProvisioningState. \\\n * {@link KnownEndpointProvisioningState} can be used interchangeably with EndpointProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Provisioning** \\\n * **Deleting** \\\n * **Succeeded** \\\n * **Failed** \\\n * **Canceled** \\\n * **Deleted** \\\n * **Warning** \\\n * **Suspending** \\\n * **Restoring** \\\n * **Moving** \\\n * **Disabled**\n */\nexport type EndpointProvisioningState = string;\n\n/** Known values of {@link AuthenticationType} that the service accepts. */\nexport enum KnownAuthenticationType {\n KeyBased = \"KeyBased\",\n IdentityBased = \"IdentityBased\"\n}\n\n/**\n * Defines values for AuthenticationType. \\\n * {@link KnownAuthenticationType} can be used interchangeably with AuthenticationType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **KeyBased** \\\n * **IdentityBased**\n */\nexport type AuthenticationType = string;\n\n/** Known values of {@link Reason} that the service accepts. */\nexport enum KnownReason {\n Invalid = \"Invalid\",\n AlreadyExists = \"AlreadyExists\"\n}\n\n/**\n * Defines values for Reason. \\\n * {@link KnownReason} can be used interchangeably with Reason,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Invalid** \\\n * **AlreadyExists**\n */\nexport type Reason = string;\n\n/** Optional parameters. */\nexport interface DigitalTwinsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type DigitalTwinsGetResponse = DigitalTwinsDescription;\n\n/** Optional parameters. */\nexport interface DigitalTwinsCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type DigitalTwinsCreateOrUpdateResponse = DigitalTwinsDescription;\n\n/** Optional parameters. */\nexport interface DigitalTwinsUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the update operation. */\nexport type DigitalTwinsUpdateResponse = DigitalTwinsDescription;\n\n/** Optional parameters. */\nexport interface DigitalTwinsDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the delete operation. */\nexport type DigitalTwinsDeleteResponse = DigitalTwinsDescription;\n\n/** Optional parameters. */\nexport interface DigitalTwinsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type DigitalTwinsListResponse = DigitalTwinsDescriptionListResult;\n\n/** Optional parameters. */\nexport interface DigitalTwinsListByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type DigitalTwinsListByResourceGroupResponse = DigitalTwinsDescriptionListResult;\n\n/** Optional parameters. */\nexport interface DigitalTwinsCheckNameAvailabilityOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the checkNameAvailability operation. */\nexport type DigitalTwinsCheckNameAvailabilityResponse = CheckNameResult;\n\n/** Optional parameters. */\nexport interface DigitalTwinsListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type DigitalTwinsListNextResponse = DigitalTwinsDescriptionListResult;\n\n/** Optional parameters. */\nexport interface DigitalTwinsListByResourceGroupNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNext operation. */\nexport type DigitalTwinsListByResourceGroupNextResponse = DigitalTwinsDescriptionListResult;\n\n/** Optional parameters. */\nexport interface DigitalTwinsEndpointListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type DigitalTwinsEndpointListResponse = DigitalTwinsEndpointResourceListResult;\n\n/** Optional parameters. */\nexport interface DigitalTwinsEndpointGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type DigitalTwinsEndpointGetResponse = DigitalTwinsEndpointResource;\n\n/** Optional parameters. */\nexport interface DigitalTwinsEndpointCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type DigitalTwinsEndpointCreateOrUpdateResponse = DigitalTwinsEndpointResource;\n\n/** Optional parameters. */\nexport interface DigitalTwinsEndpointDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the delete operation. */\nexport type DigitalTwinsEndpointDeleteResponse = DigitalTwinsEndpointResource;\n\n/** Optional parameters. */\nexport interface DigitalTwinsEndpointListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type DigitalTwinsEndpointListNextResponse = DigitalTwinsEndpointResourceListResult;\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type OperationsListResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface OperationsListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type OperationsListNextResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface PrivateLinkResourcesListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type PrivateLinkResourcesListResponse = GroupIdInformationResponse;\n\n/** Optional parameters. */\nexport interface PrivateLinkResourcesGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type PrivateLinkResourcesGetResponse = GroupIdInformation;\n\n/** Optional parameters. */\nexport interface PrivateEndpointConnectionsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionsResponse;\n\n/** Optional parameters. */\nexport interface PrivateEndpointConnectionsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection;\n\n/** Optional parameters. */\nexport interface PrivateEndpointConnectionsDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection;\n\n/** Optional parameters. */\nexport interface AzureDigitalTwinsManagementClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n","/*\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 * as coreClient from \"@azure/core-client\";\n\nexport const PrivateEndpointConnection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PrivateEndpointConnection\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n constraints: {\n Pattern: new RegExp(\"^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$\")\n },\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"PrivateEndpointConnectionProperties\"\n }\n }\n }\n }\n};\n\nexport const ConnectionProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConnectionProperties\",\n modelProperties: {\n provisioningState: {\n serializedName: \"provisioningState\",\n readOnly: true,\n nullable: true,\n type: {\n name: \"String\"\n }\n },\n privateEndpoint: {\n serializedName: \"privateEndpoint\",\n type: {\n name: \"Composite\",\n className: \"ConnectionPropertiesPrivateEndpoint\"\n }\n },\n groupIds: {\n serializedName: \"groupIds\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n privateLinkServiceConnectionState: {\n serializedName: \"privateLinkServiceConnectionState\",\n type: {\n name: \"Composite\",\n className: \"ConnectionPropertiesPrivateLinkServiceConnectionState\"\n }\n }\n }\n }\n};\n\nexport const PrivateEndpoint: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PrivateEndpoint\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ConnectionState: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConnectionState\",\n modelProperties: {\n status: {\n serializedName: \"status\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n actionsRequired: {\n serializedName: \"actionsRequired\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsResource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n constraints: {\n Pattern: new RegExp(\"^(?!-)[A-Za-z0-9-]{3,63}(?<!-)$\")\n },\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n nullable: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n identity: {\n serializedName: \"identity\",\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsIdentity\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsIdentity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsIdentity\",\n modelProperties: {\n type: {\n serializedName: \"type\",\n type: {\n name: \"String\"\n }\n },\n principalId: {\n serializedName: \"principalId\",\n readOnly: true,\n nullable: true,\n type: {\n name: \"String\"\n }\n },\n tenantId: {\n serializedName: \"tenantId\",\n readOnly: true,\n nullable: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorDefinition\"\n }\n }\n }\n }\n};\n\nexport const ErrorDefinition: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorDefinition\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n nullable: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorDefinition\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsPatchDescription: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsPatchDescription\",\n modelProperties: {\n tags: {\n serializedName: \"tags\",\n nullable: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n identity: {\n serializedName: \"identity\",\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsIdentity\"\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsPatchProperties\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsPatchProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsPatchProperties\",\n modelProperties: {\n publicNetworkAccess: {\n serializedName: \"publicNetworkAccess\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsEndpointResourceListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsEndpointResourceListResult\",\n modelProperties: {\n nextLink: {\n serializedName: \"nextLink\",\n nullable: true,\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsEndpointResource\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsEndpointResourceProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsEndpointResourceProperties\",\n uberParent: \"DigitalTwinsEndpointResourceProperties\",\n polymorphicDiscriminator: {\n serializedName: \"endpointType\",\n clientName: \"endpointType\"\n },\n modelProperties: {\n endpointType: {\n serializedName: \"endpointType\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n provisioningState: {\n serializedName: \"provisioningState\",\n readOnly: true,\n nullable: true,\n type: {\n name: \"String\"\n }\n },\n createdTime: {\n serializedName: \"createdTime\",\n readOnly: true,\n nullable: true,\n type: {\n name: \"DateTime\"\n }\n },\n authenticationType: {\n serializedName: \"authenticationType\",\n type: {\n name: \"String\"\n }\n },\n deadLetterSecret: {\n serializedName: \"deadLetterSecret\",\n nullable: true,\n type: {\n name: \"String\"\n }\n },\n deadLetterUri: {\n serializedName: \"deadLetterUri\",\n nullable: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ExternalResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ExternalResource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n constraints: {\n Pattern: new RegExp(\"^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$\")\n },\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsDescriptionListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsDescriptionListResult\",\n modelProperties: {\n nextLink: {\n serializedName: \"nextLink\",\n nullable: true,\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsDescription\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n nextLink: {\n serializedName: \"nextLink\",\n nullable: true,\n type: {\n name: \"String\"\n }\n },\n value: {\n serializedName: \"value\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n },\n origin: {\n serializedName: \"origin\",\n readOnly: true,\n nullable: true,\n type: {\n name: \"String\"\n }\n },\n isDataAction: {\n serializedName: \"isDataAction\",\n readOnly: true,\n type: {\n name: \"Boolean\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CheckNameRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CheckNameRequest\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n defaultValue: \"Microsoft.DigitalTwins/digitalTwinsInstances\",\n isConstant: true,\n serializedName: \"type\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const CheckNameResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CheckNameResult\",\n modelProperties: {\n nameAvailable: {\n serializedName: \"nameAvailable\",\n type: {\n name: \"Boolean\"\n }\n },\n message: {\n serializedName: \"message\",\n nullable: true,\n type: {\n name: \"String\"\n }\n },\n reason: {\n serializedName: \"reason\",\n nullable: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const GroupIdInformationResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"GroupIdInformationResponse\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"GroupIdInformation\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const GroupIdInformation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"GroupIdInformation\",\n modelProperties: {\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"GroupIdInformationProperties\"\n }\n },\n id: {\n serializedName: \"id\",\n type: {\n name: \"String\"\n }\n },\n name: {\n constraints: {\n Pattern: new RegExp(\"^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$\")\n },\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const GroupIdInformationPropertiesAutoGenerated: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"GroupIdInformationPropertiesAutoGenerated\",\n modelProperties: {\n groupId: {\n serializedName: \"groupId\",\n type: {\n name: \"String\"\n }\n },\n requiredMembers: {\n serializedName: \"requiredMembers\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n requiredZoneNames: {\n serializedName: \"requiredZoneNames\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const PrivateEndpointConnectionsResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PrivateEndpointConnectionsResponse\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"PrivateEndpointConnection\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PrivateEndpointConnectionProperties\",\n modelProperties: {\n ...ConnectionProperties.type.modelProperties\n }\n }\n};\n\nexport const ConnectionPropertiesPrivateEndpoint: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConnectionPropertiesPrivateEndpoint\",\n modelProperties: {\n ...PrivateEndpoint.type.modelProperties\n }\n }\n};\n\nexport const ConnectionPropertiesPrivateLinkServiceConnectionState: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConnectionPropertiesPrivateLinkServiceConnectionState\",\n modelProperties: {\n ...ConnectionState.type.modelProperties\n }\n }\n};\n\nexport const DigitalTwinsDescription: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsDescription\",\n modelProperties: {\n ...DigitalTwinsResource.type.modelProperties,\n createdTime: {\n serializedName: \"properties.createdTime\",\n readOnly: true,\n type: {\n name: \"DateTime\"\n }\n },\n lastUpdatedTime: {\n serializedName: \"properties.lastUpdatedTime\",\n readOnly: true,\n type: {\n name: \"DateTime\"\n }\n },\n provisioningState: {\n serializedName: \"properties.provisioningState\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n hostName: {\n serializedName: \"properties.hostName\",\n readOnly: true,\n nullable: true,\n type: {\n name: \"String\"\n }\n },\n privateEndpointConnections: {\n serializedName: \"properties.privateEndpointConnections\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"PrivateEndpointConnection\"\n }\n }\n }\n },\n publicNetworkAccess: {\n serializedName: \"properties.publicNetworkAccess\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ServiceBus: coreClient.CompositeMapper = {\n serializedName: \"ServiceBus\",\n type: {\n name: \"Composite\",\n className: \"ServiceBus\",\n uberParent: \"DigitalTwinsEndpointResourceProperties\",\n polymorphicDiscriminator:\n DigitalTwinsEndpointResourceProperties.type.polymorphicDiscriminator,\n modelProperties: {\n ...DigitalTwinsEndpointResourceProperties.type.modelProperties,\n primaryConnectionString: {\n serializedName: \"primaryConnectionString\",\n nullable: true,\n type: {\n name: \"String\"\n }\n },\n secondaryConnectionString: {\n serializedName: \"secondaryConnectionString\",\n nullable: true,\n type: {\n name: \"String\"\n }\n },\n endpointUri: {\n serializedName: \"endpointUri\",\n nullable: true,\n type: {\n name: \"String\"\n }\n },\n entityPath: {\n serializedName: \"entityPath\",\n nullable: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const EventHub: coreClient.CompositeMapper = {\n serializedName: \"EventHub\",\n type: {\n name: \"Composite\",\n className: \"EventHub\",\n uberParent: \"DigitalTwinsEndpointResourceProperties\",\n polymorphicDiscriminator:\n DigitalTwinsEndpointResourceProperties.type.polymorphicDiscriminator,\n modelProperties: {\n ...DigitalTwinsEndpointResourceProperties.type.modelProperties,\n connectionStringPrimaryKey: {\n serializedName: \"connectionStringPrimaryKey\",\n nullable: true,\n type: {\n name: \"String\"\n }\n },\n connectionStringSecondaryKey: {\n serializedName: \"connectionStringSecondaryKey\",\n nullable: true,\n type: {\n name: \"String\"\n }\n },\n endpointUri: {\n serializedName: \"endpointUri\",\n nullable: true,\n type: {\n name: \"String\"\n }\n },\n entityPath: {\n serializedName: \"entityPath\",\n nullable: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const EventGrid: coreClient.CompositeMapper = {\n serializedName: \"EventGrid\",\n type: {\n name: \"Composite\",\n className: \"EventGrid\",\n uberParent: \"DigitalTwinsEndpointResourceProperties\",\n polymorphicDiscriminator:\n DigitalTwinsEndpointResourceProperties.type.polymorphicDiscriminator,\n modelProperties: {\n ...DigitalTwinsEndpointResourceProperties.type.modelProperties,\n topicEndpoint: {\n serializedName: \"TopicEndpoint\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n accessKey1: {\n serializedName: \"accessKey1\",\n required: true,\n nullable: true,\n type: {\n name: \"String\"\n }\n },\n accessKey2: {\n serializedName: \"accessKey2\",\n nullable: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const DigitalTwinsEndpointResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsEndpointResource\",\n modelProperties: {\n ...ExternalResource.type.modelProperties,\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"DigitalTwinsEndpointResourceProperties\"\n }\n }\n }\n }\n};\n\nexport const GroupIdInformationProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"GroupIdInformationProperties\",\n modelProperties: {\n ...GroupIdInformationPropertiesAutoGenerated.type.modelProperties\n }\n }\n};\n\nexport let discriminators = {\n DigitalTwinsEndpointResourceProperties: DigitalTwinsEndpointResourceProperties,\n \"DigitalTwinsEndpointResourceProperties.ServiceBus\": ServiceBus,\n \"DigitalTwinsEndpointResourceProperties.EventHub\": EventHub,\n \"DigitalTwinsEndpointResourceProperties.EventGrid\": EventGrid\n};\n","/*\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 {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport {\n DigitalTwinsDescription as DigitalTwinsDescriptionMapper,\n DigitalTwinsPatchDescription as DigitalTwinsPatchDescriptionMapper,\n CheckNameRequest as CheckNameRequestMapper,\n DigitalTwinsEndpointResource as DigitalTwinsEndpointResourceMapper,\n PrivateEndpointConnection as PrivateEndpointConnectionMapper\n} from \"../models/mappers\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2020-12-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n constraints: {\n MaxLength: 90,\n MinLength: 1\n },\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceName: OperationURLParameter = {\n parameterPath: \"resourceName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^(?!-)[A-Za-z0-9-]{3,63}(?<!-)$\"),\n MaxLength: 63,\n MinLength: 3\n },\n serializedName: \"resourceName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const digitalTwinsCreate: OperationParameter = {\n parameterPath: \"digitalTwinsCreate\",\n mapper: DigitalTwinsDescriptionMapper\n};\n\nexport const digitalTwinsPatchDescription: OperationParameter = {\n parameterPath: \"digitalTwinsPatchDescription\",\n mapper: DigitalTwinsPatchDescriptionMapper\n};\n\nexport const digitalTwinsInstanceCheckName: OperationParameter = {\n parameterPath: \"digitalTwinsInstanceCheckName\",\n mapper: CheckNameRequestMapper\n};\n\nexport const location: OperationURLParameter = {\n parameterPath: \"location\",\n mapper: {\n constraints: {\n MinLength: 3\n },\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const endpointName: OperationURLParameter = {\n parameterPath: \"endpointName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$\"),\n MaxLength: 49,\n MinLength: 2\n },\n serializedName: \"endpointName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const endpointDescription: OperationParameter = {\n parameterPath: \"endpointDescription\",\n mapper: DigitalTwinsEndpointResourceMapper\n};\n\nexport const resourceId: OperationURLParameter = {\n parameterPath: \"resourceId\",\n mapper: {\n serializedName: \"resourceId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const privateEndpointConnectionName: OperationURLParameter = {\n parameterPath: \"privateEndpointConnectionName\",\n mapper: {\n serializedName: \"privateEndpointConnectionName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const privateEndpointConnection: OperationParameter = {\n parameterPath: \"privateEndpointConnection\",\n mapper: PrivateEndpointConnectionMapper\n};\n","/*\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 { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n","/*\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 } from \"@azure/core-paging\";\nimport { DigitalTwins } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { AzureDigitalTwinsManagementClient } from \"../azureDigitalTwinsManagementClient\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl\";\nimport {\n DigitalTwinsDescription,\n DigitalTwinsListNextOptionalParams,\n DigitalTwinsListOptionalParams,\n DigitalTwinsListByResourceGroupNextOptionalParams,\n DigitalTwinsListByResourceGroupOptionalParams,\n DigitalTwinsGetOptionalParams,\n DigitalTwinsGetResponse,\n DigitalTwinsCreateOrUpdateOptionalParams,\n DigitalTwinsCreateOrUpdateResponse,\n DigitalTwinsPatchDescription,\n DigitalTwinsUpdateOptionalParams,\n DigitalTwinsUpdateResponse,\n DigitalTwinsDeleteOptionalParams,\n DigitalTwinsDeleteResponse,\n DigitalTwinsListResponse,\n DigitalTwinsListByResourceGroupResponse,\n CheckNameRequest,\n DigitalTwinsCheckNameAvailabilityOptionalParams,\n DigitalTwinsCheckNameAvailabilityResponse,\n DigitalTwinsListNextResponse,\n DigitalTwinsListByResourceGroupNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DigitalTwins operations. */\nexport class DigitalTwinsImpl implements DigitalTwins {\n private readonly client: AzureDigitalTwinsManagementClient;\n\n /**\n * Initialize a new instance of the class DigitalTwins class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsManagementClient) {\n this.client = client;\n }\n\n /**\n * Get all the DigitalTwinsInstances in a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: DigitalTwinsListOptionalParams\n ): PagedAsyncIterableIterator<DigitalTwinsDescription> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: DigitalTwinsListOptionalParams\n ): AsyncIterableIterator<DigitalTwinsDescription[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n options?: DigitalTwinsListOptionalParams\n ): AsyncIterableIterator<DigitalTwinsDescription> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get all the DigitalTwinsInstances in a resource group.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: DigitalTwinsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<DigitalTwinsDescription> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listByResourceGroupPagingPage(resourceGroupName, options);\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: DigitalTwinsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<DigitalTwinsDescription[]> {\n let result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: DigitalTwinsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<DigitalTwinsDescription> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get DigitalTwinsInstances resource.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n options?: DigitalTwinsGetOptionalParams\n ): Promise<DigitalTwinsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is\n * to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified\n * values in a new body to update the DigitalTwinsInstance.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param digitalTwinsCreate The DigitalTwinsInstance and security metadata.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n digitalTwinsCreate: DigitalTwinsDescription,\n options?: DigitalTwinsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<DigitalTwinsCreateOrUpdateResponse>,\n DigitalTwinsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<DigitalTwinsCreateOrUpdateResponse> => {\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 { resourceGroupName, resourceName, digitalTwinsCreate, options },\n createOrUpdateOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n }\n\n /**\n * Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is\n * to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified\n * values in a new body to update the DigitalTwinsInstance.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param digitalTwinsCreate The DigitalTwinsInstance and security metadata.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n resourceName: string,\n digitalTwinsCreate: DigitalTwinsDescription,\n options?: DigitalTwinsCreateOrUpdateOptionalParams\n ): Promise<DigitalTwinsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n resourceName,\n digitalTwinsCreate,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update metadata of DigitalTwinsInstance.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param digitalTwinsPatchDescription The DigitalTwinsInstance and security metadata.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n resourceName: string,\n digitalTwinsPatchDescription: DigitalTwinsPatchDescription,\n options?: DigitalTwinsUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<DigitalTwinsUpdateResponse>,\n DigitalTwinsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<DigitalTwinsUpdateResponse> => {\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 {\n resourceGroupName,\n resourceName,\n digitalTwinsPatchDescription,\n options\n },\n updateOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n }\n\n /**\n * Update metadata of DigitalTwinsInstance.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param digitalTwinsPatchDescription The DigitalTwinsInstance and security metadata.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n resourceName: string,\n digitalTwinsPatchDescription: DigitalTwinsPatchDescription,\n options?: DigitalTwinsUpdateOptionalParams\n ): Promise<DigitalTwinsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n resourceName,\n digitalTwinsPatchDescription,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a DigitalTwinsInstance.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n resourceName: string,\n options?: DigitalTwinsDeleteOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<DigitalTwinsDeleteResponse>,\n DigitalTwinsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<DigitalTwinsDeleteResponse> => {\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 { resourceGroupName, resourceName, options },\n deleteOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n }\n\n /**\n * Delete a DigitalTwinsInstance.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n resourceName: string,\n options?: DigitalTwinsDeleteOptionalParams\n ): Promise<DigitalTwinsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n resourceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get all the DigitalTwinsInstances in a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: DigitalTwinsListOptionalParams\n ): Promise<DigitalTwinsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Get all the DigitalTwinsInstances in a resource group.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: DigitalTwinsListByResourceGroupOptionalParams\n ): Promise<DigitalTwinsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Check if a DigitalTwinsInstance name is available.\n * @param location Location of DigitalTwinsInstance.\n * @param digitalTwinsInstanceCheckName Set the name parameter in the DigitalTwinsInstanceCheckName\n * structure to the name of the DigitalTwinsInstance to check.\n * @param options The options parameters.\n */\n checkNameAvailability(\n location: string,\n digitalTwinsInstanceCheckName: CheckNameRequest,\n options?: DigitalTwinsCheckNameAvailabilityOptionalParams\n ): Promise<DigitalTwinsCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n { location, digitalTwinsInstanceCheckName, options },\n checkNameAvailabilityOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: DigitalTwinsListNextOptionalParams\n ): Promise<DigitalTwinsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: DigitalTwinsListByResourceGroupNextOptionalParams\n ): Promise<DigitalTwinsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DigitalTwinsDescription\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.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DigitalTwinsDescription\n },\n 201: {\n bodyMapper: Mappers.DigitalTwinsDescription\n },\n 202: {\n bodyMapper: Mappers.DigitalTwinsDescription\n },\n 204: {\n bodyMapper: Mappers.DigitalTwinsDescription\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.digitalTwinsCreate,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.DigitalTwinsDescription\n },\n 201: {\n bodyMapper: Mappers.DigitalTwinsDescription\n },\n 202: {\n bodyMapper: Mappers.DigitalTwinsDescription\n },\n 204: {\n bodyMapper: Mappers.DigitalTwinsDescription\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.digitalTwinsPatchDescription,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.DigitalTwinsDescription\n },\n 201: {\n bodyMapper: Mappers.DigitalTwinsDescription\n },\n 202: {\n bodyMapper: Mappers.DigitalTwinsDescription\n },\n 204: {\n bodyMapper: Mappers.DigitalTwinsDescription\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.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/digitalTwinsInstances\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DigitalTwinsDescriptionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DigitalTwinsDescriptionListResult\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 ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/locations/{location}/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.digitalTwinsInstanceCheckName,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DigitalTwinsDescriptionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DigitalTwinsDescriptionListResult\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.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\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 } from \"@azure/core-paging\";\nimport { DigitalTwinsEndpoint } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { AzureDigitalTwinsManagementClient } from \"../azureDigitalTwinsManagementClient\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl\";\nimport {\n DigitalTwinsEndpointResource,\n DigitalTwinsEndpointListNextOptionalParams,\n DigitalTwinsEndpointListOptionalParams,\n DigitalTwinsEndpointListResponse,\n DigitalTwinsEndpointGetOptionalParams,\n DigitalTwinsEndpointGetResponse,\n DigitalTwinsEndpointCreateOrUpdateOptionalParams,\n DigitalTwinsEndpointCreateOrUpdateResponse,\n DigitalTwinsEndpointDeleteOptionalParams,\n DigitalTwinsEndpointDeleteResponse,\n DigitalTwinsEndpointListNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DigitalTwinsEndpoint operations. */\nexport class DigitalTwinsEndpointImpl implements DigitalTwinsEndpoint {\n private readonly client: AzureDigitalTwinsManagementClient;\n\n /**\n * Initialize a new instance of the class DigitalTwinsEndpoint class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsManagementClient) {\n this.client = client;\n }\n\n /**\n * Get DigitalTwinsInstance Endpoints.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n resourceName: string,\n options?: DigitalTwinsEndpointListOptionalParams\n ): PagedAsyncIterableIterator<DigitalTwinsEndpointResource> {\n const iter = this.listPagingAll(resourceGroupName, resourceName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(resourceGroupName, resourceName, options);\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: DigitalTwinsEndpointListOptionalParams\n ): AsyncIterableIterator<DigitalTwinsEndpointResource[]> {\n let result = await this._list(resourceGroupName, resourceName, options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n resourceName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: DigitalTwinsEndpointListOptionalParams\n ): AsyncIterableIterator<DigitalTwinsEndpointResource> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get DigitalTwinsInstance Endpoints.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n resourceName: string,\n options?: DigitalTwinsEndpointListOptionalParams\n ): Promise<DigitalTwinsEndpointListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get DigitalTwinsInstances Endpoint.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param endpointName Name of Endpoint Resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n endpointName: string,\n options?: DigitalTwinsEndpointGetOptionalParams\n ): Promise<DigitalTwinsEndpointGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, endpointName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create or update DigitalTwinsInstance endpoint.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param endpointName Name of Endpoint Resource.\n * @param endpointDescription The DigitalTwinsInstance endpoint metadata and security metadata.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n endpointName: string,\n endpointDescription: DigitalTwinsEndpointResource,\n options?: DigitalTwinsEndpointCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<DigitalTwinsEndpointCreateOrUpdateResponse>,\n DigitalTwinsEndpointCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<DigitalTwinsEndpointCreateOrUpdateResponse> => {\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 {\n resourceGroupName,\n resourceName,\n endpointName,\n endpointDescription,\n options\n },\n createOrUpdateOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n }\n\n /**\n * Create or update DigitalTwinsInstance endpoint.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param endpointName Name of Endpoint Resource.\n * @param endpointDescription The DigitalTwinsInstance endpoint metadata and security metadata.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n resourceName: string,\n endpointName: string,\n endpointDescription: DigitalTwinsEndpointResource,\n options?: DigitalTwinsEndpointCreateOrUpdateOptionalParams\n ): Promise<DigitalTwinsEndpointCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n resourceName,\n endpointName,\n endpointDescription,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a DigitalTwinsInstance endpoint.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param endpointName Name of Endpoint Resource.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n resourceName: string,\n endpointName: string,\n options?: DigitalTwinsEndpointDeleteOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<DigitalTwinsEndpointDeleteResponse>,\n DigitalTwinsEndpointDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<DigitalTwinsEndpointDeleteResponse> => {\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 { resourceGroupName, resourceName, endpointName, options },\n deleteOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n }\n\n /**\n * Delete a DigitalTwinsInstance endpoint.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param endpointName Name of Endpoint Resource.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n resourceName: string,\n endpointName: string,\n options?: DigitalTwinsEndpointDeleteOptionalParams\n ): Promise<DigitalTwinsEndpointDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n resourceName,\n endpointName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n resourceName: string,\n nextLink: string,\n options?: DigitalTwinsEndpointListNextOptionalParams\n ): Promise<DigitalTwinsEndpointListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DigitalTwinsEndpointResourceListResult\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.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DigitalTwinsEndpointResource\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.resourceName,\n Parameters.endpointName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DigitalTwinsEndpointResource\n },\n 201: {\n bodyMapper: Mappers.DigitalTwinsEndpointResource\n },\n 202: {\n bodyMapper: Mappers.DigitalTwinsEndpointResource\n },\n 204: {\n bodyMapper: Mappers.DigitalTwinsEndpointResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.endpointDescription,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.endpointName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.DigitalTwinsEndpointResource\n },\n 201: {\n bodyMapper: Mappers.DigitalTwinsEndpointResource\n },\n 202: {\n bodyMapper: Mappers.DigitalTwinsEndpointResource\n },\n 204: {\n bodyMapper: Mappers.DigitalTwinsEndpointResource\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.resourceName,\n Parameters.endpointName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DigitalTwinsEndpointResourceListResult\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.resourceName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\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 } from \"@azure/core-paging\";\nimport { Operations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { AzureDigitalTwinsManagementClient } from \"../azureDigitalTwinsManagementClient\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: AzureDigitalTwinsManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available DigitalTwins service REST API operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available DigitalTwins service REST API operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.DigitalTwins/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\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 { PrivateLinkResources } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { AzureDigitalTwinsManagementClient } from \"../azureDigitalTwinsManagementClient\";\nimport {\n PrivateLinkResourcesListOptionalParams,\n PrivateLinkResourcesListResponse,\n PrivateLinkResourcesGetOptionalParams,\n PrivateLinkResourcesGetResponse\n} from \"../models\";\n\n/** Class containing PrivateLinkResources operations. */\nexport class PrivateLinkResourcesImpl implements PrivateLinkResources {\n private readonly client: AzureDigitalTwinsManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsManagementClient) {\n this.client = client;\n }\n\n /**\n * List private link resources for given Digital Twin.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateLinkResourcesListOptionalParams\n ): Promise<PrivateLinkResourcesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get the specified private link resource for the given Digital Twin.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param resourceId The name of the private link resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n resourceId: string,\n options?: PrivateLinkResourcesGetOptionalParams\n ): Promise<PrivateLinkResourcesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, resourceId, options },\n getOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupIdInformationResponse\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.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateLinkResources/{resourceId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupIdInformation\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.resourceName,\n Parameters.resourceId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\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 { PrivateEndpointConnections } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { AzureDigitalTwinsManagementClient } from \"../azureDigitalTwinsManagementClient\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl\";\nimport {\n PrivateEndpointConnectionsListOptionalParams,\n PrivateEndpointConnectionsListResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n PrivateEndpointConnection,\n PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n PrivateEndpointConnectionsCreateOrUpdateResponse\n} from \"../models\";\n\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections {\n private readonly client: AzureDigitalTwinsManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsManagementClient) {\n this.client = client;\n }\n\n /**\n * List private endpoint connection properties.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListOptionalParams\n ): Promise<PrivateEndpointConnectionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get private endpoint connection properties for the given private endpoint.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Delete private endpoint connection with the specified name.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams\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 {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options\n },\n deleteOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n }\n\n /**\n * Delete private endpoint connection with the specified name.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update the status of a private endpoint connection with the given name.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param privateEndpointConnection The private endpoint connection with updated properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n privateEndpointConnection: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,\n PrivateEndpointConnectionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {\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 {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n privateEndpointConnection,\n options\n },\n createOrUpdateOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n }\n\n /**\n * Update the status of a private endpoint connection with the given name.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param privateEndpointConnection The private endpoint connection with updated properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n privateEndpointConnection: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n privateEndpointConnection,\n options\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionsResponse\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.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection\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.resourceName,\n Parameters.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\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.resourceName,\n Parameters.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.privateEndpointConnection,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n","/*\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 * as coreClient from \"@azure/core-client\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n DigitalTwinsImpl,\n DigitalTwinsEndpointImpl,\n OperationsImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionsImpl\n} from \"./operations\";\nimport {\n DigitalTwins,\n DigitalTwinsEndpoint,\n Operations,\n PrivateLinkResources,\n PrivateEndpointConnections\n} from \"./operationsInterfaces\";\nimport { AzureDigitalTwinsManagementClientOptionalParams } from \"./models\";\n\nexport class AzureDigitalTwinsManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AzureDigitalTwinsManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription identifier.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AzureDigitalTwinsManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AzureDigitalTwinsManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-digitaltwins/3.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://management.azure.com/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2020-12-01\";\n this.digitalTwins = new DigitalTwinsImpl(this);\n this.digitalTwinsEndpoint = new DigitalTwinsEndpointImpl(this);\n this.operations = new OperationsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n }\n\n digitalTwins: DigitalTwins;\n digitalTwinsEndpoint: DigitalTwinsEndpoint;\n operations: Operations;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnections: PrivateEndpointConnections;\n}\n"],"names":["KnownProvisioningState","KnownConnectionPropertiesProvisioningState","KnownPrivateLinkServiceConnectionStatus","KnownPublicNetworkAccess","KnownDigitalTwinsIdentityType","KnownEndpointType","KnownEndpointProvisioningState","KnownAuthenticationType","KnownReason","DigitalTwinsDescriptionMapper","DigitalTwinsPatchDescriptionMapper","CheckNameRequestMapper","DigitalTwinsEndpointResourceMapper","PrivateEndpointConnectionMapper","__asyncValues","__asyncDelegator","LroEngine","coreClient.createSerializer","Mappers.DigitalTwinsDescription","Mappers.ErrorResponse","Parameters.apiVersion","Parameters.$host","Parameters.subscriptionId","Parameters.resourceGroupName","Parameters.resourceName","Parameters.accept","Parameters.digitalTwinsCreate","Parameters.contentType","Parameters.digitalTwinsPatchDescription","Mappers.DigitalTwinsDescriptionListResult","Mappers.CheckNameResult","Parameters.digitalTwinsInstanceCheckName","Parameters.location","Parameters.nextLink","listOperationSpec","getOperationSpec","createOrUpdateOperationSpec","deleteOperationSpec","listNextOperationSpec","serializer","Mappers.DigitalTwinsEndpointResourceListResult","Mappers.DigitalTwinsEndpointResource","Parameters.endpointName","Parameters.endpointDescription","Mappers.OperationListResult","Mappers.GroupIdInformationResponse","Mappers.GroupIdInformation","Parameters.resourceId","Mappers.PrivateEndpointConnectionsResponse","Mappers.PrivateEndpointConnection","Parameters.privateEndpointConnectionName","Parameters.privateEndpointConnection","coreClient.ServiceClient"],"mappings":";;;;;;;;AAAA;;;;;;;AAkZA,WAAY,sBAAsB;IAChC,uDAA6B,CAAA;IAC7B,+CAAqB,CAAA;IACrB,+CAAqB,CAAA;IACrB,iDAAuB,CAAA;IACvB,2CAAiB,CAAA;IACjB,+CAAqB,CAAA;IACrB,6CAAmB,CAAA;IACnB,6CAAmB,CAAA;IACnB,mDAAyB,CAAA;IACzB,iDAAuB,CAAA;IACvB,2CAAiB,CAAA;AACnB,CAAC,EAZWA,8BAAsB,KAAtBA,8BAAsB,QAYjC;AAsBD,WAAY,0CAA0C;IACpD,iEAAmB,CAAA;IACnB,mEAAqB,CAAA;IACrB,mEAAqB,CAAA;IACrB,2EAA6B,CAAA;AAC/B,CAAC,EALWC,kDAA0C,KAA1CA,kDAA0C,QAKrD;AAeD,WAAY,uCAAuC;IACjD,8DAAmB,CAAA;IACnB,gEAAqB,CAAA;IACrB,gEAAqB,CAAA;IACrB,wEAA6B,CAAA;AAC/B,CAAC,EALWC,+CAAuC,KAAvCA,+CAAuC,QAKlD;AAeD,WAAY,wBAAwB;IAClC,+CAAmB,CAAA;IACnB,iDAAqB,CAAA;AACvB,CAAC,EAHWC,gCAAwB,KAAxBA,gCAAwB,QAGnC;AAaD,WAAY,6BAA6B;IACvC,8CAAa,CAAA;IACb,kEAAiC,CAAA;AACnC,CAAC,EAHWC,qCAA6B,KAA7BA,qCAA6B,QAGxC;AAaD,WAAY,iBAAiB;IAC3B,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;IACvB,8CAAyB,CAAA;AAC3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U,IAAI,YAAY,CAAC;QACrD,IAAI,CAAC,YAAY,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,oBAAoB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,oBAAoB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,0BAA0B,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,CAAC;KAC5E;CAOF;;;;"}
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib"),coreLro=require("@azure/core-lro");!function(e){e.Provisioning="Provisioning",e.Deleting="Deleting",e.Updating="Updating",e.Succeeded="Succeeded",e.Failed="Failed",e.Canceled="Canceled",e.Deleted="Deleted",e.Warning="Warning",e.Suspending="Suspending",e.Restoring="Restoring",e.Moving="Moving"}(exports.KnownProvisioningState||(exports.KnownProvisioningState={})),function(e){e.Pending="Pending",e.Approved="Approved",e.Rejected="Rejected",e.Disconnected="Disconnected"}(exports.KnownConnectionPropertiesProvisioningState||(exports.KnownConnectionPropertiesProvisioningState={})),function(e){e.Pending="Pending",e.Approved="Approved",e.Rejected="Rejected",e.Disconnected="Disconnected"}(exports.KnownPrivateLinkServiceConnectionStatus||(exports.KnownPrivateLinkServiceConnectionStatus={})),function(e){e.Enabled="Enabled",e.Disabled="Disabled"}(exports.KnownPublicNetworkAccess||(exports.KnownPublicNetworkAccess={})),function(e){e.None="None",e.SystemAssigned="SystemAssigned"}(exports.KnownDigitalTwinsIdentityType||(exports.KnownDigitalTwinsIdentityType={})),function(e){e.EventHub="EventHub",e.EventGrid="EventGrid",e.ServiceBus="ServiceBus"}(exports.KnownEndpointType||(exports.KnownEndpointType={})),function(e){e.Provisioning="Provisioning",e.Deleting="Deleting",e.Succeeded="Succeeded",e.Failed="Failed",e.Canceled="Canceled",e.Deleted="Deleted",e.Warning="Warning",e.Suspending="Suspending",e.Restoring="Restoring",e.Moving="Moving",e.Disabled="Disabled"}(exports.KnownEndpointProvisioningState||(exports.KnownEndpointProvisioningState={})),function(e){e.KeyBased="KeyBased",e.IdentityBased="IdentityBased"}(exports.KnownAuthenticationType||(exports.KnownAuthenticationType={})),function(e){e.Invalid="Invalid",e.AlreadyExists="AlreadyExists"}(exports.KnownReason||(exports.KnownReason={}));const PrivateEndpointConnection={type:{name:"Composite",className:"PrivateEndpointConnection",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{constraints:{Pattern:new RegExp("^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$")},serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Composite",className:"PrivateEndpointConnectionProperties"}}}}},ConnectionProperties={type:{name:"Composite",className:"ConnectionProperties",modelProperties:{provisioningState:{serializedName:"provisioningState",readOnly:!0,nullable:!0,type:{name:"String"}},privateEndpoint:{serializedName:"privateEndpoint",type:{name:"Composite",className:"ConnectionPropertiesPrivateEndpoint"}},groupIds:{serializedName:"groupIds",type:{name:"Sequence",element:{type:{name:"String"}}}},privateLinkServiceConnectionState:{serializedName:"privateLinkServiceConnectionState",type:{name:"Composite",className:"ConnectionPropertiesPrivateLinkServiceConnectionState"}}}}},PrivateEndpoint={type:{name:"Composite",className:"PrivateEndpoint",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}}}}},ConnectionState={type:{name:"Composite",className:"ConnectionState",modelProperties:{status:{serializedName:"status",required:!0,type:{name:"String"}},description:{serializedName:"description",required:!0,type:{name:"String"}},actionsRequired:{serializedName:"actionsRequired",type:{name:"String"}}}}},DigitalTwinsResource={type:{name:"Composite",className:"DigitalTwinsResource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{constraints:{Pattern:new RegExp("^(?!-)[A-Za-z0-9-]{3,63}(?<!-)$")},serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},location:{serializedName:"location",required:!0,type:{name:"String"}},tags:{serializedName:"tags",nullable:!0,type:{name:"Dictionary",value:{type:{name:"String"}}}},identity:{serializedName:"identity",type:{name:"Composite",className:"DigitalTwinsIdentity"}}}}},DigitalTwinsIdentity={type:{name:"Composite",className:"DigitalTwinsIdentity",modelProperties:{type:{serializedName:"type",type:{name:"String"}},principalId:{serializedName:"principalId",readOnly:!0,nullable:!0,type:{name:"String"}},tenantId:{serializedName:"tenantId",readOnly:!0,nullable:!0,type:{name:"String"}}}}},ErrorResponse={type:{name:"Composite",className:"ErrorResponse",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorDefinition"}}}}},ErrorDefinition={type:{name:"Composite",className:"ErrorDefinition",modelProperties:{code:{serializedName:"code",readOnly:!0,type:{name:"String"}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},details:{serializedName:"details",readOnly:!0,nullable:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorDefinition"}}}}}}},DigitalTwinsPatchDescription={type:{name:"Composite",className:"DigitalTwinsPatchDescription",modelProperties:{tags:{serializedName:"tags",nullable:!0,type:{name:"Dictionary",value:{type:{name:"String"}}}},identity:{serializedName:"identity",type:{name:"Composite",className:"DigitalTwinsIdentity"}},properties:{serializedName:"properties",type:{name:"Composite",className:"DigitalTwinsPatchProperties"}}}}},DigitalTwinsPatchProperties={type:{name:"Composite",className:"DigitalTwinsPatchProperties",modelProperties:{publicNetworkAccess:{serializedName:"publicNetworkAccess",type:{name:"String"}}}}},DigitalTwinsEndpointResourceListResult={type:{name:"Composite",className:"DigitalTwinsEndpointResourceListResult",modelProperties:{nextLink:{serializedName:"nextLink",nullable:!0,type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"DigitalTwinsEndpointResource"}}}}}}},DigitalTwinsEndpointResourceProperties={type:{name:"Composite",className:"DigitalTwinsEndpointResourceProperties",uberParent:"DigitalTwinsEndpointResourceProperties",polymorphicDiscriminator:{serializedName:"endpointType",clientName:"endpointType"},modelProperties:{endpointType:{serializedName:"endpointType",required:!0,type:{name:"String"}},provisioningState:{serializedName:"provisioningState",readOnly:!0,nullable:!0,type:{name:"String"}},createdTime:{serializedName:"createdTime",readOnly:!0,nullable:!0,type:{name:"DateTime"}},authenticationType:{serializedName:"authenticationType",type:{name:"String"}},deadLetterSecret:{serializedName:"deadLetterSecret",nullable:!0,type:{name:"String"}},deadLetterUri:{serializedName:"deadLetterUri",nullable:!0,type:{name:"String"}}}}},ExternalResource={type:{name:"Composite",className:"ExternalResource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{constraints:{Pattern:new RegExp("^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$")},serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}}}}},DigitalTwinsDescriptionListResult={type:{name:"Composite",className:"DigitalTwinsDescriptionListResult",modelProperties:{nextLink:{serializedName:"nextLink",nullable:!0,type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"DigitalTwinsDescription"}}}}}}},OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{nextLink:{serializedName:"nextLink",nullable:!0,type:{name:"String"}},value:{serializedName:"value",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}},origin:{serializedName:"origin",readOnly:!0,nullable:!0,type:{name:"String"}},isDataAction:{serializedName:"isDataAction",readOnly:!0,type:{name:"Boolean"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",readOnly:!0,type:{name:"String"}},resource:{serializedName:"resource",readOnly:!0,type:{name:"String"}},operation:{serializedName:"operation",readOnly:!0,type:{name:"String"}},description:{serializedName:"description",readOnly:!0,type:{name:"String"}}}}},CheckNameRequest={type:{name:"Composite",className:"CheckNameRequest",modelProperties:{name:{serializedName:"name",required:!0,type:{name:"String"}},type:{defaultValue:"Microsoft.DigitalTwins/digitalTwinsInstances",isConstant:!0,serializedName:"type",type:{name:"String"}}}}},CheckNameResult={type:{name:"Composite",className:"CheckNameResult",modelProperties:{nameAvailable:{serializedName:"nameAvailable",type:{name:"Boolean"}},message:{serializedName:"message",nullable:!0,type:{name:"String"}},reason:{serializedName:"reason",nullable:!0,type:{name:"String"}}}}},GroupIdInformationResponse={type:{name:"Composite",className:"GroupIdInformationResponse",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"GroupIdInformation"}}}}}}},GroupIdInformation={type:{name:"Composite",className:"GroupIdInformation",modelProperties:{properties:{serializedName:"properties",type:{name:"Composite",className:"GroupIdInformationProperties"}},id:{serializedName:"id",type:{name:"String"}},name:{constraints:{Pattern:new RegExp("^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$")},serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}}}}},GroupIdInformationPropertiesAutoGenerated={type:{name:"Composite",className:"GroupIdInformationPropertiesAutoGenerated",modelProperties:{groupId:{serializedName:"groupId",type:{name:"String"}},requiredMembers:{serializedName:"requiredMembers",type:{name:"Sequence",element:{type:{name:"String"}}}},requiredZoneNames:{serializedName:"requiredZoneNames",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},PrivateEndpointConnectionsResponse={type:{name:"Composite",className:"PrivateEndpointConnectionsResponse",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}}}}},PrivateEndpointConnectionProperties={type:{name:"Composite",className:"PrivateEndpointConnectionProperties",modelProperties:Object.assign({},ConnectionProperties.type.modelProperties)}},ConnectionPropertiesPrivateEndpoint={type:{name:"Composite",className:"ConnectionPropertiesPrivateEndpoint",modelProperties:Object.assign({},PrivateEndpoint.type.modelProperties)}},ConnectionPropertiesPrivateLinkServiceConnectionState={type:{name:"Composite",className:"ConnectionPropertiesPrivateLinkServiceConnectionState",modelProperties:Object.assign({},ConnectionState.type.modelProperties)}},DigitalTwinsDescription={type:{name:"Composite",className:"DigitalTwinsDescription",modelProperties:Object.assign(Object.assign({},DigitalTwinsResource.type.modelProperties),{createdTime:{serializedName:"properties.createdTime",readOnly:!0,type:{name:"DateTime"}},lastUpdatedTime:{serializedName:"properties.lastUpdatedTime",readOnly:!0,type:{name:"DateTime"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},hostName:{serializedName:"properties.hostName",readOnly:!0,nullable:!0,type:{name:"String"}},privateEndpointConnections:{serializedName:"properties.privateEndpointConnections",type:{name:"Sequence",element:{type:{name:"Composite",className:"PrivateEndpointConnection"}}}},publicNetworkAccess:{serializedName:"properties.publicNetworkAccess",type:{name:"String"}}})}},ServiceBus={serializedName:"ServiceBus",type:{name:"Composite",className:"ServiceBus",uberParent:"DigitalTwinsEndpointResourceProperties",polymorphicDiscriminator:DigitalTwinsEndpointResourceProperties.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},DigitalTwinsEndpointResourceProperties.type.modelProperties),{primaryConnectionString:{serializedName:"primaryConnectionString",nullable:!0,type:{name:"String"}},secondaryConnectionString:{serializedName:"secondaryConnectionString",nullable:!0,type:{name:"String"}},endpointUri:{serializedName:"endpointUri",nullable:!0,type:{name:"String"}},entityPath:{serializedName:"entityPath",nullable:!0,type:{name:"String"}}})}},EventHub={serializedName:"EventHub",type:{name:"Composite",className:"EventHub",uberParent:"DigitalTwinsEndpointResourceProperties",polymorphicDiscriminator:DigitalTwinsEndpointResourceProperties.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},DigitalTwinsEndpointResourceProperties.type.modelProperties),{connectionStringPrimaryKey:{serializedName:"connectionStringPrimaryKey",nullable:!0,type:{name:"String"}},connectionStringSecondaryKey:{serializedName:"connectionStringSecondaryKey",nullable:!0,type:{name:"String"}},endpointUri:{serializedName:"endpointUri",nullable:!0,type:{name:"String"}},entityPath:{serializedName:"entityPath",nullable:!0,type:{name:"String"}}})}},EventGrid={serializedName:"EventGrid",type:{name:"Composite",className:"EventGrid",uberParent:"DigitalTwinsEndpointResourceProperties",polymorphicDiscriminator:DigitalTwinsEndpointResourceProperties.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},DigitalTwinsEndpointResourceProperties.type.modelProperties),{topicEndpoint:{serializedName:"TopicEndpoint",required:!0,type:{name:"String"}},accessKey1:{serializedName:"accessKey1",required:!0,nullable:!0,type:{name:"String"}},accessKey2:{serializedName:"accessKey2",nullable:!0,type:{name:"String"}}})}},DigitalTwinsEndpointResource={type:{name:"Composite",className:"DigitalTwinsEndpointResource",modelProperties:Object.assign(Object.assign({},ExternalResource.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"DigitalTwinsEndpointResourceProperties"}}})}},GroupIdInformationProperties={type:{name:"Composite",className:"GroupIdInformationProperties",modelProperties:Object.assign({},GroupIdInformationPropertiesAutoGenerated.type.modelProperties)}};let discriminators={DigitalTwinsEndpointResourceProperties:DigitalTwinsEndpointResourceProperties,"DigitalTwinsEndpointResourceProperties.ServiceBus":ServiceBus,"DigitalTwinsEndpointResourceProperties.EventHub":EventHub,"DigitalTwinsEndpointResourceProperties.EventGrid":EventGrid};var Mappers=Object.freeze({__proto__:null,PrivateEndpointConnection:PrivateEndpointConnection,ConnectionProperties:ConnectionProperties,PrivateEndpoint:PrivateEndpoint,ConnectionState:ConnectionState,DigitalTwinsResource:DigitalTwinsResource,DigitalTwinsIdentity:DigitalTwinsIdentity,ErrorResponse:ErrorResponse,ErrorDefinition:ErrorDefinition,DigitalTwinsPatchDescription:DigitalTwinsPatchDescription,DigitalTwinsPatchProperties:DigitalTwinsPatchProperties,DigitalTwinsEndpointResourceListResult:DigitalTwinsEndpointResourceListResult,DigitalTwinsEndpointResourceProperties:DigitalTwinsEndpointResourceProperties,ExternalResource:ExternalResource,DigitalTwinsDescriptionListResult:DigitalTwinsDescriptionListResult,OperationListResult:OperationListResult,Operation:Operation,OperationDisplay:OperationDisplay,CheckNameRequest:CheckNameRequest,CheckNameResult:CheckNameResult,GroupIdInformationResponse:GroupIdInformationResponse,GroupIdInformation:GroupIdInformation,GroupIdInformationPropertiesAutoGenerated:GroupIdInformationPropertiesAutoGenerated,PrivateEndpointConnectionsResponse:PrivateEndpointConnectionsResponse,PrivateEndpointConnectionProperties:PrivateEndpointConnectionProperties,ConnectionPropertiesPrivateEndpoint:ConnectionPropertiesPrivateEndpoint,ConnectionPropertiesPrivateLinkServiceConnectionState:ConnectionPropertiesPrivateLinkServiceConnectionState,DigitalTwinsDescription:DigitalTwinsDescription,ServiceBus:ServiceBus,EventHub:EventHub,EventGrid:EventGrid,DigitalTwinsEndpointResource:DigitalTwinsEndpointResource,GroupIdInformationProperties:GroupIdInformationProperties,discriminators:discriminators});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2020-12-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},resourceGroupName={parameterPath:"resourceGroupName",mapper:{constraints:{MaxLength:90,MinLength:1},serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},resourceName={parameterPath:"resourceName",mapper:{constraints:{Pattern:new RegExp("^(?!-)[A-Za-z0-9-]{3,63}(?<!-)$"),MaxLength:63,MinLength:3},serializedName:"resourceName",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},digitalTwinsCreate={parameterPath:"digitalTwinsCreate",mapper:DigitalTwinsDescription},digitalTwinsPatchDescription={parameterPath:"digitalTwinsPatchDescription",mapper:DigitalTwinsPatchDescription},digitalTwinsInstanceCheckName={parameterPath:"digitalTwinsInstanceCheckName",mapper:CheckNameRequest},location={parameterPath:"location",mapper:{constraints:{MinLength:3},serializedName:"location",required:!0,type:{name:"String"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},endpointName={parameterPath:"endpointName",mapper:{constraints:{Pattern:new RegExp("^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$"),MaxLength:49,MinLength:2},serializedName:"endpointName",required:!0,type:{name:"String"}}},endpointDescription={parameterPath:"endpointDescription",mapper:DigitalTwinsEndpointResource},resourceId={parameterPath:"resourceId",mapper:{serializedName:"resourceId",required:!0,type:{name:"String"}}},privateEndpointConnectionName={parameterPath:"privateEndpointConnectionName",mapper:{serializedName:"privateEndpointConnectionName",required:!0,type:{name:"String"}}},privateEndpointConnection={parameterPath:"privateEndpointConnection",mapper:PrivateEndpointConnection};class LroImpl{constructor(e,i,t,r=t.path,n=t.httpMethod){this.sendOperationFn=e,this.args=i,this.spec=t,this.requestPath=r,this.requestMethod=n}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(i){return tslib.__awaiter(this,void 0,void 0,function*(){var e=this.spec,e=tslib.__rest(e,["requestBody"]);return this.sendOperationFn(this.args,Object.assign(Object.assign({},e),{path:i,httpMethod:"GET"}))})}}class DigitalTwinsImpl{constructor(e){this.client=e}list(e){const i=this.listPagingAll(e);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t));yield yield tslib.__await(e.value||[]);let i=e.nextLink;for(;i;)e=yield tslib.__await(this._listNext(i,t)),i=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var i,e;try{for(var t,r=tslib.__asyncValues(this.listPagingPage(s));!(t=yield tslib.__await(r.next())).done;){var n=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){i={error:e}}finally{try{t&&!t.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(i)throw i.error}}})}listByResourceGroup(e,i){const t=this.listByResourceGroupPagingAll(e,i);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,i)}}listByResourceGroupPagingPage(t,r){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(t,r));yield yield tslib.__await(e.value||[]);let i=e.nextLink;for(;i;)e=yield tslib.__await(this._listByResourceGroupNext(t,i,r)),i=e.nextLink,yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(s,a){return tslib.__asyncGenerator(this,arguments,function*(){var i,e;try{for(var t,r=tslib.__asyncValues(this.listByResourceGroupPagingPage(s,a));!(t=yield tslib.__await(r.next())).done;){var n=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){i={error:e}}finally{try{t&&!t.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(i)throw i.error}}})}get(e,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,options:t},getOperationSpec)}beginCreateOrUpdate(i,t,r,n){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,n)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const r=null===(e=i.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{t=e,null!==r&&void 0!==r&&r(e,i)}})});return{flatResponse:yield s(e,n),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,digitalTwinsCreate:r,options:n},createOrUpdateOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs})})}beginCreateOrUpdateAndWait(i,t,r,n){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(i,t,r,n);return e.pollUntilDone()})}beginUpdate(i,t,r,n){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,n)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const r=null===(e=i.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{t=e,null!==r&&void 0!==r&&r(e,i)}})});return{flatResponse:yield s(e,n),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,digitalTwinsPatchDescription:r,options:n},updateOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs})})}beginUpdateAndWait(i,t,r,n){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(i,t,r,n);return e.pollUntilDone()})}beginDelete(i,t,r){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,n)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const r=null===(e=i.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{t=e,null!==r&&void 0!==r&&r(e,i)}})});return{flatResponse:yield s(e,n),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,options:r},deleteOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==r?void 0:r.resumeFrom,intervalInMs:null==r?void 0:r.updateIntervalInMs})})}beginDeleteAndWait(i,t,r){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(i,t,r);return e.pollUntilDone()})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listByResourceGroup(e,i){return this.client.sendOperationRequest({resourceGroupName:e,options:i},listByResourceGroupOperationSpec)}checkNameAvailability(e,i,t){return this.client.sendOperationRequest({location:e,digitalTwinsInstanceCheckName:i,options:t},checkNameAvailabilityOperationSpec)}_listNext(e,i){return this.client.sendOperationRequest({nextLink:e,options:i},listNextOperationSpec)}_listByResourceGroupNext(e,i,t){return this.client.sendOperationRequest({resourceGroupName:e,nextLink:i,options:t},listByResourceGroupNextOperationSpec)}}const serializer=coreClient.createSerializer(Mappers,!1),getOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",httpMethod:"GET",responses:{200:{bodyMapper:DigitalTwinsDescription},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer},createOrUpdateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",httpMethod:"PUT",responses:{200:{bodyMapper:DigitalTwinsDescription},201:{bodyMapper:DigitalTwinsDescription},202:{bodyMapper:DigitalTwinsDescription},204:{bodyMapper:DigitalTwinsDescription},default:{bodyMapper:ErrorResponse}},requestBody:digitalTwinsCreate,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",httpMethod:"PATCH",responses:{200:{bodyMapper:DigitalTwinsDescription},201:{bodyMapper:DigitalTwinsDescription},202:{bodyMapper:DigitalTwinsDescription},204:{bodyMapper:DigitalTwinsDescription},default:{bodyMapper:ErrorResponse}},requestBody:digitalTwinsPatchDescription,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}",httpMethod:"DELETE",responses:{200:{bodyMapper:DigitalTwinsDescription},201:{bodyMapper:DigitalTwinsDescription},202:{bodyMapper:DigitalTwinsDescription},204:{bodyMapper:DigitalTwinsDescription},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer},listOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/digitalTwinsInstances",httpMethod:"GET",responses:{200:{bodyMapper:DigitalTwinsDescriptionListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer},listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances",httpMethod:"GET",responses:{200:{bodyMapper:DigitalTwinsDescriptionListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName],headerParameters:[accept],serializer:serializer},checkNameAvailabilityOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.DigitalTwins/locations/{location}/checkNameAvailability",httpMethod:"POST",responses:{200:{bodyMapper:CheckNameResult},default:{bodyMapper:ErrorResponse}},requestBody:digitalTwinsInstanceCheckName,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,location],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:DigitalTwinsDescriptionListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,nextLink],headerParameters:[accept],serializer:serializer},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:DigitalTwinsDescriptionListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,nextLink],headerParameters:[accept],serializer:serializer};class DigitalTwinsEndpointImpl{constructor(e){this.client=e}list(e,i,t){const r=this.listPagingAll(e,i,t);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e,i,t)}}listPagingPage(t,r,n){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t,r,n));yield yield tslib.__await(e.value||[]);let i=e.nextLink;for(;i;)e=yield tslib.__await(this._listNext(t,r,i,n)),i=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(s,a,o){return tslib.__asyncGenerator(this,arguments,function*(){var i,e;try{for(var t,r=tslib.__asyncValues(this.listPagingPage(s,a,o));!(t=yield tslib.__await(r.next())).done;){var n=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){i={error:e}}finally{try{t&&!t.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(i)throw i.error}}})}_list(e,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,options:t},listOperationSpec$1)}get(e,i,t,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,endpointName:t,options:r},getOperationSpec$1)}beginCreateOrUpdate(i,t,r,n,a){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,n)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const r=null===(e=i.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{t=e,null!==r&&void 0!==r&&r(e,i)}})});return{flatResponse:yield s(e,n),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,endpointName:r,endpointDescription:n,options:a},createOrUpdateOperationSpec$1);return new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs})})}beginCreateOrUpdateAndWait(i,t,r,n,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(i,t,r,n,s);return e.pollUntilDone()})}beginDelete(i,t,r,n){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,n)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const r=null===(e=i.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{t=e,null!==r&&void 0!==r&&r(e,i)}})});return{flatResponse:yield s(e,n),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,endpointName:r,options:n},deleteOperationSpec$1);return new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs})})}beginDeleteAndWait(i,t,r,n){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(i,t,r,n);return e.pollUntilDone()})}_listNext(e,i,t,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,nextLink:t,options:r},listNextOperationSpec$1)}}const serializer$1=coreClient.createSerializer(Mappers,!1),listOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints",httpMethod:"GET",responses:{200:{bodyMapper:DigitalTwinsEndpointResourceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$1},getOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}",httpMethod:"GET",responses:{200:{bodyMapper:DigitalTwinsEndpointResource},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,endpointName],headerParameters:[accept],serializer:serializer$1},createOrUpdateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}",httpMethod:"PUT",responses:{200:{bodyMapper:DigitalTwinsEndpointResource},201:{bodyMapper:DigitalTwinsEndpointResource},202:{bodyMapper:DigitalTwinsEndpointResource},204:{bodyMapper:DigitalTwinsEndpointResource},default:{bodyMapper:ErrorResponse}},requestBody:endpointDescription,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,endpointName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},deleteOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}",httpMethod:"DELETE",responses:{200:{bodyMapper:DigitalTwinsEndpointResource},201:{bodyMapper:DigitalTwinsEndpointResource},202:{bodyMapper:DigitalTwinsEndpointResource},204:{bodyMapper:DigitalTwinsEndpointResource},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,endpointName],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:DigitalTwinsEndpointResourceListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,nextLink],headerParameters:[accept],serializer:serializer$1};class OperationsImpl{constructor(e){this.client=e}list(e){const i=this.listPagingAll(e);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t));yield yield tslib.__await(e.value||[]);let i=e.nextLink;for(;i;)e=yield tslib.__await(this._listNext(i,t)),i=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var i,e;try{for(var t,r=tslib.__asyncValues(this.listPagingPage(s));!(t=yield tslib.__await(r.next())).done;){var n=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){i={error:e}}finally{try{t&&!t.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(i)throw i.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$2)}_listNext(e,i){return this.client.sendOperationRequest({nextLink:e,options:i},listNextOperationSpec$2)}}const serializer$2=coreClient.createSerializer(Mappers,!1),listOperationSpec$2={path:"/providers/Microsoft.DigitalTwins/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$2},listNextOperationSpec$2={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$2};class PrivateLinkResourcesImpl{constructor(e){this.client=e}list(e,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,options:t},listOperationSpec$3)}get(e,i,t,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,resourceId:t,options:r},getOperationSpec$2)}}const serializer$3=coreClient.createSerializer(Mappers,!1),listOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateLinkResources",httpMethod:"GET",responses:{200:{bodyMapper:GroupIdInformationResponse},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$3},getOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateLinkResources/{resourceId}",httpMethod:"GET",responses:{200:{bodyMapper:GroupIdInformation},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,resourceId],headerParameters:[accept],serializer:serializer$3};class PrivateEndpointConnectionsImpl{constructor(e){this.client=e}list(e,i,t){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,options:t},listOperationSpec$4)}get(e,i,t,r){return this.client.sendOperationRequest({resourceGroupName:e,resourceName:i,privateEndpointConnectionName:t,options:r},getOperationSpec$3)}beginDelete(i,t,r,n){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,n)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const r=null===(e=i.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{t=e,null!==r&&void 0!==r&&r(e,i)}})});return{flatResponse:yield s(e,n),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,privateEndpointConnectionName:r,options:n},deleteOperationSpec$2);return new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs})})}beginDeleteAndWait(i,t,r,n){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(i,t,r,n);return e.pollUntilDone()})}beginCreateOrUpdate(i,t,r,n,a){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,i)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,i)});var e=new LroImpl((i,n)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const r=null===(e=i.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},i),{options:Object.assign(Object.assign({},i.options),{onResponse:(e,i)=>{t=e,null!==r&&void 0!==r&&r(e,i)}})});return{flatResponse:yield s(e,n),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceGroupName:i,resourceName:t,privateEndpointConnectionName:r,privateEndpointConnection:n,options:a},createOrUpdateOperationSpec$2);return new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs})})}beginCreateOrUpdateAndWait(i,t,r,n,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(i,t,r,n,s);return e.pollUntilDone()})}}const serializer$4=coreClient.createSerializer(Mappers,!1),listOperationSpec$4={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnectionsResponse},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName],headerParameters:[accept],serializer:serializer$4},getOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"GET",responses:{200:{bodyMapper:PrivateEndpointConnection},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,privateEndpointConnectionName],headerParameters:[accept],serializer:serializer$4},deleteOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,privateEndpointConnectionName],headerParameters:[accept],serializer:serializer$4},createOrUpdateOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",httpMethod:"PUT",responses:{200:{bodyMapper:PrivateEndpointConnection},201:{bodyMapper:PrivateEndpointConnection},202:{bodyMapper:PrivateEndpointConnection},204:{bodyMapper:PrivateEndpointConnection},default:{bodyMapper:ErrorResponse}},requestBody:privateEndpointConnection,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroupName,resourceName,privateEndpointConnectionName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$4};class AzureDigitalTwinsManagementClient extends coreClient.ServiceClient{constructor(e,i,t){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===i)throw new Error("'subscriptionId' cannot be null");var r={requestContentType:"application/json; charset=utf-8",credential:e},e="azsdk-js-arm-digitaltwins/3.0.0",e=(t=t||{}).userAgentOptions&&t.userAgentOptions.userAgentPrefix?t.userAgentOptions.userAgentPrefix+" "+e:e;t.credentialScopes||(t.credentialScopes=["https://management.azure.com/.default"]),super(Object.assign(Object.assign(Object.assign({},r),t),{userAgentOptions:{userAgentPrefix:e},baseUri:t.endpoint||"https://management.azure.com"})),this.subscriptionId=i,this.$host=t.$host||"https://management.azure.com",this.apiVersion=t.apiVersion||"2020-12-01",this.digitalTwins=new DigitalTwinsImpl(this),this.digitalTwinsEndpoint=new DigitalTwinsEndpointImpl(this),this.operations=new OperationsImpl(this),this.privateLinkResources=new PrivateLinkResourcesImpl(this),this.privateEndpointConnections=new PrivateEndpointConnectionsImpl(this)}}exports.AzureDigitalTwinsManagementClient=AzureDigitalTwinsManagementClient;