@azure/arm-digitaltwins 3.3.1-alpha.20250718.1 → 3.3.1-alpha.20250730.1
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.
- package/dist/browser/azureDigitalTwinsManagementClient.js +19 -5
- package/dist/browser/azureDigitalTwinsManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +84 -38
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/digitalTwins.js +78 -97
- package/dist/browser/operations/digitalTwins.js.map +1 -1
- package/dist/browser/operations/digitalTwinsEndpoint.js +45 -52
- package/dist/browser/operations/digitalTwinsEndpoint.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +23 -12
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +1 -0
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/timeSeriesDatabaseConnections.js +45 -52
- package/dist/browser/operations/timeSeriesDatabaseConnections.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/azureDigitalTwinsManagementClient.js +19 -5
- package/dist/commonjs/azureDigitalTwinsManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +84 -38
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/digitalTwins.js +78 -96
- package/dist/commonjs/operations/digitalTwins.js.map +1 -1
- package/dist/commonjs/operations/digitalTwinsEndpoint.js +45 -51
- package/dist/commonjs/operations/digitalTwinsEndpoint.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +23 -12
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +1 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/timeSeriesDatabaseConnections.js +45 -51
- package/dist/commonjs/operations/timeSeriesDatabaseConnections.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/azureDigitalTwinsManagementClient.js +19 -5
- package/dist/esm/azureDigitalTwinsManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +84 -38
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/digitalTwins.js +78 -97
- package/dist/esm/operations/digitalTwins.js.map +1 -1
- package/dist/esm/operations/digitalTwinsEndpoint.js +45 -52
- package/dist/esm/operations/digitalTwinsEndpoint.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +23 -12
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +1 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/timeSeriesDatabaseConnections.js +45 -52
- package/dist/esm/operations/timeSeriesDatabaseConnections.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/azureDigitalTwinsManagementClient.js +19 -5
- package/dist/react-native/azureDigitalTwinsManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +84 -38
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/digitalTwins.js +78 -97
- package/dist/react-native/operations/digitalTwins.js.map +1 -1
- package/dist/react-native/operations/digitalTwinsEndpoint.js +45 -52
- package/dist/react-native/operations/digitalTwinsEndpoint.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +23 -12
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +1 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/timeSeriesDatabaseConnections.js +45 -52
- package/dist/react-native/operations/timeSeriesDatabaseConnections.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-digitaltwins-node.api.md +759 -759
|
@@ -9,6 +9,9 @@ import * as coreClient from "@azure/core-client";
|
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
10
|
import { DigitalTwinsImpl, DigitalTwinsEndpointImpl, OperationsImpl, PrivateLinkResourcesImpl, PrivateEndpointConnectionsImpl, TimeSeriesDatabaseConnectionsImpl } from "./operations/index.js";
|
|
11
11
|
export class AzureDigitalTwinsManagementClient extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
apiVersion;
|
|
14
|
+
subscriptionId;
|
|
12
15
|
/**
|
|
13
16
|
* Initializes a new instance of the AzureDigitalTwinsManagementClient class.
|
|
14
17
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -16,7 +19,6 @@ export class AzureDigitalTwinsManagementClient extends coreClient.ServiceClient
|
|
|
16
19
|
* @param options The parameter options
|
|
17
20
|
*/
|
|
18
21
|
constructor(credentials, subscriptionId, options) {
|
|
19
|
-
var _a, _b, _c;
|
|
20
22
|
if (credentials === undefined) {
|
|
21
23
|
throw new Error("'credentials' cannot be null");
|
|
22
24
|
}
|
|
@@ -35,12 +37,17 @@ export class AzureDigitalTwinsManagementClient extends coreClient.ServiceClient
|
|
|
35
37
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
36
38
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
37
39
|
: `${packageDetails}`;
|
|
38
|
-
const optionsWithDefaults =
|
|
40
|
+
const optionsWithDefaults = {
|
|
41
|
+
...defaults,
|
|
42
|
+
...options,
|
|
43
|
+
userAgentOptions: {
|
|
39
44
|
userAgentPrefix
|
|
40
|
-
},
|
|
45
|
+
},
|
|
46
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
47
|
+
};
|
|
41
48
|
super(optionsWithDefaults);
|
|
42
49
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
43
|
-
if (
|
|
50
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
44
51
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
45
52
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
46
53
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -54,7 +61,8 @@ export class AzureDigitalTwinsManagementClient extends coreClient.ServiceClient
|
|
|
54
61
|
});
|
|
55
62
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
56
63
|
credential: credentials,
|
|
57
|
-
scopes:
|
|
64
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
65
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
58
66
|
challengeCallbacks: {
|
|
59
67
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
60
68
|
}
|
|
@@ -98,5 +106,11 @@ export class AzureDigitalTwinsManagementClient extends coreClient.ServiceClient
|
|
|
98
106
|
};
|
|
99
107
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
100
108
|
}
|
|
109
|
+
digitalTwins;
|
|
110
|
+
digitalTwinsEndpoint;
|
|
111
|
+
operations;
|
|
112
|
+
privateLinkResources;
|
|
113
|
+
privateEndpointConnections;
|
|
114
|
+
timeSeriesDatabaseConnections;
|
|
101
115
|
}
|
|
102
116
|
//# sourceMappingURL=azureDigitalTwinsManagementClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azureDigitalTwinsManagementClient.js","sourceRoot":"","sources":["../../src/azureDigitalTwinsManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,wBAAwB,EACxB,8BAA8B,EAC9B,iCAAiC,EAClC,MAAM,uBAAuB,CAAC;AAW/B,MAAM,OAAO,iCAAkC,SAAQ,UAAU,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"azureDigitalTwinsManagementClient.js","sourceRoot":"","sources":["../../src/azureDigitalTwinsManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,wBAAwB,EACxB,8BAA8B,EAC9B,iCAAiC,EAClC,MAAM,uBAAuB,CAAC;AAW/B,MAAM,OAAO,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAC7E,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAyD;QAEzD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC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ACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,YAAY,CAAe;IAC3B,oBAAoB,CAAuB;IAC3C,UAAU,CAAa;IACvB,oBAAoB,CAAuB;IAC3C,0BAA0B,CAA6B;IACvD,6BAA6B,CAAgC;CAC9D","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n DigitalTwinsImpl,\n DigitalTwinsEndpointImpl,\n OperationsImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionsImpl,\n TimeSeriesDatabaseConnectionsImpl\n} from \"./operations/index.js\";\nimport {\n DigitalTwins,\n DigitalTwinsEndpoint,\n Operations,\n PrivateLinkResources,\n PrivateEndpointConnections,\n TimeSeriesDatabaseConnections\n} from \"./operationsInterfaces/index.js\";\nimport { AzureDigitalTwinsManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AzureDigitalTwinsManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AzureDigitalTwinsManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription identifier.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AzureDigitalTwinsManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AzureDigitalTwinsManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-digitaltwins/3.3.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-01-31\";\n this.digitalTwins = new DigitalTwinsImpl(this);\n this.digitalTwinsEndpoint = new DigitalTwinsEndpointImpl(this);\n this.operations = new OperationsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.timeSeriesDatabaseConnections = new TimeSeriesDatabaseConnectionsImpl(\n this\n );\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n digitalTwins: DigitalTwins;\n digitalTwinsEndpoint: DigitalTwinsEndpoint;\n operations: Operations;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnections: PrivateEndpointConnections;\n timeSeriesDatabaseConnections: TimeSeriesDatabaseConnections;\n}\n"]}
|
package/dist/browser/lroImpl.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
1
|
export function createLroSpec(inputs) {
|
|
3
2
|
const { args, spec, sendOperationFn } = inputs;
|
|
4
3
|
return {
|
|
@@ -6,8 +5,13 @@ export function createLroSpec(inputs) {
|
|
|
6
5
|
requestPath: spec.path,
|
|
7
6
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
8
7
|
sendPollRequest: (path, options) => {
|
|
9
|
-
const { requestBody
|
|
10
|
-
return sendOperationFn(args,
|
|
8
|
+
const { requestBody, ...restSpec } = spec;
|
|
9
|
+
return sendOperationFn(args, {
|
|
10
|
+
...restSpec,
|
|
11
|
+
httpMethod: "GET",
|
|
12
|
+
path,
|
|
13
|
+
abortSignal: options?.abortSignal
|
|
14
|
+
});
|
|
11
15
|
}
|
|
12
16
|
};
|
|
13
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike }\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal\n });\n }\n };\n}\n"]}
|
|
@@ -923,39 +923,47 @@ export const ConnectionPropertiesPrivateLinkServiceConnectionState = {
|
|
|
923
923
|
type: {
|
|
924
924
|
name: "Composite",
|
|
925
925
|
className: "ConnectionPropertiesPrivateLinkServiceConnectionState",
|
|
926
|
-
modelProperties:
|
|
926
|
+
modelProperties: {
|
|
927
|
+
...ConnectionState.type.modelProperties
|
|
928
|
+
}
|
|
927
929
|
}
|
|
928
930
|
};
|
|
929
931
|
export const DigitalTwinsDescription = {
|
|
930
932
|
type: {
|
|
931
933
|
name: "Composite",
|
|
932
934
|
className: "DigitalTwinsDescription",
|
|
933
|
-
modelProperties:
|
|
935
|
+
modelProperties: {
|
|
936
|
+
...DigitalTwinsResource.type.modelProperties,
|
|
937
|
+
createdTime: {
|
|
934
938
|
serializedName: "properties.createdTime",
|
|
935
939
|
readOnly: true,
|
|
936
940
|
type: {
|
|
937
941
|
name: "DateTime"
|
|
938
942
|
}
|
|
939
|
-
},
|
|
943
|
+
},
|
|
944
|
+
lastUpdatedTime: {
|
|
940
945
|
serializedName: "properties.lastUpdatedTime",
|
|
941
946
|
readOnly: true,
|
|
942
947
|
type: {
|
|
943
948
|
name: "DateTime"
|
|
944
949
|
}
|
|
945
|
-
},
|
|
950
|
+
},
|
|
951
|
+
provisioningState: {
|
|
946
952
|
serializedName: "properties.provisioningState",
|
|
947
953
|
readOnly: true,
|
|
948
954
|
type: {
|
|
949
955
|
name: "String"
|
|
950
956
|
}
|
|
951
|
-
},
|
|
957
|
+
},
|
|
958
|
+
hostName: {
|
|
952
959
|
serializedName: "properties.hostName",
|
|
953
960
|
readOnly: true,
|
|
954
961
|
nullable: true,
|
|
955
962
|
type: {
|
|
956
963
|
name: "String"
|
|
957
964
|
}
|
|
958
|
-
},
|
|
965
|
+
},
|
|
966
|
+
privateEndpointConnections: {
|
|
959
967
|
serializedName: "properties.privateEndpointConnections",
|
|
960
968
|
nullable: true,
|
|
961
969
|
type: {
|
|
@@ -967,13 +975,15 @@ export const DigitalTwinsDescription = {
|
|
|
967
975
|
}
|
|
968
976
|
}
|
|
969
977
|
}
|
|
970
|
-
},
|
|
978
|
+
},
|
|
979
|
+
publicNetworkAccess: {
|
|
971
980
|
serializedName: "properties.publicNetworkAccess",
|
|
972
981
|
nullable: true,
|
|
973
982
|
type: {
|
|
974
983
|
name: "String"
|
|
975
984
|
}
|
|
976
|
-
}
|
|
985
|
+
}
|
|
986
|
+
}
|
|
977
987
|
}
|
|
978
988
|
};
|
|
979
989
|
export const ServiceBus = {
|
|
@@ -983,31 +993,37 @@ export const ServiceBus = {
|
|
|
983
993
|
className: "ServiceBus",
|
|
984
994
|
uberParent: "DigitalTwinsEndpointResourceProperties",
|
|
985
995
|
polymorphicDiscriminator: DigitalTwinsEndpointResourceProperties.type.polymorphicDiscriminator,
|
|
986
|
-
modelProperties:
|
|
996
|
+
modelProperties: {
|
|
997
|
+
...DigitalTwinsEndpointResourceProperties.type.modelProperties,
|
|
998
|
+
primaryConnectionString: {
|
|
987
999
|
serializedName: "primaryConnectionString",
|
|
988
1000
|
nullable: true,
|
|
989
1001
|
type: {
|
|
990
1002
|
name: "String"
|
|
991
1003
|
}
|
|
992
|
-
},
|
|
1004
|
+
},
|
|
1005
|
+
secondaryConnectionString: {
|
|
993
1006
|
serializedName: "secondaryConnectionString",
|
|
994
1007
|
nullable: true,
|
|
995
1008
|
type: {
|
|
996
1009
|
name: "String"
|
|
997
1010
|
}
|
|
998
|
-
},
|
|
1011
|
+
},
|
|
1012
|
+
endpointUri: {
|
|
999
1013
|
serializedName: "endpointUri",
|
|
1000
1014
|
nullable: true,
|
|
1001
1015
|
type: {
|
|
1002
1016
|
name: "String"
|
|
1003
1017
|
}
|
|
1004
|
-
},
|
|
1018
|
+
},
|
|
1019
|
+
entityPath: {
|
|
1005
1020
|
serializedName: "entityPath",
|
|
1006
1021
|
nullable: true,
|
|
1007
1022
|
type: {
|
|
1008
1023
|
name: "String"
|
|
1009
1024
|
}
|
|
1010
|
-
}
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1011
1027
|
}
|
|
1012
1028
|
};
|
|
1013
1029
|
export const EventHub = {
|
|
@@ -1017,31 +1033,37 @@ export const EventHub = {
|
|
|
1017
1033
|
className: "EventHub",
|
|
1018
1034
|
uberParent: "DigitalTwinsEndpointResourceProperties",
|
|
1019
1035
|
polymorphicDiscriminator: DigitalTwinsEndpointResourceProperties.type.polymorphicDiscriminator,
|
|
1020
|
-
modelProperties:
|
|
1036
|
+
modelProperties: {
|
|
1037
|
+
...DigitalTwinsEndpointResourceProperties.type.modelProperties,
|
|
1038
|
+
connectionStringPrimaryKey: {
|
|
1021
1039
|
serializedName: "connectionStringPrimaryKey",
|
|
1022
1040
|
nullable: true,
|
|
1023
1041
|
type: {
|
|
1024
1042
|
name: "String"
|
|
1025
1043
|
}
|
|
1026
|
-
},
|
|
1044
|
+
},
|
|
1045
|
+
connectionStringSecondaryKey: {
|
|
1027
1046
|
serializedName: "connectionStringSecondaryKey",
|
|
1028
1047
|
nullable: true,
|
|
1029
1048
|
type: {
|
|
1030
1049
|
name: "String"
|
|
1031
1050
|
}
|
|
1032
|
-
},
|
|
1051
|
+
},
|
|
1052
|
+
endpointUri: {
|
|
1033
1053
|
serializedName: "endpointUri",
|
|
1034
1054
|
nullable: true,
|
|
1035
1055
|
type: {
|
|
1036
1056
|
name: "String"
|
|
1037
1057
|
}
|
|
1038
|
-
},
|
|
1058
|
+
},
|
|
1059
|
+
entityPath: {
|
|
1039
1060
|
serializedName: "entityPath",
|
|
1040
1061
|
nullable: true,
|
|
1041
1062
|
type: {
|
|
1042
1063
|
name: "String"
|
|
1043
1064
|
}
|
|
1044
|
-
}
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1045
1067
|
}
|
|
1046
1068
|
};
|
|
1047
1069
|
export const EventGrid = {
|
|
@@ -1051,52 +1073,63 @@ export const EventGrid = {
|
|
|
1051
1073
|
className: "EventGrid",
|
|
1052
1074
|
uberParent: "DigitalTwinsEndpointResourceProperties",
|
|
1053
1075
|
polymorphicDiscriminator: DigitalTwinsEndpointResourceProperties.type.polymorphicDiscriminator,
|
|
1054
|
-
modelProperties:
|
|
1076
|
+
modelProperties: {
|
|
1077
|
+
...DigitalTwinsEndpointResourceProperties.type.modelProperties,
|
|
1078
|
+
topicEndpoint: {
|
|
1055
1079
|
serializedName: "TopicEndpoint",
|
|
1056
1080
|
required: true,
|
|
1057
1081
|
type: {
|
|
1058
1082
|
name: "String"
|
|
1059
1083
|
}
|
|
1060
|
-
},
|
|
1084
|
+
},
|
|
1085
|
+
accessKey1: {
|
|
1061
1086
|
serializedName: "accessKey1",
|
|
1062
1087
|
required: true,
|
|
1063
1088
|
nullable: true,
|
|
1064
1089
|
type: {
|
|
1065
1090
|
name: "String"
|
|
1066
1091
|
}
|
|
1067
|
-
},
|
|
1092
|
+
},
|
|
1093
|
+
accessKey2: {
|
|
1068
1094
|
serializedName: "accessKey2",
|
|
1069
1095
|
nullable: true,
|
|
1070
1096
|
type: {
|
|
1071
1097
|
name: "String"
|
|
1072
1098
|
}
|
|
1073
|
-
}
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1074
1101
|
}
|
|
1075
1102
|
};
|
|
1076
1103
|
export const DigitalTwinsEndpointResource = {
|
|
1077
1104
|
type: {
|
|
1078
1105
|
name: "Composite",
|
|
1079
1106
|
className: "DigitalTwinsEndpointResource",
|
|
1080
|
-
modelProperties:
|
|
1107
|
+
modelProperties: {
|
|
1108
|
+
...ExternalResource.type.modelProperties,
|
|
1109
|
+
properties: {
|
|
1081
1110
|
serializedName: "properties",
|
|
1082
1111
|
type: {
|
|
1083
1112
|
name: "Composite",
|
|
1084
1113
|
className: "DigitalTwinsEndpointResourceProperties"
|
|
1085
1114
|
}
|
|
1086
|
-
}
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1087
1117
|
}
|
|
1088
1118
|
};
|
|
1089
1119
|
export const TimeSeriesDatabaseConnection = {
|
|
1090
1120
|
type: {
|
|
1091
1121
|
name: "Composite",
|
|
1092
1122
|
className: "TimeSeriesDatabaseConnection",
|
|
1093
|
-
modelProperties:
|
|
1123
|
+
modelProperties: {
|
|
1124
|
+
...ExternalResource.type.modelProperties,
|
|
1125
|
+
properties: {
|
|
1094
1126
|
serializedName: "properties",
|
|
1095
1127
|
type: {
|
|
1096
1128
|
name: "Composite",
|
|
1097
1129
|
className: "TimeSeriesDatabaseConnectionProperties"
|
|
1098
1130
|
}
|
|
1099
|
-
}
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1100
1133
|
}
|
|
1101
1134
|
};
|
|
1102
1135
|
export const AzureDataExplorerConnectionProperties = {
|
|
@@ -1106,76 +1139,89 @@ export const AzureDataExplorerConnectionProperties = {
|
|
|
1106
1139
|
className: "AzureDataExplorerConnectionProperties",
|
|
1107
1140
|
uberParent: "TimeSeriesDatabaseConnectionProperties",
|
|
1108
1141
|
polymorphicDiscriminator: TimeSeriesDatabaseConnectionProperties.type.polymorphicDiscriminator,
|
|
1109
|
-
modelProperties:
|
|
1142
|
+
modelProperties: {
|
|
1143
|
+
...TimeSeriesDatabaseConnectionProperties.type.modelProperties,
|
|
1144
|
+
adxResourceId: {
|
|
1110
1145
|
serializedName: "adxResourceId",
|
|
1111
1146
|
required: true,
|
|
1112
1147
|
type: {
|
|
1113
1148
|
name: "String"
|
|
1114
1149
|
}
|
|
1115
|
-
},
|
|
1150
|
+
},
|
|
1151
|
+
adxEndpointUri: {
|
|
1116
1152
|
serializedName: "adxEndpointUri",
|
|
1117
1153
|
required: true,
|
|
1118
1154
|
type: {
|
|
1119
1155
|
name: "String"
|
|
1120
1156
|
}
|
|
1121
|
-
},
|
|
1157
|
+
},
|
|
1158
|
+
adxDatabaseName: {
|
|
1122
1159
|
serializedName: "adxDatabaseName",
|
|
1123
1160
|
required: true,
|
|
1124
1161
|
type: {
|
|
1125
1162
|
name: "String"
|
|
1126
1163
|
}
|
|
1127
|
-
},
|
|
1164
|
+
},
|
|
1165
|
+
adxTableName: {
|
|
1128
1166
|
defaultValue: "AdtPropertyEvents",
|
|
1129
1167
|
serializedName: "adxTableName",
|
|
1130
1168
|
nullable: true,
|
|
1131
1169
|
type: {
|
|
1132
1170
|
name: "String"
|
|
1133
1171
|
}
|
|
1134
|
-
},
|
|
1172
|
+
},
|
|
1173
|
+
adxTwinLifecycleEventsTableName: {
|
|
1135
1174
|
serializedName: "adxTwinLifecycleEventsTableName",
|
|
1136
1175
|
nullable: true,
|
|
1137
1176
|
type: {
|
|
1138
1177
|
name: "String"
|
|
1139
1178
|
}
|
|
1140
|
-
},
|
|
1179
|
+
},
|
|
1180
|
+
adxRelationshipLifecycleEventsTableName: {
|
|
1141
1181
|
serializedName: "adxRelationshipLifecycleEventsTableName",
|
|
1142
1182
|
nullable: true,
|
|
1143
1183
|
type: {
|
|
1144
1184
|
name: "String"
|
|
1145
1185
|
}
|
|
1146
|
-
},
|
|
1186
|
+
},
|
|
1187
|
+
eventHubEndpointUri: {
|
|
1147
1188
|
serializedName: "eventHubEndpointUri",
|
|
1148
1189
|
required: true,
|
|
1149
1190
|
type: {
|
|
1150
1191
|
name: "String"
|
|
1151
1192
|
}
|
|
1152
|
-
},
|
|
1193
|
+
},
|
|
1194
|
+
eventHubEntityPath: {
|
|
1153
1195
|
serializedName: "eventHubEntityPath",
|
|
1154
1196
|
required: true,
|
|
1155
1197
|
type: {
|
|
1156
1198
|
name: "String"
|
|
1157
1199
|
}
|
|
1158
|
-
},
|
|
1200
|
+
},
|
|
1201
|
+
eventHubNamespaceResourceId: {
|
|
1159
1202
|
serializedName: "eventHubNamespaceResourceId",
|
|
1160
1203
|
required: true,
|
|
1161
1204
|
type: {
|
|
1162
1205
|
name: "String"
|
|
1163
1206
|
}
|
|
1164
|
-
},
|
|
1207
|
+
},
|
|
1208
|
+
eventHubConsumerGroup: {
|
|
1165
1209
|
defaultValue: "$Default",
|
|
1166
1210
|
serializedName: "eventHubConsumerGroup",
|
|
1167
1211
|
nullable: true,
|
|
1168
1212
|
type: {
|
|
1169
1213
|
name: "String"
|
|
1170
1214
|
}
|
|
1171
|
-
},
|
|
1215
|
+
},
|
|
1216
|
+
recordPropertyAndItemRemovals: {
|
|
1172
1217
|
defaultValue: "false",
|
|
1173
1218
|
serializedName: "recordPropertyAndItemRemovals",
|
|
1174
1219
|
nullable: true,
|
|
1175
1220
|
type: {
|
|
1176
1221
|
name: "String"
|
|
1177
1222
|
}
|
|
1178
|
-
}
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1179
1225
|
}
|
|
1180
1226
|
};
|
|
1181
1227
|
export let discriminators = {
|