@azure/arm-digitaltwins 1.0.0 → 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 (162) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +1 -1
  4. package/README.md +72 -77
  5. package/dist/index.js +2613 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/src/azureDigitalTwinsManagementClient.d.ts +22 -0
  10. package/dist-esm/src/azureDigitalTwinsManagementClient.d.ts.map +1 -0
  11. package/dist-esm/src/azureDigitalTwinsManagementClient.js +55 -0
  12. package/dist-esm/src/azureDigitalTwinsManagementClient.js.map +1 -0
  13. package/dist-esm/src/index.d.ts +5 -0
  14. package/dist-esm/src/index.d.ts.map +1 -0
  15. package/dist-esm/src/index.js +12 -0
  16. package/dist-esm/src/index.js.map +1 -0
  17. package/dist-esm/src/lroImpl.d.ts +16 -0
  18. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  19. package/dist-esm/src/lroImpl.js +29 -0
  20. package/dist-esm/src/lroImpl.js.map +1 -0
  21. package/dist-esm/src/models/index.d.ts +677 -0
  22. package/dist-esm/src/models/index.d.ts.map +1 -0
  23. package/dist-esm/src/models/index.js +85 -0
  24. package/dist-esm/src/models/index.js.map +1 -0
  25. package/dist-esm/src/models/mappers.d.ts +40 -0
  26. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  27. package/{esm → dist-esm/src}/models/mappers.js +609 -256
  28. package/dist-esm/src/models/mappers.js.map +1 -0
  29. package/dist-esm/src/models/parameters.d.ts +19 -0
  30. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  31. package/dist-esm/src/models/parameters.js +171 -0
  32. package/dist-esm/src/models/parameters.js.map +1 -0
  33. package/dist-esm/src/operations/digitalTwins.d.ts +119 -0
  34. package/dist-esm/src/operations/digitalTwins.d.ts.map +1 -0
  35. package/dist-esm/src/operations/digitalTwins.js +549 -0
  36. package/dist-esm/src/operations/digitalTwins.js.map +1 -0
  37. package/dist-esm/src/operations/digitalTwinsEndpoint.d.ts +81 -0
  38. package/dist-esm/src/operations/digitalTwinsEndpoint.d.ts.map +1 -0
  39. package/dist-esm/src/operations/digitalTwinsEndpoint.js +345 -0
  40. package/dist-esm/src/operations/digitalTwinsEndpoint.js.map +1 -0
  41. package/dist-esm/src/operations/index.d.ts +6 -0
  42. package/dist-esm/src/operations/index.d.ts.map +1 -0
  43. package/{esm → dist-esm/src}/operations/index.js +5 -5
  44. package/dist-esm/src/operations/index.js.map +1 -0
  45. package/dist-esm/src/operations/operations.d.ts +32 -0
  46. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  47. package/dist-esm/src/operations/operations.js +120 -0
  48. package/dist-esm/src/operations/operations.js.map +1 -0
  49. package/dist-esm/src/operations/privateEndpointConnections.d.ts +63 -0
  50. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  51. package/dist-esm/src/operations/privateEndpointConnections.js +264 -0
  52. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  53. package/dist-esm/src/operations/privateLinkResources.d.ts +28 -0
  54. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  55. package/dist-esm/src/operations/privateLinkResources.js +85 -0
  56. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  57. package/dist-esm/src/operationsInterfaces/digitalTwins.d.ts +83 -0
  58. package/dist-esm/src/operationsInterfaces/digitalTwins.d.ts.map +1 -0
  59. package/dist-esm/src/operationsInterfaces/digitalTwins.js +9 -0
  60. package/dist-esm/src/operationsInterfaces/digitalTwins.js.map +1 -0
  61. package/dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.d.ts +56 -0
  62. package/dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.d.ts.map +1 -0
  63. package/dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.js +9 -0
  64. package/dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.js.map +1 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  66. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  67. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  68. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  69. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  70. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  71. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  72. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  73. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +55 -0
  74. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  75. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  76. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  77. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +20 -0
  78. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  79. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  80. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  81. package/dist-esm/test/sampleTest.d.ts +2 -0
  82. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  83. package/dist-esm/test/sampleTest.js +40 -0
  84. package/dist-esm/test/sampleTest.js.map +1 -0
  85. package/package.json +65 -31
  86. package/review/arm-digitaltwins.api.md +620 -0
  87. package/rollup.config.js +181 -30
  88. package/src/azureDigitalTwinsManagementClient.ts +82 -33
  89. package/src/index.ts +12 -0
  90. package/src/lroImpl.ts +34 -0
  91. package/src/models/index.ts +587 -684
  92. package/src/models/mappers.ts +638 -255
  93. package/src/models/parameters.ts +128 -44
  94. package/src/operations/digitalTwins.ts +557 -367
  95. package/src/operations/digitalTwinsEndpoint.ts +340 -192
  96. package/src/operations/index.ts +5 -5
  97. package/src/operations/operations.ts +87 -73
  98. package/src/operations/privateEndpointConnections.ts +377 -0
  99. package/src/operations/privateLinkResources.ts +116 -0
  100. package/src/operationsInterfaces/digitalTwins.ts +164 -0
  101. package/src/operationsInterfaces/digitalTwinsEndpoint.ts +115 -0
  102. package/src/operationsInterfaces/index.ts +13 -0
  103. package/src/operationsInterfaces/operations.ts +22 -0
  104. package/src/operationsInterfaces/privateEndpointConnections.ts +108 -0
  105. package/src/operationsInterfaces/privateLinkResources.ts +42 -0
  106. package/tsconfig.json +3 -3
  107. package/types/arm-digitaltwins.d.ts +1009 -0
  108. package/types/tsdoc-metadata.json +11 -0
  109. package/dist/arm-digitaltwins.js +0 -1601
  110. package/dist/arm-digitaltwins.js.map +0 -1
  111. package/dist/arm-digitaltwins.min.js +0 -1
  112. package/dist/arm-digitaltwins.min.js.map +0 -1
  113. package/esm/azureDigitalTwinsManagementClient.d.ts +0 -20
  114. package/esm/azureDigitalTwinsManagementClient.d.ts.map +0 -1
  115. package/esm/azureDigitalTwinsManagementClient.js +0 -35
  116. package/esm/azureDigitalTwinsManagementClient.js.map +0 -1
  117. package/esm/azureDigitalTwinsManagementClientContext.d.ts +0 -16
  118. package/esm/azureDigitalTwinsManagementClientContext.d.ts.map +0 -1
  119. package/esm/azureDigitalTwinsManagementClientContext.js +0 -56
  120. package/esm/azureDigitalTwinsManagementClientContext.js.map +0 -1
  121. package/esm/models/digitalTwinsEndpointMappers.d.ts +0 -2
  122. package/esm/models/digitalTwinsEndpointMappers.d.ts.map +0 -1
  123. package/esm/models/digitalTwinsEndpointMappers.js +0 -9
  124. package/esm/models/digitalTwinsEndpointMappers.js.map +0 -1
  125. package/esm/models/digitalTwinsMappers.d.ts +0 -2
  126. package/esm/models/digitalTwinsMappers.d.ts.map +0 -1
  127. package/esm/models/digitalTwinsMappers.js +0 -9
  128. package/esm/models/digitalTwinsMappers.js.map +0 -1
  129. package/esm/models/index.d.ts +0 -815
  130. package/esm/models/index.d.ts.map +0 -1
  131. package/esm/models/index.js +0 -8
  132. package/esm/models/index.js.map +0 -1
  133. package/esm/models/mappers.d.ts +0 -28
  134. package/esm/models/mappers.d.ts.map +0 -1
  135. package/esm/models/mappers.js.map +0 -1
  136. package/esm/models/operationsMappers.d.ts +0 -2
  137. package/esm/models/operationsMappers.d.ts.map +0 -1
  138. package/esm/models/operationsMappers.js +0 -9
  139. package/esm/models/operationsMappers.js.map +0 -1
  140. package/esm/models/parameters.d.ts +0 -10
  141. package/esm/models/parameters.d.ts.map +0 -1
  142. package/esm/models/parameters.js +0 -113
  143. package/esm/models/parameters.js.map +0 -1
  144. package/esm/operations/digitalTwins.d.ts +0 -179
  145. package/esm/operations/digitalTwins.d.ts.map +0 -1
  146. package/esm/operations/digitalTwins.js +0 -377
  147. package/esm/operations/digitalTwins.js.map +0 -1
  148. package/esm/operations/digitalTwinsEndpoint.d.ts +0 -113
  149. package/esm/operations/digitalTwinsEndpoint.d.ts.map +0 -1
  150. package/esm/operations/digitalTwinsEndpoint.js +0 -240
  151. package/esm/operations/digitalTwinsEndpoint.js.map +0 -1
  152. package/esm/operations/index.d.ts +0 -4
  153. package/esm/operations/index.d.ts.map +0 -1
  154. package/esm/operations/index.js.map +0 -1
  155. package/esm/operations/operations.d.ts +0 -46
  156. package/esm/operations/operations.d.ts.map +0 -1
  157. package/esm/operations/operations.js +0 -77
  158. package/esm/operations/operations.js.map +0 -1
  159. package/src/azureDigitalTwinsManagementClientContext.ts +0 -62
  160. package/src/models/digitalTwinsEndpointMappers.ts +0 -23
  161. package/src/models/digitalTwinsMappers.ts +0 -26
  162. package/src/models/operationsMappers.ts +0 -16
@@ -0,0 +1,116 @@
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
+
9
+ import { PrivateLinkResources } from "../operationsInterfaces";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ import { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient";
14
+ import {
15
+ PrivateLinkResourcesListOptionalParams,
16
+ PrivateLinkResourcesListResponse,
17
+ PrivateLinkResourcesGetOptionalParams,
18
+ PrivateLinkResourcesGetResponse
19
+ } from "../models";
20
+
21
+ /** Class containing PrivateLinkResources operations. */
22
+ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
23
+ private readonly client: AzureDigitalTwinsManagementClient;
24
+
25
+ /**
26
+ * Initialize a new instance of the class PrivateLinkResources class.
27
+ * @param client Reference to the service client
28
+ */
29
+ constructor(client: AzureDigitalTwinsManagementClient) {
30
+ this.client = client;
31
+ }
32
+
33
+ /**
34
+ * List private link resources for given Digital Twin.
35
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
36
+ * @param resourceName The name of the DigitalTwinsInstance.
37
+ * @param options The options parameters.
38
+ */
39
+ list(
40
+ resourceGroupName: string,
41
+ resourceName: string,
42
+ options?: PrivateLinkResourcesListOptionalParams
43
+ ): Promise<PrivateLinkResourcesListResponse> {
44
+ return this.client.sendOperationRequest(
45
+ { resourceGroupName, resourceName, options },
46
+ listOperationSpec
47
+ );
48
+ }
49
+
50
+ /**
51
+ * Get the specified private link resource for the given Digital Twin.
52
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
53
+ * @param resourceName The name of the DigitalTwinsInstance.
54
+ * @param resourceId The name of the private link resource.
55
+ * @param options The options parameters.
56
+ */
57
+ get(
58
+ resourceGroupName: string,
59
+ resourceName: string,
60
+ resourceId: string,
61
+ options?: PrivateLinkResourcesGetOptionalParams
62
+ ): Promise<PrivateLinkResourcesGetResponse> {
63
+ return this.client.sendOperationRequest(
64
+ { resourceGroupName, resourceName, resourceId, options },
65
+ getOperationSpec
66
+ );
67
+ }
68
+ }
69
+ // Operation Specifications
70
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
71
+
72
+ const listOperationSpec: coreClient.OperationSpec = {
73
+ path:
74
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateLinkResources",
75
+ httpMethod: "GET",
76
+ responses: {
77
+ 200: {
78
+ bodyMapper: Mappers.GroupIdInformationResponse
79
+ },
80
+ default: {
81
+ bodyMapper: Mappers.ErrorResponse
82
+ }
83
+ },
84
+ queryParameters: [Parameters.apiVersion],
85
+ urlParameters: [
86
+ Parameters.$host,
87
+ Parameters.subscriptionId,
88
+ Parameters.resourceGroupName,
89
+ Parameters.resourceName
90
+ ],
91
+ headerParameters: [Parameters.accept],
92
+ serializer
93
+ };
94
+ const getOperationSpec: coreClient.OperationSpec = {
95
+ path:
96
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateLinkResources/{resourceId}",
97
+ httpMethod: "GET",
98
+ responses: {
99
+ 200: {
100
+ bodyMapper: Mappers.GroupIdInformation
101
+ },
102
+ default: {
103
+ bodyMapper: Mappers.ErrorResponse
104
+ }
105
+ },
106
+ queryParameters: [Parameters.apiVersion],
107
+ urlParameters: [
108
+ Parameters.$host,
109
+ Parameters.subscriptionId,
110
+ Parameters.resourceGroupName,
111
+ Parameters.resourceName,
112
+ Parameters.resourceId
113
+ ],
114
+ headerParameters: [Parameters.accept],
115
+ serializer
116
+ };
@@ -0,0 +1,164 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ DigitalTwinsDescription,
13
+ DigitalTwinsListOptionalParams,
14
+ DigitalTwinsListByResourceGroupOptionalParams,
15
+ DigitalTwinsGetOptionalParams,
16
+ DigitalTwinsGetResponse,
17
+ DigitalTwinsCreateOrUpdateOptionalParams,
18
+ DigitalTwinsCreateOrUpdateResponse,
19
+ DigitalTwinsPatchDescription,
20
+ DigitalTwinsUpdateOptionalParams,
21
+ DigitalTwinsUpdateResponse,
22
+ DigitalTwinsDeleteOptionalParams,
23
+ DigitalTwinsDeleteResponse,
24
+ CheckNameRequest,
25
+ DigitalTwinsCheckNameAvailabilityOptionalParams,
26
+ DigitalTwinsCheckNameAvailabilityResponse
27
+ } from "../models";
28
+
29
+ /// <reference lib="esnext.asynciterable" />
30
+ /** Interface representing a DigitalTwins. */
31
+ export interface DigitalTwins {
32
+ /**
33
+ * Get all the DigitalTwinsInstances in a subscription.
34
+ * @param options The options parameters.
35
+ */
36
+ list(
37
+ options?: DigitalTwinsListOptionalParams
38
+ ): PagedAsyncIterableIterator<DigitalTwinsDescription>;
39
+ /**
40
+ * Get all the DigitalTwinsInstances in a resource group.
41
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
42
+ * @param options The options parameters.
43
+ */
44
+ listByResourceGroup(
45
+ resourceGroupName: string,
46
+ options?: DigitalTwinsListByResourceGroupOptionalParams
47
+ ): PagedAsyncIterableIterator<DigitalTwinsDescription>;
48
+ /**
49
+ * Get DigitalTwinsInstances resource.
50
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
51
+ * @param resourceName The name of the DigitalTwinsInstance.
52
+ * @param options The options parameters.
53
+ */
54
+ get(
55
+ resourceGroupName: string,
56
+ resourceName: string,
57
+ options?: DigitalTwinsGetOptionalParams
58
+ ): Promise<DigitalTwinsGetResponse>;
59
+ /**
60
+ * Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is
61
+ * to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified
62
+ * values in a new body to update the DigitalTwinsInstance.
63
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
64
+ * @param resourceName The name of the DigitalTwinsInstance.
65
+ * @param digitalTwinsCreate The DigitalTwinsInstance and security metadata.
66
+ * @param options The options parameters.
67
+ */
68
+ beginCreateOrUpdate(
69
+ resourceGroupName: string,
70
+ resourceName: string,
71
+ digitalTwinsCreate: DigitalTwinsDescription,
72
+ options?: DigitalTwinsCreateOrUpdateOptionalParams
73
+ ): Promise<
74
+ PollerLike<
75
+ PollOperationState<DigitalTwinsCreateOrUpdateResponse>,
76
+ DigitalTwinsCreateOrUpdateResponse
77
+ >
78
+ >;
79
+ /**
80
+ * Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is
81
+ * to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified
82
+ * values in a new body to update the DigitalTwinsInstance.
83
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
84
+ * @param resourceName The name of the DigitalTwinsInstance.
85
+ * @param digitalTwinsCreate The DigitalTwinsInstance and security metadata.
86
+ * @param options The options parameters.
87
+ */
88
+ beginCreateOrUpdateAndWait(
89
+ resourceGroupName: string,
90
+ resourceName: string,
91
+ digitalTwinsCreate: DigitalTwinsDescription,
92
+ options?: DigitalTwinsCreateOrUpdateOptionalParams
93
+ ): Promise<DigitalTwinsCreateOrUpdateResponse>;
94
+ /**
95
+ * Update metadata of DigitalTwinsInstance.
96
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
97
+ * @param resourceName The name of the DigitalTwinsInstance.
98
+ * @param digitalTwinsPatchDescription The DigitalTwinsInstance and security metadata.
99
+ * @param options The options parameters.
100
+ */
101
+ beginUpdate(
102
+ resourceGroupName: string,
103
+ resourceName: string,
104
+ digitalTwinsPatchDescription: DigitalTwinsPatchDescription,
105
+ options?: DigitalTwinsUpdateOptionalParams
106
+ ): Promise<
107
+ PollerLike<
108
+ PollOperationState<DigitalTwinsUpdateResponse>,
109
+ DigitalTwinsUpdateResponse
110
+ >
111
+ >;
112
+ /**
113
+ * Update metadata of DigitalTwinsInstance.
114
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
115
+ * @param resourceName The name of the DigitalTwinsInstance.
116
+ * @param digitalTwinsPatchDescription The DigitalTwinsInstance and security metadata.
117
+ * @param options The options parameters.
118
+ */
119
+ beginUpdateAndWait(
120
+ resourceGroupName: string,
121
+ resourceName: string,
122
+ digitalTwinsPatchDescription: DigitalTwinsPatchDescription,
123
+ options?: DigitalTwinsUpdateOptionalParams
124
+ ): Promise<DigitalTwinsUpdateResponse>;
125
+ /**
126
+ * Delete a DigitalTwinsInstance.
127
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
128
+ * @param resourceName The name of the DigitalTwinsInstance.
129
+ * @param options The options parameters.
130
+ */
131
+ beginDelete(
132
+ resourceGroupName: string,
133
+ resourceName: string,
134
+ options?: DigitalTwinsDeleteOptionalParams
135
+ ): Promise<
136
+ PollerLike<
137
+ PollOperationState<DigitalTwinsDeleteResponse>,
138
+ DigitalTwinsDeleteResponse
139
+ >
140
+ >;
141
+ /**
142
+ * Delete a DigitalTwinsInstance.
143
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
144
+ * @param resourceName The name of the DigitalTwinsInstance.
145
+ * @param options The options parameters.
146
+ */
147
+ beginDeleteAndWait(
148
+ resourceGroupName: string,
149
+ resourceName: string,
150
+ options?: DigitalTwinsDeleteOptionalParams
151
+ ): Promise<DigitalTwinsDeleteResponse>;
152
+ /**
153
+ * Check if a DigitalTwinsInstance name is available.
154
+ * @param location Location of DigitalTwinsInstance.
155
+ * @param digitalTwinsInstanceCheckName Set the name parameter in the DigitalTwinsInstanceCheckName
156
+ * structure to the name of the DigitalTwinsInstance to check.
157
+ * @param options The options parameters.
158
+ */
159
+ checkNameAvailability(
160
+ location: string,
161
+ digitalTwinsInstanceCheckName: CheckNameRequest,
162
+ options?: DigitalTwinsCheckNameAvailabilityOptionalParams
163
+ ): Promise<DigitalTwinsCheckNameAvailabilityResponse>;
164
+ }
@@ -0,0 +1,115 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ DigitalTwinsEndpointResource,
13
+ DigitalTwinsEndpointListOptionalParams,
14
+ DigitalTwinsEndpointGetOptionalParams,
15
+ DigitalTwinsEndpointGetResponse,
16
+ DigitalTwinsEndpointCreateOrUpdateOptionalParams,
17
+ DigitalTwinsEndpointCreateOrUpdateResponse,
18
+ DigitalTwinsEndpointDeleteOptionalParams,
19
+ DigitalTwinsEndpointDeleteResponse
20
+ } from "../models";
21
+
22
+ /// <reference lib="esnext.asynciterable" />
23
+ /** Interface representing a DigitalTwinsEndpoint. */
24
+ export interface DigitalTwinsEndpoint {
25
+ /**
26
+ * Get DigitalTwinsInstance Endpoints.
27
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
28
+ * @param resourceName The name of the DigitalTwinsInstance.
29
+ * @param options The options parameters.
30
+ */
31
+ list(
32
+ resourceGroupName: string,
33
+ resourceName: string,
34
+ options?: DigitalTwinsEndpointListOptionalParams
35
+ ): PagedAsyncIterableIterator<DigitalTwinsEndpointResource>;
36
+ /**
37
+ * Get DigitalTwinsInstances Endpoint.
38
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
39
+ * @param resourceName The name of the DigitalTwinsInstance.
40
+ * @param endpointName Name of Endpoint Resource.
41
+ * @param options The options parameters.
42
+ */
43
+ get(
44
+ resourceGroupName: string,
45
+ resourceName: string,
46
+ endpointName: string,
47
+ options?: DigitalTwinsEndpointGetOptionalParams
48
+ ): Promise<DigitalTwinsEndpointGetResponse>;
49
+ /**
50
+ * Create or update DigitalTwinsInstance endpoint.
51
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
52
+ * @param resourceName The name of the DigitalTwinsInstance.
53
+ * @param endpointName Name of Endpoint Resource.
54
+ * @param endpointDescription The DigitalTwinsInstance endpoint metadata and security metadata.
55
+ * @param options The options parameters.
56
+ */
57
+ beginCreateOrUpdate(
58
+ resourceGroupName: string,
59
+ resourceName: string,
60
+ endpointName: string,
61
+ endpointDescription: DigitalTwinsEndpointResource,
62
+ options?: DigitalTwinsEndpointCreateOrUpdateOptionalParams
63
+ ): Promise<
64
+ PollerLike<
65
+ PollOperationState<DigitalTwinsEndpointCreateOrUpdateResponse>,
66
+ DigitalTwinsEndpointCreateOrUpdateResponse
67
+ >
68
+ >;
69
+ /**
70
+ * Create or update DigitalTwinsInstance endpoint.
71
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
72
+ * @param resourceName The name of the DigitalTwinsInstance.
73
+ * @param endpointName Name of Endpoint Resource.
74
+ * @param endpointDescription The DigitalTwinsInstance endpoint metadata and security metadata.
75
+ * @param options The options parameters.
76
+ */
77
+ beginCreateOrUpdateAndWait(
78
+ resourceGroupName: string,
79
+ resourceName: string,
80
+ endpointName: string,
81
+ endpointDescription: DigitalTwinsEndpointResource,
82
+ options?: DigitalTwinsEndpointCreateOrUpdateOptionalParams
83
+ ): Promise<DigitalTwinsEndpointCreateOrUpdateResponse>;
84
+ /**
85
+ * Delete a DigitalTwinsInstance endpoint.
86
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
87
+ * @param resourceName The name of the DigitalTwinsInstance.
88
+ * @param endpointName Name of Endpoint Resource.
89
+ * @param options The options parameters.
90
+ */
91
+ beginDelete(
92
+ resourceGroupName: string,
93
+ resourceName: string,
94
+ endpointName: string,
95
+ options?: DigitalTwinsEndpointDeleteOptionalParams
96
+ ): Promise<
97
+ PollerLike<
98
+ PollOperationState<DigitalTwinsEndpointDeleteResponse>,
99
+ DigitalTwinsEndpointDeleteResponse
100
+ >
101
+ >;
102
+ /**
103
+ * Delete a DigitalTwinsInstance endpoint.
104
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
105
+ * @param resourceName The name of the DigitalTwinsInstance.
106
+ * @param endpointName Name of Endpoint Resource.
107
+ * @param options The options parameters.
108
+ */
109
+ beginDeleteAndWait(
110
+ resourceGroupName: string,
111
+ resourceName: string,
112
+ endpointName: string,
113
+ options?: DigitalTwinsEndpointDeleteOptionalParams
114
+ ): Promise<DigitalTwinsEndpointDeleteResponse>;
115
+ }
@@ -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
+
9
+ export * from "./digitalTwins";
10
+ export * from "./digitalTwinsEndpoint";
11
+ export * from "./operations";
12
+ export * from "./privateLinkResources";
13
+ export * from "./privateEndpointConnections";
@@ -0,0 +1,22 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Operation, OperationsListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Operations. */
14
+ export interface Operations {
15
+ /**
16
+ * Lists all of the available DigitalTwins service REST API operations.
17
+ * @param options The options parameters.
18
+ */
19
+ list(
20
+ options?: OperationsListOptionalParams
21
+ ): PagedAsyncIterableIterator<Operation>;
22
+ }
@@ -0,0 +1,108 @@
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
+
9
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import {
11
+ PrivateEndpointConnectionsListOptionalParams,
12
+ PrivateEndpointConnectionsListResponse,
13
+ PrivateEndpointConnectionsGetOptionalParams,
14
+ PrivateEndpointConnectionsGetResponse,
15
+ PrivateEndpointConnectionsDeleteOptionalParams,
16
+ PrivateEndpointConnection,
17
+ PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
18
+ PrivateEndpointConnectionsCreateOrUpdateResponse
19
+ } from "../models";
20
+
21
+ /** Interface representing a PrivateEndpointConnections. */
22
+ export interface PrivateEndpointConnections {
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(
30
+ resourceGroupName: string,
31
+ resourceName: string,
32
+ options?: PrivateEndpointConnectionsListOptionalParams
33
+ ): Promise<PrivateEndpointConnectionsListResponse>;
34
+ /**
35
+ * Get private endpoint connection properties for the given private endpoint.
36
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
37
+ * @param resourceName The name of the DigitalTwinsInstance.
38
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
39
+ * @param options The options parameters.
40
+ */
41
+ get(
42
+ resourceGroupName: string,
43
+ resourceName: string,
44
+ privateEndpointConnectionName: string,
45
+ options?: PrivateEndpointConnectionsGetOptionalParams
46
+ ): Promise<PrivateEndpointConnectionsGetResponse>;
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(
55
+ resourceGroupName: string,
56
+ resourceName: string,
57
+ privateEndpointConnectionName: string,
58
+ options?: PrivateEndpointConnectionsDeleteOptionalParams
59
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
60
+ /**
61
+ * Delete private endpoint connection with the specified name.
62
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
63
+ * @param resourceName The name of the DigitalTwinsInstance.
64
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
65
+ * @param options The options parameters.
66
+ */
67
+ beginDeleteAndWait(
68
+ resourceGroupName: string,
69
+ resourceName: string,
70
+ privateEndpointConnectionName: string,
71
+ options?: PrivateEndpointConnectionsDeleteOptionalParams
72
+ ): Promise<void>;
73
+ /**
74
+ * Update the status of a private endpoint connection with the given name.
75
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
76
+ * @param resourceName The name of the DigitalTwinsInstance.
77
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
78
+ * @param privateEndpointConnection The private endpoint connection with updated properties.
79
+ * @param options The options parameters.
80
+ */
81
+ beginCreateOrUpdate(
82
+ resourceGroupName: string,
83
+ resourceName: string,
84
+ privateEndpointConnectionName: string,
85
+ privateEndpointConnection: PrivateEndpointConnection,
86
+ options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
87
+ ): Promise<
88
+ PollerLike<
89
+ PollOperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,
90
+ PrivateEndpointConnectionsCreateOrUpdateResponse
91
+ >
92
+ >;
93
+ /**
94
+ * Update the status of a private endpoint connection with the given name.
95
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
96
+ * @param resourceName The name of the DigitalTwinsInstance.
97
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
98
+ * @param privateEndpointConnection The private endpoint connection with updated properties.
99
+ * @param options The options parameters.
100
+ */
101
+ beginCreateOrUpdateAndWait(
102
+ resourceGroupName: string,
103
+ resourceName: string,
104
+ privateEndpointConnectionName: string,
105
+ privateEndpointConnection: PrivateEndpointConnection,
106
+ options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
107
+ ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse>;
108
+ }
@@ -0,0 +1,42 @@
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
+
9
+ import {
10
+ PrivateLinkResourcesListOptionalParams,
11
+ PrivateLinkResourcesListResponse,
12
+ PrivateLinkResourcesGetOptionalParams,
13
+ PrivateLinkResourcesGetResponse
14
+ } from "../models";
15
+
16
+ /** Interface representing a PrivateLinkResources. */
17
+ export interface PrivateLinkResources {
18
+ /**
19
+ * List private link resources for given Digital Twin.
20
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
21
+ * @param resourceName The name of the DigitalTwinsInstance.
22
+ * @param options The options parameters.
23
+ */
24
+ list(
25
+ resourceGroupName: string,
26
+ resourceName: string,
27
+ options?: PrivateLinkResourcesListOptionalParams
28
+ ): Promise<PrivateLinkResourcesListResponse>;
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(
37
+ resourceGroupName: string,
38
+ resourceName: string,
39
+ resourceId: string,
40
+ options?: PrivateLinkResourcesGetOptionalParams
41
+ ): Promise<PrivateLinkResourcesGetResponse>;
42
+ }
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "module": "es6",
4
4
  "moduleResolution": "node",
5
5
  "strict": true,
6
- "target": "es5",
6
+ "target": "es6",
7
7
  "sourceMap": true,
8
8
  "declarationMap": true,
9
9
  "esModuleInterop": true,
@@ -11,9 +11,9 @@
11
11
  "forceConsistentCasingInFileNames": true,
12
12
  "lib": ["es6", "dom"],
13
13
  "declaration": true,
14
- "outDir": "./esm",
14
+ "outDir": "./dist-esm",
15
15
  "importHelpers": true
16
16
  },
17
- "include": ["./src/**/*.ts"],
17
+ "include": ["./src/**/*.ts", "./test/**/*.ts"],
18
18
  "exclude": ["node_modules"]
19
19
  }