@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
@@ -6,1264 +6,782 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
10
- import * as msRest from "@azure/ms-rest-js";
9
+ import * as coreClient from "@azure/core-client";
11
10
 
12
- export { BaseResource, CloudError };
11
+ export type DigitalTwinsEndpointResourcePropertiesUnion =
12
+ | DigitalTwinsEndpointResourceProperties
13
+ | ServiceBus
14
+ | EventHub
15
+ | EventGrid;
13
16
 
14
- /**
15
- * The properties of a DigitalTwinsInstance.
16
- */
17
- export interface DigitalTwinsPatchProperties {
17
+ /** The private endpoint connection of a Digital Twin. */
18
+ export interface PrivateEndpointConnection {
18
19
  /**
19
- * Public network access for the DigitalTwinsInstance. Possible values include: 'Enabled',
20
- * 'Disabled'
20
+ * The resource identifier.
21
+ * NOTE: This property will not be serialized. It can only be populated by the server.
21
22
  */
22
- publicNetworkAccess?: PublicNetworkAccess;
23
+ readonly id?: string;
24
+ /**
25
+ * The resource name.
26
+ * NOTE: This property will not be serialized. It can only be populated by the server.
27
+ */
28
+ readonly name?: string;
29
+ /**
30
+ * The resource type.
31
+ * NOTE: This property will not be serialized. It can only be populated by the server.
32
+ */
33
+ readonly type?: string;
34
+ properties: PrivateEndpointConnectionProperties;
23
35
  }
24
36
 
25
- /**
26
- * The properties of a private endpoint connection.
27
- */
37
+ /** The properties of a private endpoint connection. */
28
38
  export interface ConnectionProperties {
29
39
  /**
30
- * The provisioning state. Possible values include: 'Pending', 'Approved', 'Rejected',
31
- * 'Disconnected'
32
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
40
+ * The provisioning state.
41
+ * NOTE: This property will not be serialized. It can only be populated by the server.
33
42
  */
34
43
  readonly provisioningState?: ConnectionPropertiesProvisioningState;
35
44
  privateEndpoint?: ConnectionPropertiesPrivateEndpoint;
36
- /**
37
- * The list of group ids for the private endpoint connection.
38
- */
45
+ /** The list of group ids for the private endpoint connection. */
39
46
  groupIds?: string[];
40
47
  privateLinkServiceConnectionState?: ConnectionPropertiesPrivateLinkServiceConnectionState;
41
48
  }
42
49
 
43
- /**
44
- * An interface representing PrivateEndpointConnectionProperties.
45
- */
46
- export interface PrivateEndpointConnectionProperties extends ConnectionProperties {
47
- }
48
-
49
- /**
50
- * The private endpoint connection of a Digital Twin.
51
- */
52
- export interface PrivateEndpointConnection extends BaseResource {
50
+ /** The private endpoint property of a private endpoint connection. */
51
+ export interface PrivateEndpoint {
53
52
  /**
54
53
  * The resource identifier.
55
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
54
+ * NOTE: This property will not be serialized. It can only be populated by the server.
56
55
  */
57
56
  readonly id?: string;
58
- /**
59
- * The resource name.
60
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
61
- */
62
- readonly name?: string;
63
- /**
64
- * The resource type.
65
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
66
- */
67
- readonly type?: string;
68
- properties: PrivateEndpointConnectionProperties;
69
57
  }
70
58
 
71
- /**
72
- * The common properties of a DigitalTwinsInstance.
73
- */
74
- export interface DigitalTwinsResource extends BaseResource {
59
+ /** The current state of a private endpoint connection. */
60
+ export interface ConnectionState {
61
+ /** The status of a private endpoint connection. */
62
+ status: PrivateLinkServiceConnectionStatus;
63
+ /** The description for the current state of a private endpoint connection. */
64
+ description: string;
65
+ /** Actions required for a private endpoint connection. */
66
+ actionsRequired?: string;
67
+ }
68
+
69
+ /** The common properties of a DigitalTwinsInstance. */
70
+ export interface DigitalTwinsResource {
75
71
  /**
76
72
  * The resource identifier.
77
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
73
+ * NOTE: This property will not be serialized. It can only be populated by the server.
78
74
  */
79
75
  readonly id?: string;
80
76
  /**
81
77
  * The resource name.
82
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
78
+ * NOTE: This property will not be serialized. It can only be populated by the server.
83
79
  */
84
80
  readonly name?: string;
85
81
  /**
86
82
  * The resource type.
87
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
83
+ * NOTE: This property will not be serialized. It can only be populated by the server.
88
84
  */
89
85
  readonly type?: string;
90
- /**
91
- * The resource location.
92
- */
86
+ /** The resource location. */
93
87
  location: string;
94
- /**
95
- * The resource tags.
96
- */
88
+ /** The resource tags. */
97
89
  tags?: { [propertyName: string]: string };
98
- /**
99
- * The managed identity for the DigitalTwinsInstance.
100
- */
90
+ /** The managed identity for the DigitalTwinsInstance. */
101
91
  identity?: DigitalTwinsIdentity;
102
92
  }
103
93
 
104
- /**
105
- * The description of the DigitalTwins service.
106
- */
107
- export interface DigitalTwinsDescription extends DigitalTwinsResource {
108
- /**
109
- * Time when DigitalTwinsInstance was created.
110
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
111
- */
112
- readonly createdTime?: Date;
113
- /**
114
- * Time when DigitalTwinsInstance was updated.
115
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
116
- */
117
- readonly lastUpdatedTime?: Date;
118
- /**
119
- * The provisioning state. Possible values include: 'Provisioning', 'Deleting', 'Updating',
120
- * 'Succeeded', 'Failed', 'Canceled', 'Deleted', 'Warning', 'Suspending', 'Restoring', 'Moving'
121
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
122
- */
123
- readonly provisioningState?: ProvisioningState;
124
- /**
125
- * Api endpoint to work with DigitalTwinsInstance.
126
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
127
- */
128
- readonly hostName?: string;
129
- privateEndpointConnections?: PrivateEndpointConnection[];
130
- /**
131
- * Public network access for the DigitalTwinsInstance. Possible values include: 'Enabled',
132
- * 'Disabled'
133
- */
134
- publicNetworkAccess?: PublicNetworkAccess;
135
- }
136
-
137
- /**
138
- * The managed identity for the DigitalTwinsInstance.
139
- */
94
+ /** The managed identity for the DigitalTwinsInstance. */
140
95
  export interface DigitalTwinsIdentity {
141
- /**
142
- * The type of Managed Identity used by the DigitalTwinsInstance. Only SystemAssigned is
143
- * supported. Possible values include: 'None', 'SystemAssigned'
144
- */
96
+ /** The type of Managed Identity used by the DigitalTwinsInstance. Only SystemAssigned is supported. */
145
97
  type?: DigitalTwinsIdentityType;
146
98
  /**
147
- * The object id of the Managed Identity Resource. This will be sent to the RP from ARM via the
148
- * x-ms-identity-principal-id header in the PUT request if the resource has a
149
- * systemAssigned(implicit) identity
150
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
99
+ * The object id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-identity-principal-id header in the PUT request if the resource has a systemAssigned(implicit) identity
100
+ * NOTE: This property will not be serialized. It can only be populated by the server.
151
101
  */
152
102
  readonly principalId?: string;
153
103
  /**
154
- * The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the
155
- * x-ms-client-tenant-id header in the PUT request if the resource has a systemAssigned(implicit)
156
- * identity
157
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
104
+ * The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT request if the resource has a systemAssigned(implicit) identity
105
+ * NOTE: This property will not be serialized. It can only be populated by the server.
158
106
  */
159
107
  readonly tenantId?: string;
160
108
  }
161
109
 
162
- /**
163
- * The description of the DigitalTwins service.
164
- */
165
- export interface DigitalTwinsPatchDescription {
166
- /**
167
- * Instance patch properties
168
- */
169
- tags?: { [propertyName: string]: string };
170
- /**
171
- * The managed identity for the DigitalTwinsInstance.
172
- */
173
- identity?: DigitalTwinsIdentity;
174
- /**
175
- * Properties for the DigitalTwinsInstance.
176
- */
177
- properties?: DigitalTwinsPatchProperties;
110
+ /** Error response. */
111
+ export interface ErrorResponse {
112
+ /** Error description */
113
+ error?: ErrorDefinition;
178
114
  }
179
115
 
180
- /**
181
- * Error definition.
182
- */
116
+ /** Error definition. */
183
117
  export interface ErrorDefinition {
184
118
  /**
185
119
  * Service specific error code which serves as the substatus for the HTTP error code.
186
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
120
+ * NOTE: This property will not be serialized. It can only be populated by the server.
187
121
  */
188
122
  readonly code?: string;
189
123
  /**
190
124
  * Description of the error.
191
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
125
+ * NOTE: This property will not be serialized. It can only be populated by the server.
192
126
  */
193
127
  readonly message?: string;
194
128
  /**
195
129
  * Internal error details.
196
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
130
+ * NOTE: This property will not be serialized. It can only be populated by the server.
197
131
  */
198
132
  readonly details?: ErrorDefinition[];
199
133
  }
200
134
 
201
- /**
202
- * Error response.
203
- */
204
- export interface ErrorResponse {
135
+ /** The description of the DigitalTwins service. */
136
+ export interface DigitalTwinsPatchDescription {
137
+ /** Instance patch properties */
138
+ tags?: { [propertyName: string]: string };
139
+ /** The managed identity for the DigitalTwinsInstance. */
140
+ identity?: DigitalTwinsIdentity;
141
+ /** Properties for the DigitalTwinsInstance. */
142
+ properties?: DigitalTwinsPatchProperties;
143
+ }
144
+
145
+ /** The properties of a DigitalTwinsInstance. */
146
+ export interface DigitalTwinsPatchProperties {
147
+ /** Public network access for the DigitalTwinsInstance. */
148
+ publicNetworkAccess?: PublicNetworkAccess;
149
+ }
150
+
151
+ /** A list of DigitalTwinsInstance Endpoints with a next link. */
152
+ export interface DigitalTwinsEndpointResourceListResult {
153
+ /** The link used to get the next page of DigitalTwinsInstance Endpoints. */
154
+ nextLink?: string;
155
+ /** A list of DigitalTwinsInstance Endpoints. */
156
+ value?: DigitalTwinsEndpointResource[];
157
+ }
158
+
159
+ /** Properties related to Digital Twins Endpoint */
160
+ export interface DigitalTwinsEndpointResourceProperties {
161
+ /** Polymorphic discriminator, which specifies the different types this object can be */
162
+ endpointType: "ServiceBus" | "EventHub" | "EventGrid";
205
163
  /**
206
- * Error description
164
+ * The provisioning state.
165
+ * NOTE: This property will not be serialized. It can only be populated by the server.
207
166
  */
208
- error?: ErrorDefinition;
167
+ readonly provisioningState?: EndpointProvisioningState;
168
+ /**
169
+ * Time when the Endpoint was added to DigitalTwinsInstance.
170
+ * NOTE: This property will not be serialized. It can only be populated by the server.
171
+ */
172
+ readonly createdTime?: Date;
173
+ /** Specifies the authentication type being used for connecting to the endpoint. */
174
+ authenticationType?: AuthenticationType;
175
+ /** Dead letter storage secret for key-based authentication. Will be obfuscated during read. */
176
+ deadLetterSecret?: string;
177
+ /** Dead letter storage URL for identity-based authentication. */
178
+ deadLetterUri?: string;
209
179
  }
210
180
 
211
- /**
212
- * The object that represents the operation.
213
- */
214
- export interface OperationDisplay {
181
+ /** Definition of a resource. */
182
+ export interface ExternalResource {
215
183
  /**
216
- * Service provider: Microsoft DigitalTwins
217
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
184
+ * The resource identifier.
185
+ * NOTE: This property will not be serialized. It can only be populated by the server.
218
186
  */
219
- readonly provider?: string;
187
+ readonly id?: string;
220
188
  /**
221
- * Resource Type: DigitalTwinsInstances
222
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
189
+ * Extension resource name.
190
+ * NOTE: This property will not be serialized. It can only be populated by the server.
223
191
  */
224
- readonly resource?: string;
192
+ readonly name?: string;
225
193
  /**
226
- * Name of the operation
227
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
194
+ * The resource type.
195
+ * NOTE: This property will not be serialized. It can only be populated by the server.
228
196
  */
229
- readonly operation?: string;
197
+ readonly type?: string;
198
+ }
199
+
200
+ /** A list of DigitalTwins description objects with a next link. */
201
+ export interface DigitalTwinsDescriptionListResult {
202
+ /** The link used to get the next page of DigitalTwins description objects. */
203
+ nextLink?: string;
204
+ /** A list of DigitalTwins description objects. */
205
+ value?: DigitalTwinsDescription[];
206
+ }
207
+
208
+ /** A list of DigitalTwins service operations. It contains a list of operations and a URL link to get the next set of results. */
209
+ export interface OperationListResult {
210
+ /** The link used to get the next page of DigitalTwins description objects. */
211
+ nextLink?: string;
230
212
  /**
231
- * Friendly description for the operation,
232
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
213
+ * A list of DigitalTwins operations supported by the Microsoft.DigitalTwins resource provider.
214
+ * NOTE: This property will not be serialized. It can only be populated by the server.
233
215
  */
234
- readonly description?: string;
216
+ readonly value?: Operation[];
235
217
  }
236
218
 
237
- /**
238
- * DigitalTwins service REST API operation
239
- */
219
+ /** DigitalTwins service REST API operation */
240
220
  export interface Operation {
241
221
  /**
242
222
  * Operation name: {provider}/{resource}/{read | write | action | delete}
243
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
223
+ * NOTE: This property will not be serialized. It can only be populated by the server.
244
224
  */
245
225
  readonly name?: string;
246
- /**
247
- * Operation properties display
248
- */
226
+ /** Operation properties display */
249
227
  display?: OperationDisplay;
250
228
  /**
251
229
  * The intended executor of the operation.
252
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
230
+ * NOTE: This property will not be serialized. It can only be populated by the server.
253
231
  */
254
232
  readonly origin?: string;
255
233
  /**
256
234
  * If the operation is a data action (for data plane rbac).
257
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
235
+ * NOTE: This property will not be serialized. It can only be populated by the server.
258
236
  */
259
237
  readonly isDataAction?: boolean;
260
238
  }
261
239
 
262
- /**
263
- * The result returned from a database check name availability request.
264
- */
265
- export interface CheckNameRequest {
240
+ /** The object that represents the operation. */
241
+ export interface OperationDisplay {
266
242
  /**
267
- * Resource name.
243
+ * Service provider: Microsoft DigitalTwins
244
+ * NOTE: This property will not be serialized. It can only be populated by the server.
268
245
  */
269
- name: string;
270
- }
271
-
272
- /**
273
- * The result returned from a check name availability request.
274
- */
275
- export interface CheckNameResult {
246
+ readonly provider?: string;
276
247
  /**
277
- * Specifies a Boolean value that indicates if the name is available.
248
+ * Resource Type: DigitalTwinsInstances
249
+ * NOTE: This property will not be serialized. It can only be populated by the server.
278
250
  */
279
- nameAvailable?: boolean;
251
+ readonly resource?: string;
280
252
  /**
281
- * Message indicating an unavailable name due to a conflict, or a description of the naming rules
282
- * that are violated.
253
+ * Name of the operation
254
+ * NOTE: This property will not be serialized. It can only be populated by the server.
283
255
  */
284
- message?: string;
256
+ readonly operation?: string;
285
257
  /**
286
- * Message providing the reason why the given name is invalid. Possible values include:
287
- * 'Invalid', 'AlreadyExists'
258
+ * Friendly description for the operation,
259
+ * NOTE: This property will not be serialized. It can only be populated by the server.
288
260
  */
261
+ readonly description?: string;
262
+ }
263
+
264
+ /** The result returned from a database check name availability request. */
265
+ export interface CheckNameRequest {
266
+ /** Resource name. */
267
+ name: string;
268
+ /** The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances. */
269
+ type: "Microsoft.DigitalTwins/digitalTwinsInstances";
270
+ }
271
+
272
+ /** The result returned from a check name availability request. */
273
+ export interface CheckNameResult {
274
+ /** Specifies a Boolean value that indicates if the name is available. */
275
+ nameAvailable?: boolean;
276
+ /** Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated. */
277
+ message?: string;
278
+ /** Message providing the reason why the given name is invalid. */
289
279
  reason?: Reason;
290
280
  }
291
281
 
292
- /**
293
- * Definition of a resource.
294
- */
295
- export interface ExternalResource extends BaseResource {
296
- /**
297
- * The resource identifier.
298
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
299
- */
300
- readonly id?: string;
282
+ /** The available private link resources for a Digital Twin. */
283
+ export interface GroupIdInformationResponse {
284
+ /** The list of available private link resources for a Digital Twin. */
285
+ value?: GroupIdInformation[];
286
+ }
287
+
288
+ /** The group information for creating a private endpoint on Digital Twin. */
289
+ export interface GroupIdInformation {
290
+ properties: GroupIdInformationProperties;
291
+ /** The resource identifier. */
292
+ id?: string;
301
293
  /**
302
- * Extension resource name.
303
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
294
+ * The resource name.
295
+ * NOTE: This property will not be serialized. It can only be populated by the server.
304
296
  */
305
297
  readonly name?: string;
306
298
  /**
307
299
  * The resource type.
308
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
300
+ * NOTE: This property will not be serialized. It can only be populated by the server.
309
301
  */
310
302
  readonly type?: string;
311
303
  }
312
304
 
313
- /**
314
- * Contains the possible cases for DigitalTwinsEndpointResourceProperties.
315
- */
316
- export type DigitalTwinsEndpointResourcePropertiesUnion = DigitalTwinsEndpointResourceProperties | ServiceBus | EventHub | EventGrid;
305
+ /** The properties for a group information object. */
306
+ export interface GroupIdInformationPropertiesAutoGenerated {
307
+ /** The group id */
308
+ groupId?: string;
309
+ /** The required members for a specific group id. */
310
+ requiredMembers?: string[];
311
+ /** The required DNS zones for a specific group id. */
312
+ requiredZoneNames?: string[];
313
+ }
317
314
 
318
- /**
319
- * Properties related to Digital Twins Endpoint
320
- */
321
- export interface DigitalTwinsEndpointResourceProperties {
322
- /**
323
- * Polymorphic Discriminator
324
- */
325
- endpointType: "DigitalTwinsEndpointResourceProperties";
326
- /**
327
- * The provisioning state. Possible values include: 'Provisioning', 'Deleting', 'Succeeded',
328
- * 'Failed', 'Canceled', 'Deleted', 'Warning', 'Suspending', 'Restoring', 'Moving', 'Disabled'
329
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
330
- */
331
- readonly provisioningState?: EndpointProvisioningState;
315
+ /** The available private link connections for a Digital Twin. */
316
+ export interface PrivateEndpointConnectionsResponse {
317
+ /** The list of available private link connections for a Digital Twin. */
318
+ value?: PrivateEndpointConnection[];
319
+ }
320
+
321
+ export type PrivateEndpointConnectionProperties = ConnectionProperties & {};
322
+
323
+ export type ConnectionPropertiesPrivateEndpoint = PrivateEndpoint & {};
324
+
325
+ export type ConnectionPropertiesPrivateLinkServiceConnectionState = ConnectionState & {};
326
+
327
+ /** The description of the DigitalTwins service. */
328
+ export type DigitalTwinsDescription = DigitalTwinsResource & {
332
329
  /**
333
- * Time when the Endpoint was added to DigitalTwinsInstance.
334
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
330
+ * Time when DigitalTwinsInstance was created.
331
+ * NOTE: This property will not be serialized. It can only be populated by the server.
335
332
  */
336
333
  readonly createdTime?: Date;
337
334
  /**
338
- * Specifies the authentication type being used for connecting to the endpoint. Possible values
339
- * include: 'KeyBased', 'IdentityBased'
335
+ * Time when DigitalTwinsInstance was updated.
336
+ * NOTE: This property will not be serialized. It can only be populated by the server.
340
337
  */
341
- authenticationType?: AuthenticationType;
338
+ readonly lastUpdatedTime?: Date;
342
339
  /**
343
- * Dead letter storage secret for key-based authentication. Will be obfuscated during read.
340
+ * The provisioning state.
341
+ * NOTE: This property will not be serialized. It can only be populated by the server.
344
342
  */
345
- deadLetterSecret?: string;
343
+ readonly provisioningState?: ProvisioningState;
346
344
  /**
347
- * Dead letter storage URL for identity-based authentication.
345
+ * Api endpoint to work with DigitalTwinsInstance.
346
+ * NOTE: This property will not be serialized. It can only be populated by the server.
348
347
  */
349
- deadLetterUri?: string;
348
+ readonly hostName?: string;
349
+ privateEndpointConnections?: PrivateEndpointConnection[];
350
+ /** Public network access for the DigitalTwinsInstance. */
351
+ publicNetworkAccess?: PublicNetworkAccess;
352
+ };
353
+
354
+ /** Properties related to ServiceBus. */
355
+ export type ServiceBus = DigitalTwinsEndpointResourceProperties & {
356
+ /** Polymorphic discriminator, which specifies the different types this object can be */
357
+ endpointType: "ServiceBus";
358
+ /** PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. */
359
+ primaryConnectionString?: string;
360
+ /** SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. */
361
+ secondaryConnectionString?: string;
362
+ /** The URL of the ServiceBus namespace for identity-based authentication. It must include the protocol sb:// */
363
+ endpointUri?: string;
364
+ /** The ServiceBus Topic name for identity-based authentication */
365
+ entityPath?: string;
366
+ };
367
+
368
+ /** Properties related to EventHub. */
369
+ export type EventHub = DigitalTwinsEndpointResourceProperties & {
370
+ /** Polymorphic discriminator, which specifies the different types this object can be */
371
+ endpointType: "EventHub";
372
+ /** PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. */
373
+ connectionStringPrimaryKey?: string;
374
+ /** SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. */
375
+ connectionStringSecondaryKey?: string;
376
+ /** The URL of the EventHub namespace for identity-based authentication. It must include the protocol sb:// */
377
+ endpointUri?: string;
378
+ /** The EventHub name in the EventHub namespace for identity-based authentication. */
379
+ entityPath?: string;
380
+ };
381
+
382
+ /** Properties related to EventGrid. */
383
+ export type EventGrid = DigitalTwinsEndpointResourceProperties & {
384
+ /** Polymorphic discriminator, which specifies the different types this object can be */
385
+ endpointType: "EventGrid";
386
+ /** EventGrid Topic Endpoint */
387
+ topicEndpoint: string;
388
+ /** EventGrid secondary accesskey. Will be obfuscated during read. */
389
+ accessKey1: string | null;
390
+ /** EventGrid secondary accesskey. Will be obfuscated during read. */
391
+ accessKey2?: string;
392
+ };
393
+
394
+ /** DigitalTwinsInstance endpoint resource. */
395
+ export type DigitalTwinsEndpointResource = ExternalResource & {
396
+ /** DigitalTwinsInstance endpoint resource properties. */
397
+ properties: DigitalTwinsEndpointResourcePropertiesUnion;
398
+ };
399
+
400
+ export type GroupIdInformationProperties = GroupIdInformationPropertiesAutoGenerated & {};
401
+
402
+ /** Known values of {@link ProvisioningState} that the service accepts. */
403
+ export enum KnownProvisioningState {
404
+ Provisioning = "Provisioning",
405
+ Deleting = "Deleting",
406
+ Updating = "Updating",
407
+ Succeeded = "Succeeded",
408
+ Failed = "Failed",
409
+ Canceled = "Canceled",
410
+ Deleted = "Deleted",
411
+ Warning = "Warning",
412
+ Suspending = "Suspending",
413
+ Restoring = "Restoring",
414
+ Moving = "Moving"
415
+ }
416
+
417
+ /**
418
+ * Defines values for ProvisioningState. \
419
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
420
+ * this enum contains the known values that the service supports.
421
+ * ### Known values supported by the service
422
+ * **Provisioning** \
423
+ * **Deleting** \
424
+ * **Updating** \
425
+ * **Succeeded** \
426
+ * **Failed** \
427
+ * **Canceled** \
428
+ * **Deleted** \
429
+ * **Warning** \
430
+ * **Suspending** \
431
+ * **Restoring** \
432
+ * **Moving**
433
+ */
434
+ export type ProvisioningState = string;
435
+
436
+ /** Known values of {@link ConnectionPropertiesProvisioningState} that the service accepts. */
437
+ export enum KnownConnectionPropertiesProvisioningState {
438
+ Pending = "Pending",
439
+ Approved = "Approved",
440
+ Rejected = "Rejected",
441
+ Disconnected = "Disconnected"
442
+ }
443
+
444
+ /**
445
+ * Defines values for ConnectionPropertiesProvisioningState. \
446
+ * {@link KnownConnectionPropertiesProvisioningState} can be used interchangeably with ConnectionPropertiesProvisioningState,
447
+ * this enum contains the known values that the service supports.
448
+ * ### Known values supported by the service
449
+ * **Pending** \
450
+ * **Approved** \
451
+ * **Rejected** \
452
+ * **Disconnected**
453
+ */
454
+ export type ConnectionPropertiesProvisioningState = string;
455
+
456
+ /** Known values of {@link PrivateLinkServiceConnectionStatus} that the service accepts. */
457
+ export enum KnownPrivateLinkServiceConnectionStatus {
458
+ Pending = "Pending",
459
+ Approved = "Approved",
460
+ Rejected = "Rejected",
461
+ Disconnected = "Disconnected"
462
+ }
463
+
464
+ /**
465
+ * Defines values for PrivateLinkServiceConnectionStatus. \
466
+ * {@link KnownPrivateLinkServiceConnectionStatus} can be used interchangeably with PrivateLinkServiceConnectionStatus,
467
+ * this enum contains the known values that the service supports.
468
+ * ### Known values supported by the service
469
+ * **Pending** \
470
+ * **Approved** \
471
+ * **Rejected** \
472
+ * **Disconnected**
473
+ */
474
+ export type PrivateLinkServiceConnectionStatus = string;
475
+
476
+ /** Known values of {@link PublicNetworkAccess} that the service accepts. */
477
+ export enum KnownPublicNetworkAccess {
478
+ Enabled = "Enabled",
479
+ Disabled = "Disabled"
480
+ }
481
+
482
+ /**
483
+ * Defines values for PublicNetworkAccess. \
484
+ * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess,
485
+ * this enum contains the known values that the service supports.
486
+ * ### Known values supported by the service
487
+ * **Enabled** \
488
+ * **Disabled**
489
+ */
490
+ export type PublicNetworkAccess = string;
491
+
492
+ /** Known values of {@link DigitalTwinsIdentityType} that the service accepts. */
493
+ export enum KnownDigitalTwinsIdentityType {
494
+ None = "None",
495
+ SystemAssigned = "SystemAssigned"
496
+ }
497
+
498
+ /**
499
+ * Defines values for DigitalTwinsIdentityType. \
500
+ * {@link KnownDigitalTwinsIdentityType} can be used interchangeably with DigitalTwinsIdentityType,
501
+ * this enum contains the known values that the service supports.
502
+ * ### Known values supported by the service
503
+ * **None** \
504
+ * **SystemAssigned**
505
+ */
506
+ export type DigitalTwinsIdentityType = string;
507
+
508
+ /** Known values of {@link EndpointType} that the service accepts. */
509
+ export enum KnownEndpointType {
510
+ EventHub = "EventHub",
511
+ EventGrid = "EventGrid",
512
+ ServiceBus = "ServiceBus"
350
513
  }
351
514
 
352
515
  /**
353
- * DigitalTwinsInstance endpoint resource.
516
+ * Defines values for EndpointType. \
517
+ * {@link KnownEndpointType} can be used interchangeably with EndpointType,
518
+ * this enum contains the known values that the service supports.
519
+ * ### Known values supported by the service
520
+ * **EventHub** \
521
+ * **EventGrid** \
522
+ * **ServiceBus**
354
523
  */
355
- export interface DigitalTwinsEndpointResource extends ExternalResource {
356
- /**
357
- * DigitalTwinsInstance endpoint resource properties.
358
- */
359
- properties: DigitalTwinsEndpointResourcePropertiesUnion;
524
+ export type EndpointType = string;
525
+
526
+ /** Known values of {@link EndpointProvisioningState} that the service accepts. */
527
+ export enum KnownEndpointProvisioningState {
528
+ Provisioning = "Provisioning",
529
+ Deleting = "Deleting",
530
+ Succeeded = "Succeeded",
531
+ Failed = "Failed",
532
+ Canceled = "Canceled",
533
+ Deleted = "Deleted",
534
+ Warning = "Warning",
535
+ Suspending = "Suspending",
536
+ Restoring = "Restoring",
537
+ Moving = "Moving",
538
+ Disabled = "Disabled"
360
539
  }
361
540
 
362
541
  /**
363
- * Properties related to ServiceBus.
542
+ * Defines values for EndpointProvisioningState. \
543
+ * {@link KnownEndpointProvisioningState} can be used interchangeably with EndpointProvisioningState,
544
+ * this enum contains the known values that the service supports.
545
+ * ### Known values supported by the service
546
+ * **Provisioning** \
547
+ * **Deleting** \
548
+ * **Succeeded** \
549
+ * **Failed** \
550
+ * **Canceled** \
551
+ * **Deleted** \
552
+ * **Warning** \
553
+ * **Suspending** \
554
+ * **Restoring** \
555
+ * **Moving** \
556
+ * **Disabled**
364
557
  */
365
- export interface ServiceBus {
366
- /**
367
- * Polymorphic Discriminator
368
- */
369
- endpointType: "ServiceBus";
370
- /**
371
- * The provisioning state. Possible values include: 'Provisioning', 'Deleting', 'Succeeded',
372
- * 'Failed', 'Canceled', 'Deleted', 'Warning', 'Suspending', 'Restoring', 'Moving', 'Disabled'
373
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
374
- */
375
- readonly provisioningState?: EndpointProvisioningState;
376
- /**
377
- * Time when the Endpoint was added to DigitalTwinsInstance.
378
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
379
- */
380
- readonly createdTime?: Date;
381
- /**
382
- * Specifies the authentication type being used for connecting to the endpoint. Possible values
383
- * include: 'KeyBased', 'IdentityBased'
384
- */
385
- authenticationType?: AuthenticationType;
386
- /**
387
- * Dead letter storage secret for key-based authentication. Will be obfuscated during read.
388
- */
389
- deadLetterSecret?: string;
390
- /**
391
- * Dead letter storage URL for identity-based authentication.
392
- */
393
- deadLetterUri?: string;
394
- /**
395
- * PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated
396
- * during read.
397
- */
398
- primaryConnectionString?: string;
399
- /**
400
- * SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated
401
- * during read.
402
- */
403
- secondaryConnectionString?: string;
404
- /**
405
- * The URL of the ServiceBus namespace for identity-based authentication. It must include the
406
- * protocol sb://
407
- */
408
- endpointUri?: string;
409
- /**
410
- * The ServiceBus Topic name for identity-based authentication
411
- */
412
- entityPath?: string;
413
- }
558
+ export type EndpointProvisioningState = string;
414
559
 
415
- /**
416
- * Properties related to EventHub.
417
- */
418
- export interface EventHub {
419
- /**
420
- * Polymorphic Discriminator
421
- */
422
- endpointType: "EventHub";
423
- /**
424
- * The provisioning state. Possible values include: 'Provisioning', 'Deleting', 'Succeeded',
425
- * 'Failed', 'Canceled', 'Deleted', 'Warning', 'Suspending', 'Restoring', 'Moving', 'Disabled'
426
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
427
- */
428
- readonly provisioningState?: EndpointProvisioningState;
429
- /**
430
- * Time when the Endpoint was added to DigitalTwinsInstance.
431
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
432
- */
433
- readonly createdTime?: Date;
434
- /**
435
- * Specifies the authentication type being used for connecting to the endpoint. Possible values
436
- * include: 'KeyBased', 'IdentityBased'
437
- */
438
- authenticationType?: AuthenticationType;
439
- /**
440
- * Dead letter storage secret for key-based authentication. Will be obfuscated during read.
441
- */
442
- deadLetterSecret?: string;
443
- /**
444
- * Dead letter storage URL for identity-based authentication.
445
- */
446
- deadLetterUri?: string;
447
- /**
448
- * PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated
449
- * during read.
450
- */
451
- connectionStringPrimaryKey?: string;
452
- /**
453
- * SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated
454
- * during read.
455
- */
456
- connectionStringSecondaryKey?: string;
457
- /**
458
- * The URL of the EventHub namespace for identity-based authentication. It must include the
459
- * protocol sb://
460
- */
461
- endpointUri?: string;
462
- /**
463
- * The EventHub name in the EventHub namespace for identity-based authentication.
464
- */
465
- entityPath?: string;
560
+ /** Known values of {@link AuthenticationType} that the service accepts. */
561
+ export enum KnownAuthenticationType {
562
+ KeyBased = "KeyBased",
563
+ IdentityBased = "IdentityBased"
466
564
  }
467
565
 
468
566
  /**
469
- * Properties related to EventGrid.
567
+ * Defines values for AuthenticationType. \
568
+ * {@link KnownAuthenticationType} can be used interchangeably with AuthenticationType,
569
+ * this enum contains the known values that the service supports.
570
+ * ### Known values supported by the service
571
+ * **KeyBased** \
572
+ * **IdentityBased**
470
573
  */
471
- export interface EventGrid {
472
- /**
473
- * Polymorphic Discriminator
474
- */
475
- endpointType: "EventGrid";
476
- /**
477
- * The provisioning state. Possible values include: 'Provisioning', 'Deleting', 'Succeeded',
478
- * 'Failed', 'Canceled', 'Deleted', 'Warning', 'Suspending', 'Restoring', 'Moving', 'Disabled'
479
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
480
- */
481
- readonly provisioningState?: EndpointProvisioningState;
482
- /**
483
- * Time when the Endpoint was added to DigitalTwinsInstance.
484
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
485
- */
486
- readonly createdTime?: Date;
487
- /**
488
- * Specifies the authentication type being used for connecting to the endpoint. Possible values
489
- * include: 'KeyBased', 'IdentityBased'
490
- */
491
- authenticationType?: AuthenticationType;
492
- /**
493
- * Dead letter storage secret for key-based authentication. Will be obfuscated during read.
494
- */
495
- deadLetterSecret?: string;
496
- /**
497
- * Dead letter storage URL for identity-based authentication.
498
- */
499
- deadLetterUri?: string;
500
- /**
501
- * EventGrid Topic Endpoint
502
- */
503
- topicEndpoint: string;
504
- /**
505
- * EventGrid secondary accesskey. Will be obfuscated during read.
506
- */
507
- accessKey1: string;
508
- /**
509
- * EventGrid secondary accesskey. Will be obfuscated during read.
510
- */
511
- accessKey2?: string;
512
- }
574
+ export type AuthenticationType = string;
513
575
 
514
- /**
515
- * The properties for a group information object.
516
- */
517
- export interface GroupIdInformationProperties {
518
- /**
519
- * The group id
520
- */
521
- groupId?: string;
522
- /**
523
- * The required members for a specific group id.
524
- */
525
- requiredMembers?: string[];
526
- /**
527
- * The required DNS zones for a specific group id.
528
- */
529
- requiredZoneNames?: string[];
576
+ /** Known values of {@link Reason} that the service accepts. */
577
+ export enum KnownReason {
578
+ Invalid = "Invalid",
579
+ AlreadyExists = "AlreadyExists"
530
580
  }
531
581
 
532
582
  /**
533
- * An interface representing GroupIdInformationPropertiesModel.
583
+ * Defines values for Reason. \
584
+ * {@link KnownReason} can be used interchangeably with Reason,
585
+ * this enum contains the known values that the service supports.
586
+ * ### Known values supported by the service
587
+ * **Invalid** \
588
+ * **AlreadyExists**
534
589
  */
535
- export interface GroupIdInformationPropertiesModel extends GroupIdInformationProperties {
536
- }
590
+ export type Reason = string;
537
591
 
538
- /**
539
- * The group information for creating a private endpoint on Digital Twin.
540
- */
541
- export interface GroupIdInformation {
542
- properties: GroupIdInformationPropertiesModel;
543
- /**
544
- * The resource identifier.
545
- */
546
- id?: string;
547
- /**
548
- * The resource name.
549
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
550
- */
551
- readonly name?: string;
552
- /**
553
- * The resource type.
554
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
555
- */
556
- readonly type?: string;
557
- }
592
+ /** Optional parameters. */
593
+ export interface DigitalTwinsGetOptionalParams
594
+ extends coreClient.OperationOptions {}
558
595
 
559
- /**
560
- * The available private link connections for a Digital Twin.
561
- */
562
- export interface PrivateEndpointConnectionsResponse {
563
- /**
564
- * The list of available private link connections for a Digital Twin.
565
- */
566
- value?: PrivateEndpointConnection[];
567
- }
596
+ /** Contains response data for the get operation. */
597
+ export type DigitalTwinsGetResponse = DigitalTwinsDescription;
568
598
 
569
- /**
570
- * The available private link resources for a Digital Twin.
571
- */
572
- export interface GroupIdInformationResponse {
573
- /**
574
- * The list of available private link resources for a Digital Twin.
575
- */
576
- value?: GroupIdInformation[];
599
+ /** Optional parameters. */
600
+ export interface DigitalTwinsCreateOrUpdateOptionalParams
601
+ extends coreClient.OperationOptions {
602
+ /** Delay to wait until next poll, in milliseconds. */
603
+ updateIntervalInMs?: number;
604
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
605
+ resumeFrom?: string;
577
606
  }
578
607
 
579
- /**
580
- * The current state of a private endpoint connection.
581
- */
582
- export interface ConnectionState {
583
- /**
584
- * The status of a private endpoint connection. Possible values include: 'Pending', 'Approved',
585
- * 'Rejected', 'Disconnected'
586
- */
587
- status: PrivateLinkServiceConnectionStatus;
588
- /**
589
- * The description for the current state of a private endpoint connection.
590
- */
591
- description: string;
592
- /**
593
- * Actions required for a private endpoint connection.
594
- */
595
- actionsRequired?: string;
596
- }
608
+ /** Contains response data for the createOrUpdate operation. */
609
+ export type DigitalTwinsCreateOrUpdateResponse = DigitalTwinsDescription;
597
610
 
598
- /**
599
- * The private endpoint property of a private endpoint connection.
600
- */
601
- export interface PrivateEndpoint {
602
- /**
603
- * The resource identifier.
604
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
605
- */
606
- readonly id?: string;
611
+ /** Optional parameters. */
612
+ export interface DigitalTwinsUpdateOptionalParams
613
+ extends coreClient.OperationOptions {
614
+ /** Delay to wait until next poll, in milliseconds. */
615
+ updateIntervalInMs?: number;
616
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
617
+ resumeFrom?: string;
607
618
  }
608
619
 
609
- /**
610
- * An interface representing ConnectionPropertiesPrivateEndpoint.
611
- */
612
- export interface ConnectionPropertiesPrivateEndpoint extends PrivateEndpoint {
613
- }
620
+ /** Contains response data for the update operation. */
621
+ export type DigitalTwinsUpdateResponse = DigitalTwinsDescription;
614
622
 
615
- /**
616
- * An interface representing ConnectionPropertiesPrivateLinkServiceConnectionState.
617
- */
618
- export interface ConnectionPropertiesPrivateLinkServiceConnectionState extends ConnectionState {
623
+ /** Optional parameters. */
624
+ export interface DigitalTwinsDeleteOptionalParams
625
+ extends coreClient.OperationOptions {
626
+ /** Delay to wait until next poll, in milliseconds. */
627
+ updateIntervalInMs?: number;
628
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
629
+ resumeFrom?: string;
619
630
  }
620
631
 
621
- /**
622
- * An interface representing AzureDigitalTwinsManagementClientOptions.
623
- */
624
- export interface AzureDigitalTwinsManagementClientOptions extends AzureServiceClientOptions {
625
- baseUri?: string;
626
- }
632
+ /** Contains response data for the delete operation. */
633
+ export type DigitalTwinsDeleteResponse = DigitalTwinsDescription;
627
634
 
628
- /**
629
- * @interface
630
- * A list of DigitalTwins description objects with a next link.
631
- * @extends Array<DigitalTwinsDescription>
632
- */
633
- export interface DigitalTwinsDescriptionListResult extends Array<DigitalTwinsDescription> {
634
- /**
635
- * The link used to get the next page of DigitalTwins description objects.
636
- */
637
- nextLink?: string;
638
- }
635
+ /** Optional parameters. */
636
+ export interface DigitalTwinsListOptionalParams
637
+ extends coreClient.OperationOptions {}
639
638
 
640
- /**
641
- * @interface
642
- * A list of DigitalTwinsInstance Endpoints with a next link.
643
- * @extends Array<DigitalTwinsEndpointResource>
644
- */
645
- export interface DigitalTwinsEndpointResourceListResult extends Array<DigitalTwinsEndpointResource> {
646
- /**
647
- * The link used to get the next page of DigitalTwinsInstance Endpoints.
648
- */
649
- nextLink?: string;
650
- }
639
+ /** Contains response data for the list operation. */
640
+ export type DigitalTwinsListResponse = DigitalTwinsDescriptionListResult;
651
641
 
652
- /**
653
- * @interface
654
- * A list of DigitalTwins service operations. It contains a list of operations and a URL link to
655
- * get the next set of results.
656
- * @extends Array<Operation>
657
- */
658
- export interface OperationListResult extends Array<Operation> {
659
- /**
660
- * The link used to get the next page of DigitalTwins description objects.
661
- */
662
- nextLink?: string;
663
- }
642
+ /** Optional parameters. */
643
+ export interface DigitalTwinsListByResourceGroupOptionalParams
644
+ extends coreClient.OperationOptions {}
664
645
 
665
- /**
666
- * Defines values for PublicNetworkAccess.
667
- * Possible values include: 'Enabled', 'Disabled'
668
- * @readonly
669
- * @enum {string}
670
- */
671
- export type PublicNetworkAccess = 'Enabled' | 'Disabled';
646
+ /** Contains response data for the listByResourceGroup operation. */
647
+ export type DigitalTwinsListByResourceGroupResponse = DigitalTwinsDescriptionListResult;
672
648
 
673
- /**
674
- * Defines values for ProvisioningState.
675
- * Possible values include: 'Provisioning', 'Deleting', 'Updating', 'Succeeded', 'Failed',
676
- * 'Canceled', 'Deleted', 'Warning', 'Suspending', 'Restoring', 'Moving'
677
- * @readonly
678
- * @enum {string}
679
- */
680
- export type ProvisioningState = 'Provisioning' | 'Deleting' | 'Updating' | 'Succeeded' | 'Failed' | 'Canceled' | 'Deleted' | 'Warning' | 'Suspending' | 'Restoring' | 'Moving';
649
+ /** Optional parameters. */
650
+ export interface DigitalTwinsCheckNameAvailabilityOptionalParams
651
+ extends coreClient.OperationOptions {}
681
652
 
682
- /**
683
- * Defines values for DigitalTwinsIdentityType.
684
- * Possible values include: 'None', 'SystemAssigned'
685
- * @readonly
686
- * @enum {string}
687
- */
688
- export type DigitalTwinsIdentityType = 'None' | 'SystemAssigned';
653
+ /** Contains response data for the checkNameAvailability operation. */
654
+ export type DigitalTwinsCheckNameAvailabilityResponse = CheckNameResult;
689
655
 
690
- /**
691
- * Defines values for Reason.
692
- * Possible values include: 'Invalid', 'AlreadyExists'
693
- * @readonly
694
- * @enum {string}
695
- */
696
- export type Reason = 'Invalid' | 'AlreadyExists';
656
+ /** Optional parameters. */
657
+ export interface DigitalTwinsListNextOptionalParams
658
+ extends coreClient.OperationOptions {}
697
659
 
698
- /**
699
- * Defines values for EndpointProvisioningState.
700
- * Possible values include: 'Provisioning', 'Deleting', 'Succeeded', 'Failed', 'Canceled',
701
- * 'Deleted', 'Warning', 'Suspending', 'Restoring', 'Moving', 'Disabled'
702
- * @readonly
703
- * @enum {string}
704
- */
705
- export type EndpointProvisioningState = 'Provisioning' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled' | 'Deleted' | 'Warning' | 'Suspending' | 'Restoring' | 'Moving' | 'Disabled';
660
+ /** Contains response data for the listNext operation. */
661
+ export type DigitalTwinsListNextResponse = DigitalTwinsDescriptionListResult;
706
662
 
707
- /**
708
- * Defines values for AuthenticationType.
709
- * Possible values include: 'KeyBased', 'IdentityBased'
710
- * @readonly
711
- * @enum {string}
712
- */
713
- export type AuthenticationType = 'KeyBased' | 'IdentityBased';
663
+ /** Optional parameters. */
664
+ export interface DigitalTwinsListByResourceGroupNextOptionalParams
665
+ extends coreClient.OperationOptions {}
714
666
 
715
- /**
716
- * Defines values for PrivateLinkServiceConnectionStatus.
717
- * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
718
- * @readonly
719
- * @enum {string}
720
- */
721
- export type PrivateLinkServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected';
667
+ /** Contains response data for the listByResourceGroupNext operation. */
668
+ export type DigitalTwinsListByResourceGroupNextResponse = DigitalTwinsDescriptionListResult;
722
669
 
723
- /**
724
- * Defines values for ConnectionPropertiesProvisioningState.
725
- * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
726
- * @readonly
727
- * @enum {string}
728
- */
729
- export type ConnectionPropertiesProvisioningState = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected';
670
+ /** Optional parameters. */
671
+ export interface DigitalTwinsEndpointListOptionalParams
672
+ extends coreClient.OperationOptions {}
730
673
 
731
- /**
732
- * Contains response data for the get operation.
733
- */
734
- export type DigitalTwinsGetResponse = DigitalTwinsDescription & {
735
- /**
736
- * The underlying HTTP response.
737
- */
738
- _response: msRest.HttpResponse & {
739
- /**
740
- * The response body as text (string format)
741
- */
742
- bodyAsText: string;
743
-
744
- /**
745
- * The response body as parsed JSON or XML
746
- */
747
- parsedBody: DigitalTwinsDescription;
748
- };
749
- };
674
+ /** Contains response data for the list operation. */
675
+ export type DigitalTwinsEndpointListResponse = DigitalTwinsEndpointResourceListResult;
750
676
 
751
- /**
752
- * Contains response data for the createOrUpdate operation.
753
- */
754
- export type DigitalTwinsCreateOrUpdateResponse = DigitalTwinsDescription & {
755
- /**
756
- * The underlying HTTP response.
757
- */
758
- _response: msRest.HttpResponse & {
759
- /**
760
- * The response body as text (string format)
761
- */
762
- bodyAsText: string;
763
-
764
- /**
765
- * The response body as parsed JSON or XML
766
- */
767
- parsedBody: DigitalTwinsDescription;
768
- };
769
- };
677
+ /** Optional parameters. */
678
+ export interface DigitalTwinsEndpointGetOptionalParams
679
+ extends coreClient.OperationOptions {}
770
680
 
771
- /**
772
- * Contains response data for the update operation.
773
- */
774
- export type DigitalTwinsUpdateResponse = DigitalTwinsDescription & {
775
- /**
776
- * The underlying HTTP response.
777
- */
778
- _response: msRest.HttpResponse & {
779
- /**
780
- * The response body as text (string format)
781
- */
782
- bodyAsText: string;
783
-
784
- /**
785
- * The response body as parsed JSON or XML
786
- */
787
- parsedBody: DigitalTwinsDescription;
788
- };
789
- };
681
+ /** Contains response data for the get operation. */
682
+ export type DigitalTwinsEndpointGetResponse = DigitalTwinsEndpointResource;
790
683
 
791
- /**
792
- * Contains response data for the deleteMethod operation.
793
- */
794
- export type DigitalTwinsDeleteMethodResponse = DigitalTwinsDescription & {
795
- /**
796
- * The underlying HTTP response.
797
- */
798
- _response: msRest.HttpResponse & {
799
- /**
800
- * The response body as text (string format)
801
- */
802
- bodyAsText: string;
803
-
804
- /**
805
- * The response body as parsed JSON or XML
806
- */
807
- parsedBody: DigitalTwinsDescription;
808
- };
809
- };
684
+ /** Optional parameters. */
685
+ export interface DigitalTwinsEndpointCreateOrUpdateOptionalParams
686
+ extends coreClient.OperationOptions {
687
+ /** Delay to wait until next poll, in milliseconds. */
688
+ updateIntervalInMs?: number;
689
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
690
+ resumeFrom?: string;
691
+ }
810
692
 
811
- /**
812
- * Contains response data for the list operation.
813
- */
814
- export type DigitalTwinsListResponse = DigitalTwinsDescriptionListResult & {
815
- /**
816
- * The underlying HTTP response.
817
- */
818
- _response: msRest.HttpResponse & {
819
- /**
820
- * The response body as text (string format)
821
- */
822
- bodyAsText: string;
823
-
824
- /**
825
- * The response body as parsed JSON or XML
826
- */
827
- parsedBody: DigitalTwinsDescriptionListResult;
828
- };
829
- };
693
+ /** Contains response data for the createOrUpdate operation. */
694
+ export type DigitalTwinsEndpointCreateOrUpdateResponse = DigitalTwinsEndpointResource;
830
695
 
831
- /**
832
- * Contains response data for the listByResourceGroup operation.
833
- */
834
- export type DigitalTwinsListByResourceGroupResponse = DigitalTwinsDescriptionListResult & {
835
- /**
836
- * The underlying HTTP response.
837
- */
838
- _response: msRest.HttpResponse & {
839
- /**
840
- * The response body as text (string format)
841
- */
842
- bodyAsText: string;
843
-
844
- /**
845
- * The response body as parsed JSON or XML
846
- */
847
- parsedBody: DigitalTwinsDescriptionListResult;
848
- };
849
- };
696
+ /** Optional parameters. */
697
+ export interface DigitalTwinsEndpointDeleteOptionalParams
698
+ extends coreClient.OperationOptions {
699
+ /** Delay to wait until next poll, in milliseconds. */
700
+ updateIntervalInMs?: number;
701
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
702
+ resumeFrom?: string;
703
+ }
850
704
 
851
- /**
852
- * Contains response data for the checkNameAvailability operation.
853
- */
854
- export type DigitalTwinsCheckNameAvailabilityResponse = CheckNameResult & {
855
- /**
856
- * The underlying HTTP response.
857
- */
858
- _response: msRest.HttpResponse & {
859
- /**
860
- * The response body as text (string format)
861
- */
862
- bodyAsText: string;
863
-
864
- /**
865
- * The response body as parsed JSON or XML
866
- */
867
- parsedBody: CheckNameResult;
868
- };
869
- };
705
+ /** Contains response data for the delete operation. */
706
+ export type DigitalTwinsEndpointDeleteResponse = DigitalTwinsEndpointResource;
870
707
 
871
- /**
872
- * Contains response data for the beginCreateOrUpdate operation.
873
- */
874
- export type DigitalTwinsBeginCreateOrUpdateResponse = DigitalTwinsDescription & {
875
- /**
876
- * The underlying HTTP response.
877
- */
878
- _response: msRest.HttpResponse & {
879
- /**
880
- * The response body as text (string format)
881
- */
882
- bodyAsText: string;
883
-
884
- /**
885
- * The response body as parsed JSON or XML
886
- */
887
- parsedBody: DigitalTwinsDescription;
888
- };
889
- };
708
+ /** Optional parameters. */
709
+ export interface DigitalTwinsEndpointListNextOptionalParams
710
+ extends coreClient.OperationOptions {}
890
711
 
891
- /**
892
- * Contains response data for the beginUpdate operation.
893
- */
894
- export type DigitalTwinsBeginUpdateResponse = DigitalTwinsDescription & {
895
- /**
896
- * The underlying HTTP response.
897
- */
898
- _response: msRest.HttpResponse & {
899
- /**
900
- * The response body as text (string format)
901
- */
902
- bodyAsText: string;
903
-
904
- /**
905
- * The response body as parsed JSON or XML
906
- */
907
- parsedBody: DigitalTwinsDescription;
908
- };
909
- };
712
+ /** Contains response data for the listNext operation. */
713
+ export type DigitalTwinsEndpointListNextResponse = DigitalTwinsEndpointResourceListResult;
910
714
 
911
- /**
912
- * Contains response data for the beginDeleteMethod operation.
913
- */
914
- export type DigitalTwinsBeginDeleteMethodResponse = DigitalTwinsDescription & {
915
- /**
916
- * The underlying HTTP response.
917
- */
918
- _response: msRest.HttpResponse & {
919
- /**
920
- * The response body as text (string format)
921
- */
922
- bodyAsText: string;
923
-
924
- /**
925
- * The response body as parsed JSON or XML
926
- */
927
- parsedBody: DigitalTwinsDescription;
928
- };
929
- };
715
+ /** Optional parameters. */
716
+ export interface OperationsListOptionalParams
717
+ extends coreClient.OperationOptions {}
930
718
 
931
- /**
932
- * Contains response data for the listNext operation.
933
- */
934
- export type DigitalTwinsListNextResponse = DigitalTwinsDescriptionListResult & {
935
- /**
936
- * The underlying HTTP response.
937
- */
938
- _response: msRest.HttpResponse & {
939
- /**
940
- * The response body as text (string format)
941
- */
942
- bodyAsText: string;
943
-
944
- /**
945
- * The response body as parsed JSON or XML
946
- */
947
- parsedBody: DigitalTwinsDescriptionListResult;
948
- };
949
- };
719
+ /** Contains response data for the list operation. */
720
+ export type OperationsListResponse = OperationListResult;
950
721
 
951
- /**
952
- * Contains response data for the listByResourceGroupNext operation.
953
- */
954
- export type DigitalTwinsListByResourceGroupNextResponse = DigitalTwinsDescriptionListResult & {
955
- /**
956
- * The underlying HTTP response.
957
- */
958
- _response: msRest.HttpResponse & {
959
- /**
960
- * The response body as text (string format)
961
- */
962
- bodyAsText: string;
963
-
964
- /**
965
- * The response body as parsed JSON or XML
966
- */
967
- parsedBody: DigitalTwinsDescriptionListResult;
968
- };
969
- };
722
+ /** Optional parameters. */
723
+ export interface OperationsListNextOptionalParams
724
+ extends coreClient.OperationOptions {}
970
725
 
971
- /**
972
- * Contains response data for the list operation.
973
- */
974
- export type DigitalTwinsEndpointListResponse = DigitalTwinsEndpointResourceListResult & {
975
- /**
976
- * The underlying HTTP response.
977
- */
978
- _response: msRest.HttpResponse & {
979
- /**
980
- * The response body as text (string format)
981
- */
982
- bodyAsText: string;
983
-
984
- /**
985
- * The response body as parsed JSON or XML
986
- */
987
- parsedBody: DigitalTwinsEndpointResourceListResult;
988
- };
989
- };
726
+ /** Contains response data for the listNext operation. */
727
+ export type OperationsListNextResponse = OperationListResult;
990
728
 
991
- /**
992
- * Contains response data for the get operation.
993
- */
994
- export type DigitalTwinsEndpointGetResponse = DigitalTwinsEndpointResource & {
995
- /**
996
- * The underlying HTTP response.
997
- */
998
- _response: msRest.HttpResponse & {
999
- /**
1000
- * The response body as text (string format)
1001
- */
1002
- bodyAsText: string;
1003
-
1004
- /**
1005
- * The response body as parsed JSON or XML
1006
- */
1007
- parsedBody: DigitalTwinsEndpointResource;
1008
- };
1009
- };
729
+ /** Optional parameters. */
730
+ export interface PrivateLinkResourcesListOptionalParams
731
+ extends coreClient.OperationOptions {}
1010
732
 
1011
- /**
1012
- * Contains response data for the createOrUpdate operation.
1013
- */
1014
- export type DigitalTwinsEndpointCreateOrUpdateResponse = DigitalTwinsEndpointResource & {
1015
- /**
1016
- * The underlying HTTP response.
1017
- */
1018
- _response: msRest.HttpResponse & {
1019
- /**
1020
- * The response body as text (string format)
1021
- */
1022
- bodyAsText: string;
1023
-
1024
- /**
1025
- * The response body as parsed JSON or XML
1026
- */
1027
- parsedBody: DigitalTwinsEndpointResource;
1028
- };
1029
- };
733
+ /** Contains response data for the list operation. */
734
+ export type PrivateLinkResourcesListResponse = GroupIdInformationResponse;
1030
735
 
1031
- /**
1032
- * Contains response data for the deleteMethod operation.
1033
- */
1034
- export type DigitalTwinsEndpointDeleteMethodResponse = DigitalTwinsEndpointResource & {
1035
- /**
1036
- * The underlying HTTP response.
1037
- */
1038
- _response: msRest.HttpResponse & {
1039
- /**
1040
- * The response body as text (string format)
1041
- */
1042
- bodyAsText: string;
1043
-
1044
- /**
1045
- * The response body as parsed JSON or XML
1046
- */
1047
- parsedBody: DigitalTwinsEndpointResource;
1048
- };
1049
- };
736
+ /** Optional parameters. */
737
+ export interface PrivateLinkResourcesGetOptionalParams
738
+ extends coreClient.OperationOptions {}
1050
739
 
1051
- /**
1052
- * Contains response data for the beginCreateOrUpdate operation.
1053
- */
1054
- export type DigitalTwinsEndpointBeginCreateOrUpdateResponse = DigitalTwinsEndpointResource & {
1055
- /**
1056
- * The underlying HTTP response.
1057
- */
1058
- _response: msRest.HttpResponse & {
1059
- /**
1060
- * The response body as text (string format)
1061
- */
1062
- bodyAsText: string;
1063
-
1064
- /**
1065
- * The response body as parsed JSON or XML
1066
- */
1067
- parsedBody: DigitalTwinsEndpointResource;
1068
- };
1069
- };
740
+ /** Contains response data for the get operation. */
741
+ export type PrivateLinkResourcesGetResponse = GroupIdInformation;
1070
742
 
1071
- /**
1072
- * Contains response data for the beginDeleteMethod operation.
1073
- */
1074
- export type DigitalTwinsEndpointBeginDeleteMethodResponse = DigitalTwinsEndpointResource & {
1075
- /**
1076
- * The underlying HTTP response.
1077
- */
1078
- _response: msRest.HttpResponse & {
1079
- /**
1080
- * The response body as text (string format)
1081
- */
1082
- bodyAsText: string;
1083
-
1084
- /**
1085
- * The response body as parsed JSON or XML
1086
- */
1087
- parsedBody: DigitalTwinsEndpointResource;
1088
- };
1089
- };
743
+ /** Optional parameters. */
744
+ export interface PrivateEndpointConnectionsListOptionalParams
745
+ extends coreClient.OperationOptions {}
1090
746
 
1091
- /**
1092
- * Contains response data for the listNext operation.
1093
- */
1094
- export type DigitalTwinsEndpointListNextResponse = DigitalTwinsEndpointResourceListResult & {
1095
- /**
1096
- * The underlying HTTP response.
1097
- */
1098
- _response: msRest.HttpResponse & {
1099
- /**
1100
- * The response body as text (string format)
1101
- */
1102
- bodyAsText: string;
1103
-
1104
- /**
1105
- * The response body as parsed JSON or XML
1106
- */
1107
- parsedBody: DigitalTwinsEndpointResourceListResult;
1108
- };
1109
- };
747
+ /** Contains response data for the list operation. */
748
+ export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionsResponse;
1110
749
 
1111
- /**
1112
- * Contains response data for the list operation.
1113
- */
1114
- export type OperationsListResponse = OperationListResult & {
1115
- /**
1116
- * The underlying HTTP response.
1117
- */
1118
- _response: msRest.HttpResponse & {
1119
- /**
1120
- * The response body as text (string format)
1121
- */
1122
- bodyAsText: string;
1123
-
1124
- /**
1125
- * The response body as parsed JSON or XML
1126
- */
1127
- parsedBody: OperationListResult;
1128
- };
1129
- };
750
+ /** Optional parameters. */
751
+ export interface PrivateEndpointConnectionsGetOptionalParams
752
+ extends coreClient.OperationOptions {}
1130
753
 
1131
- /**
1132
- * Contains response data for the listNext operation.
1133
- */
1134
- export type OperationsListNextResponse = OperationListResult & {
1135
- /**
1136
- * The underlying HTTP response.
1137
- */
1138
- _response: msRest.HttpResponse & {
1139
- /**
1140
- * The response body as text (string format)
1141
- */
1142
- bodyAsText: string;
1143
-
1144
- /**
1145
- * The response body as parsed JSON or XML
1146
- */
1147
- parsedBody: OperationListResult;
1148
- };
1149
- };
754
+ /** Contains response data for the get operation. */
755
+ export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection;
1150
756
 
1151
- /**
1152
- * Contains response data for the list operation.
1153
- */
1154
- export type PrivateLinkResourcesListResponse = GroupIdInformationResponse & {
1155
- /**
1156
- * The underlying HTTP response.
1157
- */
1158
- _response: msRest.HttpResponse & {
1159
- /**
1160
- * The response body as text (string format)
1161
- */
1162
- bodyAsText: string;
1163
-
1164
- /**
1165
- * The response body as parsed JSON or XML
1166
- */
1167
- parsedBody: GroupIdInformationResponse;
1168
- };
1169
- };
1170
-
1171
- /**
1172
- * Contains response data for the get operation.
1173
- */
1174
- export type PrivateLinkResourcesGetResponse = GroupIdInformation & {
1175
- /**
1176
- * The underlying HTTP response.
1177
- */
1178
- _response: msRest.HttpResponse & {
1179
- /**
1180
- * The response body as text (string format)
1181
- */
1182
- bodyAsText: string;
1183
-
1184
- /**
1185
- * The response body as parsed JSON or XML
1186
- */
1187
- parsedBody: GroupIdInformation;
1188
- };
1189
- };
1190
-
1191
- /**
1192
- * Contains response data for the list operation.
1193
- */
1194
- export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionsResponse & {
1195
- /**
1196
- * The underlying HTTP response.
1197
- */
1198
- _response: msRest.HttpResponse & {
1199
- /**
1200
- * The response body as text (string format)
1201
- */
1202
- bodyAsText: string;
1203
-
1204
- /**
1205
- * The response body as parsed JSON or XML
1206
- */
1207
- parsedBody: PrivateEndpointConnectionsResponse;
1208
- };
1209
- };
757
+ /** Optional parameters. */
758
+ export interface PrivateEndpointConnectionsDeleteOptionalParams
759
+ extends coreClient.OperationOptions {
760
+ /** Delay to wait until next poll, in milliseconds. */
761
+ updateIntervalInMs?: number;
762
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
763
+ resumeFrom?: string;
764
+ }
1210
765
 
1211
- /**
1212
- * Contains response data for the get operation.
1213
- */
1214
- export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & {
1215
- /**
1216
- * The underlying HTTP response.
1217
- */
1218
- _response: msRest.HttpResponse & {
1219
- /**
1220
- * The response body as text (string format)
1221
- */
1222
- bodyAsText: string;
1223
-
1224
- /**
1225
- * The response body as parsed JSON or XML
1226
- */
1227
- parsedBody: PrivateEndpointConnection;
1228
- };
1229
- };
766
+ /** Optional parameters. */
767
+ export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams
768
+ extends coreClient.OperationOptions {
769
+ /** Delay to wait until next poll, in milliseconds. */
770
+ updateIntervalInMs?: number;
771
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
772
+ resumeFrom?: string;
773
+ }
1230
774
 
1231
- /**
1232
- * Contains response data for the createOrUpdate operation.
1233
- */
1234
- export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & {
1235
- /**
1236
- * The underlying HTTP response.
1237
- */
1238
- _response: msRest.HttpResponse & {
1239
- /**
1240
- * The response body as text (string format)
1241
- */
1242
- bodyAsText: string;
1243
-
1244
- /**
1245
- * The response body as parsed JSON or XML
1246
- */
1247
- parsedBody: PrivateEndpointConnection;
1248
- };
1249
- };
775
+ /** Contains response data for the createOrUpdate operation. */
776
+ export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection;
1250
777
 
1251
- /**
1252
- * Contains response data for the beginCreateOrUpdate operation.
1253
- */
1254
- export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & {
1255
- /**
1256
- * The underlying HTTP response.
1257
- */
1258
- _response: msRest.HttpResponse & {
1259
- /**
1260
- * The response body as text (string format)
1261
- */
1262
- bodyAsText: string;
1263
-
1264
- /**
1265
- * The response body as parsed JSON or XML
1266
- */
1267
- parsedBody: PrivateEndpointConnection;
1268
- };
1269
- };
778
+ /** Optional parameters. */
779
+ export interface AzureDigitalTwinsManagementClientOptionalParams
780
+ extends coreClient.ServiceClientOptions {
781
+ /** server parameter */
782
+ $host?: string;
783
+ /** Api Version */
784
+ apiVersion?: string;
785
+ /** Overrides client endpoint. */
786
+ endpoint?: string;
787
+ }