@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
@@ -3,25 +3,30 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
 
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as Models from "../models";
12
- import * as Mappers from "../models/privateLinkResourcesMappers";
9
+ import { PrivateLinkResources } from "../operationsInterfaces";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
13
12
  import * as Parameters from "../models/parameters";
14
- import { AzureDigitalTwinsManagementClientContext } from "../azureDigitalTwinsManagementClientContext";
13
+ import { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient";
14
+ import {
15
+ PrivateLinkResourcesListOptionalParams,
16
+ PrivateLinkResourcesListResponse,
17
+ PrivateLinkResourcesGetOptionalParams,
18
+ PrivateLinkResourcesGetResponse
19
+ } from "../models";
15
20
 
16
- /** Class representing a PrivateLinkResources. */
17
- export class PrivateLinkResources {
18
- private readonly client: AzureDigitalTwinsManagementClientContext;
21
+ /** Class containing PrivateLinkResources operations. */
22
+ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
23
+ private readonly client: AzureDigitalTwinsManagementClient;
19
24
 
20
25
  /**
21
- * Create a PrivateLinkResources.
22
- * @param {AzureDigitalTwinsManagementClientContext} client Reference to the service client.
26
+ * Initialize a new instance of the class PrivateLinkResources class.
27
+ * @param client Reference to the service client
23
28
  */
24
- constructor(client: AzureDigitalTwinsManagementClientContext) {
29
+ constructor(client: AzureDigitalTwinsManagementClient) {
25
30
  this.client = client;
26
31
  }
27
32
 
@@ -29,32 +34,17 @@ export class PrivateLinkResources {
29
34
  * List private link resources for given Digital Twin.
30
35
  * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
31
36
  * @param resourceName The name of the DigitalTwinsInstance.
32
- * @param [options] The optional parameters
33
- * @returns Promise<Models.PrivateLinkResourcesListResponse>
37
+ * @param options The options parameters.
34
38
  */
35
- list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateLinkResourcesListResponse>;
36
- /**
37
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
38
- * @param resourceName The name of the DigitalTwinsInstance.
39
- * @param callback The callback
40
- */
41
- list(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<Models.GroupIdInformationResponse>): void;
42
- /**
43
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
44
- * @param resourceName The name of the DigitalTwinsInstance.
45
- * @param options The optional parameters
46
- * @param callback The callback
47
- */
48
- list(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.GroupIdInformationResponse>): void;
49
- list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.GroupIdInformationResponse>, callback?: msRest.ServiceCallback<Models.GroupIdInformationResponse>): Promise<Models.PrivateLinkResourcesListResponse> {
39
+ list(
40
+ resourceGroupName: string,
41
+ resourceName: string,
42
+ options?: PrivateLinkResourcesListOptionalParams
43
+ ): Promise<PrivateLinkResourcesListResponse> {
50
44
  return this.client.sendOperationRequest(
51
- {
52
- resourceGroupName,
53
- resourceName,
54
- options
55
- },
56
- listOperationSpec,
57
- callback) as Promise<Models.PrivateLinkResourcesListResponse>;
45
+ { resourceGroupName, resourceName, options },
46
+ listOperationSpec
47
+ );
58
48
  }
59
49
 
60
50
  /**
@@ -62,54 +52,27 @@ export class PrivateLinkResources {
62
52
  * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
63
53
  * @param resourceName The name of the DigitalTwinsInstance.
64
54
  * @param resourceId The name of the private link resource.
65
- * @param [options] The optional parameters
66
- * @returns Promise<Models.PrivateLinkResourcesGetResponse>
55
+ * @param options The options parameters.
67
56
  */
68
- get(resourceGroupName: string, resourceName: string, resourceId: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateLinkResourcesGetResponse>;
69
- /**
70
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
71
- * @param resourceName The name of the DigitalTwinsInstance.
72
- * @param resourceId The name of the private link resource.
73
- * @param callback The callback
74
- */
75
- get(resourceGroupName: string, resourceName: string, resourceId: string, callback: msRest.ServiceCallback<Models.GroupIdInformation>): void;
76
- /**
77
- * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
78
- * @param resourceName The name of the DigitalTwinsInstance.
79
- * @param resourceId The name of the private link resource.
80
- * @param options The optional parameters
81
- * @param callback The callback
82
- */
83
- get(resourceGroupName: string, resourceName: string, resourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.GroupIdInformation>): void;
84
- get(resourceGroupName: string, resourceName: string, resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.GroupIdInformation>, callback?: msRest.ServiceCallback<Models.GroupIdInformation>): Promise<Models.PrivateLinkResourcesGetResponse> {
57
+ get(
58
+ resourceGroupName: string,
59
+ resourceName: string,
60
+ resourceId: string,
61
+ options?: PrivateLinkResourcesGetOptionalParams
62
+ ): Promise<PrivateLinkResourcesGetResponse> {
85
63
  return this.client.sendOperationRequest(
86
- {
87
- resourceGroupName,
88
- resourceName,
89
- resourceId,
90
- options
91
- },
92
- getOperationSpec,
93
- callback) as Promise<Models.PrivateLinkResourcesGetResponse>;
64
+ { resourceGroupName, resourceName, resourceId, options },
65
+ getOperationSpec
66
+ );
94
67
  }
95
68
  }
96
-
97
69
  // Operation Specifications
98
- const serializer = new msRest.Serializer(Mappers);
99
- const listOperationSpec: msRest.OperationSpec = {
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",
100
75
  httpMethod: "GET",
101
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateLinkResources",
102
- urlParameters: [
103
- Parameters.subscriptionId,
104
- Parameters.resourceGroupName,
105
- Parameters.resourceName
106
- ],
107
- queryParameters: [
108
- Parameters.apiVersion
109
- ],
110
- headerParameters: [
111
- Parameters.acceptLanguage
112
- ],
113
76
  responses: {
114
77
  200: {
115
78
  bodyMapper: Mappers.GroupIdInformationResponse
@@ -118,24 +81,20 @@ const listOperationSpec: msRest.OperationSpec = {
118
81
  bodyMapper: Mappers.ErrorResponse
119
82
  }
120
83
  },
121
- serializer
122
- };
123
-
124
- const getOperationSpec: msRest.OperationSpec = {
125
- httpMethod: "GET",
126
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateLinkResources/{resourceId}",
84
+ queryParameters: [Parameters.apiVersion],
127
85
  urlParameters: [
86
+ Parameters.$host,
128
87
  Parameters.subscriptionId,
129
88
  Parameters.resourceGroupName,
130
- Parameters.resourceName,
131
- Parameters.resourceId
132
- ],
133
- queryParameters: [
134
- Parameters.apiVersion
135
- ],
136
- headerParameters: [
137
- Parameters.acceptLanguage
89
+ Parameters.resourceName
138
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",
139
98
  responses: {
140
99
  200: {
141
100
  bodyMapper: Mappers.GroupIdInformation
@@ -144,5 +103,14 @@ const getOperationSpec: msRest.OperationSpec = {
144
103
  bodyMapper: Mappers.ErrorResponse
145
104
  }
146
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],
147
115
  serializer
148
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
+ }