From cf199e428ae4de37206d291f6100a1d6ae67c59c Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 8 Jun 2022 00:39:29 +0000 Subject: [PATCH] CodeGen from PR 18728 in Azure/azure-rest-api-specs Merge 7607db5c751edfa8137bf8838fce8fec1e78fbc9 into ad5110c7ba2113d5f77946338231f45ac4d09c82 --- .../CHANGELOG.md | 4 +- .../README.md | 4 +- .../SAMPLE.md | 66 +++++++-------- .../pom.xml | 2 +- .../AzureDigitalTwinsManager.java | 82 ++++++++++++++++--- .../fluent/models/CheckNameResultInner.java | 4 - .../models/DigitalTwinsDescriptionInner.java | 4 - .../DigitalTwinsEndpointResourceInner.java | 7 +- .../fluent/models/DigitalTwinsProperties.java | 4 - .../models/GroupIdInformationInner.java | 7 +- .../GroupIdInformationResponseInner.java | 4 - .../fluent/models/OperationInner.java | 4 - .../PrivateEndpointConnectionInner.java | 7 +- ...ivateEndpointConnectionsResponseInner.java | 4 - .../TimeSeriesDatabaseConnectionInner.java | 4 - ...reDigitalTwinsManagementClientBuilder.java | 34 ++++---- ...AzureDigitalTwinsManagementClientImpl.java | 15 ++-- .../DigitalTwinsClientImpl.java | 21 +---- .../DigitalTwinsDescriptionImpl.java | 4 + .../DigitalTwinsEndpointResourceImpl.java | 4 + .../DigitalTwinsEndpointsClientImpl.java | 12 +-- .../DigitalTwinsEndpointsImpl.java | 27 +++--- .../implementation/DigitalTwinsImpl.java | 19 ++--- .../implementation/OperationsClientImpl.java | 3 - .../implementation/OperationsImpl.java | 3 +- .../PrivateEndpointConnectionImpl.java | 4 + .../PrivateEndpointConnectionsClientImpl.java | 22 +---- .../PrivateEndpointConnectionsImpl.java | 27 +++--- .../PrivateLinkResourcesClientImpl.java | 22 +---- .../PrivateLinkResourcesImpl.java | 3 +- .../TimeSeriesDatabaseConnectionImpl.java | 4 + ...meSeriesDatabaseConnectionsClientImpl.java | 12 +-- .../TimeSeriesDatabaseConnectionsImpl.java | 27 +++--- .../models/AuthenticationType.java | 6 +- ...AzureDataExplorerConnectionProperties.java | 17 ++-- .../digitaltwins/models/CheckNameRequest.java | 7 +- .../models/ConnectionProperties.java | 4 - ...tiesPrivateLinkServiceConnectionState.java | 5 -- ...ConnectionPropertiesProvisioningState.java | 6 +- .../digitaltwins/models/ConnectionState.java | 9 +- .../digitaltwins/models/ConnectionType.java | 6 +- .../models/DigitalTwinsDescription.java | 7 ++ .../DigitalTwinsDescriptionListResult.java | 4 - .../models/DigitalTwinsEndpointResource.java | 7 ++ ...igitalTwinsEndpointResourceListResult.java | 4 - ...igitalTwinsEndpointResourceProperties.java | 4 - .../models/DigitalTwinsIdentity.java | 4 - .../models/DigitalTwinsIdentityType.java | 6 +- .../models/DigitalTwinsPatchDescription.java | 4 - .../models/DigitalTwinsPatchProperties.java | 4 - .../models/DigitalTwinsResource.java | 4 - .../models/EndpointProvisioningState.java | 9 +- .../digitaltwins/models/EndpointType.java | 6 +- .../digitaltwins/models/EventGrid.java | 9 +- .../digitaltwins/models/EventHub.java | 4 - .../digitaltwins/models/ExternalResource.java | 4 - .../models/GroupIdInformationProperties.java | 4 - .../digitaltwins/models/OperationDisplay.java | 4 - .../models/OperationListResult.java | 4 - .../digitaltwins/models/PrivateEndpoint.java | 4 - .../models/PrivateEndpointConnection.java | 7 ++ .../PrivateLinkServiceConnectionStatus.java | 6 +- .../models/ProvisioningState.java | 6 +- .../models/PublicNetworkAccess.java | 6 +- .../digitaltwins/models/Reason.java | 6 +- .../digitaltwins/models/ServiceBus.java | 4 - .../models/TimeSeriesDatabaseConnection.java | 7 ++ ...imeSeriesDatabaseConnectionListResult.java | 4 - ...imeSeriesDatabaseConnectionProperties.java | 4 - .../TimeSeriesDatabaseConnectionState.java | 9 +- ...italTwinsCheckNameAvailabilitySamples.java | 2 +- .../DigitalTwinsCreateOrUpdateSamples.java | 6 +- .../generated/DigitalTwinsDeleteSamples.java | 4 +- ...talTwinsEndpointCreateOrUpdateSamples.java | 4 +- .../DigitalTwinsEndpointDeleteSamples.java | 4 +- .../DigitalTwinsEndpointGetSamples.java | 4 +- .../DigitalTwinsEndpointListSamples.java | 4 +- ...DigitalTwinsGetByResourceGroupSamples.java | 6 +- ...igitalTwinsListByResourceGroupSamples.java | 2 +- .../generated/DigitalTwinsListSamples.java | 2 +- .../generated/DigitalTwinsUpdateSamples.java | 6 +- .../generated/OperationsListSamples.java | 2 +- ...pointConnectionsCreateOrUpdateSamples.java | 2 +- ...ivateEndpointConnectionsDeleteSamples.java | 2 +- .../PrivateEndpointConnectionsGetSamples.java | 2 +- ...PrivateEndpointConnectionsListSamples.java | 2 +- .../PrivateLinkResourcesGetSamples.java | 2 +- .../PrivateLinkResourcesListSamples.java | 2 +- ...abaseConnectionsCreateOrUpdateSamples.java | 2 +- ...eriesDatabaseConnectionsDeleteSamples.java | 2 +- ...meSeriesDatabaseConnectionsGetSamples.java | 2 +- ...eSeriesDatabaseConnectionsListSamples.java | 2 +- 92 files changed, 355 insertions(+), 396 deletions(-) diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/CHANGELOG.md b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/CHANGELOG.md index 5cb751e128d82..d6ad907b821ca 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/CHANGELOG.md +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.1 (2022-06-08) + +- Azure Resource Manager AzureDigitalTwins client library for Java. This package contains Microsoft Azure SDK for AzureDigitalTwins Management SDK. Azure Digital Twins Client for managing DigitalTwinsInstance. Package tag package-2022-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/README.md b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/README.md index 146d6e087701c..078324f5f96a1 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/README.md +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/README.md @@ -2,7 +2,7 @@ Azure Resource Manager AzureDigitalTwins client library for Java. -This package contains Microsoft Azure SDK for AzureDigitalTwins Management SDK. Azure Digital Twins Client for managing DigitalTwinsInstance. Package tag package-2021-06-30-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for AzureDigitalTwins Management SDK. Azure Digital Twins Client for managing DigitalTwinsInstance. Package tag package-2022-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-digitaltwins - 1.0.0-beta.2 + 1.0.0-beta.3 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/SAMPLE.md b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/SAMPLE.md index c57ffe1b3c1ef..c16724c2ce21c 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/SAMPLE.md +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/SAMPLE.md @@ -49,7 +49,7 @@ import com.azure.resourcemanager.digitaltwins.models.CheckNameRequest; /** Samples for DigitalTwins CheckNameAvailability. */ public final class DigitalTwinsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsCheckNameAvailability_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsCheckNameAvailability_example.json */ /** * Sample code: Check name Availability. @@ -75,7 +75,7 @@ import com.azure.resourcemanager.digitaltwins.models.PublicNetworkAccess; /** Samples for DigitalTwins CreateOrUpdate. */ public final class DigitalTwinsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsPut_example.json */ /** * Sample code: Put a DigitalTwinsInstance resource. @@ -93,7 +93,7 @@ public final class DigitalTwinsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_WithPublicNetworkAccess.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsPut_WithPublicNetworkAccess.json */ /** * Sample code: Put a DigitalTwinsInstance resource with publicNetworkAccess property. @@ -112,7 +112,7 @@ public final class DigitalTwinsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_WithIdentity_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsPut_WithIdentity_example.json */ /** * Sample code: Put a DigitalTwinsInstance resource with identity. @@ -140,7 +140,7 @@ import com.azure.core.util.Context; /** Samples for DigitalTwins Delete. */ public final class DigitalTwinsDeleteSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsDelete_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsDelete_example.json */ /** * Sample code: Delete a DigitalTwinsInstance resource. @@ -153,7 +153,7 @@ public final class DigitalTwinsDeleteSamples { } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsDelete_WithIdentity_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsDelete_WithIdentity_example.json */ /** * Sample code: Delete a DigitalTwinsInstance resource with identity. @@ -175,7 +175,7 @@ import com.azure.core.util.Context; /** Samples for DigitalTwins GetByResourceGroup. */ public final class DigitalTwinsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_WithIdentity_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsGet_WithIdentity_example.json */ /** * Sample code: Get a DigitalTwinsInstance resource with identity. @@ -188,7 +188,7 @@ public final class DigitalTwinsGetByResourceGroupSamples { } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_WithPrivateEndpointConnection_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsGet_WithPrivateEndpointConnection_example.json */ /** * Sample code: Get a DigitalTwinsInstance resource with a private endpoint connection. @@ -201,7 +201,7 @@ public final class DigitalTwinsGetByResourceGroupSamples { } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsGet_example.json */ /** * Sample code: Get a DigitalTwinsInstance resource. @@ -223,7 +223,7 @@ import com.azure.core.util.Context; /** Samples for DigitalTwins List. */ public final class DigitalTwinsListSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsList_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsList_example.json */ /** * Sample code: Get DigitalTwinsInstance resources by subscription. @@ -245,7 +245,7 @@ import com.azure.core.util.Context; /** Samples for DigitalTwins ListByResourceGroup. */ public final class DigitalTwinsListByResourceGroupSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsListByResourceGroup_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsListByResourceGroup_example.json */ /** * Sample code: Get DigitalTwinsInstance resources by resource group. @@ -274,7 +274,7 @@ import java.util.Map; /** Samples for DigitalTwins Update. */ public final class DigitalTwinsUpdateSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsPatch_example.json */ /** * Sample code: Patch a DigitalTwinsInstance resource. @@ -292,7 +292,7 @@ public final class DigitalTwinsUpdateSamples { } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_WithPublicNetworkAccess.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsPatch_WithPublicNetworkAccess.json */ /** * Sample code: Patch a DigitalTwinsInstance resource with publicNetworkAccess property. @@ -313,7 +313,7 @@ public final class DigitalTwinsUpdateSamples { } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_WithIdentity_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsPatch_WithIdentity_example.json */ /** * Sample code: Patch a DigitalTwinsInstance resource with identity. @@ -352,7 +352,7 @@ import com.azure.resourcemanager.digitaltwins.models.ServiceBus; /** Samples for DigitalTwinsEndpoint CreateOrUpdate. */ public final class DigitalTwinsEndpointCreateOrUpdateSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointPut_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointPut_example.json */ /** * Sample code: Put a DigitalTwinsEndpoint resource. @@ -376,7 +376,7 @@ public final class DigitalTwinsEndpointCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointPut_WithIdentity_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointPut_WithIdentity_example.json */ /** * Sample code: Put a DigitalTwinsEndpoint resource with identity. @@ -407,7 +407,7 @@ import com.azure.core.util.Context; /** Samples for DigitalTwinsEndpoint Delete. */ public final class DigitalTwinsEndpointDeleteSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointDelete_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointDelete_example.json */ /** * Sample code: Delete a DigitalTwinsInstance endpoint. @@ -420,7 +420,7 @@ public final class DigitalTwinsEndpointDeleteSamples { } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointDelete_WithIdentity_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointDelete_WithIdentity_example.json */ /** * Sample code: Delete a DigitalTwinsInstance endpoint with identity. @@ -442,7 +442,7 @@ import com.azure.core.util.Context; /** Samples for DigitalTwinsEndpoint Get. */ public final class DigitalTwinsEndpointGetSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointGet_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointGet_example.json */ /** * Sample code: Get a DigitalTwinsInstance endpoint. @@ -455,7 +455,7 @@ public final class DigitalTwinsEndpointGetSamples { } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointGet_WithIdentity_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointGet_WithIdentity_example.json */ /** * Sample code: Get a DigitalTwinsInstance endpoint with identity. @@ -477,7 +477,7 @@ import com.azure.core.util.Context; /** Samples for DigitalTwinsEndpoint List. */ public final class DigitalTwinsEndpointListSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointsGet_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointsGet_example.json */ /** * Sample code: Get a DigitalTwinsInstance endpoints. @@ -490,7 +490,7 @@ public final class DigitalTwinsEndpointListSamples { } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointsGet_WithIdentity_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointsGet_WithIdentity_example.json */ /** * Sample code: Get a DigitalTwinsInstance endpoints with identity. @@ -512,7 +512,7 @@ import com.azure.core.util.Context; /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsOperationsList_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsOperationsList_example.json */ /** * Sample code: Get available operations. @@ -537,7 +537,7 @@ import com.azure.resourcemanager.digitaltwins.models.PrivateLinkServiceConnectio /** Samples for PrivateEndpointConnections CreateOrUpdate. */ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/PrivateEndpointConnectionPut_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateEndpointConnectionPut_example.json */ /** * Sample code: Update the status of a private endpoint connection with the given name. @@ -572,7 +572,7 @@ import com.azure.core.util.Context; /** Samples for PrivateEndpointConnections Delete. */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/PrivateEndpointConnectionDelete_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateEndpointConnectionDelete_example.json */ /** * Sample code: Delete private endpoint connection with the specified name. @@ -596,7 +596,7 @@ import com.azure.core.util.Context; /** Samples for PrivateEndpointConnections Get. */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/PrivateEndpointConnectionByConnectionName_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateEndpointConnectionByConnectionName_example.json */ /** * Sample code: Get private endpoint connection properties for the given private endpoint. @@ -620,7 +620,7 @@ import com.azure.core.util.Context; /** Samples for PrivateEndpointConnections List. */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/PrivateEndpointConnectionsList_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateEndpointConnectionsList_example.json */ /** * Sample code: List private endpoint connection properties. @@ -642,7 +642,7 @@ import com.azure.core.util.Context; /** Samples for PrivateLinkResources Get. */ public final class PrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/PrivateLinkResourcesByGroupId_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateLinkResourcesByGroupId_example.json */ /** * Sample code: Get the specified private link resource for the given Digital Twin. @@ -664,7 +664,7 @@ import com.azure.core.util.Context; /** Samples for PrivateLinkResources List. */ public final class PrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/PrivateLinkResourcesList_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateLinkResourcesList_example.json */ /** * Sample code: List private link resources for given Digital Twin. @@ -686,7 +686,7 @@ import com.azure.resourcemanager.digitaltwins.models.AzureDataExplorerConnection /** Samples for TimeSeriesDatabaseConnections CreateOrUpdate. */ public final class TimeSeriesDatabaseConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsPut_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/TimeSeriesDatabaseConnectionsPut_example.json */ /** * Sample code: Create or replace a time series database connection for a DigitalTwins instance. @@ -723,7 +723,7 @@ import com.azure.core.util.Context; /** Samples for TimeSeriesDatabaseConnections Delete. */ public final class TimeSeriesDatabaseConnectionsDeleteSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsDelete_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/TimeSeriesDatabaseConnectionsDelete_example.json */ /** * Sample code: Delete a time series database connection for a DigitalTwins instance. @@ -745,7 +745,7 @@ import com.azure.core.util.Context; /** Samples for TimeSeriesDatabaseConnections Get. */ public final class TimeSeriesDatabaseConnectionsGetSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsGet_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/TimeSeriesDatabaseConnectionsGet_example.json */ /** * Sample code: Get time series database connection for a DigitalTwins instance. @@ -769,7 +769,7 @@ import com.azure.core.util.Context; /** Samples for TimeSeriesDatabaseConnections List. */ public final class TimeSeriesDatabaseConnectionsListSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsList_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/TimeSeriesDatabaseConnectionsList_example.json */ /** * Sample code: List time series database connections for a DigitalTwins instance. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/pom.xml b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/pom.xml index aace1a5bf4a5c..78c25647872c9 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/pom.xml +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/pom.xml @@ -13,7 +13,7 @@ jar Microsoft Azure SDK for AzureDigitalTwins Management - This package contains Microsoft Azure SDK for AzureDigitalTwins Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Digital Twins Client for managing DigitalTwinsInstance. Package tag package-2021-06-30-preview. + This package contains Microsoft Azure SDK for AzureDigitalTwins Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Digital Twins Client for managing DigitalTwinsInstance. Package tag package-2022-05. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/AzureDigitalTwinsManager.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/AzureDigitalTwinsManager.java index 9f339f17f37b0..0a08b043c0905 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/AzureDigitalTwinsManager.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/AzureDigitalTwinsManager.java @@ -10,11 +10,13 @@ import com.azure.core.http.HttpPipelineBuilder; import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; +import com.azure.core.http.policy.AddHeadersFromContextPolicy; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpPipelinePolicy; import com.azure.core.http.policy.HttpPolicyProviders; import com.azure.core.http.policy.RequestIdPolicy; +import com.azure.core.http.policy.RetryOptions; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy; @@ -83,6 +85,19 @@ public static AzureDigitalTwinsManager authenticate(TokenCredential credential, return configure().authenticate(credential, profile); } + /** + * Creates an instance of AzureDigitalTwins service API entry point. + * + * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential. + * @param profile the Azure profile for client. + * @return the AzureDigitalTwins service API instance. + */ + public static AzureDigitalTwinsManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) { + Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); + Objects.requireNonNull(profile, "'profile' cannot be null."); + return new AzureDigitalTwinsManager(httpPipeline, profile, null); + } + /** * Gets a Configurable instance that can be used to create AzureDigitalTwinsManager with optional configuration. * @@ -94,13 +109,14 @@ public static Configurable configure() { /** The Configurable allowing configurations to be set. */ public static final class Configurable { - private final ClientLogger logger = new ClientLogger(Configurable.class); + private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); private HttpClient httpClient; private HttpLogOptions httpLogOptions; private final List policies = new ArrayList<>(); private final List scopes = new ArrayList<>(); private RetryPolicy retryPolicy; + private RetryOptions retryOptions; private Duration defaultPollInterval; private Configurable() { @@ -161,6 +177,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) { return this; } + /** + * Sets the retry options for the HTTP pipeline retry policy. + * + *

This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. + * + * @param retryOptions the retry options for the HTTP pipeline retry policy. + * @return the configurable object itself. + */ + public Configurable withRetryOptions(RetryOptions retryOptions) { + this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null."); + return this; + } + /** * Sets the default poll interval, used when service does not provide "Retry-After" header. * @@ -168,9 +197,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) { * @return the configurable object itself. */ public Configurable withDefaultPollInterval(Duration defaultPollInterval) { - this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null."); + this.defaultPollInterval = + Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null."); if (this.defaultPollInterval.isNegative()) { - throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative")); + throw LOGGER + .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative")); } return this; } @@ -192,7 +223,7 @@ public AzureDigitalTwinsManager authenticate(TokenCredential credential, AzurePr .append("-") .append("com.azure.resourcemanager.digitaltwins") .append("/") - .append("1.0.0-beta.2"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -210,10 +241,15 @@ public AzureDigitalTwinsManager authenticate(TokenCredential credential, AzurePr scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default"); } if (retryPolicy == null) { - retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS); + if (retryOptions != null) { + retryPolicy = new RetryPolicy(retryOptions); + } else { + retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS); + } } List policies = new ArrayList<>(); policies.add(new UserAgentPolicy(userAgentBuilder.toString())); + policies.add(new AddHeadersFromContextPolicy()); policies.add(new RequestIdPolicy()); policies .addAll( @@ -244,7 +280,11 @@ public AzureDigitalTwinsManager authenticate(TokenCredential credential, AzurePr } } - /** @return Resource collection API of DigitalTwins. */ + /** + * Gets the resource collection API of DigitalTwins. It manages DigitalTwinsDescription. + * + * @return Resource collection API of DigitalTwins. + */ public DigitalTwins digitalTwins() { if (this.digitalTwins == null) { this.digitalTwins = new DigitalTwinsImpl(clientObject.getDigitalTwins(), this); @@ -252,7 +292,11 @@ public DigitalTwins digitalTwins() { return digitalTwins; } - /** @return Resource collection API of DigitalTwinsEndpoints. */ + /** + * Gets the resource collection API of DigitalTwinsEndpoints. It manages DigitalTwinsEndpointResource. + * + * @return Resource collection API of DigitalTwinsEndpoints. + */ public DigitalTwinsEndpoints digitalTwinsEndpoints() { if (this.digitalTwinsEndpoints == null) { this.digitalTwinsEndpoints = new DigitalTwinsEndpointsImpl(clientObject.getDigitalTwinsEndpoints(), this); @@ -260,7 +304,11 @@ public DigitalTwinsEndpoints digitalTwinsEndpoints() { return digitalTwinsEndpoints; } - /** @return Resource collection API of Operations. */ + /** + * Gets the resource collection API of Operations. + * + * @return Resource collection API of Operations. + */ public Operations operations() { if (this.operations == null) { this.operations = new OperationsImpl(clientObject.getOperations(), this); @@ -268,7 +316,11 @@ public Operations operations() { return operations; } - /** @return Resource collection API of PrivateLinkResources. */ + /** + * Gets the resource collection API of PrivateLinkResources. + * + * @return Resource collection API of PrivateLinkResources. + */ public PrivateLinkResources privateLinkResources() { if (this.privateLinkResources == null) { this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this); @@ -276,7 +328,11 @@ public PrivateLinkResources privateLinkResources() { return privateLinkResources; } - /** @return Resource collection API of PrivateEndpointConnections. */ + /** + * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection. + * + * @return Resource collection API of PrivateEndpointConnections. + */ public PrivateEndpointConnections privateEndpointConnections() { if (this.privateEndpointConnections == null) { this.privateEndpointConnections = @@ -285,7 +341,11 @@ public PrivateEndpointConnections privateEndpointConnections() { return privateEndpointConnections; } - /** @return Resource collection API of TimeSeriesDatabaseConnections. */ + /** + * Gets the resource collection API of TimeSeriesDatabaseConnections. It manages TimeSeriesDatabaseConnection. + * + * @return Resource collection API of TimeSeriesDatabaseConnections. + */ public TimeSeriesDatabaseConnections timeSeriesDatabaseConnections() { if (this.timeSeriesDatabaseConnections == null) { this.timeSeriesDatabaseConnections = diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/CheckNameResultInner.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/CheckNameResultInner.java index d12dc81074d7a..ade49c22bb103 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/CheckNameResultInner.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/CheckNameResultInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.digitaltwins.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.digitaltwins.models.Reason; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The result returned from a check name availability request. */ @Fluent public final class CheckNameResultInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CheckNameResultInner.class); - /* * Specifies a Boolean value that indicates if the name is available. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/DigitalTwinsDescriptionInner.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/DigitalTwinsDescriptionInner.java index a26542f3ab6b0..8489debe96bdf 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/DigitalTwinsDescriptionInner.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/DigitalTwinsDescriptionInner.java @@ -5,12 +5,10 @@ package com.azure.resourcemanager.digitaltwins.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsIdentity; import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsResource; import com.azure.resourcemanager.digitaltwins.models.ProvisioningState; import com.azure.resourcemanager.digitaltwins.models.PublicNetworkAccess; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; @@ -19,8 +17,6 @@ /** The description of the DigitalTwins service. */ @Fluent public final class DigitalTwinsDescriptionInner extends DigitalTwinsResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DigitalTwinsDescriptionInner.class); - /* * DigitalTwins instance properties. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/DigitalTwinsEndpointResourceInner.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/DigitalTwinsEndpointResourceInner.java index dd15cc7146621..39acd6312325c 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/DigitalTwinsEndpointResourceInner.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/DigitalTwinsEndpointResourceInner.java @@ -8,14 +8,11 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsEndpointResourceProperties; import com.azure.resourcemanager.digitaltwins.models.ExternalResource; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** DigitalTwinsInstance endpoint resource. */ @Fluent public final class DigitalTwinsEndpointResourceInner extends ExternalResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DigitalTwinsEndpointResourceInner.class); - /* * DigitalTwinsInstance endpoint resource properties. */ @@ -51,7 +48,7 @@ public DigitalTwinsEndpointResourceInner withProperties(DigitalTwinsEndpointReso public void validate() { super.validate(); if (properties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property properties in model DigitalTwinsEndpointResourceInner")); @@ -59,4 +56,6 @@ public void validate() { properties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(DigitalTwinsEndpointResourceInner.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/DigitalTwinsProperties.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/DigitalTwinsProperties.java index 63c8ad1e27edc..fba37ee33acdc 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/DigitalTwinsProperties.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/DigitalTwinsProperties.java @@ -5,10 +5,8 @@ package com.azure.resourcemanager.digitaltwins.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.digitaltwins.models.ProvisioningState; import com.azure.resourcemanager.digitaltwins.models.PublicNetworkAccess; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; @@ -16,8 +14,6 @@ /** The properties of a DigitalTwinsInstance. */ @Fluent public final class DigitalTwinsProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DigitalTwinsProperties.class); - /* * Time when DigitalTwinsInstance was created. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/GroupIdInformationInner.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/GroupIdInformationInner.java index 84affdcc22031..394c5d84970ae 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/GroupIdInformationInner.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/GroupIdInformationInner.java @@ -7,14 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.digitaltwins.models.GroupIdInformationProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The group information for creating a private endpoint on Digital Twin. */ @Fluent public final class GroupIdInformationInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GroupIdInformationInner.class); - /* * The group information properties. */ @@ -104,7 +101,7 @@ public String type() { */ public void validate() { if (properties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property properties in model GroupIdInformationInner")); @@ -112,4 +109,6 @@ public void validate() { properties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(GroupIdInformationInner.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/GroupIdInformationResponseInner.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/GroupIdInformationResponseInner.java index edebf883bac20..fc9177f044fc8 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/GroupIdInformationResponseInner.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/GroupIdInformationResponseInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.digitaltwins.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The available private link resources for a Digital Twin. */ @Fluent public final class GroupIdInformationResponseInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GroupIdInformationResponseInner.class); - /* * The list of available private link resources for a Digital Twin. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/OperationInner.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/OperationInner.java index ac94705bc2c0b..c0fdcd50cd590 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/OperationInner.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/OperationInner.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.digitaltwins.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.digitaltwins.models.OperationDisplay; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -15,8 +13,6 @@ /** DigitalTwins service REST API operation. */ @Fluent public final class OperationInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class); - /* * Operation name: {provider}/{resource}/{read | write | action | delete} */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/PrivateEndpointConnectionInner.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/PrivateEndpointConnectionInner.java index e5fe11340a51e..6178d7b2232f2 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/PrivateEndpointConnectionInner.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/PrivateEndpointConnectionInner.java @@ -9,14 +9,11 @@ import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.digitaltwins.models.ConnectionProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The private endpoint connection of a Digital Twin. */ @Fluent public final class PrivateEndpointConnectionInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class); - /* * The connection properties. */ @@ -67,7 +64,7 @@ public SystemData systemData() { */ public void validate() { if (properties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property properties in model PrivateEndpointConnectionInner")); @@ -75,4 +72,6 @@ public void validate() { properties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionInner.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/PrivateEndpointConnectionsResponseInner.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/PrivateEndpointConnectionsResponseInner.java index a6c13db41c64f..ee3980f31d806 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/PrivateEndpointConnectionsResponseInner.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/PrivateEndpointConnectionsResponseInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.digitaltwins.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The available private link connections for a Digital Twin. */ @Fluent public final class PrivateEndpointConnectionsResponseInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionsResponseInner.class); - /* * The list of available private link connections for a Digital Twin. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/TimeSeriesDatabaseConnectionInner.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/TimeSeriesDatabaseConnectionInner.java index 6d326a53799d9..ba7a2d856cbc3 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/TimeSeriesDatabaseConnectionInner.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/TimeSeriesDatabaseConnectionInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.digitaltwins.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.digitaltwins.models.ExternalResource; import com.azure.resourcemanager.digitaltwins.models.TimeSeriesDatabaseConnectionProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Describes a time series database connection resource. */ @Fluent public final class TimeSeriesDatabaseConnectionInner extends ExternalResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TimeSeriesDatabaseConnectionInner.class); - /* * Properties of a specific time series database connection. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/AzureDigitalTwinsManagementClientBuilder.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/AzureDigitalTwinsManagementClientBuilder.java index b2b252faf55e0..c3ee2fe30fdf5 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/AzureDigitalTwinsManagementClientBuilder.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/AzureDigitalTwinsManagementClientBuilder.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.ServiceClientBuilder; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; -import com.azure.core.http.policy.CookiePolicy; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.AzureEnvironment; @@ -67,34 +66,34 @@ public AzureDigitalTwinsManagementClientBuilder environment(AzureEnvironment env } /* - * The default poll interval for long-running operation + * The HTTP pipeline to send requests through */ - private Duration defaultPollInterval; + private HttpPipeline pipeline; /** - * Sets The default poll interval for long-running operation. + * Sets The HTTP pipeline to send requests through. * - * @param defaultPollInterval the defaultPollInterval value. + * @param pipeline the pipeline value. * @return the AzureDigitalTwinsManagementClientBuilder. */ - public AzureDigitalTwinsManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) { - this.defaultPollInterval = defaultPollInterval; + public AzureDigitalTwinsManagementClientBuilder pipeline(HttpPipeline pipeline) { + this.pipeline = pipeline; return this; } /* - * The HTTP pipeline to send requests through + * The default poll interval for long-running operation */ - private HttpPipeline pipeline; + private Duration defaultPollInterval; /** - * Sets The HTTP pipeline to send requests through. + * Sets The default poll interval for long-running operation. * - * @param pipeline the pipeline value. + * @param defaultPollInterval the defaultPollInterval value. * @return the AzureDigitalTwinsManagementClientBuilder. */ - public AzureDigitalTwinsManagementClientBuilder pipeline(HttpPipeline pipeline) { - this.pipeline = pipeline; + public AzureDigitalTwinsManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) { + this.defaultPollInterval = defaultPollInterval; return this; } @@ -126,15 +125,12 @@ public AzureDigitalTwinsManagementClientImpl buildClient() { if (environment == null) { this.environment = AzureEnvironment.AZURE; } + if (pipeline == null) { + this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + } if (defaultPollInterval == null) { this.defaultPollInterval = Duration.ofSeconds(30); } - if (pipeline == null) { - this.pipeline = - new HttpPipelineBuilder() - .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()) - .build(); - } if (serializerAdapter == null) { this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter(); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/AzureDigitalTwinsManagementClientImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/AzureDigitalTwinsManagementClientImpl.java index 444eb570c2fc7..4ade3e01b7f44 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/AzureDigitalTwinsManagementClientImpl.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/AzureDigitalTwinsManagementClientImpl.java @@ -15,6 +15,7 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.management.polling.PollerFactory; import com.azure.core.util.Context; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.AsyncPollResponse; import com.azure.core.util.polling.LongRunningOperationStatus; @@ -34,15 +35,12 @@ import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.time.Duration; -import java.util.Map; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** Initializes a new instance of the AzureDigitalTwinsManagementClientImpl type. */ @ServiceClient(builder = AzureDigitalTwinsManagementClientBuilder.class) public final class AzureDigitalTwinsManagementClientImpl implements AzureDigitalTwinsManagementClient { - private final ClientLogger logger = new ClientLogger(AzureDigitalTwinsManagementClientImpl.class); - /** The subscription identifier. */ private final String subscriptionId; @@ -209,7 +207,7 @@ public TimeSeriesDatabaseConnectionsClient getTimeSeriesDatabaseConnections() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2021-06-30-preview"; + this.apiVersion = "2022-05-31"; this.digitalTwins = new DigitalTwinsClientImpl(this); this.digitalTwinsEndpoints = new DigitalTwinsEndpointsClientImpl(this); this.operations = new OperationsClientImpl(this); @@ -234,10 +232,7 @@ public Context getContext() { * @return the merged context. */ public Context mergeContext(Context context) { - for (Map.Entry entry : this.getContext().getValues().entrySet()) { - context = context.addData(entry.getKey(), entry.getValue()); - } - return context; + return CoreUtils.mergeContexts(this.getContext(), context); } /** @@ -301,7 +296,7 @@ public Mono getLroFinalResultOrError(AsyncPollResponse, managementError = null; } } catch (IOException | RuntimeException ioe) { - logger.logThrowableAsWarning(ioe); + LOGGER.logThrowableAsWarning(ioe); } } } else { @@ -360,4 +355,6 @@ public Mono getBodyAsString(Charset charset) { return Mono.just(new String(responseBody, charset)); } } + + private static final ClientLogger LOGGER = new ClientLogger(AzureDigitalTwinsManagementClientImpl.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsClientImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsClientImpl.java index 8605a67406e10..8e1a1ad14a2ba 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsClientImpl.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsClientImpl.java @@ -31,7 +31,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.digitaltwins.fluent.DigitalTwinsClient; @@ -46,8 +45,6 @@ /** An instance of this class provides access to all the operations defined in DigitalTwinsClient. */ public final class DigitalTwinsClientImpl implements DigitalTwinsClient { - private final ClientLogger logger = new ClientLogger(DigitalTwinsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final DigitalTwinsService service; @@ -302,14 +299,7 @@ private Mono> getByResourceGroupWithRespo @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String resourceName) { return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1621,14 +1611,7 @@ private Mono> checkNameAvailabilityWithResponseAs private Mono checkNameAvailabilityAsync( String location, CheckNameRequest digitalTwinsInstanceCheckName) { return checkNameAvailabilityWithResponseAsync(location, digitalTwinsInstanceCheckName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsDescriptionImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsDescriptionImpl.java index bf7adeaac10c4..039081df964fc 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsDescriptionImpl.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsDescriptionImpl.java @@ -103,6 +103,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public DigitalTwinsDescriptionInner innerModel() { return this.innerObject; } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsEndpointResourceImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsEndpointResourceImpl.java index a7d9aeab314dd..890e9147ef430 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsEndpointResourceImpl.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsEndpointResourceImpl.java @@ -38,6 +38,10 @@ public DigitalTwinsEndpointResourceProperties properties() { return this.innerModel().properties(); } + public String resourceGroupName() { + return resourceGroupName; + } + public DigitalTwinsEndpointResourceInner innerModel() { return this.innerObject; } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsEndpointsClientImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsEndpointsClientImpl.java index 6340b6fa9cc69..1c20207866dc9 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsEndpointsClientImpl.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsEndpointsClientImpl.java @@ -29,7 +29,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.digitaltwins.fluent.DigitalTwinsEndpointsClient; @@ -41,8 +40,6 @@ /** An instance of this class provides access to all the operations defined in DigitalTwinsEndpointsClient. */ public final class DigitalTwinsEndpointsClientImpl implements DigitalTwinsEndpointsClient { - private final ClientLogger logger = new ClientLogger(DigitalTwinsEndpointsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final DigitalTwinsEndpointsService service; @@ -441,14 +438,7 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String resourceName, String endpointName) { return getWithResponseAsync(resourceGroupName, resourceName, endpointName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsEndpointsImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsEndpointsImpl.java index bf997c9d25dc0..82a5d412b70e8 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsEndpointsImpl.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsEndpointsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.digitaltwins.fluent.models.DigitalTwinsEndpointResourceInner; import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsEndpointResource; import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsEndpoints; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class DigitalTwinsEndpointsImpl implements DigitalTwinsEndpoints { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DigitalTwinsEndpointsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(DigitalTwinsEndpointsImpl.class); private final DigitalTwinsEndpointsClient innerClient; @@ -91,7 +90,7 @@ public DigitalTwinsEndpointResource delete( public DigitalTwinsEndpointResource getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -99,7 +98,7 @@ public DigitalTwinsEndpointResource getById(String id) { } String resourceName = Utils.getValueFromIdByName(id, "digitalTwinsInstances"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -109,7 +108,7 @@ public DigitalTwinsEndpointResource getById(String id) { } String endpointName = Utils.getValueFromIdByName(id, "endpoints"); if (endpointName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'endpoints'.", id))); @@ -120,7 +119,7 @@ public DigitalTwinsEndpointResource getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -128,7 +127,7 @@ public Response getByIdWithResponse(String id, Con } String resourceName = Utils.getValueFromIdByName(id, "digitalTwinsInstances"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -138,7 +137,7 @@ public Response getByIdWithResponse(String id, Con } String endpointName = Utils.getValueFromIdByName(id, "endpoints"); if (endpointName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'endpoints'.", id))); @@ -149,7 +148,7 @@ public Response getByIdWithResponse(String id, Con public DigitalTwinsEndpointResource deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -157,7 +156,7 @@ public DigitalTwinsEndpointResource deleteById(String id) { } String resourceName = Utils.getValueFromIdByName(id, "digitalTwinsInstances"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -167,7 +166,7 @@ public DigitalTwinsEndpointResource deleteById(String id) { } String endpointName = Utils.getValueFromIdByName(id, "endpoints"); if (endpointName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'endpoints'.", id))); @@ -178,7 +177,7 @@ public DigitalTwinsEndpointResource deleteById(String id) { public DigitalTwinsEndpointResource deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -186,7 +185,7 @@ public DigitalTwinsEndpointResource deleteByIdWithResponse(String id, Context co } String resourceName = Utils.getValueFromIdByName(id, "digitalTwinsInstances"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -196,7 +195,7 @@ public DigitalTwinsEndpointResource deleteByIdWithResponse(String id, Context co } String endpointName = Utils.getValueFromIdByName(id, "endpoints"); if (endpointName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'endpoints'.", id))); diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsImpl.java index 46156d72416e1..cbdde68d65e66 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsImpl.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/DigitalTwinsImpl.java @@ -16,10 +16,9 @@ import com.azure.resourcemanager.digitaltwins.models.CheckNameResult; import com.azure.resourcemanager.digitaltwins.models.DigitalTwins; import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsDescription; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class DigitalTwinsImpl implements DigitalTwins { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DigitalTwinsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(DigitalTwinsImpl.class); private final DigitalTwinsClient innerClient; @@ -123,7 +122,7 @@ public Response checkNameAvailabilityWithResponse( public DigitalTwinsDescription getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -131,7 +130,7 @@ public DigitalTwinsDescription getById(String id) { } String resourceName = Utils.getValueFromIdByName(id, "digitalTwinsInstances"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -145,7 +144,7 @@ public DigitalTwinsDescription getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -153,7 +152,7 @@ public Response getByIdWithResponse(String id, Context } String resourceName = Utils.getValueFromIdByName(id, "digitalTwinsInstances"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -167,7 +166,7 @@ public Response getByIdWithResponse(String id, Context public DigitalTwinsDescription deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -175,7 +174,7 @@ public DigitalTwinsDescription deleteById(String id) { } String resourceName = Utils.getValueFromIdByName(id, "digitalTwinsInstances"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -189,7 +188,7 @@ public DigitalTwinsDescription deleteById(String id) { public DigitalTwinsDescription deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -197,7 +196,7 @@ public DigitalTwinsDescription deleteByIdWithResponse(String id, Context context } String resourceName = Utils.getValueFromIdByName(id, "digitalTwinsInstances"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/OperationsClientImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/OperationsClientImpl.java index 68e5440667c7b..45ee4e367a156 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/OperationsClientImpl.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/OperationsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.digitaltwins.fluent.OperationsClient; import com.azure.resourcemanager.digitaltwins.fluent.models.OperationInner; import com.azure.resourcemanager.digitaltwins.models.OperationListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in OperationsClient. */ public final class OperationsClientImpl implements OperationsClient { - private final ClientLogger logger = new ClientLogger(OperationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final OperationsService service; diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/OperationsImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/OperationsImpl.java index 24212674fce58..2e2d12b5f4afd 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/OperationsImpl.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/OperationsImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.digitaltwins.fluent.models.OperationInner; import com.azure.resourcemanager.digitaltwins.models.Operation; import com.azure.resourcemanager.digitaltwins.models.Operations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class OperationsImpl implements Operations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class); private final OperationsClient innerClient; diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateEndpointConnectionImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateEndpointConnectionImpl.java index cbc32113785ba..6c62ce01cf5f1 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateEndpointConnectionImpl.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateEndpointConnectionImpl.java @@ -36,6 +36,10 @@ public SystemData systemData() { return this.innerModel().systemData(); } + public String resourceGroupName() { + return resourceGroupName; + } + public PrivateEndpointConnectionInner innerModel() { return this.innerObject; } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateEndpointConnectionsClientImpl.java index 32c879358541b..580d8b98339ea 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateEndpointConnectionsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.digitaltwins.fluent.PrivateEndpointConnectionsClient; @@ -37,8 +36,6 @@ /** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpointConnectionsClient { - private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final PrivateEndpointConnectionsService service; @@ -238,15 +235,7 @@ private Mono> listWithResponse */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listAsync(String resourceGroupName, String resourceName) { - return listWithResponseAsync(resourceGroupName, resourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return listWithResponseAsync(resourceGroupName, resourceName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -409,14 +398,7 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String resourceName, String privateEndpointConnectionName) { return getWithResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateEndpointConnectionsImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateEndpointConnectionsImpl.java index f51514e912b46..9a8de50d58655 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateEndpointConnectionsImpl.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateEndpointConnectionsImpl.java @@ -14,10 +14,9 @@ import com.azure.resourcemanager.digitaltwins.models.PrivateEndpointConnection; import com.azure.resourcemanager.digitaltwins.models.PrivateEndpointConnections; import com.azure.resourcemanager.digitaltwins.models.PrivateEndpointConnectionsResponse; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionsImpl.class); private final PrivateEndpointConnectionsClient innerClient; @@ -94,7 +93,7 @@ public void delete( public PrivateEndpointConnection getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -102,7 +101,7 @@ public PrivateEndpointConnection getById(String id) { } String resourceName = Utils.getValueFromIdByName(id, "digitalTwinsInstances"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -112,7 +111,7 @@ public PrivateEndpointConnection getById(String id) { } String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -128,7 +127,7 @@ public PrivateEndpointConnection getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -136,7 +135,7 @@ public Response getByIdWithResponse(String id, Contex } String resourceName = Utils.getValueFromIdByName(id, "digitalTwinsInstances"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -146,7 +145,7 @@ public Response getByIdWithResponse(String id, Contex } String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -160,7 +159,7 @@ public Response getByIdWithResponse(String id, Contex public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -168,7 +167,7 @@ public void deleteById(String id) { } String resourceName = Utils.getValueFromIdByName(id, "digitalTwinsInstances"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -178,7 +177,7 @@ public void deleteById(String id) { } String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -192,7 +191,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -200,7 +199,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String resourceName = Utils.getValueFromIdByName(id, "digitalTwinsInstances"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -210,7 +209,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateLinkResourcesClientImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateLinkResourcesClientImpl.java index 94a22ed469f82..92f5f1d00546a 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateLinkResourcesClientImpl.java @@ -21,7 +21,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.digitaltwins.fluent.PrivateLinkResourcesClient; import com.azure.resourcemanager.digitaltwins.fluent.models.GroupIdInformationInner; import com.azure.resourcemanager.digitaltwins.fluent.models.GroupIdInformationResponseInner; @@ -29,8 +28,6 @@ /** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */ public final class PrivateLinkResourcesClientImpl implements PrivateLinkResourcesClient { - private final ClientLogger logger = new ClientLogger(PrivateLinkResourcesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final PrivateLinkResourcesService service; @@ -196,15 +193,7 @@ private Mono> listWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listAsync(String resourceGroupName, String resourceName) { - return listWithResponseAsync(resourceGroupName, resourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return listWithResponseAsync(resourceGroupName, resourceName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -359,14 +348,7 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String resourceName, String resourceId) { return getWithResponseAsync(resourceGroupName, resourceName, resourceId) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateLinkResourcesImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateLinkResourcesImpl.java index 89605bd86496b..dea2a062e911d 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateLinkResourcesImpl.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/PrivateLinkResourcesImpl.java @@ -14,10 +14,9 @@ import com.azure.resourcemanager.digitaltwins.models.GroupIdInformation; import com.azure.resourcemanager.digitaltwins.models.GroupIdInformationResponse; import com.azure.resourcemanager.digitaltwins.models.PrivateLinkResources; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class PrivateLinkResourcesImpl implements PrivateLinkResources { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourcesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkResourcesImpl.class); private final PrivateLinkResourcesClient innerClient; diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/TimeSeriesDatabaseConnectionImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/TimeSeriesDatabaseConnectionImpl.java index 13d7f87b8690c..98be7abff1371 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/TimeSeriesDatabaseConnectionImpl.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/TimeSeriesDatabaseConnectionImpl.java @@ -38,6 +38,10 @@ public TimeSeriesDatabaseConnectionProperties properties() { return this.innerModel().properties(); } + public String resourceGroupName() { + return resourceGroupName; + } + public TimeSeriesDatabaseConnectionInner innerModel() { return this.innerObject; } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/TimeSeriesDatabaseConnectionsClientImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/TimeSeriesDatabaseConnectionsClientImpl.java index b5496c20b65ce..c8119b03cd8e8 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/TimeSeriesDatabaseConnectionsClientImpl.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/TimeSeriesDatabaseConnectionsClientImpl.java @@ -29,7 +29,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.digitaltwins.fluent.TimeSeriesDatabaseConnectionsClient; @@ -41,8 +40,6 @@ /** An instance of this class provides access to all the operations defined in TimeSeriesDatabaseConnectionsClient. */ public final class TimeSeriesDatabaseConnectionsClientImpl implements TimeSeriesDatabaseConnectionsClient { - private final ClientLogger logger = new ClientLogger(TimeSeriesDatabaseConnectionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final TimeSeriesDatabaseConnectionsService service; @@ -461,14 +458,7 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String resourceName, String timeSeriesDatabaseConnectionName) { return getWithResponseAsync(resourceGroupName, resourceName, timeSeriesDatabaseConnectionName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/TimeSeriesDatabaseConnectionsImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/TimeSeriesDatabaseConnectionsImpl.java index 298d5a2d1ad83..a87340ea9b96b 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/TimeSeriesDatabaseConnectionsImpl.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/TimeSeriesDatabaseConnectionsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.digitaltwins.fluent.models.TimeSeriesDatabaseConnectionInner; import com.azure.resourcemanager.digitaltwins.models.TimeSeriesDatabaseConnection; import com.azure.resourcemanager.digitaltwins.models.TimeSeriesDatabaseConnections; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class TimeSeriesDatabaseConnectionsImpl implements TimeSeriesDatabaseConnections { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TimeSeriesDatabaseConnectionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(TimeSeriesDatabaseConnectionsImpl.class); private final TimeSeriesDatabaseConnectionsClient innerClient; @@ -95,7 +94,7 @@ public TimeSeriesDatabaseConnection delete( public TimeSeriesDatabaseConnection getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -103,7 +102,7 @@ public TimeSeriesDatabaseConnection getById(String id) { } String resourceName = Utils.getValueFromIdByName(id, "digitalTwinsInstances"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -113,7 +112,7 @@ public TimeSeriesDatabaseConnection getById(String id) { } String timeSeriesDatabaseConnectionName = Utils.getValueFromIdByName(id, "timeSeriesDatabaseConnections"); if (timeSeriesDatabaseConnectionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -130,7 +129,7 @@ public TimeSeriesDatabaseConnection getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -138,7 +137,7 @@ public Response getByIdWithResponse(String id, Con } String resourceName = Utils.getValueFromIdByName(id, "digitalTwinsInstances"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -148,7 +147,7 @@ public Response getByIdWithResponse(String id, Con } String timeSeriesDatabaseConnectionName = Utils.getValueFromIdByName(id, "timeSeriesDatabaseConnections"); if (timeSeriesDatabaseConnectionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -163,7 +162,7 @@ public Response getByIdWithResponse(String id, Con public TimeSeriesDatabaseConnection deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -171,7 +170,7 @@ public TimeSeriesDatabaseConnection deleteById(String id) { } String resourceName = Utils.getValueFromIdByName(id, "digitalTwinsInstances"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -181,7 +180,7 @@ public TimeSeriesDatabaseConnection deleteById(String id) { } String timeSeriesDatabaseConnectionName = Utils.getValueFromIdByName(id, "timeSeriesDatabaseConnections"); if (timeSeriesDatabaseConnectionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -196,7 +195,7 @@ public TimeSeriesDatabaseConnection deleteById(String id) { public TimeSeriesDatabaseConnection deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -204,7 +203,7 @@ public TimeSeriesDatabaseConnection deleteByIdWithResponse(String id, Context co } String resourceName = Utils.getValueFromIdByName(id, "digitalTwinsInstances"); if (resourceName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -214,7 +213,7 @@ public TimeSeriesDatabaseConnection deleteByIdWithResponse(String id, Context co } String timeSeriesDatabaseConnectionName = Utils.getValueFromIdByName(id, "timeSeriesDatabaseConnections"); if (timeSeriesDatabaseConnectionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/AuthenticationType.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/AuthenticationType.java index 732c2440636c0..7e31b5e609860 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/AuthenticationType.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/AuthenticationType.java @@ -27,7 +27,11 @@ public static AuthenticationType fromString(String name) { return fromString(name, AuthenticationType.class); } - /** @return known AuthenticationType values. */ + /** + * Gets known AuthenticationType values. + * + * @return known AuthenticationType values. + */ public static Collection values() { return values(AuthenticationType.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/AzureDataExplorerConnectionProperties.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/AzureDataExplorerConnectionProperties.java index 0acaf131ebefc..e99ece52caead 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/AzureDataExplorerConnectionProperties.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/AzureDataExplorerConnectionProperties.java @@ -6,7 +6,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -16,8 +15,6 @@ @JsonTypeName("AzureDataExplorer") @Fluent public final class AzureDataExplorerConnectionProperties extends TimeSeriesDatabaseConnectionProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureDataExplorerConnectionProperties.class); - /* * The resource ID of the Azure Data Explorer cluster. */ @@ -244,42 +241,44 @@ public AzureDataExplorerConnectionProperties withEventHubConsumerGroup(String ev public void validate() { super.validate(); if (adxResourceId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property adxResourceId in model AzureDataExplorerConnectionProperties")); } if (adxEndpointUri() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property adxEndpointUri in model AzureDataExplorerConnectionProperties")); } if (adxDatabaseName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property adxDatabaseName in model AzureDataExplorerConnectionProperties")); } if (eventHubEndpointUri() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property eventHubEndpointUri in model" + " AzureDataExplorerConnectionProperties")); } if (eventHubEntityPath() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property eventHubEntityPath in model AzureDataExplorerConnectionProperties")); } if (eventHubNamespaceResourceId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property eventHubNamespaceResourceId in model" + " AzureDataExplorerConnectionProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(AzureDataExplorerConnectionProperties.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/CheckNameRequest.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/CheckNameRequest.java index cf2d8941316b5..8f1b6224d8fd9 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/CheckNameRequest.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/CheckNameRequest.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The result returned from a database check name availability request. */ @Fluent public final class CheckNameRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CheckNameRequest.class); - /* * Resource name. */ @@ -79,9 +76,11 @@ public CheckNameRequest withType(String type) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property name in model CheckNameRequest")); } } + + private static final ClientLogger LOGGER = new ClientLogger(CheckNameRequest.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionProperties.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionProperties.java index 7baf3738b5126..bf43f9886e107 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionProperties.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.digitaltwins.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The properties of a private endpoint connection. */ @Fluent public final class ConnectionProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ConnectionProperties.class); - /* * The provisioning state. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionPropertiesPrivateLinkServiceConnectionState.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionPropertiesPrivateLinkServiceConnectionState.java index 9388eca9785c0..c3945e1a3dc8b 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionPropertiesPrivateLinkServiceConnectionState.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionPropertiesPrivateLinkServiceConnectionState.java @@ -5,15 +5,10 @@ package com.azure.resourcemanager.digitaltwins.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; /** The connection state. */ @Fluent public final class ConnectionPropertiesPrivateLinkServiceConnectionState extends ConnectionState { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(ConnectionPropertiesPrivateLinkServiceConnectionState.class); - /** {@inheritDoc} */ @Override public ConnectionPropertiesPrivateLinkServiceConnectionState withStatus(PrivateLinkServiceConnectionStatus status) { diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionPropertiesProvisioningState.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionPropertiesProvisioningState.java index 0e130c6a59a2e..88c5e0220d81e 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionPropertiesProvisioningState.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionPropertiesProvisioningState.java @@ -34,7 +34,11 @@ public static ConnectionPropertiesProvisioningState fromString(String name) { return fromString(name, ConnectionPropertiesProvisioningState.class); } - /** @return known ConnectionPropertiesProvisioningState values. */ + /** + * Gets known ConnectionPropertiesProvisioningState values. + * + * @return known ConnectionPropertiesProvisioningState values. + */ public static Collection values() { return values(ConnectionPropertiesProvisioningState.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionState.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionState.java index 7bd1d097e7986..bbf92d84f9095 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionState.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionState.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The current state of a private endpoint connection. */ @Fluent public class ConnectionState { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ConnectionState.class); - /* * The status of a private endpoint connection. */ @@ -99,14 +96,16 @@ public ConnectionState withActionsRequired(String actionsRequired) { */ public void validate() { if (status() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property status in model ConnectionState")); } if (description() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property description in model ConnectionState")); } } + + private static final ClientLogger LOGGER = new ClientLogger(ConnectionState.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionType.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionType.java index e543af1381b1e..64dd3e0c5f656 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionType.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ConnectionType.java @@ -24,7 +24,11 @@ public static ConnectionType fromString(String name) { return fromString(name, ConnectionType.class); } - /** @return known ConnectionType values. */ + /** + * Gets known ConnectionType values. + * + * @return known ConnectionType values. + */ public static Collection values() { return values(ConnectionType.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsDescription.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsDescription.java index 29f2c784a58e7..aa5d3d1ba60c5 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsDescription.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsDescription.java @@ -120,6 +120,13 @@ public interface DigitalTwinsDescription { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.digitaltwins.fluent.models.DigitalTwinsDescriptionInner object. * diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsDescriptionListResult.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsDescriptionListResult.java index 409012ec75c36..67dc5ed961b05 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsDescriptionListResult.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsDescriptionListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.digitaltwins.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.digitaltwins.fluent.models.DigitalTwinsDescriptionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of DigitalTwins description objects with a next link. */ @Fluent public final class DigitalTwinsDescriptionListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DigitalTwinsDescriptionListResult.class); - /* * The link used to get the next page of DigitalTwins description objects. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsEndpointResource.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsEndpointResource.java index 34318a3c2b67d..7e03731b907dc 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsEndpointResource.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsEndpointResource.java @@ -45,6 +45,13 @@ public interface DigitalTwinsEndpointResource { */ DigitalTwinsEndpointResourceProperties properties(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.digitaltwins.fluent.models.DigitalTwinsEndpointResourceInner object. * diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsEndpointResourceListResult.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsEndpointResourceListResult.java index 0f30466a0fd60..37958f0345958 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsEndpointResourceListResult.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsEndpointResourceListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.digitaltwins.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.digitaltwins.fluent.models.DigitalTwinsEndpointResourceInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A list of DigitalTwinsInstance Endpoints with a next link. */ @Fluent public final class DigitalTwinsEndpointResourceListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DigitalTwinsEndpointResourceListResult.class); - /* * The link used to get the next page of DigitalTwinsInstance Endpoints. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsEndpointResourceProperties.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsEndpointResourceProperties.java index c43fac2117fcb..77738033ad134 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsEndpointResourceProperties.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsEndpointResourceProperties.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.digitaltwins.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -27,8 +25,6 @@ }) @Fluent public class DigitalTwinsEndpointResourceProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DigitalTwinsEndpointResourceProperties.class); - /* * The provisioning state. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsIdentity.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsIdentity.java index d42e5e42d4998..eead6b30b6558 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsIdentity.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsIdentity.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.digitaltwins.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The managed identity for the DigitalTwinsInstance. */ @Fluent public class DigitalTwinsIdentity { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DigitalTwinsIdentity.class); - /* * The type of Managed Identity used by the DigitalTwinsInstance. Only * SystemAssigned is supported. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsIdentityType.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsIdentityType.java index 4b8872828c8e7..767aaaea88748 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsIdentityType.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsIdentityType.java @@ -27,7 +27,11 @@ public static DigitalTwinsIdentityType fromString(String name) { return fromString(name, DigitalTwinsIdentityType.class); } - /** @return known DigitalTwinsIdentityType values. */ + /** + * Gets known DigitalTwinsIdentityType values. + * + * @return known DigitalTwinsIdentityType values. + */ public static Collection values() { return values(DigitalTwinsIdentityType.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsPatchDescription.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsPatchDescription.java index 6bca67cfc7dd3..29cd5b8f067ca 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsPatchDescription.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsPatchDescription.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.digitaltwins.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -14,8 +12,6 @@ /** The description of the DigitalTwins service. */ @Fluent public final class DigitalTwinsPatchDescription { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DigitalTwinsPatchDescription.class); - /* * Instance patch properties */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsPatchProperties.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsPatchProperties.java index 038140f7be142..73a8baaeb39cc 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsPatchProperties.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsPatchProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.digitaltwins.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The properties of a DigitalTwinsInstance. */ @Fluent public final class DigitalTwinsPatchProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DigitalTwinsPatchProperties.class); - /* * Public network access for the DigitalTwinsInstance. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsResource.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsResource.java index a6831fa37cfcd..7e6063cb17ce1 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsResource.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/DigitalTwinsResource.java @@ -7,16 +7,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The common properties of a DigitalTwinsInstance. */ @Fluent public class DigitalTwinsResource extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(DigitalTwinsResource.class); - /* * The managed identity for the DigitalTwinsInstance. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/EndpointProvisioningState.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/EndpointProvisioningState.java index e38c8c572a6ce..2e507dc29b194 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/EndpointProvisioningState.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/EndpointProvisioningState.java @@ -16,6 +16,9 @@ public final class EndpointProvisioningState extends ExpandableStringEnum values() { return values(EndpointProvisioningState.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/EndpointType.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/EndpointType.java index bffc3e69fd585..5793e156a75ef 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/EndpointType.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/EndpointType.java @@ -30,7 +30,11 @@ public static EndpointType fromString(String name) { return fromString(name, EndpointType.class); } - /** @return known EndpointType values. */ + /** + * Gets known EndpointType values. + * + * @return known EndpointType values. + */ public static Collection values() { return values(EndpointType.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/EventGrid.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/EventGrid.java index 7e1cd4c6d829f..f304cd4969c40 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/EventGrid.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/EventGrid.java @@ -6,7 +6,6 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -16,8 +15,6 @@ @JsonTypeName("EventGrid") @Fluent public final class EventGrid extends DigitalTwinsEndpointResourceProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EventGrid.class); - /* * EventGrid Topic Endpoint. */ @@ -126,14 +123,16 @@ public EventGrid withDeadLetterUri(String deadLetterUri) { public void validate() { super.validate(); if (topicEndpoint() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property topicEndpoint in model EventGrid")); } if (accessKey1() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property accessKey1 in model EventGrid")); } } + + private static final ClientLogger LOGGER = new ClientLogger(EventGrid.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/EventHub.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/EventHub.java index 5c6e99b08277d..3e5b0265f0e6e 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/EventHub.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/EventHub.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.digitaltwins.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -16,8 +14,6 @@ @JsonTypeName("EventHub") @Fluent public final class EventHub extends DigitalTwinsEndpointResourceProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EventHub.class); - /* * PrimaryConnectionString of the endpoint for key-based authentication. * Will be obfuscated during read. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ExternalResource.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ExternalResource.java index 432bd1835dce0..7bdc35b6159ae 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ExternalResource.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ExternalResource.java @@ -7,15 +7,11 @@ import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Definition of a resource. */ @Immutable public class ExternalResource extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ExternalResource.class); - /* * Metadata pertaining to creation and last modification of the resource. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/GroupIdInformationProperties.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/GroupIdInformationProperties.java index 443ae25d3a660..141d14d92d504 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/GroupIdInformationProperties.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/GroupIdInformationProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.digitaltwins.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The properties for a group information object. */ @Fluent public final class GroupIdInformationProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GroupIdInformationProperties.class); - /* * The group id. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/OperationDisplay.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/OperationDisplay.java index 740e481288c16..dd56b690d6b4c 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/OperationDisplay.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/OperationDisplay.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.digitaltwins.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The object that represents the operation. */ @Immutable public final class OperationDisplay { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationDisplay.class); - /* * Service provider: Microsoft DigitalTwins. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/OperationListResult.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/OperationListResult.java index 3da5fd617cad0..17283e65dd5c4 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/OperationListResult.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/OperationListResult.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.digitaltwins.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.digitaltwins.fluent.models.OperationInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -17,8 +15,6 @@ */ @Fluent public final class OperationListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationListResult.class); - /* * The link used to get the next page of DigitalTwins description objects. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/PrivateEndpoint.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/PrivateEndpoint.java index 127c84606921a..d1491e34d8910 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/PrivateEndpoint.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/PrivateEndpoint.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.digitaltwins.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The private endpoint property of a private endpoint connection. */ @Immutable public final class PrivateEndpoint { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpoint.class); - /* * The resource identifier. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/PrivateEndpointConnection.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/PrivateEndpointConnection.java index 6ba3ba727b058..51e099fbeac36 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/PrivateEndpointConnection.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/PrivateEndpointConnection.java @@ -46,6 +46,13 @@ public interface PrivateEndpointConnection { */ SystemData systemData(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.digitaltwins.fluent.models.PrivateEndpointConnectionInner object. * diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/PrivateLinkServiceConnectionStatus.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/PrivateLinkServiceConnectionStatus.java index e388361e84f1e..614d804c24049 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/PrivateLinkServiceConnectionStatus.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/PrivateLinkServiceConnectionStatus.java @@ -33,7 +33,11 @@ public static PrivateLinkServiceConnectionStatus fromString(String name) { return fromString(name, PrivateLinkServiceConnectionStatus.class); } - /** @return known PrivateLinkServiceConnectionStatus values. */ + /** + * Gets known PrivateLinkServiceConnectionStatus values. + * + * @return known PrivateLinkServiceConnectionStatus values. + */ public static Collection values() { return values(PrivateLinkServiceConnectionStatus.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ProvisioningState.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ProvisioningState.java index 8ea29cad765ee..156d21ba29a29 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ProvisioningState.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ProvisioningState.java @@ -54,7 +54,11 @@ public static ProvisioningState fromString(String name) { return fromString(name, ProvisioningState.class); } - /** @return known ProvisioningState values. */ + /** + * Gets known ProvisioningState values. + * + * @return known ProvisioningState values. + */ public static Collection values() { return values(ProvisioningState.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/PublicNetworkAccess.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/PublicNetworkAccess.java index f56357021acbd..82d55c8c1de69 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/PublicNetworkAccess.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/PublicNetworkAccess.java @@ -27,7 +27,11 @@ public static PublicNetworkAccess fromString(String name) { return fromString(name, PublicNetworkAccess.class); } - /** @return known PublicNetworkAccess values. */ + /** + * Gets known PublicNetworkAccess values. + * + * @return known PublicNetworkAccess values. + */ public static Collection values() { return values(PublicNetworkAccess.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/Reason.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/Reason.java index a71b16fd4e9b9..4d39e1bdb1511 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/Reason.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/Reason.java @@ -27,7 +27,11 @@ public static Reason fromString(String name) { return fromString(name, Reason.class); } - /** @return known Reason values. */ + /** + * Gets known Reason values. + * + * @return known Reason values. + */ public static Collection values() { return values(Reason.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ServiceBus.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ServiceBus.java index 42f3f91da5338..3174ece47a727 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ServiceBus.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/ServiceBus.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.digitaltwins.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -16,8 +14,6 @@ @JsonTypeName("ServiceBus") @Fluent public final class ServiceBus extends DigitalTwinsEndpointResourceProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ServiceBus.class); - /* * PrimaryConnectionString of the endpoint for key-based authentication. * Will be obfuscated during read. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/TimeSeriesDatabaseConnection.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/TimeSeriesDatabaseConnection.java index 21f3499b086e6..85c2d1f2330ba 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/TimeSeriesDatabaseConnection.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/TimeSeriesDatabaseConnection.java @@ -45,6 +45,13 @@ public interface TimeSeriesDatabaseConnection { */ TimeSeriesDatabaseConnectionProperties properties(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.digitaltwins.fluent.models.TimeSeriesDatabaseConnectionInner object. * diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/TimeSeriesDatabaseConnectionListResult.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/TimeSeriesDatabaseConnectionListResult.java index 392794c347b76..b7299fd4c6596 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/TimeSeriesDatabaseConnectionListResult.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/TimeSeriesDatabaseConnectionListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.digitaltwins.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.digitaltwins.fluent.models.TimeSeriesDatabaseConnectionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A pageable list of time series database connection resources. */ @Fluent public final class TimeSeriesDatabaseConnectionListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TimeSeriesDatabaseConnectionListResult.class); - /* * The link used to get the next page of results. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/TimeSeriesDatabaseConnectionProperties.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/TimeSeriesDatabaseConnectionProperties.java index 18e7e66ace290..e8c8c8f9e274f 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/TimeSeriesDatabaseConnectionProperties.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/TimeSeriesDatabaseConnectionProperties.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.digitaltwins.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -22,8 +20,6 @@ @JsonSubTypes({@JsonSubTypes.Type(name = "AzureDataExplorer", value = AzureDataExplorerConnectionProperties.class)}) @Immutable public class TimeSeriesDatabaseConnectionProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TimeSeriesDatabaseConnectionProperties.class); - /* * The provisioning state. */ diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/TimeSeriesDatabaseConnectionState.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/TimeSeriesDatabaseConnectionState.java index 0b4e9ef7eec2c..2da1499569fef 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/TimeSeriesDatabaseConnectionState.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/models/TimeSeriesDatabaseConnectionState.java @@ -16,6 +16,9 @@ public final class TimeSeriesDatabaseConnectionState extends ExpandableStringEnu /** Static value Deleting for TimeSeriesDatabaseConnectionState. */ public static final TimeSeriesDatabaseConnectionState DELETING = fromString("Deleting"); + /** Static value Updating for TimeSeriesDatabaseConnectionState. */ + public static final TimeSeriesDatabaseConnectionState UPDATING = fromString("Updating"); + /** Static value Succeeded for TimeSeriesDatabaseConnectionState. */ public static final TimeSeriesDatabaseConnectionState SUCCEEDED = fromString("Succeeded"); @@ -54,7 +57,11 @@ public static TimeSeriesDatabaseConnectionState fromString(String name) { return fromString(name, TimeSeriesDatabaseConnectionState.class); } - /** @return known TimeSeriesDatabaseConnectionState values. */ + /** + * Gets known TimeSeriesDatabaseConnectionState values. + * + * @return known TimeSeriesDatabaseConnectionState values. + */ public static Collection values() { return values(TimeSeriesDatabaseConnectionState.class); } diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsCheckNameAvailabilitySamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsCheckNameAvailabilitySamples.java index c3145541f7ab0..46b819b2cb06e 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsCheckNameAvailabilitySamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsCheckNameAvailabilitySamples.java @@ -10,7 +10,7 @@ /** Samples for DigitalTwins CheckNameAvailability. */ public final class DigitalTwinsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsCheckNameAvailability_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsCheckNameAvailability_example.json */ /** * Sample code: Check name Availability. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsCreateOrUpdateSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsCreateOrUpdateSamples.java index f778c452028fd..8867f1b88df67 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsCreateOrUpdateSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ /** Samples for DigitalTwins CreateOrUpdate. */ public final class DigitalTwinsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsPut_example.json */ /** * Sample code: Put a DigitalTwinsInstance resource. @@ -29,7 +29,7 @@ public static void putADigitalTwinsInstanceResource( } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_WithPublicNetworkAccess.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsPut_WithPublicNetworkAccess.json */ /** * Sample code: Put a DigitalTwinsInstance resource with publicNetworkAccess property. @@ -48,7 +48,7 @@ public static void putADigitalTwinsInstanceResourceWithPublicNetworkAccessProper } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_WithIdentity_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsPut_WithIdentity_example.json */ /** * Sample code: Put a DigitalTwinsInstance resource with identity. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsDeleteSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsDeleteSamples.java index a40a1ea4ad5fd..6a46204e6a8a7 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsDeleteSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for DigitalTwins Delete. */ public final class DigitalTwinsDeleteSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsDelete_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsDelete_example.json */ /** * Sample code: Delete a DigitalTwinsInstance resource. @@ -22,7 +22,7 @@ public static void deleteADigitalTwinsInstanceResource( } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsDelete_WithIdentity_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsDelete_WithIdentity_example.json */ /** * Sample code: Delete a DigitalTwinsInstance resource with identity. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsEndpointCreateOrUpdateSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsEndpointCreateOrUpdateSamples.java index 6e7883fc29726..2b641de9e573f 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsEndpointCreateOrUpdateSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsEndpointCreateOrUpdateSamples.java @@ -10,7 +10,7 @@ /** Samples for DigitalTwinsEndpoint CreateOrUpdate. */ public final class DigitalTwinsEndpointCreateOrUpdateSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointPut_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointPut_example.json */ /** * Sample code: Put a DigitalTwinsEndpoint resource. @@ -34,7 +34,7 @@ public static void putADigitalTwinsEndpointResource( } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointPut_WithIdentity_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointPut_WithIdentity_example.json */ /** * Sample code: Put a DigitalTwinsEndpoint resource with identity. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsEndpointDeleteSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsEndpointDeleteSamples.java index 0e348eaf71420..f5e7613c55e51 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsEndpointDeleteSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsEndpointDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for DigitalTwinsEndpoint Delete. */ public final class DigitalTwinsEndpointDeleteSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointDelete_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointDelete_example.json */ /** * Sample code: Delete a DigitalTwinsInstance endpoint. @@ -22,7 +22,7 @@ public static void deleteADigitalTwinsInstanceEndpoint( } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointDelete_WithIdentity_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointDelete_WithIdentity_example.json */ /** * Sample code: Delete a DigitalTwinsInstance endpoint with identity. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsEndpointGetSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsEndpointGetSamples.java index a1e3312500b89..c06c650bab957 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsEndpointGetSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsEndpointGetSamples.java @@ -9,7 +9,7 @@ /** Samples for DigitalTwinsEndpoint Get. */ public final class DigitalTwinsEndpointGetSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointGet_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointGet_example.json */ /** * Sample code: Get a DigitalTwinsInstance endpoint. @@ -22,7 +22,7 @@ public static void getADigitalTwinsInstanceEndpoint( } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointGet_WithIdentity_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointGet_WithIdentity_example.json */ /** * Sample code: Get a DigitalTwinsInstance endpoint with identity. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsEndpointListSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsEndpointListSamples.java index 3df9a6e18046d..1fc642cc44dcb 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsEndpointListSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsEndpointListSamples.java @@ -9,7 +9,7 @@ /** Samples for DigitalTwinsEndpoint List. */ public final class DigitalTwinsEndpointListSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointsGet_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointsGet_example.json */ /** * Sample code: Get a DigitalTwinsInstance endpoints. @@ -22,7 +22,7 @@ public static void getADigitalTwinsInstanceEndpoints( } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointsGet_WithIdentity_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointsGet_WithIdentity_example.json */ /** * Sample code: Get a DigitalTwinsInstance endpoints with identity. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsGetByResourceGroupSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsGetByResourceGroupSamples.java index 1bfa0f0ce34cb..79cb88794c00c 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsGetByResourceGroupSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for DigitalTwins GetByResourceGroup. */ public final class DigitalTwinsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_WithIdentity_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsGet_WithIdentity_example.json */ /** * Sample code: Get a DigitalTwinsInstance resource with identity. @@ -22,7 +22,7 @@ public static void getADigitalTwinsInstanceResourceWithIdentity( } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_WithPrivateEndpointConnection_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsGet_WithPrivateEndpointConnection_example.json */ /** * Sample code: Get a DigitalTwinsInstance resource with a private endpoint connection. @@ -35,7 +35,7 @@ public static void getADigitalTwinsInstanceResourceWithAPrivateEndpointConnectio } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsGet_example.json */ /** * Sample code: Get a DigitalTwinsInstance resource. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsListByResourceGroupSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsListByResourceGroupSamples.java index b5e4afd6625e2..29ca6229c5033 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsListByResourceGroupSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for DigitalTwins ListByResourceGroup. */ public final class DigitalTwinsListByResourceGroupSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsListByResourceGroup_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsListByResourceGroup_example.json */ /** * Sample code: Get DigitalTwinsInstance resources by resource group. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsListSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsListSamples.java index e8852ae9b2f41..a6d80fd8ae72f 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsListSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsListSamples.java @@ -9,7 +9,7 @@ /** Samples for DigitalTwins List. */ public final class DigitalTwinsListSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsList_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsList_example.json */ /** * Sample code: Get DigitalTwinsInstance resources by subscription. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsUpdateSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsUpdateSamples.java index e9d7555b56529..3322dd0c5520a 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsUpdateSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/DigitalTwinsUpdateSamples.java @@ -16,7 +16,7 @@ /** Samples for DigitalTwins Update. */ public final class DigitalTwinsUpdateSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsPatch_example.json */ /** * Sample code: Patch a DigitalTwinsInstance resource. @@ -34,7 +34,7 @@ public static void patchADigitalTwinsInstanceResource( } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_WithPublicNetworkAccess.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsPatch_WithPublicNetworkAccess.json */ /** * Sample code: Patch a DigitalTwinsInstance resource with publicNetworkAccess property. @@ -55,7 +55,7 @@ public static void patchADigitalTwinsInstanceResourceWithPublicNetworkAccessProp } /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_WithIdentity_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsPatch_WithIdentity_example.json */ /** * Sample code: Patch a DigitalTwinsInstance resource with identity. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/OperationsListSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/OperationsListSamples.java index 40b20af3c87d8..971187a0c9746 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/OperationsListSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsOperationsList_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsOperationsList_example.json */ /** * Sample code: Get available operations. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java index 3dc6af1d052c8..02f0095ad0709 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ /** Samples for PrivateEndpointConnections CreateOrUpdate. */ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/PrivateEndpointConnectionPut_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateEndpointConnectionPut_example.json */ /** * Sample code: Update the status of a private endpoint connection with the given name. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateEndpointConnectionsDeleteSamples.java index cdd8d523fa070..873f8b7b501e5 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateEndpointConnections Delete. */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/PrivateEndpointConnectionDelete_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateEndpointConnectionDelete_example.json */ /** * Sample code: Delete private endpoint connection with the specified name. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateEndpointConnectionsGetSamples.java index 52266795a9354..7cfe6d5892d24 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateEndpointConnectionsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateEndpointConnections Get. */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/PrivateEndpointConnectionByConnectionName_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateEndpointConnectionByConnectionName_example.json */ /** * Sample code: Get private endpoint connection properties for the given private endpoint. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateEndpointConnectionsListSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateEndpointConnectionsListSamples.java index 32f8796328f95..98b940069c88e 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateEndpointConnectionsListSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateEndpointConnectionsListSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateEndpointConnections List. */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/PrivateEndpointConnectionsList_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateEndpointConnectionsList_example.json */ /** * Sample code: List private endpoint connection properties. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateLinkResourcesGetSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateLinkResourcesGetSamples.java index 7d8dae16e513e..8b5366bc766d0 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateLinkResourcesGetSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateLinkResourcesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateLinkResources Get. */ public final class PrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/PrivateLinkResourcesByGroupId_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateLinkResourcesByGroupId_example.json */ /** * Sample code: Get the specified private link resource for the given Digital Twin. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateLinkResourcesListSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateLinkResourcesListSamples.java index 4020945e2a382..d7c74cf6a4ec7 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateLinkResourcesListSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/PrivateLinkResourcesListSamples.java @@ -9,7 +9,7 @@ /** Samples for PrivateLinkResources List. */ public final class PrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/PrivateLinkResourcesList_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateLinkResourcesList_example.json */ /** * Sample code: List private link resources for given Digital Twin. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/TimeSeriesDatabaseConnectionsCreateOrUpdateSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/TimeSeriesDatabaseConnectionsCreateOrUpdateSamples.java index f6e7977c83655..e2ae78cae26a0 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/TimeSeriesDatabaseConnectionsCreateOrUpdateSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/TimeSeriesDatabaseConnectionsCreateOrUpdateSamples.java @@ -9,7 +9,7 @@ /** Samples for TimeSeriesDatabaseConnections CreateOrUpdate. */ public final class TimeSeriesDatabaseConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsPut_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/TimeSeriesDatabaseConnectionsPut_example.json */ /** * Sample code: Create or replace a time series database connection for a DigitalTwins instance. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/TimeSeriesDatabaseConnectionsDeleteSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/TimeSeriesDatabaseConnectionsDeleteSamples.java index de51abf94de30..2fbc1a00036fb 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/TimeSeriesDatabaseConnectionsDeleteSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/TimeSeriesDatabaseConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for TimeSeriesDatabaseConnections Delete. */ public final class TimeSeriesDatabaseConnectionsDeleteSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsDelete_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/TimeSeriesDatabaseConnectionsDelete_example.json */ /** * Sample code: Delete a time series database connection for a DigitalTwins instance. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/TimeSeriesDatabaseConnectionsGetSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/TimeSeriesDatabaseConnectionsGetSamples.java index f140ffef4078b..5bd521ee1b554 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/TimeSeriesDatabaseConnectionsGetSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/TimeSeriesDatabaseConnectionsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for TimeSeriesDatabaseConnections Get. */ public final class TimeSeriesDatabaseConnectionsGetSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsGet_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/TimeSeriesDatabaseConnectionsGet_example.json */ /** * Sample code: Get time series database connection for a DigitalTwins instance. diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/TimeSeriesDatabaseConnectionsListSamples.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/TimeSeriesDatabaseConnectionsListSamples.java index 69490c8f67514..249bbe3daf6c7 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/TimeSeriesDatabaseConnectionsListSamples.java +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/samples/java/com/azure/resourcemanager/digitaltwins/generated/TimeSeriesDatabaseConnectionsListSamples.java @@ -9,7 +9,7 @@ /** Samples for TimeSeriesDatabaseConnections List. */ public final class TimeSeriesDatabaseConnectionsListSamples { /* - * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/TimeSeriesDatabaseConnectionsList_example.json + * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/TimeSeriesDatabaseConnectionsList_example.json */ /** * Sample code: List time series database connections for a DigitalTwins instance.