@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,264 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /** Class containing PrivateEndpointConnections operations. */
15
+ export class PrivateEndpointConnectionsImpl {
16
+ /**
17
+ * Initialize a new instance of the class PrivateEndpointConnections class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * List private endpoint connection properties.
25
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
26
+ * @param resourceName The name of the DigitalTwinsInstance.
27
+ * @param options The options parameters.
28
+ */
29
+ list(resourceGroupName, resourceName, options) {
30
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec);
31
+ }
32
+ /**
33
+ * Get private endpoint connection properties for the given private endpoint.
34
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
35
+ * @param resourceName The name of the DigitalTwinsInstance.
36
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
37
+ * @param options The options parameters.
38
+ */
39
+ get(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
40
+ return this.client.sendOperationRequest({
41
+ resourceGroupName,
42
+ resourceName,
43
+ privateEndpointConnectionName,
44
+ options
45
+ }, getOperationSpec);
46
+ }
47
+ /**
48
+ * Delete private endpoint connection with the specified name.
49
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
50
+ * @param resourceName The name of the DigitalTwinsInstance.
51
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
52
+ * @param options The options parameters.
53
+ */
54
+ beginDelete(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
57
+ return this.client.sendOperationRequest(args, spec);
58
+ });
59
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
60
+ var _a;
61
+ let currentRawResponse = undefined;
62
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
63
+ const callback = (rawResponse, flatResponse) => {
64
+ currentRawResponse = rawResponse;
65
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
66
+ };
67
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
68
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
69
+ return {
70
+ flatResponse,
71
+ rawResponse: {
72
+ statusCode: currentRawResponse.status,
73
+ body: currentRawResponse.parsedBody,
74
+ headers: currentRawResponse.headers.toJSON()
75
+ }
76
+ };
77
+ });
78
+ const lro = new LroImpl(sendOperation, {
79
+ resourceGroupName,
80
+ resourceName,
81
+ privateEndpointConnectionName,
82
+ options
83
+ }, deleteOperationSpec);
84
+ return new LroEngine(lro, {
85
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
86
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
87
+ });
88
+ });
89
+ }
90
+ /**
91
+ * Delete private endpoint connection with the specified name.
92
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
93
+ * @param resourceName The name of the DigitalTwinsInstance.
94
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
95
+ * @param options The options parameters.
96
+ */
97
+ beginDeleteAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ const poller = yield this.beginDelete(resourceGroupName, resourceName, privateEndpointConnectionName, options);
100
+ return poller.pollUntilDone();
101
+ });
102
+ }
103
+ /**
104
+ * Update the status of a private endpoint connection with the given name.
105
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
106
+ * @param resourceName The name of the DigitalTwinsInstance.
107
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
108
+ * @param privateEndpointConnection The private endpoint connection with updated properties.
109
+ * @param options The options parameters.
110
+ */
111
+ beginCreateOrUpdate(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options) {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
114
+ return this.client.sendOperationRequest(args, spec);
115
+ });
116
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
117
+ var _a;
118
+ let currentRawResponse = undefined;
119
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
120
+ const callback = (rawResponse, flatResponse) => {
121
+ currentRawResponse = rawResponse;
122
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
123
+ };
124
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
125
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
126
+ return {
127
+ flatResponse,
128
+ rawResponse: {
129
+ statusCode: currentRawResponse.status,
130
+ body: currentRawResponse.parsedBody,
131
+ headers: currentRawResponse.headers.toJSON()
132
+ }
133
+ };
134
+ });
135
+ const lro = new LroImpl(sendOperation, {
136
+ resourceGroupName,
137
+ resourceName,
138
+ privateEndpointConnectionName,
139
+ privateEndpointConnection,
140
+ options
141
+ }, createOrUpdateOperationSpec);
142
+ return new LroEngine(lro, {
143
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
144
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
145
+ });
146
+ });
147
+ }
148
+ /**
149
+ * Update the status of a private endpoint connection with the given name.
150
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
151
+ * @param resourceName The name of the DigitalTwinsInstance.
152
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
153
+ * @param privateEndpointConnection The private endpoint connection with updated properties.
154
+ * @param options The options parameters.
155
+ */
156
+ beginCreateOrUpdateAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options) {
157
+ return __awaiter(this, void 0, void 0, function* () {
158
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options);
159
+ return poller.pollUntilDone();
160
+ });
161
+ }
162
+ }
163
+ // Operation Specifications
164
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
165
+ const listOperationSpec = {
166
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections",
167
+ httpMethod: "GET",
168
+ responses: {
169
+ 200: {
170
+ bodyMapper: Mappers.PrivateEndpointConnectionsResponse
171
+ },
172
+ default: {
173
+ bodyMapper: Mappers.ErrorResponse
174
+ }
175
+ },
176
+ queryParameters: [Parameters.apiVersion],
177
+ urlParameters: [
178
+ Parameters.$host,
179
+ Parameters.subscriptionId,
180
+ Parameters.resourceGroupName,
181
+ Parameters.resourceName
182
+ ],
183
+ headerParameters: [Parameters.accept],
184
+ serializer
185
+ };
186
+ const getOperationSpec = {
187
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
188
+ httpMethod: "GET",
189
+ responses: {
190
+ 200: {
191
+ bodyMapper: Mappers.PrivateEndpointConnection
192
+ },
193
+ default: {
194
+ bodyMapper: Mappers.ErrorResponse
195
+ }
196
+ },
197
+ queryParameters: [Parameters.apiVersion],
198
+ urlParameters: [
199
+ Parameters.$host,
200
+ Parameters.subscriptionId,
201
+ Parameters.resourceGroupName,
202
+ Parameters.resourceName,
203
+ Parameters.privateEndpointConnectionName
204
+ ],
205
+ headerParameters: [Parameters.accept],
206
+ serializer
207
+ };
208
+ const deleteOperationSpec = {
209
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
210
+ httpMethod: "DELETE",
211
+ responses: {
212
+ 200: {},
213
+ 201: {},
214
+ 202: {},
215
+ 204: {},
216
+ default: {
217
+ bodyMapper: Mappers.ErrorResponse
218
+ }
219
+ },
220
+ queryParameters: [Parameters.apiVersion],
221
+ urlParameters: [
222
+ Parameters.$host,
223
+ Parameters.subscriptionId,
224
+ Parameters.resourceGroupName,
225
+ Parameters.resourceName,
226
+ Parameters.privateEndpointConnectionName
227
+ ],
228
+ headerParameters: [Parameters.accept],
229
+ serializer
230
+ };
231
+ const createOrUpdateOperationSpec = {
232
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
233
+ httpMethod: "PUT",
234
+ responses: {
235
+ 200: {
236
+ bodyMapper: Mappers.PrivateEndpointConnection
237
+ },
238
+ 201: {
239
+ bodyMapper: Mappers.PrivateEndpointConnection
240
+ },
241
+ 202: {
242
+ bodyMapper: Mappers.PrivateEndpointConnection
243
+ },
244
+ 204: {
245
+ bodyMapper: Mappers.PrivateEndpointConnection
246
+ },
247
+ default: {
248
+ bodyMapper: Mappers.ErrorResponse
249
+ }
250
+ },
251
+ requestBody: Parameters.privateEndpointConnection,
252
+ queryParameters: [Parameters.apiVersion],
253
+ urlParameters: [
254
+ Parameters.$host,
255
+ Parameters.subscriptionId,
256
+ Parameters.resourceGroupName,
257
+ Parameters.resourceName,
258
+ Parameters.privateEndpointConnectionName
259
+ ],
260
+ headerParameters: [Parameters.accept, Parameters.contentType],
261
+ mediaType: "json",
262
+ serializer
263
+ };
264
+ //# sourceMappingURL=privateEndpointConnections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAYrC,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,iBAAyB,EACzB,YAAoB,EACpB,OAAsD;QAEtD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,6BAAqC,EACrC,OAAqD;QAErD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,YAAY;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ACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,2BAA2B,GAA6B;IAC5D,IAAI,EACF,qMAAqM;IACvM,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,yBAAyB;IACjD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { PrivateLinkResources } from "../operationsInterfaces";
2
+ import { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient";
3
+ import { PrivateLinkResourcesListOptionalParams, PrivateLinkResourcesListResponse, PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse } from "../models";
4
+ /** Class containing PrivateLinkResources operations. */
5
+ export declare class PrivateLinkResourcesImpl implements PrivateLinkResources {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class PrivateLinkResources class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: AzureDigitalTwinsManagementClient);
12
+ /**
13
+ * List private link resources for given Digital Twin.
14
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
15
+ * @param resourceName The name of the DigitalTwinsInstance.
16
+ * @param options The options parameters.
17
+ */
18
+ list(resourceGroupName: string, resourceName: string, options?: PrivateLinkResourcesListOptionalParams): Promise<PrivateLinkResourcesListResponse>;
19
+ /**
20
+ * Get the specified private link resource for the given Digital Twin.
21
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
22
+ * @param resourceName The name of the DigitalTwinsInstance.
23
+ * @param resourceId The name of the private link resource.
24
+ * @param options The options parameters.
25
+ */
26
+ get(resourceGroupName: string, resourceName: string, resourceId: string, options?: PrivateLinkResourcesGetOptionalParams): Promise<PrivateLinkResourcesGetResponse>;
27
+ }
28
+ //# sourceMappingURL=privateLinkResources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EACL,sCAAsC,EACtC,gCAAgC,EAChC,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,WAAW,CAAC;AAEnB,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;;OAKG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;IAO5C;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;CAM5C"}
@@ -0,0 +1,85 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as Mappers from "../models/mappers";
10
+ import * as Parameters from "../models/parameters";
11
+ /** Class containing PrivateLinkResources operations. */
12
+ export class PrivateLinkResourcesImpl {
13
+ /**
14
+ * Initialize a new instance of the class PrivateLinkResources class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * List private link resources for given Digital Twin.
22
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
23
+ * @param resourceName The name of the DigitalTwinsInstance.
24
+ * @param options The options parameters.
25
+ */
26
+ list(resourceGroupName, resourceName, options) {
27
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec);
28
+ }
29
+ /**
30
+ * Get the specified private link resource for the given Digital Twin.
31
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
32
+ * @param resourceName The name of the DigitalTwinsInstance.
33
+ * @param resourceId The name of the private link resource.
34
+ * @param options The options parameters.
35
+ */
36
+ get(resourceGroupName, resourceName, resourceId, options) {
37
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, resourceId, options }, getOperationSpec);
38
+ }
39
+ }
40
+ // Operation Specifications
41
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
42
+ const listOperationSpec = {
43
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateLinkResources",
44
+ httpMethod: "GET",
45
+ responses: {
46
+ 200: {
47
+ bodyMapper: Mappers.GroupIdInformationResponse
48
+ },
49
+ default: {
50
+ bodyMapper: Mappers.ErrorResponse
51
+ }
52
+ },
53
+ queryParameters: [Parameters.apiVersion],
54
+ urlParameters: [
55
+ Parameters.$host,
56
+ Parameters.subscriptionId,
57
+ Parameters.resourceGroupName,
58
+ Parameters.resourceName
59
+ ],
60
+ headerParameters: [Parameters.accept],
61
+ serializer
62
+ };
63
+ const getOperationSpec = {
64
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateLinkResources/{resourceId}",
65
+ httpMethod: "GET",
66
+ responses: {
67
+ 200: {
68
+ bodyMapper: Mappers.GroupIdInformation
69
+ },
70
+ default: {
71
+ bodyMapper: Mappers.ErrorResponse
72
+ }
73
+ },
74
+ queryParameters: [Parameters.apiVersion],
75
+ urlParameters: [
76
+ Parameters.$host,
77
+ Parameters.subscriptionId,
78
+ Parameters.resourceGroupName,
79
+ Parameters.resourceName,
80
+ Parameters.resourceId
81
+ ],
82
+ headerParameters: [Parameters.accept],
83
+ serializer
84
+ };
85
+ //# sourceMappingURL=privateLinkResources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AASnD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,iBAAyB,EACzB,YAAoB,EACpB,OAAgD;QAEhD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,iBAAiB,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ACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,83 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
3
+ import { DigitalTwinsDescription, DigitalTwinsListOptionalParams, DigitalTwinsListByResourceGroupOptionalParams, DigitalTwinsGetOptionalParams, DigitalTwinsGetResponse, DigitalTwinsCreateOrUpdateOptionalParams, DigitalTwinsCreateOrUpdateResponse, DigitalTwinsPatchDescription, DigitalTwinsUpdateOptionalParams, DigitalTwinsUpdateResponse, DigitalTwinsDeleteOptionalParams, DigitalTwinsDeleteResponse, CheckNameRequest, DigitalTwinsCheckNameAvailabilityOptionalParams, DigitalTwinsCheckNameAvailabilityResponse } from "../models";
4
+ /** Interface representing a DigitalTwins. */
5
+ export interface DigitalTwins {
6
+ /**
7
+ * Get all the DigitalTwinsInstances in a subscription.
8
+ * @param options The options parameters.
9
+ */
10
+ list(options?: DigitalTwinsListOptionalParams): PagedAsyncIterableIterator<DigitalTwinsDescription>;
11
+ /**
12
+ * Get all the DigitalTwinsInstances in a resource group.
13
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
14
+ * @param options The options parameters.
15
+ */
16
+ listByResourceGroup(resourceGroupName: string, options?: DigitalTwinsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<DigitalTwinsDescription>;
17
+ /**
18
+ * Get DigitalTwinsInstances resource.
19
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
20
+ * @param resourceName The name of the DigitalTwinsInstance.
21
+ * @param options The options parameters.
22
+ */
23
+ get(resourceGroupName: string, resourceName: string, options?: DigitalTwinsGetOptionalParams): Promise<DigitalTwinsGetResponse>;
24
+ /**
25
+ * Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is
26
+ * to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified
27
+ * values in a new body to update the DigitalTwinsInstance.
28
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
29
+ * @param resourceName The name of the DigitalTwinsInstance.
30
+ * @param digitalTwinsCreate The DigitalTwinsInstance and security metadata.
31
+ * @param options The options parameters.
32
+ */
33
+ beginCreateOrUpdate(resourceGroupName: string, resourceName: string, digitalTwinsCreate: DigitalTwinsDescription, options?: DigitalTwinsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<DigitalTwinsCreateOrUpdateResponse>, DigitalTwinsCreateOrUpdateResponse>>;
34
+ /**
35
+ * Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is
36
+ * to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified
37
+ * values in a new body to update the DigitalTwinsInstance.
38
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
39
+ * @param resourceName The name of the DigitalTwinsInstance.
40
+ * @param digitalTwinsCreate The DigitalTwinsInstance and security metadata.
41
+ * @param options The options parameters.
42
+ */
43
+ beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, digitalTwinsCreate: DigitalTwinsDescription, options?: DigitalTwinsCreateOrUpdateOptionalParams): Promise<DigitalTwinsCreateOrUpdateResponse>;
44
+ /**
45
+ * Update metadata of DigitalTwinsInstance.
46
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
47
+ * @param resourceName The name of the DigitalTwinsInstance.
48
+ * @param digitalTwinsPatchDescription The DigitalTwinsInstance and security metadata.
49
+ * @param options The options parameters.
50
+ */
51
+ beginUpdate(resourceGroupName: string, resourceName: string, digitalTwinsPatchDescription: DigitalTwinsPatchDescription, options?: DigitalTwinsUpdateOptionalParams): Promise<PollerLike<PollOperationState<DigitalTwinsUpdateResponse>, DigitalTwinsUpdateResponse>>;
52
+ /**
53
+ * Update metadata of DigitalTwinsInstance.
54
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
55
+ * @param resourceName The name of the DigitalTwinsInstance.
56
+ * @param digitalTwinsPatchDescription The DigitalTwinsInstance and security metadata.
57
+ * @param options The options parameters.
58
+ */
59
+ beginUpdateAndWait(resourceGroupName: string, resourceName: string, digitalTwinsPatchDescription: DigitalTwinsPatchDescription, options?: DigitalTwinsUpdateOptionalParams): Promise<DigitalTwinsUpdateResponse>;
60
+ /**
61
+ * Delete a DigitalTwinsInstance.
62
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
63
+ * @param resourceName The name of the DigitalTwinsInstance.
64
+ * @param options The options parameters.
65
+ */
66
+ beginDelete(resourceGroupName: string, resourceName: string, options?: DigitalTwinsDeleteOptionalParams): Promise<PollerLike<PollOperationState<DigitalTwinsDeleteResponse>, DigitalTwinsDeleteResponse>>;
67
+ /**
68
+ * Delete a DigitalTwinsInstance.
69
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
70
+ * @param resourceName The name of the DigitalTwinsInstance.
71
+ * @param options The options parameters.
72
+ */
73
+ beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: DigitalTwinsDeleteOptionalParams): Promise<DigitalTwinsDeleteResponse>;
74
+ /**
75
+ * Check if a DigitalTwinsInstance name is available.
76
+ * @param location Location of DigitalTwinsInstance.
77
+ * @param digitalTwinsInstanceCheckName Set the name parameter in the DigitalTwinsInstanceCheckName
78
+ * structure to the name of the DigitalTwinsInstance to check.
79
+ * @param options The options parameters.
80
+ */
81
+ checkNameAvailability(location: string, digitalTwinsInstanceCheckName: CheckNameRequest, options?: DigitalTwinsCheckNameAvailabilityOptionalParams): Promise<DigitalTwinsCheckNameAvailabilityResponse>;
82
+ }
83
+ //# sourceMappingURL=digitalTwins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"digitalTwins.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/digitalTwins.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM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,CAAC,EAAE,gCAAgC,GACzC,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,0BAA0B,CAAC,EAC9C,0BAA0B,CAC3B,CACF,CAAC;IACF;;;;;;OAMG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,4BAA4B,EAAE,4BAA4B,EAC1D,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACvC;;;;;OAKG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,0BAA0B,CAAC,EAC9C,0BAA0B,CAC3B,CACF,CAAC;IACF;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACvC;;;;;;OAMG;IACH,qBAAqB,CACnB,QAAQ,EAAE,MAAM,EAChB,6BAA6B,EAAE,gBAAgB,EAC/C,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC,CAAC;CACvD"}
@@ -5,12 +5,5 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
-
9
- export {
10
- discriminators,
11
- ErrorDefinition,
12
- ErrorResponse,
13
- Operation,
14
- OperationDisplay,
15
- OperationListResult
16
- } from "../models/mappers";
8
+ export {};
9
+ //# sourceMappingURL=digitalTwins.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"digitalTwins.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/digitalTwins.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,56 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
3
+ import { DigitalTwinsEndpointResource, DigitalTwinsEndpointListOptionalParams, DigitalTwinsEndpointGetOptionalParams, DigitalTwinsEndpointGetResponse, DigitalTwinsEndpointCreateOrUpdateOptionalParams, DigitalTwinsEndpointCreateOrUpdateResponse, DigitalTwinsEndpointDeleteOptionalParams, DigitalTwinsEndpointDeleteResponse } from "../models";
4
+ /** Interface representing a DigitalTwinsEndpoint. */
5
+ export interface DigitalTwinsEndpoint {
6
+ /**
7
+ * Get DigitalTwinsInstance Endpoints.
8
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
9
+ * @param resourceName The name of the DigitalTwinsInstance.
10
+ * @param options The options parameters.
11
+ */
12
+ list(resourceGroupName: string, resourceName: string, options?: DigitalTwinsEndpointListOptionalParams): PagedAsyncIterableIterator<DigitalTwinsEndpointResource>;
13
+ /**
14
+ * Get DigitalTwinsInstances Endpoint.
15
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
16
+ * @param resourceName The name of the DigitalTwinsInstance.
17
+ * @param endpointName Name of Endpoint Resource.
18
+ * @param options The options parameters.
19
+ */
20
+ get(resourceGroupName: string, resourceName: string, endpointName: string, options?: DigitalTwinsEndpointGetOptionalParams): Promise<DigitalTwinsEndpointGetResponse>;
21
+ /**
22
+ * Create or update DigitalTwinsInstance endpoint.
23
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
24
+ * @param resourceName The name of the DigitalTwinsInstance.
25
+ * @param endpointName Name of Endpoint Resource.
26
+ * @param endpointDescription The DigitalTwinsInstance endpoint metadata and security metadata.
27
+ * @param options The options parameters.
28
+ */
29
+ beginCreateOrUpdate(resourceGroupName: string, resourceName: string, endpointName: string, endpointDescription: DigitalTwinsEndpointResource, options?: DigitalTwinsEndpointCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<DigitalTwinsEndpointCreateOrUpdateResponse>, DigitalTwinsEndpointCreateOrUpdateResponse>>;
30
+ /**
31
+ * Create or update DigitalTwinsInstance endpoint.
32
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
33
+ * @param resourceName The name of the DigitalTwinsInstance.
34
+ * @param endpointName Name of Endpoint Resource.
35
+ * @param endpointDescription The DigitalTwinsInstance endpoint metadata and security metadata.
36
+ * @param options The options parameters.
37
+ */
38
+ beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, endpointName: string, endpointDescription: DigitalTwinsEndpointResource, options?: DigitalTwinsEndpointCreateOrUpdateOptionalParams): Promise<DigitalTwinsEndpointCreateOrUpdateResponse>;
39
+ /**
40
+ * Delete a DigitalTwinsInstance endpoint.
41
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
42
+ * @param resourceName The name of the DigitalTwinsInstance.
43
+ * @param endpointName Name of Endpoint Resource.
44
+ * @param options The options parameters.
45
+ */
46
+ beginDelete(resourceGroupName: string, resourceName: string, endpointName: string, options?: DigitalTwinsEndpointDeleteOptionalParams): Promise<PollerLike<PollOperationState<DigitalTwinsEndpointDeleteResponse>, DigitalTwinsEndpointDeleteResponse>>;
47
+ /**
48
+ * Delete a DigitalTwinsInstance endpoint.
49
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
50
+ * @param resourceName The name of the DigitalTwinsInstance.
51
+ * @param endpointName Name of Endpoint Resource.
52
+ * @param options The options parameters.
53
+ */
54
+ beginDeleteAndWait(resourceGroupName: string, resourceName: string, endpointName: string, options?: DigitalTwinsEndpointDeleteOptionalParams): Promise<DigitalTwinsEndpointDeleteResponse>;
55
+ }
56
+ //# sourceMappingURL=digitalTwinsEndpoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"digitalTwinsEndpoint.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/digitalTwinsEndpoint.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE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D,kCAAkC,CACnC,CACF,CAAC;IACF;;;;;;OAMG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC,CAAC;CAChD"}
@@ -5,5 +5,5 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- export { discriminators, ErrorDefinition, ErrorResponse, Operation, OperationDisplay, OperationListResult } from "../models/mappers";
9
- //# sourceMappingURL=operationsMappers.js.map
8
+ export {};
9
+ //# sourceMappingURL=digitalTwinsEndpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"digitalTwinsEndpoint.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/digitalTwinsEndpoint.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,6 @@
1
+ export * from "./digitalTwins";
2
+ export * from "./digitalTwinsEndpoint";
3
+ export * from "./operations";
4
+ export * from "./privateLinkResources";
5
+ export * from "./privateEndpointConnections";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./digitalTwins";
9
+ export * from "./digitalTwinsEndpoint";
10
+ export * from "./operations";
11
+ export * from "./privateLinkResources";
12
+ export * from "./privateEndpointConnections";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operation, OperationsListOptionalParams } from "../models";
3
+ /** Interface representing a Operations. */
4
+ export interface Operations {
5
+ /**
6
+ * Lists all of the available DigitalTwins service REST API operations.
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
10
+ }
11
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAGpE,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
@@ -5,4 +5,5 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- //# sourceMappingURL=index.js.map
8
+ export {};
9
+ //# sourceMappingURL=operations.js.map