@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,1009 @@
1
+ import * as coreAuth from '@azure/core-auth';
2
+ import * as coreClient from '@azure/core-client';
3
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
+ import { PollerLike } from '@azure/core-lro';
5
+ import { PollOperationState } from '@azure/core-lro';
6
+
7
+ /**
8
+ * Defines values for AuthenticationType. \
9
+ * {@link KnownAuthenticationType} can be used interchangeably with AuthenticationType,
10
+ * this enum contains the known values that the service supports.
11
+ * ### Known values supported by the service
12
+ * **KeyBased** \
13
+ * **IdentityBased**
14
+ */
15
+ export declare type AuthenticationType = string;
16
+
17
+ export declare class AzureDigitalTwinsManagementClient extends coreClient.ServiceClient {
18
+ $host: string;
19
+ apiVersion: string;
20
+ subscriptionId: string;
21
+ /**
22
+ * Initializes a new instance of the AzureDigitalTwinsManagementClient class.
23
+ * @param credentials Subscription credentials which uniquely identify client subscription.
24
+ * @param subscriptionId The subscription identifier.
25
+ * @param options The parameter options
26
+ */
27
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureDigitalTwinsManagementClientOptionalParams);
28
+ digitalTwins: DigitalTwins;
29
+ digitalTwinsEndpoint: DigitalTwinsEndpoint;
30
+ operations: Operations;
31
+ privateLinkResources: PrivateLinkResources;
32
+ privateEndpointConnections: PrivateEndpointConnections;
33
+ }
34
+
35
+ /** Optional parameters. */
36
+ export declare interface AzureDigitalTwinsManagementClientOptionalParams extends coreClient.ServiceClientOptions {
37
+ /** server parameter */
38
+ $host?: string;
39
+ /** Api Version */
40
+ apiVersion?: string;
41
+ /** Overrides client endpoint. */
42
+ endpoint?: string;
43
+ }
44
+
45
+ /** The result returned from a database check name availability request. */
46
+ export declare interface CheckNameRequest {
47
+ /** Resource name. */
48
+ name: string;
49
+ /** The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances. */
50
+ type: "Microsoft.DigitalTwins/digitalTwinsInstances";
51
+ }
52
+
53
+ /** The result returned from a check name availability request. */
54
+ export declare interface CheckNameResult {
55
+ /** Specifies a Boolean value that indicates if the name is available. */
56
+ nameAvailable?: boolean;
57
+ /** Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated. */
58
+ message?: string;
59
+ /** Message providing the reason why the given name is invalid. */
60
+ reason?: Reason;
61
+ }
62
+
63
+ /** The properties of a private endpoint connection. */
64
+ export declare interface ConnectionProperties {
65
+ /**
66
+ * The provisioning state.
67
+ * NOTE: This property will not be serialized. It can only be populated by the server.
68
+ */
69
+ readonly provisioningState?: ConnectionPropertiesProvisioningState;
70
+ privateEndpoint?: ConnectionPropertiesPrivateEndpoint;
71
+ /** The list of group ids for the private endpoint connection. */
72
+ groupIds?: string[];
73
+ privateLinkServiceConnectionState?: ConnectionPropertiesPrivateLinkServiceConnectionState;
74
+ }
75
+
76
+ export declare type ConnectionPropertiesPrivateEndpoint = PrivateEndpoint & {};
77
+
78
+ export declare type ConnectionPropertiesPrivateLinkServiceConnectionState = ConnectionState & {};
79
+
80
+ /**
81
+ * Defines values for ConnectionPropertiesProvisioningState. \
82
+ * {@link KnownConnectionPropertiesProvisioningState} can be used interchangeably with ConnectionPropertiesProvisioningState,
83
+ * this enum contains the known values that the service supports.
84
+ * ### Known values supported by the service
85
+ * **Pending** \
86
+ * **Approved** \
87
+ * **Rejected** \
88
+ * **Disconnected**
89
+ */
90
+ export declare type ConnectionPropertiesProvisioningState = string;
91
+
92
+ /** The current state of a private endpoint connection. */
93
+ export declare interface ConnectionState {
94
+ /** The status of a private endpoint connection. */
95
+ status: PrivateLinkServiceConnectionStatus;
96
+ /** The description for the current state of a private endpoint connection. */
97
+ description: string;
98
+ /** Actions required for a private endpoint connection. */
99
+ actionsRequired?: string;
100
+ }
101
+
102
+ /** Interface representing a DigitalTwins. */
103
+ export declare interface DigitalTwins {
104
+ /**
105
+ * Get all the DigitalTwinsInstances in a subscription.
106
+ * @param options The options parameters.
107
+ */
108
+ list(options?: DigitalTwinsListOptionalParams): PagedAsyncIterableIterator<DigitalTwinsDescription>;
109
+ /**
110
+ * Get all the DigitalTwinsInstances in a resource group.
111
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
112
+ * @param options The options parameters.
113
+ */
114
+ listByResourceGroup(resourceGroupName: string, options?: DigitalTwinsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<DigitalTwinsDescription>;
115
+ /**
116
+ * Get DigitalTwinsInstances resource.
117
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
118
+ * @param resourceName The name of the DigitalTwinsInstance.
119
+ * @param options The options parameters.
120
+ */
121
+ get(resourceGroupName: string, resourceName: string, options?: DigitalTwinsGetOptionalParams): Promise<DigitalTwinsGetResponse>;
122
+ /**
123
+ * Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is
124
+ * to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified
125
+ * values in a new body to update the DigitalTwinsInstance.
126
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
127
+ * @param resourceName The name of the DigitalTwinsInstance.
128
+ * @param digitalTwinsCreate The DigitalTwinsInstance and security metadata.
129
+ * @param options The options parameters.
130
+ */
131
+ beginCreateOrUpdate(resourceGroupName: string, resourceName: string, digitalTwinsCreate: DigitalTwinsDescription, options?: DigitalTwinsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<DigitalTwinsCreateOrUpdateResponse>, DigitalTwinsCreateOrUpdateResponse>>;
132
+ /**
133
+ * Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is
134
+ * to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified
135
+ * values in a new body to update the DigitalTwinsInstance.
136
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
137
+ * @param resourceName The name of the DigitalTwinsInstance.
138
+ * @param digitalTwinsCreate The DigitalTwinsInstance and security metadata.
139
+ * @param options The options parameters.
140
+ */
141
+ beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, digitalTwinsCreate: DigitalTwinsDescription, options?: DigitalTwinsCreateOrUpdateOptionalParams): Promise<DigitalTwinsCreateOrUpdateResponse>;
142
+ /**
143
+ * Update metadata of DigitalTwinsInstance.
144
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
145
+ * @param resourceName The name of the DigitalTwinsInstance.
146
+ * @param digitalTwinsPatchDescription The DigitalTwinsInstance and security metadata.
147
+ * @param options The options parameters.
148
+ */
149
+ beginUpdate(resourceGroupName: string, resourceName: string, digitalTwinsPatchDescription: DigitalTwinsPatchDescription, options?: DigitalTwinsUpdateOptionalParams): Promise<PollerLike<PollOperationState<DigitalTwinsUpdateResponse>, DigitalTwinsUpdateResponse>>;
150
+ /**
151
+ * Update metadata of DigitalTwinsInstance.
152
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
153
+ * @param resourceName The name of the DigitalTwinsInstance.
154
+ * @param digitalTwinsPatchDescription The DigitalTwinsInstance and security metadata.
155
+ * @param options The options parameters.
156
+ */
157
+ beginUpdateAndWait(resourceGroupName: string, resourceName: string, digitalTwinsPatchDescription: DigitalTwinsPatchDescription, options?: DigitalTwinsUpdateOptionalParams): Promise<DigitalTwinsUpdateResponse>;
158
+ /**
159
+ * Delete a DigitalTwinsInstance.
160
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
161
+ * @param resourceName The name of the DigitalTwinsInstance.
162
+ * @param options The options parameters.
163
+ */
164
+ beginDelete(resourceGroupName: string, resourceName: string, options?: DigitalTwinsDeleteOptionalParams): Promise<PollerLike<PollOperationState<DigitalTwinsDeleteResponse>, DigitalTwinsDeleteResponse>>;
165
+ /**
166
+ * Delete a DigitalTwinsInstance.
167
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
168
+ * @param resourceName The name of the DigitalTwinsInstance.
169
+ * @param options The options parameters.
170
+ */
171
+ beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: DigitalTwinsDeleteOptionalParams): Promise<DigitalTwinsDeleteResponse>;
172
+ /**
173
+ * Check if a DigitalTwinsInstance name is available.
174
+ * @param location Location of DigitalTwinsInstance.
175
+ * @param digitalTwinsInstanceCheckName Set the name parameter in the DigitalTwinsInstanceCheckName
176
+ * structure to the name of the DigitalTwinsInstance to check.
177
+ * @param options The options parameters.
178
+ */
179
+ checkNameAvailability(location: string, digitalTwinsInstanceCheckName: CheckNameRequest, options?: DigitalTwinsCheckNameAvailabilityOptionalParams): Promise<DigitalTwinsCheckNameAvailabilityResponse>;
180
+ }
181
+
182
+ /** Optional parameters. */
183
+ export declare interface DigitalTwinsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {
184
+ }
185
+
186
+ /** Contains response data for the checkNameAvailability operation. */
187
+ export declare type DigitalTwinsCheckNameAvailabilityResponse = CheckNameResult;
188
+
189
+ /** Optional parameters. */
190
+ export declare interface DigitalTwinsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
191
+ /** Delay to wait until next poll, in milliseconds. */
192
+ updateIntervalInMs?: number;
193
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
194
+ resumeFrom?: string;
195
+ }
196
+
197
+ /** Contains response data for the createOrUpdate operation. */
198
+ export declare type DigitalTwinsCreateOrUpdateResponse = DigitalTwinsDescription;
199
+
200
+ /** Optional parameters. */
201
+ export declare interface DigitalTwinsDeleteOptionalParams extends coreClient.OperationOptions {
202
+ /** Delay to wait until next poll, in milliseconds. */
203
+ updateIntervalInMs?: number;
204
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
205
+ resumeFrom?: string;
206
+ }
207
+
208
+ /** Contains response data for the delete operation. */
209
+ export declare type DigitalTwinsDeleteResponse = DigitalTwinsDescription;
210
+
211
+ /** The description of the DigitalTwins service. */
212
+ export declare type DigitalTwinsDescription = DigitalTwinsResource & {
213
+ /**
214
+ * Time when DigitalTwinsInstance was created.
215
+ * NOTE: This property will not be serialized. It can only be populated by the server.
216
+ */
217
+ readonly createdTime?: Date;
218
+ /**
219
+ * Time when DigitalTwinsInstance was updated.
220
+ * NOTE: This property will not be serialized. It can only be populated by the server.
221
+ */
222
+ readonly lastUpdatedTime?: Date;
223
+ /**
224
+ * The provisioning state.
225
+ * NOTE: This property will not be serialized. It can only be populated by the server.
226
+ */
227
+ readonly provisioningState?: ProvisioningState;
228
+ /**
229
+ * Api endpoint to work with DigitalTwinsInstance.
230
+ * NOTE: This property will not be serialized. It can only be populated by the server.
231
+ */
232
+ readonly hostName?: string;
233
+ privateEndpointConnections?: PrivateEndpointConnection[];
234
+ /** Public network access for the DigitalTwinsInstance. */
235
+ publicNetworkAccess?: PublicNetworkAccess;
236
+ };
237
+
238
+ /** A list of DigitalTwins description objects with a next link. */
239
+ export declare interface DigitalTwinsDescriptionListResult {
240
+ /** The link used to get the next page of DigitalTwins description objects. */
241
+ nextLink?: string;
242
+ /** A list of DigitalTwins description objects. */
243
+ value?: DigitalTwinsDescription[];
244
+ }
245
+
246
+ /** Interface representing a DigitalTwinsEndpoint. */
247
+ export declare interface DigitalTwinsEndpoint {
248
+ /**
249
+ * Get DigitalTwinsInstance Endpoints.
250
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
251
+ * @param resourceName The name of the DigitalTwinsInstance.
252
+ * @param options The options parameters.
253
+ */
254
+ list(resourceGroupName: string, resourceName: string, options?: DigitalTwinsEndpointListOptionalParams): PagedAsyncIterableIterator<DigitalTwinsEndpointResource>;
255
+ /**
256
+ * Get DigitalTwinsInstances Endpoint.
257
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
258
+ * @param resourceName The name of the DigitalTwinsInstance.
259
+ * @param endpointName Name of Endpoint Resource.
260
+ * @param options The options parameters.
261
+ */
262
+ get(resourceGroupName: string, resourceName: string, endpointName: string, options?: DigitalTwinsEndpointGetOptionalParams): Promise<DigitalTwinsEndpointGetResponse>;
263
+ /**
264
+ * Create or update DigitalTwinsInstance endpoint.
265
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
266
+ * @param resourceName The name of the DigitalTwinsInstance.
267
+ * @param endpointName Name of Endpoint Resource.
268
+ * @param endpointDescription The DigitalTwinsInstance endpoint metadata and security metadata.
269
+ * @param options The options parameters.
270
+ */
271
+ beginCreateOrUpdate(resourceGroupName: string, resourceName: string, endpointName: string, endpointDescription: DigitalTwinsEndpointResource, options?: DigitalTwinsEndpointCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<DigitalTwinsEndpointCreateOrUpdateResponse>, DigitalTwinsEndpointCreateOrUpdateResponse>>;
272
+ /**
273
+ * Create or update DigitalTwinsInstance endpoint.
274
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
275
+ * @param resourceName The name of the DigitalTwinsInstance.
276
+ * @param endpointName Name of Endpoint Resource.
277
+ * @param endpointDescription The DigitalTwinsInstance endpoint metadata and security metadata.
278
+ * @param options The options parameters.
279
+ */
280
+ beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, endpointName: string, endpointDescription: DigitalTwinsEndpointResource, options?: DigitalTwinsEndpointCreateOrUpdateOptionalParams): Promise<DigitalTwinsEndpointCreateOrUpdateResponse>;
281
+ /**
282
+ * Delete a DigitalTwinsInstance endpoint.
283
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
284
+ * @param resourceName The name of the DigitalTwinsInstance.
285
+ * @param endpointName Name of Endpoint Resource.
286
+ * @param options The options parameters.
287
+ */
288
+ beginDelete(resourceGroupName: string, resourceName: string, endpointName: string, options?: DigitalTwinsEndpointDeleteOptionalParams): Promise<PollerLike<PollOperationState<DigitalTwinsEndpointDeleteResponse>, DigitalTwinsEndpointDeleteResponse>>;
289
+ /**
290
+ * Delete a DigitalTwinsInstance endpoint.
291
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
292
+ * @param resourceName The name of the DigitalTwinsInstance.
293
+ * @param endpointName Name of Endpoint Resource.
294
+ * @param options The options parameters.
295
+ */
296
+ beginDeleteAndWait(resourceGroupName: string, resourceName: string, endpointName: string, options?: DigitalTwinsEndpointDeleteOptionalParams): Promise<DigitalTwinsEndpointDeleteResponse>;
297
+ }
298
+
299
+ /** Optional parameters. */
300
+ export declare interface DigitalTwinsEndpointCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
301
+ /** Delay to wait until next poll, in milliseconds. */
302
+ updateIntervalInMs?: number;
303
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
304
+ resumeFrom?: string;
305
+ }
306
+
307
+ /** Contains response data for the createOrUpdate operation. */
308
+ export declare type DigitalTwinsEndpointCreateOrUpdateResponse = DigitalTwinsEndpointResource;
309
+
310
+ /** Optional parameters. */
311
+ export declare interface DigitalTwinsEndpointDeleteOptionalParams extends coreClient.OperationOptions {
312
+ /** Delay to wait until next poll, in milliseconds. */
313
+ updateIntervalInMs?: number;
314
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
315
+ resumeFrom?: string;
316
+ }
317
+
318
+ /** Contains response data for the delete operation. */
319
+ export declare type DigitalTwinsEndpointDeleteResponse = DigitalTwinsEndpointResource;
320
+
321
+ /** Optional parameters. */
322
+ export declare interface DigitalTwinsEndpointGetOptionalParams extends coreClient.OperationOptions {
323
+ }
324
+
325
+ /** Contains response data for the get operation. */
326
+ export declare type DigitalTwinsEndpointGetResponse = DigitalTwinsEndpointResource;
327
+
328
+ /** Optional parameters. */
329
+ export declare interface DigitalTwinsEndpointListNextOptionalParams extends coreClient.OperationOptions {
330
+ }
331
+
332
+ /** Contains response data for the listNext operation. */
333
+ export declare type DigitalTwinsEndpointListNextResponse = DigitalTwinsEndpointResourceListResult;
334
+
335
+ /** Optional parameters. */
336
+ export declare interface DigitalTwinsEndpointListOptionalParams extends coreClient.OperationOptions {
337
+ }
338
+
339
+ /** Contains response data for the list operation. */
340
+ export declare type DigitalTwinsEndpointListResponse = DigitalTwinsEndpointResourceListResult;
341
+
342
+ /** DigitalTwinsInstance endpoint resource. */
343
+ export declare type DigitalTwinsEndpointResource = ExternalResource & {
344
+ /** DigitalTwinsInstance endpoint resource properties. */
345
+ properties: DigitalTwinsEndpointResourcePropertiesUnion;
346
+ };
347
+
348
+ /** A list of DigitalTwinsInstance Endpoints with a next link. */
349
+ export declare interface DigitalTwinsEndpointResourceListResult {
350
+ /** The link used to get the next page of DigitalTwinsInstance Endpoints. */
351
+ nextLink?: string;
352
+ /** A list of DigitalTwinsInstance Endpoints. */
353
+ value?: DigitalTwinsEndpointResource[];
354
+ }
355
+
356
+ /** Properties related to Digital Twins Endpoint */
357
+ export declare interface DigitalTwinsEndpointResourceProperties {
358
+ /** Polymorphic discriminator, which specifies the different types this object can be */
359
+ endpointType: "ServiceBus" | "EventHub" | "EventGrid";
360
+ /**
361
+ * The provisioning state.
362
+ * NOTE: This property will not be serialized. It can only be populated by the server.
363
+ */
364
+ readonly provisioningState?: EndpointProvisioningState;
365
+ /**
366
+ * Time when the Endpoint was added to DigitalTwinsInstance.
367
+ * NOTE: This property will not be serialized. It can only be populated by the server.
368
+ */
369
+ readonly createdTime?: Date;
370
+ /** Specifies the authentication type being used for connecting to the endpoint. */
371
+ authenticationType?: AuthenticationType;
372
+ /** Dead letter storage secret for key-based authentication. Will be obfuscated during read. */
373
+ deadLetterSecret?: string;
374
+ /** Dead letter storage URL for identity-based authentication. */
375
+ deadLetterUri?: string;
376
+ }
377
+
378
+ export declare type DigitalTwinsEndpointResourcePropertiesUnion = DigitalTwinsEndpointResourceProperties | ServiceBus | EventHub | EventGrid;
379
+
380
+ /** Optional parameters. */
381
+ export declare interface DigitalTwinsGetOptionalParams extends coreClient.OperationOptions {
382
+ }
383
+
384
+ /** Contains response data for the get operation. */
385
+ export declare type DigitalTwinsGetResponse = DigitalTwinsDescription;
386
+
387
+ /** The managed identity for the DigitalTwinsInstance. */
388
+ export declare interface DigitalTwinsIdentity {
389
+ /** The type of Managed Identity used by the DigitalTwinsInstance. Only SystemAssigned is supported. */
390
+ type?: DigitalTwinsIdentityType;
391
+ /**
392
+ * 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
393
+ * NOTE: This property will not be serialized. It can only be populated by the server.
394
+ */
395
+ readonly principalId?: string;
396
+ /**
397
+ * 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
398
+ * NOTE: This property will not be serialized. It can only be populated by the server.
399
+ */
400
+ readonly tenantId?: string;
401
+ }
402
+
403
+ /**
404
+ * Defines values for DigitalTwinsIdentityType. \
405
+ * {@link KnownDigitalTwinsIdentityType} can be used interchangeably with DigitalTwinsIdentityType,
406
+ * this enum contains the known values that the service supports.
407
+ * ### Known values supported by the service
408
+ * **None** \
409
+ * **SystemAssigned**
410
+ */
411
+ export declare type DigitalTwinsIdentityType = string;
412
+
413
+ /** Optional parameters. */
414
+ export declare interface DigitalTwinsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
415
+ }
416
+
417
+ /** Contains response data for the listByResourceGroupNext operation. */
418
+ export declare type DigitalTwinsListByResourceGroupNextResponse = DigitalTwinsDescriptionListResult;
419
+
420
+ /** Optional parameters. */
421
+ export declare interface DigitalTwinsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
422
+ }
423
+
424
+ /** Contains response data for the listByResourceGroup operation. */
425
+ export declare type DigitalTwinsListByResourceGroupResponse = DigitalTwinsDescriptionListResult;
426
+
427
+ /** Optional parameters. */
428
+ export declare interface DigitalTwinsListNextOptionalParams extends coreClient.OperationOptions {
429
+ }
430
+
431
+ /** Contains response data for the listNext operation. */
432
+ export declare type DigitalTwinsListNextResponse = DigitalTwinsDescriptionListResult;
433
+
434
+ /** Optional parameters. */
435
+ export declare interface DigitalTwinsListOptionalParams extends coreClient.OperationOptions {
436
+ }
437
+
438
+ /** Contains response data for the list operation. */
439
+ export declare type DigitalTwinsListResponse = DigitalTwinsDescriptionListResult;
440
+
441
+ /** The description of the DigitalTwins service. */
442
+ export declare interface DigitalTwinsPatchDescription {
443
+ /** Instance patch properties */
444
+ tags?: {
445
+ [propertyName: string]: string;
446
+ };
447
+ /** The managed identity for the DigitalTwinsInstance. */
448
+ identity?: DigitalTwinsIdentity;
449
+ /** Properties for the DigitalTwinsInstance. */
450
+ properties?: DigitalTwinsPatchProperties;
451
+ }
452
+
453
+ /** The properties of a DigitalTwinsInstance. */
454
+ export declare interface DigitalTwinsPatchProperties {
455
+ /** Public network access for the DigitalTwinsInstance. */
456
+ publicNetworkAccess?: PublicNetworkAccess;
457
+ }
458
+
459
+ /** The common properties of a DigitalTwinsInstance. */
460
+ export declare interface DigitalTwinsResource {
461
+ /**
462
+ * The resource identifier.
463
+ * NOTE: This property will not be serialized. It can only be populated by the server.
464
+ */
465
+ readonly id?: string;
466
+ /**
467
+ * The resource name.
468
+ * NOTE: This property will not be serialized. It can only be populated by the server.
469
+ */
470
+ readonly name?: string;
471
+ /**
472
+ * The resource type.
473
+ * NOTE: This property will not be serialized. It can only be populated by the server.
474
+ */
475
+ readonly type?: string;
476
+ /** The resource location. */
477
+ location: string;
478
+ /** The resource tags. */
479
+ tags?: {
480
+ [propertyName: string]: string;
481
+ };
482
+ /** The managed identity for the DigitalTwinsInstance. */
483
+ identity?: DigitalTwinsIdentity;
484
+ }
485
+
486
+ /** Optional parameters. */
487
+ export declare interface DigitalTwinsUpdateOptionalParams extends coreClient.OperationOptions {
488
+ /** Delay to wait until next poll, in milliseconds. */
489
+ updateIntervalInMs?: number;
490
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
491
+ resumeFrom?: string;
492
+ }
493
+
494
+ /** Contains response data for the update operation. */
495
+ export declare type DigitalTwinsUpdateResponse = DigitalTwinsDescription;
496
+
497
+ /**
498
+ * Defines values for EndpointProvisioningState. \
499
+ * {@link KnownEndpointProvisioningState} can be used interchangeably with EndpointProvisioningState,
500
+ * this enum contains the known values that the service supports.
501
+ * ### Known values supported by the service
502
+ * **Provisioning** \
503
+ * **Deleting** \
504
+ * **Succeeded** \
505
+ * **Failed** \
506
+ * **Canceled** \
507
+ * **Deleted** \
508
+ * **Warning** \
509
+ * **Suspending** \
510
+ * **Restoring** \
511
+ * **Moving** \
512
+ * **Disabled**
513
+ */
514
+ export declare type EndpointProvisioningState = string;
515
+
516
+ /**
517
+ * Defines values for EndpointType. \
518
+ * {@link KnownEndpointType} can be used interchangeably with EndpointType,
519
+ * this enum contains the known values that the service supports.
520
+ * ### Known values supported by the service
521
+ * **EventHub** \
522
+ * **EventGrid** \
523
+ * **ServiceBus**
524
+ */
525
+ export declare type EndpointType = string;
526
+
527
+ /** Error definition. */
528
+ export declare interface ErrorDefinition {
529
+ /**
530
+ * Service specific error code which serves as the substatus for the HTTP error code.
531
+ * NOTE: This property will not be serialized. It can only be populated by the server.
532
+ */
533
+ readonly code?: string;
534
+ /**
535
+ * Description of the error.
536
+ * NOTE: This property will not be serialized. It can only be populated by the server.
537
+ */
538
+ readonly message?: string;
539
+ /**
540
+ * Internal error details.
541
+ * NOTE: This property will not be serialized. It can only be populated by the server.
542
+ */
543
+ readonly details?: ErrorDefinition[];
544
+ }
545
+
546
+ /** Error response. */
547
+ export declare interface ErrorResponse {
548
+ /** Error description */
549
+ error?: ErrorDefinition;
550
+ }
551
+
552
+ /** Properties related to EventGrid. */
553
+ export declare type EventGrid = DigitalTwinsEndpointResourceProperties & {
554
+ /** Polymorphic discriminator, which specifies the different types this object can be */
555
+ endpointType: "EventGrid";
556
+ /** EventGrid Topic Endpoint */
557
+ topicEndpoint: string;
558
+ /** EventGrid secondary accesskey. Will be obfuscated during read. */
559
+ accessKey1: string | null;
560
+ /** EventGrid secondary accesskey. Will be obfuscated during read. */
561
+ accessKey2?: string;
562
+ };
563
+
564
+ /** Properties related to EventHub. */
565
+ export declare type EventHub = DigitalTwinsEndpointResourceProperties & {
566
+ /** Polymorphic discriminator, which specifies the different types this object can be */
567
+ endpointType: "EventHub";
568
+ /** PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. */
569
+ connectionStringPrimaryKey?: string;
570
+ /** SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. */
571
+ connectionStringSecondaryKey?: string;
572
+ /** The URL of the EventHub namespace for identity-based authentication. It must include the protocol sb:// */
573
+ endpointUri?: string;
574
+ /** The EventHub name in the EventHub namespace for identity-based authentication. */
575
+ entityPath?: string;
576
+ };
577
+
578
+ /** Definition of a resource. */
579
+ export declare interface ExternalResource {
580
+ /**
581
+ * The resource identifier.
582
+ * NOTE: This property will not be serialized. It can only be populated by the server.
583
+ */
584
+ readonly id?: string;
585
+ /**
586
+ * Extension resource name.
587
+ * NOTE: This property will not be serialized. It can only be populated by the server.
588
+ */
589
+ readonly name?: string;
590
+ /**
591
+ * The resource type.
592
+ * NOTE: This property will not be serialized. It can only be populated by the server.
593
+ */
594
+ readonly type?: string;
595
+ }
596
+
597
+ /** The group information for creating a private endpoint on Digital Twin. */
598
+ export declare interface GroupIdInformation {
599
+ properties: GroupIdInformationProperties;
600
+ /** The resource identifier. */
601
+ id?: string;
602
+ /**
603
+ * The resource name.
604
+ * NOTE: This property will not be serialized. It can only be populated by the server.
605
+ */
606
+ readonly name?: string;
607
+ /**
608
+ * The resource type.
609
+ * NOTE: This property will not be serialized. It can only be populated by the server.
610
+ */
611
+ readonly type?: string;
612
+ }
613
+
614
+ export declare type GroupIdInformationProperties = GroupIdInformationPropertiesAutoGenerated & {};
615
+
616
+ /** The properties for a group information object. */
617
+ export declare interface GroupIdInformationPropertiesAutoGenerated {
618
+ /** The group id */
619
+ groupId?: string;
620
+ /** The required members for a specific group id. */
621
+ requiredMembers?: string[];
622
+ /** The required DNS zones for a specific group id. */
623
+ requiredZoneNames?: string[];
624
+ }
625
+
626
+ /** The available private link resources for a Digital Twin. */
627
+ export declare interface GroupIdInformationResponse {
628
+ /** The list of available private link resources for a Digital Twin. */
629
+ value?: GroupIdInformation[];
630
+ }
631
+
632
+ /** Known values of {@link AuthenticationType} that the service accepts. */
633
+ export declare enum KnownAuthenticationType {
634
+ KeyBased = "KeyBased",
635
+ IdentityBased = "IdentityBased"
636
+ }
637
+
638
+ /** Known values of {@link ConnectionPropertiesProvisioningState} that the service accepts. */
639
+ export declare enum KnownConnectionPropertiesProvisioningState {
640
+ Pending = "Pending",
641
+ Approved = "Approved",
642
+ Rejected = "Rejected",
643
+ Disconnected = "Disconnected"
644
+ }
645
+
646
+ /** Known values of {@link DigitalTwinsIdentityType} that the service accepts. */
647
+ export declare enum KnownDigitalTwinsIdentityType {
648
+ None = "None",
649
+ SystemAssigned = "SystemAssigned"
650
+ }
651
+
652
+ /** Known values of {@link EndpointProvisioningState} that the service accepts. */
653
+ export declare enum KnownEndpointProvisioningState {
654
+ Provisioning = "Provisioning",
655
+ Deleting = "Deleting",
656
+ Succeeded = "Succeeded",
657
+ Failed = "Failed",
658
+ Canceled = "Canceled",
659
+ Deleted = "Deleted",
660
+ Warning = "Warning",
661
+ Suspending = "Suspending",
662
+ Restoring = "Restoring",
663
+ Moving = "Moving",
664
+ Disabled = "Disabled"
665
+ }
666
+
667
+ /** Known values of {@link EndpointType} that the service accepts. */
668
+ export declare enum KnownEndpointType {
669
+ EventHub = "EventHub",
670
+ EventGrid = "EventGrid",
671
+ ServiceBus = "ServiceBus"
672
+ }
673
+
674
+ /** Known values of {@link PrivateLinkServiceConnectionStatus} that the service accepts. */
675
+ export declare enum KnownPrivateLinkServiceConnectionStatus {
676
+ Pending = "Pending",
677
+ Approved = "Approved",
678
+ Rejected = "Rejected",
679
+ Disconnected = "Disconnected"
680
+ }
681
+
682
+ /** Known values of {@link ProvisioningState} that the service accepts. */
683
+ export declare enum KnownProvisioningState {
684
+ Provisioning = "Provisioning",
685
+ Deleting = "Deleting",
686
+ Updating = "Updating",
687
+ Succeeded = "Succeeded",
688
+ Failed = "Failed",
689
+ Canceled = "Canceled",
690
+ Deleted = "Deleted",
691
+ Warning = "Warning",
692
+ Suspending = "Suspending",
693
+ Restoring = "Restoring",
694
+ Moving = "Moving"
695
+ }
696
+
697
+ /** Known values of {@link PublicNetworkAccess} that the service accepts. */
698
+ export declare enum KnownPublicNetworkAccess {
699
+ Enabled = "Enabled",
700
+ Disabled = "Disabled"
701
+ }
702
+
703
+ /** Known values of {@link Reason} that the service accepts. */
704
+ export declare enum KnownReason {
705
+ Invalid = "Invalid",
706
+ AlreadyExists = "AlreadyExists"
707
+ }
708
+
709
+ /** DigitalTwins service REST API operation */
710
+ export declare interface Operation {
711
+ /**
712
+ * Operation name: {provider}/{resource}/{read | write | action | delete}
713
+ * NOTE: This property will not be serialized. It can only be populated by the server.
714
+ */
715
+ readonly name?: string;
716
+ /** Operation properties display */
717
+ display?: OperationDisplay;
718
+ /**
719
+ * The intended executor of the operation.
720
+ * NOTE: This property will not be serialized. It can only be populated by the server.
721
+ */
722
+ readonly origin?: string;
723
+ /**
724
+ * If the operation is a data action (for data plane rbac).
725
+ * NOTE: This property will not be serialized. It can only be populated by the server.
726
+ */
727
+ readonly isDataAction?: boolean;
728
+ }
729
+
730
+ /** The object that represents the operation. */
731
+ export declare interface OperationDisplay {
732
+ /**
733
+ * Service provider: Microsoft DigitalTwins
734
+ * NOTE: This property will not be serialized. It can only be populated by the server.
735
+ */
736
+ readonly provider?: string;
737
+ /**
738
+ * Resource Type: DigitalTwinsInstances
739
+ * NOTE: This property will not be serialized. It can only be populated by the server.
740
+ */
741
+ readonly resource?: string;
742
+ /**
743
+ * Name of the operation
744
+ * NOTE: This property will not be serialized. It can only be populated by the server.
745
+ */
746
+ readonly operation?: string;
747
+ /**
748
+ * Friendly description for the operation,
749
+ * NOTE: This property will not be serialized. It can only be populated by the server.
750
+ */
751
+ readonly description?: string;
752
+ }
753
+
754
+ /** A list of DigitalTwins service operations. It contains a list of operations and a URL link to get the next set of results. */
755
+ export declare interface OperationListResult {
756
+ /** The link used to get the next page of DigitalTwins description objects. */
757
+ nextLink?: string;
758
+ /**
759
+ * A list of DigitalTwins operations supported by the Microsoft.DigitalTwins resource provider.
760
+ * NOTE: This property will not be serialized. It can only be populated by the server.
761
+ */
762
+ readonly value?: Operation[];
763
+ }
764
+
765
+ /** Interface representing a Operations. */
766
+ export declare interface Operations {
767
+ /**
768
+ * Lists all of the available DigitalTwins service REST API operations.
769
+ * @param options The options parameters.
770
+ */
771
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
772
+ }
773
+
774
+ /** Optional parameters. */
775
+ export declare interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
776
+ }
777
+
778
+ /** Contains response data for the listNext operation. */
779
+ export declare type OperationsListNextResponse = OperationListResult;
780
+
781
+ /** Optional parameters. */
782
+ export declare interface OperationsListOptionalParams extends coreClient.OperationOptions {
783
+ }
784
+
785
+ /** Contains response data for the list operation. */
786
+ export declare type OperationsListResponse = OperationListResult;
787
+
788
+ /** The private endpoint property of a private endpoint connection. */
789
+ export declare interface PrivateEndpoint {
790
+ /**
791
+ * The resource identifier.
792
+ * NOTE: This property will not be serialized. It can only be populated by the server.
793
+ */
794
+ readonly id?: string;
795
+ }
796
+
797
+ /** The private endpoint connection of a Digital Twin. */
798
+ export declare interface PrivateEndpointConnection {
799
+ /**
800
+ * The resource identifier.
801
+ * NOTE: This property will not be serialized. It can only be populated by the server.
802
+ */
803
+ readonly id?: string;
804
+ /**
805
+ * The resource name.
806
+ * NOTE: This property will not be serialized. It can only be populated by the server.
807
+ */
808
+ readonly name?: string;
809
+ /**
810
+ * The resource type.
811
+ * NOTE: This property will not be serialized. It can only be populated by the server.
812
+ */
813
+ readonly type?: string;
814
+ properties: PrivateEndpointConnectionProperties;
815
+ }
816
+
817
+ export declare type PrivateEndpointConnectionProperties = ConnectionProperties & {};
818
+
819
+ /** Interface representing a PrivateEndpointConnections. */
820
+ export declare interface PrivateEndpointConnections {
821
+ /**
822
+ * List private endpoint connection properties.
823
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
824
+ * @param resourceName The name of the DigitalTwinsInstance.
825
+ * @param options The options parameters.
826
+ */
827
+ list(resourceGroupName: string, resourceName: string, options?: PrivateEndpointConnectionsListOptionalParams): Promise<PrivateEndpointConnectionsListResponse>;
828
+ /**
829
+ * Get private endpoint connection properties for the given private endpoint.
830
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
831
+ * @param resourceName The name of the DigitalTwinsInstance.
832
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
833
+ * @param options The options parameters.
834
+ */
835
+ get(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise<PrivateEndpointConnectionsGetResponse>;
836
+ /**
837
+ * Delete private endpoint connection with the specified name.
838
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
839
+ * @param resourceName The name of the DigitalTwinsInstance.
840
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
841
+ * @param options The options parameters.
842
+ */
843
+ beginDelete(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
844
+ /**
845
+ * Delete private endpoint connection with the specified name.
846
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
847
+ * @param resourceName The name of the DigitalTwinsInstance.
848
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
849
+ * @param options The options parameters.
850
+ */
851
+ beginDeleteAndWait(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<void>;
852
+ /**
853
+ * Update the status of a private endpoint connection with the given name.
854
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
855
+ * @param resourceName The name of the DigitalTwinsInstance.
856
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
857
+ * @param privateEndpointConnection The private endpoint connection with updated properties.
858
+ * @param options The options parameters.
859
+ */
860
+ beginCreateOrUpdate(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>, PrivateEndpointConnectionsCreateOrUpdateResponse>>;
861
+ /**
862
+ * Update the status of a private endpoint connection with the given name.
863
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
864
+ * @param resourceName The name of the DigitalTwinsInstance.
865
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
866
+ * @param privateEndpointConnection The private endpoint connection with updated properties.
867
+ * @param options The options parameters.
868
+ */
869
+ beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse>;
870
+ }
871
+
872
+ /** Optional parameters. */
873
+ export declare interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
874
+ /** Delay to wait until next poll, in milliseconds. */
875
+ updateIntervalInMs?: number;
876
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
877
+ resumeFrom?: string;
878
+ }
879
+
880
+ /** Contains response data for the createOrUpdate operation. */
881
+ export declare type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection;
882
+
883
+ /** Optional parameters. */
884
+ export declare interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions {
885
+ /** Delay to wait until next poll, in milliseconds. */
886
+ updateIntervalInMs?: number;
887
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
888
+ resumeFrom?: string;
889
+ }
890
+
891
+ /** Optional parameters. */
892
+ export declare interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {
893
+ }
894
+
895
+ /** Contains response data for the get operation. */
896
+ export declare type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection;
897
+
898
+ /** Optional parameters. */
899
+ export declare interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions {
900
+ }
901
+
902
+ /** Contains response data for the list operation. */
903
+ export declare type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionsResponse;
904
+
905
+ /** The available private link connections for a Digital Twin. */
906
+ export declare interface PrivateEndpointConnectionsResponse {
907
+ /** The list of available private link connections for a Digital Twin. */
908
+ value?: PrivateEndpointConnection[];
909
+ }
910
+
911
+ /** Interface representing a PrivateLinkResources. */
912
+ export declare interface PrivateLinkResources {
913
+ /**
914
+ * List private link resources for given Digital Twin.
915
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
916
+ * @param resourceName The name of the DigitalTwinsInstance.
917
+ * @param options The options parameters.
918
+ */
919
+ list(resourceGroupName: string, resourceName: string, options?: PrivateLinkResourcesListOptionalParams): Promise<PrivateLinkResourcesListResponse>;
920
+ /**
921
+ * Get the specified private link resource for the given Digital Twin.
922
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
923
+ * @param resourceName The name of the DigitalTwinsInstance.
924
+ * @param resourceId The name of the private link resource.
925
+ * @param options The options parameters.
926
+ */
927
+ get(resourceGroupName: string, resourceName: string, resourceId: string, options?: PrivateLinkResourcesGetOptionalParams): Promise<PrivateLinkResourcesGetResponse>;
928
+ }
929
+
930
+ /** Optional parameters. */
931
+ export declare interface PrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions {
932
+ }
933
+
934
+ /** Contains response data for the get operation. */
935
+ export declare type PrivateLinkResourcesGetResponse = GroupIdInformation;
936
+
937
+ /** Optional parameters. */
938
+ export declare interface PrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions {
939
+ }
940
+
941
+ /** Contains response data for the list operation. */
942
+ export declare type PrivateLinkResourcesListResponse = GroupIdInformationResponse;
943
+
944
+ /**
945
+ * Defines values for PrivateLinkServiceConnectionStatus. \
946
+ * {@link KnownPrivateLinkServiceConnectionStatus} can be used interchangeably with PrivateLinkServiceConnectionStatus,
947
+ * this enum contains the known values that the service supports.
948
+ * ### Known values supported by the service
949
+ * **Pending** \
950
+ * **Approved** \
951
+ * **Rejected** \
952
+ * **Disconnected**
953
+ */
954
+ export declare type PrivateLinkServiceConnectionStatus = string;
955
+
956
+ /**
957
+ * Defines values for ProvisioningState. \
958
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
959
+ * this enum contains the known values that the service supports.
960
+ * ### Known values supported by the service
961
+ * **Provisioning** \
962
+ * **Deleting** \
963
+ * **Updating** \
964
+ * **Succeeded** \
965
+ * **Failed** \
966
+ * **Canceled** \
967
+ * **Deleted** \
968
+ * **Warning** \
969
+ * **Suspending** \
970
+ * **Restoring** \
971
+ * **Moving**
972
+ */
973
+ export declare type ProvisioningState = string;
974
+
975
+ /**
976
+ * Defines values for PublicNetworkAccess. \
977
+ * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess,
978
+ * this enum contains the known values that the service supports.
979
+ * ### Known values supported by the service
980
+ * **Enabled** \
981
+ * **Disabled**
982
+ */
983
+ export declare type PublicNetworkAccess = string;
984
+
985
+ /**
986
+ * Defines values for Reason. \
987
+ * {@link KnownReason} can be used interchangeably with Reason,
988
+ * this enum contains the known values that the service supports.
989
+ * ### Known values supported by the service
990
+ * **Invalid** \
991
+ * **AlreadyExists**
992
+ */
993
+ export declare type Reason = string;
994
+
995
+ /** Properties related to ServiceBus. */
996
+ export declare type ServiceBus = DigitalTwinsEndpointResourceProperties & {
997
+ /** Polymorphic discriminator, which specifies the different types this object can be */
998
+ endpointType: "ServiceBus";
999
+ /** PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. */
1000
+ primaryConnectionString?: string;
1001
+ /** SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. */
1002
+ secondaryConnectionString?: string;
1003
+ /** The URL of the ServiceBus namespace for identity-based authentication. It must include the protocol sb:// */
1004
+ endpointUri?: string;
1005
+ /** The ServiceBus Topic name for identity-based authentication */
1006
+ entityPath?: string;
1007
+ };
1008
+
1009
+ export { }