diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 0a2b37686955..fb1df560466c 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2223,7 +2223,7 @@ packages: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.35 - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/chai-as-promised/7.1.5: @@ -2245,7 +2245,7 @@ packages: /@types/connect/3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/cookie/0.4.1: @@ -2255,7 +2255,7 @@ packages: /@types/cors/2.8.13: resolution: {integrity: sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/debug/4.1.7: @@ -2267,7 +2267,7 @@ packages: /@types/decompress/4.2.4: resolution: {integrity: sha512-/C8kTMRTNiNuWGl5nEyKbPiMv6HA+0RbEXzFhFBEzASM6+oa4tJro9b8nj7eRlOFfuLdzUU+DS/GPDlvvzMOhA==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/eslint/8.4.10: @@ -2288,7 +2288,7 @@ packages: /@types/express-serve-static-core/4.17.33: resolution: {integrity: sha512-TPBqmR/HRYI3eC2E5hmiivIzv+bidAfXofM+sbonAGvyDhySGw9/PQZFt2BLOrjUUR++4eJVpx6KnLQK1Fk9tA==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 dev: false @@ -2305,20 +2305,20 @@ packages: /@types/fs-extra/8.1.2: resolution: {integrity: sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/fs-extra/9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/glob/8.0.1: resolution: {integrity: sha512-8bVUjXZvJacUFkJXHdyZ9iH1Eaj5V7I8c4NdH5sQJsdXkqT4CA5Dhb4yb4VE/3asyx4L9ayZr1NIhTsWHczmMw==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/inquirer/8.2.6: @@ -2331,7 +2331,7 @@ packages: /@types/is-buffer/2.0.0: resolution: {integrity: sha512-0f7N/e3BAz32qDYvgB4d2cqv1DqUwvGxHkXsrucICn8la1Vb6Yl6Eg8mPScGwUiqHJeE7diXlzaK+QMA9m4Gxw==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/json-schema/7.0.11: @@ -2345,13 +2345,13 @@ packages: /@types/jsonwebtoken/9.0.1: resolution: {integrity: sha512-c5ltxazpWabia/4UzhIoaDcIza4KViOQhdbjRlfcIGVnsE3c3brkz9Z+F/EeJIECOQP7W7US2hNE930cWWkPiw==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/jws/3.2.5: resolution: {integrity: sha512-xGTxZH34xOryaTN8CMsvhh9lfNqFuHiMoRvsLYWQdBJHqiECyfInXVl2eK8Jz2emxZWMIn5RBlmr3oDVPeWujw==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/mdast/3.0.10: @@ -2387,7 +2387,7 @@ packages: /@types/node-fetch/2.6.2: resolution: {integrity: sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 form-data: 3.0.1 dev: false @@ -2434,7 +2434,7 @@ packages: /@types/resolve/1.17.1: resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/semaphore/1.1.1: @@ -2449,7 +2449,7 @@ packages: resolution: {integrity: sha512-z5xyF6uh8CbjAu9760KDKsH2FcDxZ2tFCsA4HIMWE6IkiYMXfVoa+4f9KX+FN0ZLsaMw1WNG2ETLA6N+/YA+cg==} dependencies: '@types/mime': 3.0.1 - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/sinon/10.0.13: @@ -2471,13 +2471,13 @@ packages: /@types/stoppable/1.1.1: resolution: {integrity: sha512-b8N+fCADRIYYrGZOcmOR8ZNBOqhktWTB/bMUl5LvGtT201QKJZOOH5UsFyI3qtteM6ZAJbJqZoBcLqqxKIwjhw==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/through/0.0.30: resolution: {integrity: sha512-FvnCJljyxhPM3gkRgWmxmDZyAQSiBQQWLI0A0VFL0K7W1oRUrPJSqNO0NvTnLkBcotdlp3lKvaT0JrnyRDkzOg==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/tough-cookie/4.0.2: @@ -2491,13 +2491,13 @@ packages: /@types/tunnel/0.0.1: resolution: {integrity: sha512-AOqu6bQu5MSWwYvehMXLukFHnupHrpZ8nvgae5Ggie9UwzDR1CCwoXgSSWNZJuyOlCdfdsWMA5F2LlmvyoTv8A==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/tunnel/0.0.3: resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/underscore/1.11.4: @@ -2515,19 +2515,19 @@ packages: /@types/ws/7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/ws/8.5.4: resolution: {integrity: sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/xml2js/0.4.11: resolution: {integrity: sha512-JdigeAKmCyoJUiQljjr7tQG3if9NkqGUgwEUqBvV0N7LM4HyQk7UXCnusRa1lnvXAEYJ8mw8GtZWioagNztOwA==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false /@types/yargs-parser/21.0.0: @@ -2544,7 +2544,7 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.0 dev: false optional: true @@ -3662,7 +3662,7 @@ packages: resolution: {integrity: sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==} deprecated: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) dependencies: - ms: 2.1.1 + ms: 2.1.3 dev: false /debug/3.2.7: @@ -3918,7 +3918,7 @@ packages: dependencies: semver: 7.3.8 shelljs: 0.8.5 - typescript: 4.8.4 + typescript: 4.9.5 dev: false /ecdsa-sig-formatter/1.0.11: @@ -3969,7 +3969,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.13 - '@types/node': 14.18.36 + '@types/node': 18.14.0 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -5018,7 +5018,7 @@ packages: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.0.4 + minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 dev: false @@ -11619,15 +11619,15 @@ packages: dev: false file:projects/arm-digitaltwins.tgz: - resolution: {integrity: sha512-svnRvsCdoUvQfyHKEk29MPJXUO3mQYmR9/iB1ZQFu0fSBzDOTAAgRk4Jhg0A8esToT8DpbsBJMK+5q7ti7HhuQ==, tarball: file:projects/arm-digitaltwins.tgz} + resolution: {integrity: sha512-rxjJZrgUVA1KMDT4YTZlyYV6pBbKpYNpsbemLUsdv4oXKamqY3kaK+zUjWH55TdORDD6nKsx82JIvezRfNgCAQ==, tarball: file:projects/arm-digitaltwins.tgz} name: '@rush-temp/arm-digitaltwins' version: 0.0.0 dependencies: '@azure/identity': 2.1.0 '@microsoft/api-extractor': 7.34.4_@types+node@14.18.36 - '@rollup/plugin-commonjs': 24.0.1_rollup@2.79.1 - '@rollup/plugin-json': 6.0.0_rollup@2.79.1 - '@rollup/plugin-multi-entry': 6.0.0_rollup@2.79.1 + '@rollup/plugin-commonjs': 21.1.0_rollup@2.79.1 + '@rollup/plugin-json': 4.1.0_rollup@2.79.1 + '@rollup/plugin-multi-entry': 4.1.0_rollup@2.79.1 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.79.1 '@types/chai': 4.3.4 '@types/node': 14.18.36 diff --git a/sdk/digitaltwins/arm-digitaltwins/CHANGELOG.md b/sdk/digitaltwins/arm-digitaltwins/CHANGELOG.md index 6a390be15c99..1e7625818c08 100644 --- a/sdk/digitaltwins/arm-digitaltwins/CHANGELOG.md +++ b/sdk/digitaltwins/arm-digitaltwins/CHANGELOG.md @@ -1,15 +1,19 @@ # Release History + +## 3.3.0 (2023-02-21) + +**Features** -## 3.2.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Type Alias CleanupConnectionArtifacts + - Added Type Alias RecordPropertyAndItemRemovals + - Interface AzureDataExplorerConnectionProperties has a new optional parameter adxRelationshipLifecycleEventsTableName + - Interface AzureDataExplorerConnectionProperties has a new optional parameter adxTwinLifecycleEventsTableName + - Interface AzureDataExplorerConnectionProperties has a new optional parameter recordPropertyAndItemRemovals + - Interface TimeSeriesDatabaseConnectionsDeleteOptionalParams has a new optional parameter cleanupConnectionArtifacts + - Added Enum KnownCleanupConnectionArtifacts + - Added Enum KnownRecordPropertyAndItemRemovals + + ## 3.2.0 (2022-11-30) **Features** diff --git a/sdk/digitaltwins/arm-digitaltwins/LICENSE b/sdk/digitaltwins/arm-digitaltwins/LICENSE index 5d1d36e0af80..3a1d9b6f24f7 100644 --- a/sdk/digitaltwins/arm-digitaltwins/LICENSE +++ b/sdk/digitaltwins/arm-digitaltwins/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2023 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/digitaltwins/arm-digitaltwins/_meta.json b/sdk/digitaltwins/arm-digitaltwins/_meta.json index e63315f28378..219fb9756714 100644 --- a/sdk/digitaltwins/arm-digitaltwins/_meta.json +++ b/sdk/digitaltwins/arm-digitaltwins/_meta.json @@ -1,8 +1,8 @@ { - "commit": "2f2e48923cebd95f7d184608a29bcd06d9cb3653", + "commit": "7593bbbbe8c469c603aac481048ef1f27941458c", "readme": "specification/digitaltwins/resource-manager/readme.md", - "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\digitaltwins\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/digitaltwins/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.5", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", + "use": "@autorest/typescript@6.0.0-rc.5" } \ No newline at end of file diff --git a/sdk/digitaltwins/arm-digitaltwins/package.json b/sdk/digitaltwins/arm-digitaltwins/package.json index 836577104150..11d961d648e3 100644 --- a/sdk/digitaltwins/arm-digitaltwins/package.json +++ b/sdk/digitaltwins/arm-digitaltwins/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AzureDigitalTwinsManagementClient.", - "version": "3.2.1", + "version": "3.3.0", "engines": { "node": ">=14.0.0" }, @@ -29,9 +29,9 @@ "types": "./types/arm-digitaltwins.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.31.1", - "@rollup/plugin-commonjs": "^24.0.0", - "@rollup/plugin-json": "^6.0.0", - "@rollup/plugin-multi-entry": "^6.0.0", + "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-json": "^4.1.0", + "@rollup/plugin-multi-entry": "^4.1.0", "@rollup/plugin-node-resolve": "^13.1.3", "mkdirp": "^1.0.4", "rollup": "^2.66.1", @@ -110,13 +110,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-digitaltwins?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/digitaltwins/arm-digitaltwins/review/arm-digitaltwins.api.md b/sdk/digitaltwins/arm-digitaltwins/review/arm-digitaltwins.api.md index d103586554ee..3f14babf36a7 100644 --- a/sdk/digitaltwins/arm-digitaltwins/review/arm-digitaltwins.api.md +++ b/sdk/digitaltwins/arm-digitaltwins/review/arm-digitaltwins.api.md @@ -17,13 +17,16 @@ export type AuthenticationType = string; export interface AzureDataExplorerConnectionProperties extends TimeSeriesDatabaseConnectionProperties { adxDatabaseName: string; adxEndpointUri: string; + adxRelationshipLifecycleEventsTableName?: string; adxResourceId: string; adxTableName?: string; + adxTwinLifecycleEventsTableName?: string; connectionType: "AzureDataExplorer"; eventHubConsumerGroup?: string; eventHubEndpointUri: string; eventHubEntityPath: string; eventHubNamespaceResourceId: string; + recordPropertyAndItemRemovals?: RecordPropertyAndItemRemovals; } // @public (undocumented) @@ -69,6 +72,9 @@ export interface CheckNameResult { reason?: Reason; } +// @public +export type CleanupConnectionArtifacts = string; + // @public export interface ConnectionProperties { groupIds?: string[]; @@ -385,6 +391,12 @@ export enum KnownAuthenticationType { KeyBased = "KeyBased" } +// @public +export enum KnownCleanupConnectionArtifacts { + False = "false", + True = "true" +} + // @public export enum KnownConnectionPropertiesProvisioningState { Approved = "Approved", @@ -478,6 +490,12 @@ export enum KnownReason { Invalid = "Invalid" } +// @public +export enum KnownRecordPropertyAndItemRemovals { + False = "false", + True = "true" +} + // @public export enum KnownTimeSeriesDatabaseConnectionState { Canceled = "Canceled", @@ -634,6 +652,9 @@ export type PublicNetworkAccess = string; // @public export type Reason = string; +// @public +export type RecordPropertyAndItemRemovals = string; + // @public export interface ServiceBus extends DigitalTwinsEndpointResourceProperties { endpointType: "ServiceBus"; @@ -695,6 +716,7 @@ export type TimeSeriesDatabaseConnectionsCreateOrUpdateResponse = TimeSeriesData // @public export interface TimeSeriesDatabaseConnectionsDeleteOptionalParams extends coreClient.OperationOptions { + cleanupConnectionArtifacts?: CleanupConnectionArtifacts; resumeFrom?: string; updateIntervalInMs?: number; } diff --git a/sdk/digitaltwins/arm-digitaltwins/src/azureDigitalTwinsManagementClient.ts b/sdk/digitaltwins/arm-digitaltwins/src/azureDigitalTwinsManagementClient.ts index 8171879ab050..e76c4843deca 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/azureDigitalTwinsManagementClient.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/azureDigitalTwinsManagementClient.ts @@ -64,7 +64,7 @@ export class AzureDigitalTwinsManagementClient extends coreClient.ServiceClient credential: credentials }; - const packageDetails = `azsdk-js-arm-digitaltwins/3.2.1`; + const packageDetails = `azsdk-js-arm-digitaltwins/3.3.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -117,7 +117,7 @@ export class AzureDigitalTwinsManagementClient extends coreClient.ServiceClient // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-10-31"; + this.apiVersion = options.apiVersion || "2023-01-31"; this.digitalTwins = new DigitalTwinsImpl(this); this.digitalTwinsEndpoint = new DigitalTwinsEndpointImpl(this); this.operations = new OperationsImpl(this); diff --git a/sdk/digitaltwins/arm-digitaltwins/src/models/index.ts b/sdk/digitaltwins/arm-digitaltwins/src/models/index.ts index 7767a44fd3a4..f2f7ff0668ad 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/models/index.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/models/index.ts @@ -507,8 +507,12 @@ export interface AzureDataExplorerConnectionProperties adxEndpointUri: string; /** The name of the Azure Data Explorer database. */ adxDatabaseName: string; - /** The name of the Azure Data Explorer table. Defaults to AdtPropertyEvents. */ + /** The name of the Azure Data Explorer table used for storing updates to properties of twins and relationships. Defaults to AdtPropertyEvents. */ adxTableName?: string; + /** The name of the Azure Data Explorer table used for recording twin lifecycle events. The table will not be created if this property is left unspecified. */ + adxTwinLifecycleEventsTableName?: string; + /** The name of the Azure Data Explorer table used for recording relationship lifecycle events. The table will not be created if this property is left unspecified. */ + adxRelationshipLifecycleEventsTableName?: string; /** The URL of the EventHub namespace for identity-based authentication. It must include the protocol sb:// */ eventHubEndpointUri: string; /** The EventHub name in the EventHub namespace for identity-based authentication. */ @@ -517,6 +521,8 @@ export interface AzureDataExplorerConnectionProperties eventHubNamespaceResourceId: string; /** The EventHub consumer group to use when ADX reads from EventHub. Defaults to $Default. */ eventHubConsumerGroup?: string; + /** Specifies whether or not to record twin / relationship property and item removals, including removals of indexed or keyed values (such as map entries, array elements, etc.). This feature is de-activated unless explicitly set to 'true'. Setting this property to 'true' will generate an additional column in the property events table in ADX. */ + recordPropertyAndItemRemovals?: RecordPropertyAndItemRemovals; } /** Known values of {@link ProvisioningState} that the service accepts. */ @@ -864,6 +870,42 @@ export enum KnownTimeSeriesDatabaseConnectionState { */ export type TimeSeriesDatabaseConnectionState = string; +/** Known values of {@link CleanupConnectionArtifacts} that the service accepts. */ +export enum KnownCleanupConnectionArtifacts { + /** True */ + True = "true", + /** False */ + False = "false" +} + +/** + * Defines values for CleanupConnectionArtifacts. \ + * {@link KnownCleanupConnectionArtifacts} can be used interchangeably with CleanupConnectionArtifacts, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **true** \ + * **false** + */ +export type CleanupConnectionArtifacts = string; + +/** Known values of {@link RecordPropertyAndItemRemovals} that the service accepts. */ +export enum KnownRecordPropertyAndItemRemovals { + /** True */ + True = "true", + /** False */ + False = "false" +} + +/** + * Defines values for RecordPropertyAndItemRemovals. \ + * {@link KnownRecordPropertyAndItemRemovals} can be used interchangeably with RecordPropertyAndItemRemovals, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **true** \ + * **false** + */ +export type RecordPropertyAndItemRemovals = string; + /** Optional parameters. */ export interface DigitalTwinsGetOptionalParams extends coreClient.OperationOptions {} @@ -1079,6 +1121,8 @@ export type TimeSeriesDatabaseConnectionsCreateOrUpdateResponse = TimeSeriesData /** Optional parameters. */ export interface TimeSeriesDatabaseConnectionsDeleteOptionalParams extends coreClient.OperationOptions { + /** Specifies whether or not to attempt to clean up artifacts that were created in order to establish a connection to the time series database. This is a best-effort attempt that will fail if appropriate permissions are not in place. Setting this to 'true' does not delete any recorded data. */ + cleanupConnectionArtifacts?: CleanupConnectionArtifacts; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ diff --git a/sdk/digitaltwins/arm-digitaltwins/src/models/mappers.ts b/sdk/digitaltwins/arm-digitaltwins/src/models/mappers.ts index a37f096ae62f..6a00f9ef1412 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/models/mappers.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/models/mappers.ts @@ -1212,6 +1212,20 @@ export const AzureDataExplorerConnectionProperties: coreClient.CompositeMapper = name: "String" } }, + adxTwinLifecycleEventsTableName: { + serializedName: "adxTwinLifecycleEventsTableName", + nullable: true, + type: { + name: "String" + } + }, + adxRelationshipLifecycleEventsTableName: { + serializedName: "adxRelationshipLifecycleEventsTableName", + nullable: true, + type: { + name: "String" + } + }, eventHubEndpointUri: { serializedName: "eventHubEndpointUri", required: true, @@ -1240,6 +1254,14 @@ export const AzureDataExplorerConnectionProperties: coreClient.CompositeMapper = type: { name: "String" } + }, + recordPropertyAndItemRemovals: { + defaultValue: "false", + serializedName: "recordPropertyAndItemRemovals", + nullable: true, + type: { + name: "String" + } } } } diff --git a/sdk/digitaltwins/arm-digitaltwins/src/models/parameters.ts b/sdk/digitaltwins/arm-digitaltwins/src/models/parameters.ts index fa7ceb425b0f..9ee3c8ef75dd 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/models/parameters.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/models/parameters.ts @@ -47,7 +47,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-10-31", + defaultValue: "2023-01-31", isConstant: true, serializedName: "api-version", type: { @@ -219,3 +219,13 @@ export const timeSeriesDatabaseConnectionDescription: OperationParameter = { parameterPath: "timeSeriesDatabaseConnectionDescription", mapper: TimeSeriesDatabaseConnectionMapper }; + +export const cleanupConnectionArtifacts: OperationQueryParameter = { + parameterPath: ["options", "cleanupConnectionArtifacts"], + mapper: { + serializedName: "cleanupConnectionArtifacts", + type: { + name: "String" + } + } +}; diff --git a/sdk/digitaltwins/arm-digitaltwins/src/operations/digitalTwins.ts b/sdk/digitaltwins/arm-digitaltwins/src/operations/digitalTwins.ts index c99a35ac9bd4..ba72134ba48b 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operations/digitalTwins.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/operations/digitalTwins.ts @@ -741,7 +741,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -761,7 +760,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/digitaltwins/arm-digitaltwins/src/operations/digitalTwinsEndpoint.ts b/sdk/digitaltwins/arm-digitaltwins/src/operations/digitalTwinsEndpoint.ts index 177f8e572cbb..617a4fc48a4e 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operations/digitalTwinsEndpoint.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/operations/digitalTwinsEndpoint.ts @@ -493,7 +493,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/digitaltwins/arm-digitaltwins/src/operations/operations.ts b/sdk/digitaltwins/arm-digitaltwins/src/operations/operations.ts index 50212b59c16d..1f4e73342df5 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operations/operations.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/operations/operations.ts @@ -143,7 +143,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], serializer diff --git a/sdk/digitaltwins/arm-digitaltwins/src/operations/timeSeriesDatabaseConnections.ts b/sdk/digitaltwins/arm-digitaltwins/src/operations/timeSeriesDatabaseConnections.ts index bcd52f99a451..8cf967b21bcf 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operations/timeSeriesDatabaseConnections.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/operations/timeSeriesDatabaseConnections.ts @@ -482,7 +482,10 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.cleanupConnectionArtifacts + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -504,7 +507,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/digitaltwins/arm-digitaltwins/src/pagingHelper.ts b/sdk/digitaltwins/arm-digitaltwins/src/pagingHelper.ts index d85fc13bce1e..269a2b9814b5 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/pagingHelper.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { diff --git a/sdk/digitaltwins/arm-digitaltwins/test/sampleTest.ts b/sdk/digitaltwins/arm-digitaltwins/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/digitaltwins/arm-digitaltwins/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/digitaltwins/arm-digitaltwins/tsconfig.json b/sdk/digitaltwins/arm-digitaltwins/tsconfig.json index 15e8d9a4ecc7..3e6ae96443f3 100644 --- a/sdk/digitaltwins/arm-digitaltwins/tsconfig.json +++ b/sdk/digitaltwins/arm-digitaltwins/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-digitaltwins": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"