diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/CHANGELOG.md b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/CHANGELOG.md
index af87dd1c3163..f31b80b8206c 100644
--- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/CHANGELOG.md
+++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/CHANGELOG.md
@@ -1,7 +1,79 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.2 (2022-02-15)
+- 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).
+
+### Breaking Changes
+
+* `models.PrivateEndpointConnectionProperties` was removed
+
+* `models.ConnectionPropertiesPrivateEndpoint` was removed
+
+#### `models.ConnectionProperties` was modified
+
+* `withPrivateLinkServiceConnectionState(models.ConnectionState)` was removed
+* `models.ConnectionState privateLinkServiceConnectionState()` -> `models.ConnectionPropertiesPrivateLinkServiceConnectionState privateLinkServiceConnectionState()`
+
+### Features Added
+
+* `models.TimeSeriesDatabaseConnections` was added
+
+* `models.TimeSeriesDatabaseConnection$DefinitionStages` was added
+
+* `models.TimeSeriesDatabaseConnectionListResult` was added
+
+* `models.TimeSeriesDatabaseConnection` was added
+
+* `models.ConnectionType` was added
+
+* `models.TimeSeriesDatabaseConnectionProperties` was added
+
+* `models.TimeSeriesDatabaseConnection$Definition` was added
+
+* `models.AzureDataExplorerConnectionProperties` was added
+
+* `models.TimeSeriesDatabaseConnection$Update` was added
+
+* `models.TimeSeriesDatabaseConnectionState` was added
+
+* `models.TimeSeriesDatabaseConnection$UpdateStages` was added
+
+#### `models.DigitalTwinsDescription` was modified
+
+* `systemData()` was added
+
+#### `models.ConnectionProperties` was modified
+
+* `withPrivateLinkServiceConnectionState(models.ConnectionPropertiesPrivateLinkServiceConnectionState)` was added
+
+#### `models.ExternalResource` was modified
+
+* `systemData()` was added
+
+#### `models.DigitalTwinsResource` was modified
+
+* `systemData()` was added
+
+#### `AzureDigitalTwinsManager` was modified
+
+* `timeSeriesDatabaseConnections()` was added
+
+#### `models.DigitalTwinsEndpointResource` was modified
+
+* `systemData()` was added
+
+#### `models.PrivateEndpointConnection` was modified
+
+* `systemData()` was added
+
+#### `AzureDigitalTwinsManager$Configurable` was modified
+
+* `withScope(java.lang.String)` was added
+
+#### `models.Operation` was modified
+
+* `properties()` was added
## 1.0.0-beta.1 (2021-03-02)
diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/README.md b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/README.md
index 08f075b05d67..146d6e087701 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-2020-12. 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-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).
## 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.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -74,6 +74,9 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/digitaltwins/azure-resourcemanager-digitaltwins/SAMPLE.md)
+
+
## Troubleshooting
## Next steps
diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/SAMPLE.md b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/SAMPLE.md
new file mode 100644
index 000000000000..c57ffe1b3c1e
--- /dev/null
+++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/SAMPLE.md
@@ -0,0 +1,785 @@
+# Code snippets and samples
+
+
+## DigitalTwins
+
+- [CheckNameAvailability](#digitaltwins_checknameavailability)
+- [CreateOrUpdate](#digitaltwins_createorupdate)
+- [Delete](#digitaltwins_delete)
+- [GetByResourceGroup](#digitaltwins_getbyresourcegroup)
+- [List](#digitaltwins_list)
+- [ListByResourceGroup](#digitaltwins_listbyresourcegroup)
+- [Update](#digitaltwins_update)
+
+## DigitalTwinsEndpoint
+
+- [CreateOrUpdate](#digitaltwinsendpoint_createorupdate)
+- [Delete](#digitaltwinsendpoint_delete)
+- [Get](#digitaltwinsendpoint_get)
+- [List](#digitaltwinsendpoint_list)
+
+## Operations
+
+- [List](#operations_list)
+
+## PrivateEndpointConnections
+
+- [CreateOrUpdate](#privateendpointconnections_createorupdate)
+- [Delete](#privateendpointconnections_delete)
+- [Get](#privateendpointconnections_get)
+- [List](#privateendpointconnections_list)
+
+## PrivateLinkResources
+
+- [Get](#privatelinkresources_get)
+- [List](#privatelinkresources_list)
+
+## TimeSeriesDatabaseConnections
+
+- [CreateOrUpdate](#timeseriesdatabaseconnections_createorupdate)
+- [Delete](#timeseriesdatabaseconnections_delete)
+- [Get](#timeseriesdatabaseconnections_get)
+- [List](#timeseriesdatabaseconnections_list)
+### DigitalTwins_CheckNameAvailability
+
+```java
+import com.azure.core.util.Context;
+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
+ */
+ /**
+ * Sample code: Check name Availability.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void checkNameAvailability(com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager
+ .digitalTwins()
+ .checkNameAvailabilityWithResponse(
+ "WestUS2", new CheckNameRequest().withName("myadtinstance"), Context.NONE);
+ }
+}
+```
+
+### DigitalTwins_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsIdentity;
+import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsIdentityType;
+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
+ */
+ /**
+ * Sample code: Put a DigitalTwinsInstance resource.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void putADigitalTwinsInstanceResource(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager
+ .digitalTwins()
+ .define("myDigitalTwinsService")
+ .withRegion("WestUS2")
+ .withExistingResourceGroup("resRg")
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_WithPublicNetworkAccess.json
+ */
+ /**
+ * Sample code: Put a DigitalTwinsInstance resource with publicNetworkAccess property.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void putADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager
+ .digitalTwins()
+ .define("myDigitalTwinsService")
+ .withRegion("WestUS2")
+ .withExistingResourceGroup("resRg")
+ .withPublicNetworkAccess(PublicNetworkAccess.ENABLED)
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPut_WithIdentity_example.json
+ */
+ /**
+ * Sample code: Put a DigitalTwinsInstance resource with identity.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void putADigitalTwinsInstanceResourceWithIdentity(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager
+ .digitalTwins()
+ .define("myDigitalTwinsService")
+ .withRegion("WestUS2")
+ .withExistingResourceGroup("resRg")
+ .withIdentity(new DigitalTwinsIdentity().withType(DigitalTwinsIdentityType.SYSTEM_ASSIGNED))
+ .create();
+ }
+}
+```
+
+### DigitalTwins_Delete
+
+```java
+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
+ */
+ /**
+ * Sample code: Delete a DigitalTwinsInstance resource.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void deleteADigitalTwinsInstanceResource(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.digitalTwins().delete("resRg", "myDigitalTwinsService", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsDelete_WithIdentity_example.json
+ */
+ /**
+ * Sample code: Delete a DigitalTwinsInstance resource with identity.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void deleteADigitalTwinsInstanceResourceWithIdentity(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.digitalTwins().delete("resRg", "myDigitalTwinsService", Context.NONE);
+ }
+}
+```
+
+### DigitalTwins_GetByResourceGroup
+
+```java
+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
+ */
+ /**
+ * Sample code: Get a DigitalTwinsInstance resource with identity.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void getADigitalTwinsInstanceResourceWithIdentity(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.digitalTwins().getByResourceGroupWithResponse("resRg", "myDigitalTwinsService", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_WithPrivateEndpointConnection_example.json
+ */
+ /**
+ * Sample code: Get a DigitalTwinsInstance resource with a private endpoint connection.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void getADigitalTwinsInstanceResourceWithAPrivateEndpointConnection(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.digitalTwins().getByResourceGroupWithResponse("resRg", "myDigitalTwinsService", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsGet_example.json
+ */
+ /**
+ * Sample code: Get a DigitalTwinsInstance resource.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void getADigitalTwinsInstanceResource(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.digitalTwins().getByResourceGroupWithResponse("resRg", "myDigitalTwinsService", Context.NONE);
+ }
+}
+```
+
+### DigitalTwins_List
+
+```java
+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
+ */
+ /**
+ * Sample code: Get DigitalTwinsInstance resources by subscription.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void getDigitalTwinsInstanceResourcesBySubscription(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.digitalTwins().list(Context.NONE);
+ }
+}
+```
+
+### DigitalTwins_ListByResourceGroup
+
+```java
+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
+ */
+ /**
+ * Sample code: Get DigitalTwinsInstance resources by resource group.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void getDigitalTwinsInstanceResourcesByResourceGroup(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.digitalTwins().listByResourceGroup("resRg", Context.NONE);
+ }
+}
+```
+
+### DigitalTwins_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsDescription;
+import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsIdentity;
+import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsIdentityType;
+import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsPatchProperties;
+import com.azure.resourcemanager.digitaltwins.models.PublicNetworkAccess;
+import java.util.HashMap;
+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
+ */
+ /**
+ * Sample code: Patch a DigitalTwinsInstance resource.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void patchADigitalTwinsInstanceResource(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ DigitalTwinsDescription resource =
+ manager
+ .digitalTwins()
+ .getByResourceGroupWithResponse("resRg", "myDigitalTwinsService", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("purpose", "dev")).apply();
+ }
+
+ /*
+ * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_WithPublicNetworkAccess.json
+ */
+ /**
+ * Sample code: Patch a DigitalTwinsInstance resource with publicNetworkAccess property.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void patchADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ DigitalTwinsDescription resource =
+ manager
+ .digitalTwins()
+ .getByResourceGroupWithResponse("resRg", "myDigitalTwinsService", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withProperties(new DigitalTwinsPatchProperties().withPublicNetworkAccess(PublicNetworkAccess.DISABLED))
+ .apply();
+ }
+
+ /*
+ * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsPatch_WithIdentity_example.json
+ */
+ /**
+ * Sample code: Patch a DigitalTwinsInstance resource with identity.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void patchADigitalTwinsInstanceResourceWithIdentity(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ DigitalTwinsDescription resource =
+ manager
+ .digitalTwins()
+ .getByResourceGroupWithResponse("resRg", "myDigitalTwinsService", Context.NONE)
+ .getValue();
+ resource.update().withIdentity(new DigitalTwinsIdentity().withType(DigitalTwinsIdentityType.NONE)).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### DigitalTwinsEndpoint_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.digitaltwins.models.AuthenticationType;
+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
+ */
+ /**
+ * Sample code: Put a DigitalTwinsEndpoint resource.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void putADigitalTwinsEndpointResource(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager
+ .digitalTwinsEndpoints()
+ .define("myServiceBus")
+ .withExistingDigitalTwinsInstance("resRg", "myDigitalTwinsService")
+ .withProperties(
+ new ServiceBus()
+ .withAuthenticationType(AuthenticationType.KEY_BASED)
+ .withPrimaryConnectionString(
+ "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=xyzxyzoX4=;EntityPath=abcabc")
+ .withSecondaryConnectionString(
+ "Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=xyzxyzoX4=;EntityPath=abcabc"))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointPut_WithIdentity_example.json
+ */
+ /**
+ * Sample code: Put a DigitalTwinsEndpoint resource with identity.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void putADigitalTwinsEndpointResourceWithIdentity(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager
+ .digitalTwinsEndpoints()
+ .define("myServiceBus")
+ .withExistingDigitalTwinsInstance("resRg", "myDigitalTwinsService")
+ .withProperties(
+ new ServiceBus()
+ .withAuthenticationType(AuthenticationType.IDENTITY_BASED)
+ .withEndpointUri("sb://mysb.servicebus.windows.net/")
+ .withEntityPath("mysbtopic"))
+ .create();
+ }
+}
+```
+
+### DigitalTwinsEndpoint_Delete
+
+```java
+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
+ */
+ /**
+ * Sample code: Delete a DigitalTwinsInstance endpoint.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void deleteADigitalTwinsInstanceEndpoint(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.digitalTwinsEndpoints().delete("resRg", "myDigitalTwinsService", "myendpoint", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointDelete_WithIdentity_example.json
+ */
+ /**
+ * Sample code: Delete a DigitalTwinsInstance endpoint with identity.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void deleteADigitalTwinsInstanceEndpointWithIdentity(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.digitalTwinsEndpoints().delete("resRg", "myDigitalTwinsService", "myendpoint", Context.NONE);
+ }
+}
+```
+
+### DigitalTwinsEndpoint_Get
+
+```java
+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
+ */
+ /**
+ * Sample code: Get a DigitalTwinsInstance endpoint.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void getADigitalTwinsInstanceEndpoint(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.digitalTwinsEndpoints().getWithResponse("resRg", "myDigitalTwinsService", "myServiceBus", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointGet_WithIdentity_example.json
+ */
+ /**
+ * Sample code: Get a DigitalTwinsInstance endpoint with identity.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void getADigitalTwinsInstanceEndpointWithIdentity(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.digitalTwinsEndpoints().getWithResponse("resRg", "myDigitalTwinsService", "myServiceBus", Context.NONE);
+ }
+}
+```
+
+### DigitalTwinsEndpoint_List
+
+```java
+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
+ */
+ /**
+ * Sample code: Get a DigitalTwinsInstance endpoints.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void getADigitalTwinsInstanceEndpoints(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.digitalTwinsEndpoints().list("resRg", "myDigitalTwinsService", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/preview/2021-06-30-preview/examples/DigitalTwinsEndpointsGet_WithIdentity_example.json
+ */
+ /**
+ * Sample code: Get a DigitalTwinsInstance endpoints with identity.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void getADigitalTwinsInstanceEndpointsWithIdentity(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.digitalTwinsEndpoints().list("resRg", "myDigitalTwinsService", Context.NONE);
+ }
+}
+```
+
+### Operations_List
+
+```java
+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
+ */
+ /**
+ * Sample code: Get available operations.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void getAvailableOperations(com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_CreateOrUpdate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.digitaltwins.models.ConnectionProperties;
+import com.azure.resourcemanager.digitaltwins.models.ConnectionPropertiesPrivateLinkServiceConnectionState;
+import com.azure.resourcemanager.digitaltwins.models.PrivateEndpointConnection;
+import com.azure.resourcemanager.digitaltwins.models.PrivateLinkServiceConnectionStatus;
+
+/** 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
+ */
+ /**
+ * Sample code: Update the status of a private endpoint connection with the given name.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void updateTheStatusOfAPrivateEndpointConnectionWithTheGivenName(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ PrivateEndpointConnection resource =
+ manager
+ .privateEndpointConnections()
+ .getWithResponse("resRg", "myDigitalTwinsService", "myPrivateConnection", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withProperties(
+ new ConnectionProperties()
+ .withPrivateLinkServiceConnectionState(
+ new ConnectionPropertiesPrivateLinkServiceConnectionState()
+ .withStatus(PrivateLinkServiceConnectionStatus.APPROVED)
+ .withDescription("Approved by johndoe@company.com.")))
+ .apply();
+ }
+}
+```
+
+### PrivateEndpointConnections_Delete
+
+```java
+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
+ */
+ /**
+ * Sample code: Delete private endpoint connection with the specified name.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void deletePrivateEndpointConnectionWithTheSpecifiedName(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager
+ .privateEndpointConnections()
+ .delete("resRg", "myDigitalTwinsService", "myPrivateConnection", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_Get
+
+```java
+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
+ */
+ /**
+ * Sample code: Get private endpoint connection properties for the given private endpoint.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void getPrivateEndpointConnectionPropertiesForTheGivenPrivateEndpoint(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager
+ .privateEndpointConnections()
+ .getWithResponse("resRg", "myDigitalTwinsService", "myPrivateConnection", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_List
+
+```java
+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
+ */
+ /**
+ * Sample code: List private endpoint connection properties.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void listPrivateEndpointConnectionProperties(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.privateEndpointConnections().listWithResponse("resRg", "myDigitalTwinsService", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResources_Get
+
+```java
+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
+ */
+ /**
+ * Sample code: Get the specified private link resource for the given Digital Twin.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void getTheSpecifiedPrivateLinkResourceForTheGivenDigitalTwin(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.privateLinkResources().getWithResponse("resRg", "myDigitalTwinsService", "subResource", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResources_List
+
+```java
+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
+ */
+ /**
+ * Sample code: List private link resources for given Digital Twin.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void listPrivateLinkResourcesForGivenDigitalTwin(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.privateLinkResources().listWithResponse("resRg", "myDigitalTwinsService", Context.NONE);
+ }
+}
+```
+
+### TimeSeriesDatabaseConnections_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.digitaltwins.models.AzureDataExplorerConnectionProperties;
+
+/** 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
+ */
+ /**
+ * Sample code: Create or replace a time series database connection for a DigitalTwins instance.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void createOrReplaceATimeSeriesDatabaseConnectionForADigitalTwinsInstance(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager
+ .timeSeriesDatabaseConnections()
+ .define("myConnection")
+ .withExistingDigitalTwinsInstance("resRg", "myDigitalTwinsService")
+ .withProperties(
+ new AzureDataExplorerConnectionProperties()
+ .withAdxResourceId(
+ "/subscriptions/c493073e-2460-45ba-a403-f3e0df1e9feg/resourceGroups/testrg/providers/Microsoft.Kusto/clusters/mycluster")
+ .withAdxEndpointUri("https://mycluster.kusto.windows.net")
+ .withAdxDatabaseName("myDatabase")
+ .withAdxTableName("myTable")
+ .withEventHubEndpointUri("sb://myeh.servicebus.windows.net/")
+ .withEventHubEntityPath("myeh")
+ .withEventHubNamespaceResourceId(
+ "/subscriptions/c493073e-2460-45ba-a403-f3e0df1e9feg/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/myeh"))
+ .create();
+ }
+}
+```
+
+### TimeSeriesDatabaseConnections_Delete
+
+```java
+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
+ */
+ /**
+ * Sample code: Delete a time series database connection for a DigitalTwins instance.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void deleteATimeSeriesDatabaseConnectionForADigitalTwinsInstance(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.timeSeriesDatabaseConnections().delete("resRg", "myDigitalTwinsService", "myConnection", Context.NONE);
+ }
+}
+```
+
+### TimeSeriesDatabaseConnections_Get
+
+```java
+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
+ */
+ /**
+ * Sample code: Get time series database connection for a DigitalTwins instance.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void getTimeSeriesDatabaseConnectionForADigitalTwinsInstance(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager
+ .timeSeriesDatabaseConnections()
+ .getWithResponse("resRg", "myDigitalTwinsService", "myConnection", Context.NONE);
+ }
+}
+```
+
+### TimeSeriesDatabaseConnections_List
+
+```java
+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
+ */
+ /**
+ * Sample code: List time series database connections for a DigitalTwins instance.
+ *
+ * @param manager Entry point to AzureDigitalTwinsManager.
+ */
+ public static void listTimeSeriesDatabaseConnectionsForADigitalTwinsInstance(
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager) {
+ manager.timeSeriesDatabaseConnections().list("resRg", "myDigitalTwinsService", Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/pom.xml b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/pom.xml
index 18ed27202860..13dbf5817f37 100644
--- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/pom.xml
+++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/pom.xml
@@ -1,79 +1,79 @@
- 4.0.0
-
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
-
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
- com.azure.resourcemanager
- azure-resourcemanager-digitaltwins
- 1.0.0-beta.2
- jar
+ com.azure.resourcemanager
+ azure-resourcemanager-digitaltwins
+ 1.0.0-beta.2
+ jar
- Microsoft Azure SDK for AzureDigitalTwins Management
- This package contains Microsoft Azure SDK for AzureDigitalTwins Management SDK. Azure Digital Twins Client for managing DigitalTwinsInstance. Package tag package-2020-12. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
- https://github.com/Azure/azure-sdk-for-java
+ 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.
+ https://github.com/Azure/azure-sdk-for-java
-
-
- The MIT License (MIT)
- http://opensource.org/licenses/MIT
- repo
-
-
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
-
- https://github.com/Azure/azure-sdk-for-java
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- HEAD
-
-
-
- microsoft
- Microsoft
-
-
-
- UTF-8
- true
-
-
-
- com.azure
- azure-core
- 1.25.0
-
-
- com.azure
- azure-core-management
- 1.5.2
-
-
- com.azure
- azure-identity
- 1.4.4
- test
-
-
- com.azure.resourcemanager
- azure-resourcemanager-resources
- 2.11.0
- test
-
-
- com.azure
- azure-core-test
- 1.7.8
- test
-
-
- org.slf4j
- slf4j-simple
- 1.7.32
- test
-
-
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.25.0
+
+
+ com.azure
+ azure-core-management
+ 1.5.2
+
+
+ com.azure
+ azure-identity
+ 1.4.4
+ test
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-resources
+ 2.11.0
+ test
+
+
+ com.azure
+ azure-core-test
+ 1.7.8
+ test
+
+
+ org.slf4j
+ slf4j-simple
+ 1.7.32
+ test
+
+
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 97d246104348..9f339f17f37b 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
@@ -8,8 +8,8 @@
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpPipeline;
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.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
@@ -17,6 +17,7 @@
import com.azure.core.http.policy.RequestIdPolicy;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
@@ -27,16 +28,19 @@
import com.azure.resourcemanager.digitaltwins.implementation.OperationsImpl;
import com.azure.resourcemanager.digitaltwins.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.digitaltwins.implementation.PrivateLinkResourcesImpl;
+import com.azure.resourcemanager.digitaltwins.implementation.TimeSeriesDatabaseConnectionsImpl;
import com.azure.resourcemanager.digitaltwins.models.DigitalTwins;
import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsEndpoints;
import com.azure.resourcemanager.digitaltwins.models.Operations;
import com.azure.resourcemanager.digitaltwins.models.PrivateEndpointConnections;
import com.azure.resourcemanager.digitaltwins.models.PrivateLinkResources;
+import com.azure.resourcemanager.digitaltwins.models.TimeSeriesDatabaseConnections;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
+import java.util.stream.Collectors;
/** Entry point to AzureDigitalTwinsManager. Azure Digital Twins Client for managing DigitalTwinsInstance. */
public final class AzureDigitalTwinsManager {
@@ -50,6 +54,8 @@ public final class AzureDigitalTwinsManager {
private PrivateEndpointConnections privateEndpointConnections;
+ private TimeSeriesDatabaseConnections timeSeriesDatabaseConnections;
+
private final AzureDigitalTwinsManagementClient clientObject;
private AzureDigitalTwinsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -93,6 +99,7 @@ public static final class Configurable {
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
private Duration defaultPollInterval;
@@ -132,6 +139,17 @@ public Configurable withPolicy(HttpPipelinePolicy policy) {
return this;
}
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
/**
* Sets the retry policy to the HTTP pipeline.
*
@@ -174,7 +192,7 @@ public AzureDigitalTwinsManager authenticate(TokenCredential credential, AzurePr
.append("-")
.append("com.azure.resourcemanager.digitaltwins")
.append("/")
- .append("1.0.0-beta.1");
+ .append("1.0.0-beta.2");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -188,19 +206,33 @@ public AzureDigitalTwinsManager authenticate(TokenCredential credential, AzurePr
userAgentBuilder.append(" (auto-generated)");
}
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
if (retryPolicy == null) {
retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies
- .add(
- new BearerTokenAuthenticationPolicy(
- credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
@@ -253,6 +285,15 @@ public PrivateEndpointConnections privateEndpointConnections() {
return privateEndpointConnections;
}
+ /** @return Resource collection API of TimeSeriesDatabaseConnections. */
+ public TimeSeriesDatabaseConnections timeSeriesDatabaseConnections() {
+ if (this.timeSeriesDatabaseConnections == null) {
+ this.timeSeriesDatabaseConnections =
+ new TimeSeriesDatabaseConnectionsImpl(clientObject.getTimeSeriesDatabaseConnections(), this);
+ }
+ return timeSeriesDatabaseConnections;
+ }
+
/**
* @return Wrapped service client AzureDigitalTwinsManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/AzureDigitalTwinsManagementClient.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/AzureDigitalTwinsManagementClient.java
index ca03c122ca38..a4c8eb830070 100644
--- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/AzureDigitalTwinsManagementClient.java
+++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/AzureDigitalTwinsManagementClient.java
@@ -78,4 +78,11 @@ public interface AzureDigitalTwinsManagementClient {
* @return the PrivateEndpointConnectionsClient object.
*/
PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+
+ /**
+ * Gets the TimeSeriesDatabaseConnectionsClient object to access its operations.
+ *
+ * @return the TimeSeriesDatabaseConnectionsClient object.
+ */
+ TimeSeriesDatabaseConnectionsClient getTimeSeriesDatabaseConnections();
}
diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/DigitalTwinsClient.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/DigitalTwinsClient.java
index a140b4d27b1a..db875c7309c6 100644
--- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/DigitalTwinsClient.java
+++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/DigitalTwinsClient.java
@@ -40,7 +40,7 @@ public interface DigitalTwinsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstances resource.
+ * @return digitalTwinsInstances resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -57,9 +57,9 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link SyncPoller} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DigitalTwinsDescriptionInner> beginCreateOrUpdate(
String resourceGroupName, String resourceName, DigitalTwinsDescriptionInner digitalTwinsCreate);
@@ -75,9 +75,9 @@ SyncPoller, DigitalTwinsDescriptionInne
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link SyncPoller} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DigitalTwinsDescriptionInner> beginCreateOrUpdate(
String resourceGroupName,
String resourceName,
@@ -131,9 +131,9 @@ DigitalTwinsDescriptionInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link SyncPoller} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DigitalTwinsDescriptionInner> beginUpdate(
String resourceGroupName, String resourceName, DigitalTwinsPatchDescription digitalTwinsPatchDescription);
@@ -147,9 +147,9 @@ SyncPoller, DigitalTwinsDescriptionInne
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link SyncPoller} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DigitalTwinsDescriptionInner> beginUpdate(
String resourceGroupName,
String resourceName,
@@ -198,9 +198,9 @@ DigitalTwinsDescriptionInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link SyncPoller} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DigitalTwinsDescriptionInner> beginDelete(
String resourceGroupName, String resourceName);
@@ -213,9 +213,9 @@ SyncPoller, DigitalTwinsDescriptionInne
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link SyncPoller} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DigitalTwinsDescriptionInner> beginDelete(
String resourceGroupName, String resourceName, Context context);
@@ -251,7 +251,7 @@ SyncPoller, DigitalTwinsDescriptionInne
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the DigitalTwinsInstances in a subscription.
+ * @return all the DigitalTwinsInstances in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -263,7 +263,7 @@ SyncPoller, DigitalTwinsDescriptionInne
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the DigitalTwinsInstances in a subscription.
+ * @return all the DigitalTwinsInstances in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -275,7 +275,7 @@ SyncPoller, DigitalTwinsDescriptionInne
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the DigitalTwinsInstances in a resource group.
+ * @return all the DigitalTwinsInstances in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -288,7 +288,7 @@ SyncPoller, DigitalTwinsDescriptionInne
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the DigitalTwinsInstances in a resource group.
+ * @return all the DigitalTwinsInstances in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -317,7 +317,7 @@ SyncPoller, DigitalTwinsDescriptionInne
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result returned from a check name availability request.
+ * @return the result returned from a check name availability request along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response checkNameAvailabilityWithResponse(
diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/DigitalTwinsEndpointsClient.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/DigitalTwinsEndpointsClient.java
index 82562c153353..018e20322772 100644
--- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/DigitalTwinsEndpointsClient.java
+++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/DigitalTwinsEndpointsClient.java
@@ -23,7 +23,7 @@ public interface DigitalTwinsEndpointsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance Endpoints.
+ * @return digitalTwinsInstance Endpoints as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String resourceName);
@@ -37,7 +37,7 @@ public interface DigitalTwinsEndpointsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance Endpoints.
+ * @return digitalTwinsInstance Endpoints as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -67,7 +67,7 @@ PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstances Endpoint.
+ * @return digitalTwinsInstances Endpoint along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -83,9 +83,9 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return the {@link SyncPoller} for polling of digitalTwinsInstance endpoint resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DigitalTwinsEndpointResourceInner> beginCreateOrUpdate(
String resourceGroupName,
String resourceName,
@@ -103,9 +103,9 @@ SyncPoller, DigitalTwinsEndpointRe
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return the {@link SyncPoller} for polling of digitalTwinsInstance endpoint resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DigitalTwinsEndpointResourceInner> beginCreateOrUpdate(
String resourceGroupName,
String resourceName,
@@ -162,9 +162,9 @@ DigitalTwinsEndpointResourceInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return the {@link SyncPoller} for polling of digitalTwinsInstance endpoint resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DigitalTwinsEndpointResourceInner> beginDelete(
String resourceGroupName, String resourceName, String endpointName);
@@ -178,9 +178,9 @@ SyncPoller, DigitalTwinsEndpointRe
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return the {@link SyncPoller} for polling of digitalTwinsInstance endpoint resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DigitalTwinsEndpointResourceInner> beginDelete(
String resourceGroupName, String resourceName, String endpointName, Context context);
diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/OperationsClient.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/OperationsClient.java
index b2becef60114..c1010e38e6e4 100644
--- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/OperationsClient.java
+++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/OperationsClient.java
@@ -17,7 +17,7 @@ public interface OperationsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of DigitalTwins service operations.
+ * @return a list of DigitalTwins service operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +29,7 @@ public interface OperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of DigitalTwins service operations.
+ * @return a list of DigitalTwins service operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/PrivateEndpointConnectionsClient.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/PrivateEndpointConnectionsClient.java
index a64b17e56a4a..6634025fdf4b 100644
--- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/PrivateEndpointConnectionsClient.java
+++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/PrivateEndpointConnectionsClient.java
@@ -37,7 +37,7 @@ public interface PrivateEndpointConnectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the available private link connections for a Digital Twin.
+ * @return the available private link connections for a Digital Twin along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(
@@ -68,7 +68,7 @@ PrivateEndpointConnectionInner get(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return private endpoint connection properties for the given private endpoint.
+ * @return private endpoint connection properties for the given private endpoint along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -83,9 +83,9 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String resourceName, String privateEndpointConnectionName);
@@ -99,9 +99,9 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context);
@@ -142,9 +142,9 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the private endpoint connection of a Digital Twin.
+ * @return the {@link SyncPoller} for polling of the private endpoint connection of a Digital Twin.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
String resourceGroupName,
String resourceName,
@@ -162,9 +162,9 @@ SyncPoller, PrivateEndpointConnection
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the private endpoint connection of a Digital Twin.
+ * @return the {@link SyncPoller} for polling of the private endpoint connection of a Digital Twin.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
String resourceGroupName,
String resourceName,
diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/PrivateLinkResourcesClient.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/PrivateLinkResourcesClient.java
index 49e6a0ff1c37..602728389447 100644
--- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/PrivateLinkResourcesClient.java
+++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/PrivateLinkResourcesClient.java
@@ -35,7 +35,7 @@ public interface PrivateLinkResourcesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the available private link resources for a Digital Twin.
+ * @return the available private link resources for a Digital Twin along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(
@@ -65,7 +65,7 @@ Response listWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified private link resource for the given Digital Twin.
+ * @return the specified private link resource for the given Digital Twin along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/TimeSeriesDatabaseConnectionsClient.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/TimeSeriesDatabaseConnectionsClient.java
new file mode 100644
index 000000000000..6b01cba85115
--- /dev/null
+++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/TimeSeriesDatabaseConnectionsClient.java
@@ -0,0 +1,220 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.digitaltwins.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.digitaltwins.fluent.models.TimeSeriesDatabaseConnectionInner;
+
+/** An instance of this class provides access to all the operations defined in TimeSeriesDatabaseConnectionsClient. */
+public interface TimeSeriesDatabaseConnectionsClient {
+ /**
+ * Get all existing time series database connections for this DigitalTwins instance.
+ *
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
+ * @param resourceName The name of the DigitalTwinsInstance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all existing time series database connections for this DigitalTwins instance as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String resourceName);
+
+ /**
+ * Get all existing time series database connections for this DigitalTwins instance.
+ *
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
+ * @param resourceName The name of the DigitalTwinsInstance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all existing time series database connections for this DigitalTwins instance as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String resourceName, Context context);
+
+ /**
+ * Get the description of an existing time series database connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
+ * @param resourceName The name of the DigitalTwinsInstance.
+ * @param timeSeriesDatabaseConnectionName Name of time series database connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the description of an existing time series database connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TimeSeriesDatabaseConnectionInner get(
+ String resourceGroupName, String resourceName, String timeSeriesDatabaseConnectionName);
+
+ /**
+ * Get the description of an existing time series database connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
+ * @param resourceName The name of the DigitalTwinsInstance.
+ * @param timeSeriesDatabaseConnectionName Name of time series database connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the description of an existing time series database connection along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String resourceName, String timeSeriesDatabaseConnectionName, Context context);
+
+ /**
+ * Create or update a time series database connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
+ * @param resourceName The name of the DigitalTwinsInstance.
+ * @param timeSeriesDatabaseConnectionName Name of time series database connection.
+ * @param timeSeriesDatabaseConnectionDescription The time series database connection description.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of describes a time series database connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, TimeSeriesDatabaseConnectionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String resourceName,
+ String timeSeriesDatabaseConnectionName,
+ TimeSeriesDatabaseConnectionInner timeSeriesDatabaseConnectionDescription);
+
+ /**
+ * Create or update a time series database connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
+ * @param resourceName The name of the DigitalTwinsInstance.
+ * @param timeSeriesDatabaseConnectionName Name of time series database connection.
+ * @param timeSeriesDatabaseConnectionDescription The time series database connection description.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of describes a time series database connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, TimeSeriesDatabaseConnectionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String resourceName,
+ String timeSeriesDatabaseConnectionName,
+ TimeSeriesDatabaseConnectionInner timeSeriesDatabaseConnectionDescription,
+ Context context);
+
+ /**
+ * Create or update a time series database connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
+ * @param resourceName The name of the DigitalTwinsInstance.
+ * @param timeSeriesDatabaseConnectionName Name of time series database connection.
+ * @param timeSeriesDatabaseConnectionDescription The time series database connection description.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a time series database connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TimeSeriesDatabaseConnectionInner createOrUpdate(
+ String resourceGroupName,
+ String resourceName,
+ String timeSeriesDatabaseConnectionName,
+ TimeSeriesDatabaseConnectionInner timeSeriesDatabaseConnectionDescription);
+
+ /**
+ * Create or update a time series database connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
+ * @param resourceName The name of the DigitalTwinsInstance.
+ * @param timeSeriesDatabaseConnectionName Name of time series database connection.
+ * @param timeSeriesDatabaseConnectionDescription The time series database connection description.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a time series database connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TimeSeriesDatabaseConnectionInner createOrUpdate(
+ String resourceGroupName,
+ String resourceName,
+ String timeSeriesDatabaseConnectionName,
+ TimeSeriesDatabaseConnectionInner timeSeriesDatabaseConnectionDescription,
+ Context context);
+
+ /**
+ * Delete a time series database connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
+ * @param resourceName The name of the DigitalTwinsInstance.
+ * @param timeSeriesDatabaseConnectionName Name of time series database connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of describes a time series database connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, TimeSeriesDatabaseConnectionInner> beginDelete(
+ String resourceGroupName, String resourceName, String timeSeriesDatabaseConnectionName);
+
+ /**
+ * Delete a time series database connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
+ * @param resourceName The name of the DigitalTwinsInstance.
+ * @param timeSeriesDatabaseConnectionName Name of time series database connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of describes a time series database connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, TimeSeriesDatabaseConnectionInner> beginDelete(
+ String resourceGroupName, String resourceName, String timeSeriesDatabaseConnectionName, Context context);
+
+ /**
+ * Delete a time series database connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
+ * @param resourceName The name of the DigitalTwinsInstance.
+ * @param timeSeriesDatabaseConnectionName Name of time series database connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a time series database connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TimeSeriesDatabaseConnectionInner delete(
+ String resourceGroupName, String resourceName, String timeSeriesDatabaseConnectionName);
+
+ /**
+ * Delete a time series database connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
+ * @param resourceName The name of the DigitalTwinsInstance.
+ * @param timeSeriesDatabaseConnectionName Name of time series database connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a time series database connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TimeSeriesDatabaseConnectionInner delete(
+ String resourceGroupName, String resourceName, String timeSeriesDatabaseConnectionName, Context context);
+}
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 ca6e348287f7..a26542f3ab6b 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,7 +5,6 @@
package com.azure.resourcemanager.digitaltwins.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsIdentity;
import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsResource;
@@ -18,46 +17,45 @@
import java.util.Map;
/** The description of the DigitalTwins service. */
-@JsonFlatten
@Fluent
-public class DigitalTwinsDescriptionInner extends DigitalTwinsResource {
+public final class DigitalTwinsDescriptionInner extends DigitalTwinsResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(DigitalTwinsDescriptionInner.class);
/*
- * Time when DigitalTwinsInstance was created.
+ * DigitalTwins instance properties.
*/
- @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime createdTime;
+ @JsonProperty(value = "properties")
+ private DigitalTwinsProperties innerProperties;
- /*
- * Time when DigitalTwinsInstance was updated.
- */
- @JsonProperty(value = "properties.lastUpdatedTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastUpdatedTime;
-
- /*
- * The provisioning state.
+ /**
+ * Get the innerProperties property: DigitalTwins instance properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private ProvisioningState provisioningState;
+ private DigitalTwinsProperties innerProperties() {
+ return this.innerProperties;
+ }
- /*
- * Api endpoint to work with DigitalTwinsInstance.
- */
- @JsonProperty(value = "properties.hostName", access = JsonProperty.Access.WRITE_ONLY)
- private String hostname;
+ /** {@inheritDoc} */
+ @Override
+ public DigitalTwinsDescriptionInner withIdentity(DigitalTwinsIdentity identity) {
+ super.withIdentity(identity);
+ return this;
+ }
- /*
- * The privateEndpointConnections property.
- */
- @JsonProperty(value = "properties.privateEndpointConnections")
- private List privateEndpointConnections;
+ /** {@inheritDoc} */
+ @Override
+ public DigitalTwinsDescriptionInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
- /*
- * Public network access for the DigitalTwinsInstance.
- */
- @JsonProperty(value = "properties.publicNetworkAccess")
- private PublicNetworkAccess publicNetworkAccess;
+ /** {@inheritDoc} */
+ @Override
+ public DigitalTwinsDescriptionInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
/**
* Get the createdTime property: Time when DigitalTwinsInstance was created.
@@ -65,7 +63,7 @@ public class DigitalTwinsDescriptionInner extends DigitalTwinsResource {
* @return the createdTime value.
*/
public OffsetDateTime createdTime() {
- return this.createdTime;
+ return this.innerProperties() == null ? null : this.innerProperties().createdTime();
}
/**
@@ -74,7 +72,7 @@ public OffsetDateTime createdTime() {
* @return the lastUpdatedTime value.
*/
public OffsetDateTime lastUpdatedTime() {
- return this.lastUpdatedTime;
+ return this.innerProperties() == null ? null : this.innerProperties().lastUpdatedTime();
}
/**
@@ -83,7 +81,7 @@ public OffsetDateTime lastUpdatedTime() {
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
- return this.provisioningState;
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
/**
@@ -92,27 +90,30 @@ public ProvisioningState provisioningState() {
* @return the hostname value.
*/
public String hostname() {
- return this.hostname;
+ return this.innerProperties() == null ? null : this.innerProperties().hostname();
}
/**
- * Get the privateEndpointConnections property: The privateEndpointConnections property.
+ * Get the privateEndpointConnections property: The private endpoint connections.
*
* @return the privateEndpointConnections value.
*/
public List privateEndpointConnections() {
- return this.privateEndpointConnections;
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections();
}
/**
- * Set the privateEndpointConnections property: The privateEndpointConnections property.
+ * Set the privateEndpointConnections property: The private endpoint connections.
*
* @param privateEndpointConnections the privateEndpointConnections value to set.
* @return the DigitalTwinsDescriptionInner object itself.
*/
public DigitalTwinsDescriptionInner withPrivateEndpointConnections(
List privateEndpointConnections) {
- this.privateEndpointConnections = privateEndpointConnections;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DigitalTwinsProperties();
+ }
+ this.innerProperties().withPrivateEndpointConnections(privateEndpointConnections);
return this;
}
@@ -122,7 +123,7 @@ public DigitalTwinsDescriptionInner withPrivateEndpointConnections(
* @return the publicNetworkAccess value.
*/
public PublicNetworkAccess publicNetworkAccess() {
- return this.publicNetworkAccess;
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
}
/**
@@ -132,28 +133,10 @@ public PublicNetworkAccess publicNetworkAccess() {
* @return the DigitalTwinsDescriptionInner object itself.
*/
public DigitalTwinsDescriptionInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
- this.publicNetworkAccess = publicNetworkAccess;
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public DigitalTwinsDescriptionInner withIdentity(DigitalTwinsIdentity identity) {
- super.withIdentity(identity);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public DigitalTwinsDescriptionInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public DigitalTwinsDescriptionInner withTags(Map tags) {
- super.withTags(tags);
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DigitalTwinsProperties();
+ }
+ this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
return this;
}
@@ -165,8 +148,8 @@ public DigitalTwinsDescriptionInner withTags(Map tags) {
@Override
public void validate() {
super.validate();
- if (privateEndpointConnections() != null) {
- privateEndpointConnections().forEach(e -> e.validate());
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
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
new file mode 100644
index 000000000000..63c8ad1e27ed
--- /dev/null
+++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/DigitalTwinsProperties.java
@@ -0,0 +1,144 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+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;
+
+/** The properties of a DigitalTwinsInstance. */
+@Fluent
+public final class DigitalTwinsProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DigitalTwinsProperties.class);
+
+ /*
+ * Time when DigitalTwinsInstance was created.
+ */
+ @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdTime;
+
+ /*
+ * Time when DigitalTwinsInstance was updated.
+ */
+ @JsonProperty(value = "lastUpdatedTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastUpdatedTime;
+
+ /*
+ * The provisioning state.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * Api endpoint to work with DigitalTwinsInstance.
+ */
+ @JsonProperty(value = "hostName", access = JsonProperty.Access.WRITE_ONLY)
+ private String hostname;
+
+ /*
+ * The private endpoint connections.
+ */
+ @JsonProperty(value = "privateEndpointConnections")
+ private List privateEndpointConnections;
+
+ /*
+ * Public network access for the DigitalTwinsInstance.
+ */
+ @JsonProperty(value = "publicNetworkAccess")
+ private PublicNetworkAccess publicNetworkAccess;
+
+ /**
+ * Get the createdTime property: Time when DigitalTwinsInstance was created.
+ *
+ * @return the createdTime value.
+ */
+ public OffsetDateTime createdTime() {
+ return this.createdTime;
+ }
+
+ /**
+ * Get the lastUpdatedTime property: Time when DigitalTwinsInstance was updated.
+ *
+ * @return the lastUpdatedTime value.
+ */
+ public OffsetDateTime lastUpdatedTime() {
+ return this.lastUpdatedTime;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the hostname property: Api endpoint to work with DigitalTwinsInstance.
+ *
+ * @return the hostname value.
+ */
+ public String hostname() {
+ return this.hostname;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: The private endpoint connections.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /**
+ * Set the privateEndpointConnections property: The private endpoint connections.
+ *
+ * @param privateEndpointConnections the privateEndpointConnections value to set.
+ * @return the DigitalTwinsProperties object itself.
+ */
+ public DigitalTwinsProperties withPrivateEndpointConnections(
+ List privateEndpointConnections) {
+ this.privateEndpointConnections = privateEndpointConnections;
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: Public network access for the DigitalTwinsInstance.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set the publicNetworkAccess property: Public network access for the DigitalTwinsInstance.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the DigitalTwinsProperties object itself.
+ */
+ public DigitalTwinsProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (privateEndpointConnections() != null) {
+ privateEndpointConnections().forEach(e -> e.validate());
+ }
+ }
+}
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 6db04ec52cba..84affdcc2203 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
@@ -16,7 +16,7 @@ public final class GroupIdInformationInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(GroupIdInformationInner.class);
/*
- * The properties for a group information object.
+ * The group information properties.
*/
@JsonProperty(value = "properties", required = true)
private GroupIdInformationProperties properties;
@@ -40,7 +40,7 @@ public final class GroupIdInformationInner {
private String type;
/**
- * Get the properties property: The properties for a group information object.
+ * Get the properties property: The group information properties.
*
* @return the properties value.
*/
@@ -49,7 +49,7 @@ public GroupIdInformationProperties properties() {
}
/**
- * Set the properties property: The properties for a group information object.
+ * Set the properties property: The group information properties.
*
* @param properties the properties value to set.
* @return the GroupIdInformationInner object itself.
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 b653f956b0c1..ac94705bc2c0 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
@@ -8,7 +8,9 @@
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;
/** DigitalTwins service REST API operation. */
@Fluent
@@ -39,6 +41,13 @@ public final class OperationInner {
@JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isDataAction;
+ /*
+ * Operation properties.
+ */
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map properties;
+
/**
* Get the name property: Operation name: {provider}/{resource}/{read | write | action | delete}.
*
@@ -86,6 +95,15 @@ public Boolean isDataAction() {
return this.isDataAction;
}
+ /**
+ * Get the properties property: Operation properties.
+ *
+ * @return the properties value.
+ */
+ public Map properties() {
+ return this.properties;
+ }
+
/**
* Validates the instance.
*
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 4f634cdc1341..e5fe11340a51 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
@@ -6,6 +6,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+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;
@@ -17,13 +18,20 @@ public final class PrivateEndpointConnectionInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class);
/*
- * The properties of a private endpoint connection.
+ * The connection properties.
*/
@JsonProperty(value = "properties", required = true)
private ConnectionProperties properties;
+ /*
+ * Metadata pertaining to creation and last modification of the private
+ * endpoint connection.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/**
- * Get the properties property: The properties of a private endpoint connection.
+ * Get the properties property: The connection properties.
*
* @return the properties value.
*/
@@ -32,7 +40,7 @@ public ConnectionProperties properties() {
}
/**
- * Set the properties property: The properties of a private endpoint connection.
+ * Set the properties property: The connection properties.
*
* @param properties the properties value to set.
* @return the PrivateEndpointConnectionInner object itself.
@@ -42,6 +50,16 @@ public PrivateEndpointConnectionInner withProperties(ConnectionProperties proper
return this;
}
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the private endpoint
+ * connection.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Validates the instance.
*
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
new file mode 100644
index 000000000000..6d326a53799d
--- /dev/null
+++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/fluent/models/TimeSeriesDatabaseConnectionInner.java
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+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.
+ */
+ @JsonProperty(value = "properties")
+ private TimeSeriesDatabaseConnectionProperties properties;
+
+ /**
+ * Get the properties property: Properties of a specific time series database connection.
+ *
+ * @return the properties value.
+ */
+ public TimeSeriesDatabaseConnectionProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of a specific time series database connection.
+ *
+ * @param properties the properties value to set.
+ * @return the TimeSeriesDatabaseConnectionInner object itself.
+ */
+ public TimeSeriesDatabaseConnectionInner withProperties(TimeSeriesDatabaseConnectionProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
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 d50a4ff4639e..444eb570c2fc 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
@@ -27,6 +27,7 @@
import com.azure.resourcemanager.digitaltwins.fluent.OperationsClient;
import com.azure.resourcemanager.digitaltwins.fluent.PrivateEndpointConnectionsClient;
import com.azure.resourcemanager.digitaltwins.fluent.PrivateLinkResourcesClient;
+import com.azure.resourcemanager.digitaltwins.fluent.TimeSeriesDatabaseConnectionsClient;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;
@@ -174,6 +175,18 @@ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
return this.privateEndpointConnections;
}
+ /** The TimeSeriesDatabaseConnectionsClient object to access its operations. */
+ private final TimeSeriesDatabaseConnectionsClient timeSeriesDatabaseConnections;
+
+ /**
+ * Gets the TimeSeriesDatabaseConnectionsClient object to access its operations.
+ *
+ * @return the TimeSeriesDatabaseConnectionsClient object.
+ */
+ public TimeSeriesDatabaseConnectionsClient getTimeSeriesDatabaseConnections() {
+ return this.timeSeriesDatabaseConnections;
+ }
+
/**
* Initializes an instance of AzureDigitalTwinsManagementClient client.
*
@@ -196,12 +209,13 @@ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2020-12-01";
+ this.apiVersion = "2021-06-30-preview";
this.digitalTwins = new DigitalTwinsClientImpl(this);
this.digitalTwinsEndpoints = new DigitalTwinsEndpointsClientImpl(this);
this.operations = new OperationsClientImpl(this);
this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
+ this.timeSeriesDatabaseConnections = new TimeSeriesDatabaseConnectionsClientImpl(this);
}
/**
diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/CheckNameResultImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/CheckNameResultImpl.java
index f353ff6c4c55..4dfb86b9b1b3 100644
--- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/CheckNameResultImpl.java
+++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/CheckNameResultImpl.java
@@ -4,7 +4,6 @@
package com.azure.resourcemanager.digitaltwins.implementation;
-import com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager;
import com.azure.resourcemanager.digitaltwins.fluent.models.CheckNameResultInner;
import com.azure.resourcemanager.digitaltwins.models.CheckNameResult;
import com.azure.resourcemanager.digitaltwins.models.Reason;
@@ -12,9 +11,11 @@
public final class CheckNameResultImpl implements CheckNameResult {
private CheckNameResultInner innerObject;
- private final AzureDigitalTwinsManager serviceManager;
+ private final com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager;
- CheckNameResultImpl(CheckNameResultInner innerObject, AzureDigitalTwinsManager serviceManager) {
+ CheckNameResultImpl(
+ CheckNameResultInner innerObject,
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
@@ -35,7 +36,7 @@ public CheckNameResultInner innerModel() {
return this.innerObject;
}
- private AzureDigitalTwinsManager manager() {
+ private com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager() {
return this.serviceManager;
}
}
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 d208510051d9..8605a67406e1 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
@@ -203,7 +203,7 @@ Mono> listByResourceGroupNext(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstances resource.
+ * @return digitalTwinsInstances resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -240,7 +240,7 @@ private Mono> getByResourceGroupWithRespo
resourceName,
accept,
context))
- .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
@@ -252,7 +252,7 @@ private Mono> getByResourceGroupWithRespo
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstances resource.
+ * @return digitalTwinsInstances resource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -297,7 +297,7 @@ private Mono> getByResourceGroupWithRespo
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstances resource.
+ * @return digitalTwinsInstances resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getByResourceGroupAsync(String resourceGroupName, String resourceName) {
@@ -336,7 +336,7 @@ public DigitalTwinsDescriptionInner getByResourceGroup(String resourceGroupName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstances resource.
+ * @return digitalTwinsInstances resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getByResourceGroupWithResponse(
@@ -355,7 +355,8 @@ public Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the description of the DigitalTwins service along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -399,7 +400,7 @@ private Mono>> createOrUpdateWithResponseAsync(
digitalTwinsCreate,
accept,
context))
- .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
@@ -414,7 +415,8 @@ private Mono>> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the description of the DigitalTwins service along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -472,9 +474,9 @@ private Mono>> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link PollerFlux} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DigitalTwinsDescriptionInner> beginCreateOrUpdateAsync(
String resourceGroupName, String resourceName, DigitalTwinsDescriptionInner digitalTwinsCreate) {
Mono>> mono =
@@ -486,7 +488,7 @@ private PollerFlux, DigitalTwinsDescrip
this.client.getHttpPipeline(),
DigitalTwinsDescriptionInner.class,
DigitalTwinsDescriptionInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -501,9 +503,9 @@ private PollerFlux, DigitalTwinsDescrip
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link PollerFlux} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DigitalTwinsDescriptionInner> beginCreateOrUpdateAsync(
String resourceGroupName,
String resourceName,
@@ -533,9 +535,9 @@ private PollerFlux, DigitalTwinsDescrip
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link SyncPoller} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DigitalTwinsDescriptionInner> beginCreateOrUpdate(
String resourceGroupName, String resourceName, DigitalTwinsDescriptionInner digitalTwinsCreate) {
return beginCreateOrUpdateAsync(resourceGroupName, resourceName, digitalTwinsCreate).getSyncPoller();
@@ -553,9 +555,9 @@ public SyncPoller, DigitalTwinsDescript
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link SyncPoller} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DigitalTwinsDescriptionInner> beginCreateOrUpdate(
String resourceGroupName,
String resourceName,
@@ -575,7 +577,7 @@ public SyncPoller, DigitalTwinsDescript
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the description of the DigitalTwins service on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -597,7 +599,7 @@ private Mono createOrUpdateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the description of the DigitalTwins service on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -661,7 +663,8 @@ public DigitalTwinsDescriptionInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the description of the DigitalTwins service along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -707,7 +710,7 @@ private Mono>> updateWithResponseAsync(
digitalTwinsPatchDescription,
accept,
context))
- .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
@@ -720,7 +723,8 @@ private Mono>> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the description of the DigitalTwins service along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -778,9 +782,9 @@ private Mono>> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link PollerFlux} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DigitalTwinsDescriptionInner> beginUpdateAsync(
String resourceGroupName, String resourceName, DigitalTwinsPatchDescription digitalTwinsPatchDescription) {
Mono>> mono =
@@ -792,7 +796,7 @@ private PollerFlux, DigitalTwinsDescrip
this.client.getHttpPipeline(),
DigitalTwinsDescriptionInner.class,
DigitalTwinsDescriptionInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -805,9 +809,9 @@ private PollerFlux, DigitalTwinsDescrip
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link PollerFlux} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DigitalTwinsDescriptionInner> beginUpdateAsync(
String resourceGroupName,
String resourceName,
@@ -835,9 +839,9 @@ private PollerFlux, DigitalTwinsDescrip
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link SyncPoller} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DigitalTwinsDescriptionInner> beginUpdate(
String resourceGroupName, String resourceName, DigitalTwinsPatchDescription digitalTwinsPatchDescription) {
return beginUpdateAsync(resourceGroupName, resourceName, digitalTwinsPatchDescription).getSyncPoller();
@@ -853,9 +857,9 @@ public SyncPoller, DigitalTwinsDescript
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link SyncPoller} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DigitalTwinsDescriptionInner> beginUpdate(
String resourceGroupName,
String resourceName,
@@ -873,7 +877,7 @@ public SyncPoller, DigitalTwinsDescript
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the description of the DigitalTwins service on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
@@ -893,7 +897,7 @@ private Mono updateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the description of the DigitalTwins service on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
@@ -952,7 +956,8 @@ public DigitalTwinsDescriptionInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the description of the DigitalTwins service along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName) {
@@ -988,7 +993,7 @@ private Mono>> deleteWithResponseAsync(String resource
resourceName,
accept,
context))
- .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
@@ -1000,7 +1005,8 @@ private Mono>> deleteWithResponseAsync(String resource
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the description of the DigitalTwins service along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
@@ -1045,9 +1051,9 @@ private Mono>> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link PollerFlux} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DigitalTwinsDescriptionInner> beginDeleteAsync(
String resourceGroupName, String resourceName) {
Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName);
@@ -1058,7 +1064,7 @@ private PollerFlux, DigitalTwinsDescrip
this.client.getHttpPipeline(),
DigitalTwinsDescriptionInner.class,
DigitalTwinsDescriptionInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -1070,9 +1076,9 @@ private PollerFlux, DigitalTwinsDescrip
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link PollerFlux} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DigitalTwinsDescriptionInner> beginDeleteAsync(
String resourceGroupName, String resourceName, Context context) {
context = this.client.mergeContext(context);
@@ -1095,9 +1101,9 @@ private PollerFlux, DigitalTwinsDescrip
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link SyncPoller} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DigitalTwinsDescriptionInner> beginDelete(
String resourceGroupName, String resourceName) {
return beginDeleteAsync(resourceGroupName, resourceName).getSyncPoller();
@@ -1112,9 +1118,9 @@ public SyncPoller, DigitalTwinsDescript
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the {@link SyncPoller} for polling of the description of the DigitalTwins service.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DigitalTwinsDescriptionInner> beginDelete(
String resourceGroupName, String resourceName, Context context) {
return beginDeleteAsync(resourceGroupName, resourceName, context).getSyncPoller();
@@ -1128,7 +1134,7 @@ public SyncPoller, DigitalTwinsDescript
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the description of the DigitalTwins service on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String resourceName) {
@@ -1144,7 +1150,7 @@ private Mono deleteAsync(String resourceGroupName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the DigitalTwins service.
+ * @return the description of the DigitalTwins service on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(
@@ -1190,7 +1196,8 @@ public DigitalTwinsDescriptionInner delete(String resourceGroupName, String reso
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the DigitalTwinsInstances in a subscription.
+ * @return all the DigitalTwinsInstances in a subscription along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -1226,7 +1233,7 @@ private Mono> listSinglePageAsync()
res.getValue().value(),
res.getValue().nextLink(),
null))
- .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
@@ -1236,7 +1243,8 @@ private Mono> listSinglePageAsync()
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the DigitalTwinsInstances in a subscription.
+ * @return all the DigitalTwinsInstances in a subscription along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -1277,7 +1285,7 @@ private Mono> listSinglePageAsync(Co
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the DigitalTwinsInstances in a subscription.
+ * @return all the DigitalTwinsInstances in a subscription as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -1291,7 +1299,7 @@ private PagedFlux listAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the DigitalTwinsInstances in a subscription.
+ * @return all the DigitalTwinsInstances in a subscription as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
@@ -1304,7 +1312,7 @@ private PagedFlux listAsync(Context context) {
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the DigitalTwinsInstances in a subscription.
+ * @return all the DigitalTwinsInstances in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -1318,7 +1326,7 @@ public PagedIterable list() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the DigitalTwinsInstances in a subscription.
+ * @return all the DigitalTwinsInstances in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(Context context) {
@@ -1332,7 +1340,8 @@ public PagedIterable list(Context context) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the DigitalTwinsInstances in a resource group.
+ * @return all the DigitalTwinsInstances in a resource group along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(
@@ -1374,7 +1383,7 @@ private Mono> listByResourceGroupSin
res.getValue().value(),
res.getValue().nextLink(),
null))
- .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
@@ -1385,7 +1394,8 @@ private Mono> listByResourceGroupSin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the DigitalTwinsInstances in a resource group.
+ * @return all the DigitalTwinsInstances in a resource group along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(
@@ -1434,7 +1444,7 @@ private Mono> listByResourceGroupSin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the DigitalTwinsInstances in a resource group.
+ * @return all the DigitalTwinsInstances in a resource group as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
@@ -1451,7 +1461,7 @@ private PagedFlux listByResourceGroupAsync(String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the DigitalTwinsInstances in a resource group.
+ * @return all the DigitalTwinsInstances in a resource group as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(
@@ -1468,7 +1478,7 @@ private PagedFlux listByResourceGroupAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the DigitalTwinsInstances in a resource group.
+ * @return all the DigitalTwinsInstances in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName) {
@@ -1483,7 +1493,7 @@ public PagedIterable listByResourceGroup(String re
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the DigitalTwinsInstances in a resource group.
+ * @return all the DigitalTwinsInstances in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
@@ -1499,7 +1509,8 @@ public PagedIterable listByResourceGroup(String re
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result returned from a check name availability request.
+ * @return the result returned from a check name availability request along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> checkNameAvailabilityWithResponseAsync(
@@ -1540,7 +1551,7 @@ private Mono> checkNameAvailabilityWithResponseAs
digitalTwinsInstanceCheckName,
accept,
context))
- .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
@@ -1553,7 +1564,8 @@ private Mono> checkNameAvailabilityWithResponseAs
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result returned from a check name availability request.
+ * @return the result returned from a check name availability request along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> checkNameAvailabilityWithResponseAsync(
@@ -1603,7 +1615,7 @@ private Mono> checkNameAvailabilityWithResponseAs
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result returned from a check name availability request.
+ * @return the result returned from a check name availability request on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono checkNameAvailabilityAsync(
@@ -1645,7 +1657,7 @@ public CheckNameResultInner checkNameAvailability(String location, CheckNameRequ
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result returned from a check name availability request.
+ * @return the result returned from a check name availability request along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response checkNameAvailabilityWithResponse(
@@ -1660,7 +1672,8 @@ public Response checkNameAvailabilityWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of DigitalTwins description objects with a next link.
+ * @return a list of DigitalTwins description objects with a next link along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -1685,7 +1698,7 @@ private Mono> listNextSinglePageAsyn
res.getValue().value(),
res.getValue().nextLink(),
null))
- .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
@@ -1696,7 +1709,8 @@ private Mono> listNextSinglePageAsyn
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of DigitalTwins description objects with a next link.
+ * @return a list of DigitalTwins description objects with a next link along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(
@@ -1732,7 +1746,8 @@ private Mono> listNextSinglePageAsyn
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of DigitalTwins description objects with a next link.
+ * @return a list of DigitalTwins description objects with a next link along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
@@ -1758,7 +1773,7 @@ private Mono> listByResourceGroupNex
res.getValue().value(),
res.getValue().nextLink(),
null))
- .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
@@ -1769,7 +1784,8 @@ private Mono> listByResourceGroupNex
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of DigitalTwins description objects with a next link.
+ * @return a list of DigitalTwins description objects with a next link along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(
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 f2ea083b97c0..bf7adeaac10c 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
@@ -5,8 +5,8 @@
package com.azure.resourcemanager.digitaltwins.implementation;
import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager;
import com.azure.resourcemanager.digitaltwins.fluent.models.DigitalTwinsDescriptionInner;
import com.azure.resourcemanager.digitaltwins.fluent.models.PrivateEndpointConnectionInner;
import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsDescription;
@@ -26,7 +26,7 @@ public final class DigitalTwinsDescriptionImpl
implements DigitalTwinsDescription, DigitalTwinsDescription.Definition, DigitalTwinsDescription.Update {
private DigitalTwinsDescriptionInner innerObject;
- private final AzureDigitalTwinsManager serviceManager;
+ private final com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager;
public String id() {
return this.innerModel().id();
@@ -57,6 +57,10 @@ public DigitalTwinsIdentity identity() {
return this.innerModel().identity();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public OffsetDateTime createdTime() {
return this.innerModel().createdTime();
}
@@ -103,7 +107,7 @@ public DigitalTwinsDescriptionInner innerModel() {
return this.innerObject;
}
- private AzureDigitalTwinsManager manager() {
+ private com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager() {
return this.serviceManager;
}
@@ -136,7 +140,8 @@ public DigitalTwinsDescription create(Context context) {
return this;
}
- DigitalTwinsDescriptionImpl(String name, AzureDigitalTwinsManager serviceManager) {
+ DigitalTwinsDescriptionImpl(
+ String name, com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager) {
this.innerObject = new DigitalTwinsDescriptionInner();
this.serviceManager = serviceManager;
this.resourceName = name;
@@ -165,7 +170,9 @@ public DigitalTwinsDescription apply(Context context) {
return this;
}
- DigitalTwinsDescriptionImpl(DigitalTwinsDescriptionInner innerObject, AzureDigitalTwinsManager serviceManager) {
+ DigitalTwinsDescriptionImpl(
+ DigitalTwinsDescriptionInner innerObject,
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
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 d48210617c3b..a7d9aeab314d 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
@@ -4,8 +4,8 @@
package com.azure.resourcemanager.digitaltwins.implementation;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager;
import com.azure.resourcemanager.digitaltwins.fluent.models.DigitalTwinsEndpointResourceInner;
import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsEndpointResource;
import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsEndpointResourceProperties;
@@ -16,7 +16,7 @@ public final class DigitalTwinsEndpointResourceImpl
DigitalTwinsEndpointResource.Update {
private DigitalTwinsEndpointResourceInner innerObject;
- private final AzureDigitalTwinsManager serviceManager;
+ private final com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager;
public String id() {
return this.innerModel().id();
@@ -30,6 +30,10 @@ public String type() {
return this.innerModel().type();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public DigitalTwinsEndpointResourceProperties properties() {
return this.innerModel().properties();
}
@@ -38,7 +42,7 @@ public DigitalTwinsEndpointResourceInner innerModel() {
return this.innerObject;
}
- private AzureDigitalTwinsManager manager() {
+ private com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager() {
return this.serviceManager;
}
@@ -73,7 +77,8 @@ public DigitalTwinsEndpointResource create(Context context) {
return this;
}
- DigitalTwinsEndpointResourceImpl(String name, AzureDigitalTwinsManager serviceManager) {
+ DigitalTwinsEndpointResourceImpl(
+ String name, com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager) {
this.innerObject = new DigitalTwinsEndpointResourceInner();
this.serviceManager = serviceManager;
this.endpointName = name;
@@ -102,7 +107,8 @@ public DigitalTwinsEndpointResource apply(Context context) {
}
DigitalTwinsEndpointResourceImpl(
- DigitalTwinsEndpointResourceInner innerObject, AzureDigitalTwinsManager serviceManager) {
+ DigitalTwinsEndpointResourceInner innerObject,
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
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 299947372e56..6340b6fa9cc6 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
@@ -151,7 +151,7 @@ Mono> listNext(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance Endpoints.
+ * @return digitalTwinsInstance Endpoints along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -197,7 +197,7 @@ private Mono> listSinglePageAsy
res.getValue().value(),
res.getValue().nextLink(),
null))
- .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
@@ -209,7 +209,7 @@ private Mono> listSinglePageAsy
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance Endpoints.
+ * @return digitalTwinsInstance Endpoints along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -263,7 +263,7 @@ private Mono> listSinglePageAsy
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance Endpoints.
+ * @return digitalTwinsInstance Endpoints as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String resourceGroupName, String resourceName) {
@@ -280,7 +280,7 @@ private PagedFlux listAsync(String resourceGr
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance Endpoints.
+ * @return digitalTwinsInstance Endpoints as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -298,7 +298,7 @@ private PagedFlux listAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance Endpoints.
+ * @return digitalTwinsInstance Endpoints as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroupName, String resourceName) {
@@ -314,7 +314,7 @@ public PagedIterable list(String resourceGrou
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance Endpoints.
+ * @return digitalTwinsInstance Endpoints as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
@@ -331,7 +331,7 @@ public PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstances Endpoint.
+ * @return digitalTwinsInstances Endpoint along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -372,7 +372,7 @@ private Mono> getWithResponseAsync(
endpointName,
accept,
context))
- .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
@@ -385,7 +385,7 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstances Endpoint.
+ * @return digitalTwinsInstances Endpoint along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -435,7 +435,7 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstances Endpoint.
+ * @return digitalTwinsInstances Endpoint on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(
@@ -477,7 +477,7 @@ public DigitalTwinsEndpointResourceInner get(String resourceGroupName, String re
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstances Endpoint.
+ * @return digitalTwinsInstances Endpoint along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(
@@ -495,7 +495,8 @@ public Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return digitalTwinsInstance endpoint resource along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -546,7 +547,7 @@ private Mono>> createOrUpdateWithResponseAsync(
endpointDescription,
accept,
context))
- .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
@@ -560,7 +561,8 @@ private Mono>> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return digitalTwinsInstance endpoint resource along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -622,9 +624,9 @@ private Mono>> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return the {@link PollerFlux} for polling of digitalTwinsInstance endpoint resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DigitalTwinsEndpointResourceInner>
beginCreateOrUpdateAsync(
String resourceGroupName,
@@ -640,7 +642,7 @@ private Mono>> createOrUpdateWithResponseAsync(
this.client.getHttpPipeline(),
DigitalTwinsEndpointResourceInner.class,
DigitalTwinsEndpointResourceInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -654,9 +656,9 @@ private Mono>> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return the {@link PollerFlux} for polling of digitalTwinsInstance endpoint resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DigitalTwinsEndpointResourceInner>
beginCreateOrUpdateAsync(
String resourceGroupName,
@@ -688,9 +690,9 @@ private Mono>> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return the {@link SyncPoller} for polling of digitalTwinsInstance endpoint resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DigitalTwinsEndpointResourceInner>
beginCreateOrUpdate(
String resourceGroupName,
@@ -712,9 +714,9 @@ private Mono>> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return the {@link SyncPoller} for polling of digitalTwinsInstance endpoint resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DigitalTwinsEndpointResourceInner>
beginCreateOrUpdate(
String resourceGroupName,
@@ -736,7 +738,7 @@ private Mono>> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return digitalTwinsInstance endpoint resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -760,7 +762,7 @@ private Mono createOrUpdateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return digitalTwinsInstance endpoint resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -827,7 +829,8 @@ public DigitalTwinsEndpointResourceInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return digitalTwinsInstance endpoint resource along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
@@ -868,7 +871,7 @@ private Mono>> deleteWithResponseAsync(
endpointName,
accept,
context))
- .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
@@ -881,7 +884,8 @@ private Mono>> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return digitalTwinsInstance endpoint resource along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
@@ -931,9 +935,9 @@ private Mono>> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return the {@link PollerFlux} for polling of digitalTwinsInstance endpoint resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DigitalTwinsEndpointResourceInner>
beginDeleteAsync(String resourceGroupName, String resourceName, String endpointName) {
Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, endpointName);
@@ -944,7 +948,7 @@ private Mono>> deleteWithResponseAsync(
this.client.getHttpPipeline(),
DigitalTwinsEndpointResourceInner.class,
DigitalTwinsEndpointResourceInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -957,9 +961,9 @@ private Mono>> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return the {@link PollerFlux} for polling of digitalTwinsInstance endpoint resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DigitalTwinsEndpointResourceInner>
beginDeleteAsync(String resourceGroupName, String resourceName, String endpointName, Context context) {
context = this.client.mergeContext(context);
@@ -984,9 +988,9 @@ private Mono>> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return the {@link SyncPoller} for polling of digitalTwinsInstance endpoint resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DigitalTwinsEndpointResourceInner> beginDelete(
String resourceGroupName, String resourceName, String endpointName) {
return beginDeleteAsync(resourceGroupName, resourceName, endpointName).getSyncPoller();
@@ -1002,9 +1006,9 @@ public SyncPoller, DigitalTwinsEnd
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return the {@link SyncPoller} for polling of digitalTwinsInstance endpoint resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DigitalTwinsEndpointResourceInner> beginDelete(
String resourceGroupName, String resourceName, String endpointName, Context context) {
return beginDeleteAsync(resourceGroupName, resourceName, endpointName, context).getSyncPoller();
@@ -1019,7 +1023,7 @@ public SyncPoller, DigitalTwinsEnd
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return digitalTwinsInstance endpoint resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(
@@ -1039,7 +1043,7 @@ private Mono deleteAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return digitalTwinsInstance endpoint resource.
+ * @return digitalTwinsInstance endpoint resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(
@@ -1091,7 +1095,8 @@ public DigitalTwinsEndpointResourceInner delete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of DigitalTwinsInstance Endpoints with a next link.
+ * @return a list of DigitalTwinsInstance Endpoints with a next link along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -1116,7 +1121,7 @@ private Mono> listNextSinglePag
res.getValue().value(),
res.getValue().nextLink(),
null))
- .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
@@ -1127,7 +1132,8 @@ private Mono> listNextSinglePag
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of DigitalTwinsInstance Endpoints with a next link.
+ * @return a list of DigitalTwinsInstance Endpoints with a next link along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(
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 b10c3413772d..bf997c9d25dc 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
@@ -9,7 +9,6 @@
import com.azure.core.http.rest.SimpleResponse;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager;
import com.azure.resourcemanager.digitaltwins.fluent.DigitalTwinsEndpointsClient;
import com.azure.resourcemanager.digitaltwins.fluent.models.DigitalTwinsEndpointResourceInner;
import com.azure.resourcemanager.digitaltwins.models.DigitalTwinsEndpointResource;
@@ -21,9 +20,11 @@ public final class DigitalTwinsEndpointsImpl implements DigitalTwinsEndpoints {
private final DigitalTwinsEndpointsClient innerClient;
- private final AzureDigitalTwinsManager serviceManager;
+ private final com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager;
- public DigitalTwinsEndpointsImpl(DigitalTwinsEndpointsClient innerClient, AzureDigitalTwinsManager serviceManager) {
+ public DigitalTwinsEndpointsImpl(
+ DigitalTwinsEndpointsClient innerClient,
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
@@ -207,7 +208,7 @@ private DigitalTwinsEndpointsClient serviceClient() {
return this.innerClient;
}
- private AzureDigitalTwinsManager manager() {
+ private com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager() {
return this.serviceManager;
}
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 33e3ebc04012..46156d72416e 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
@@ -9,7 +9,6 @@
import com.azure.core.http.rest.SimpleResponse;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager;
import com.azure.resourcemanager.digitaltwins.fluent.DigitalTwinsClient;
import com.azure.resourcemanager.digitaltwins.fluent.models.CheckNameResultInner;
import com.azure.resourcemanager.digitaltwins.fluent.models.DigitalTwinsDescriptionInner;
@@ -24,9 +23,11 @@ public final class DigitalTwinsImpl implements DigitalTwins {
private final DigitalTwinsClient innerClient;
- private final AzureDigitalTwinsManager serviceManager;
+ private final com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager;
- public DigitalTwinsImpl(DigitalTwinsClient innerClient, AzureDigitalTwinsManager serviceManager) {
+ public DigitalTwinsImpl(
+ DigitalTwinsClient innerClient,
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
@@ -211,7 +212,7 @@ private DigitalTwinsClient serviceClient() {
return this.innerClient;
}
- private AzureDigitalTwinsManager manager() {
+ private com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager() {
return this.serviceManager;
}
diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/GroupIdInformationImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/GroupIdInformationImpl.java
index 0078089e381f..08bbff8ff003 100644
--- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/GroupIdInformationImpl.java
+++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/GroupIdInformationImpl.java
@@ -4,7 +4,6 @@
package com.azure.resourcemanager.digitaltwins.implementation;
-import com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager;
import com.azure.resourcemanager.digitaltwins.fluent.models.GroupIdInformationInner;
import com.azure.resourcemanager.digitaltwins.models.GroupIdInformation;
import com.azure.resourcemanager.digitaltwins.models.GroupIdInformationProperties;
@@ -12,9 +11,11 @@
public final class GroupIdInformationImpl implements GroupIdInformation {
private GroupIdInformationInner innerObject;
- private final AzureDigitalTwinsManager serviceManager;
+ private final com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager;
- GroupIdInformationImpl(GroupIdInformationInner innerObject, AzureDigitalTwinsManager serviceManager) {
+ GroupIdInformationImpl(
+ GroupIdInformationInner innerObject,
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
@@ -39,7 +40,7 @@ public GroupIdInformationInner innerModel() {
return this.innerObject;
}
- private AzureDigitalTwinsManager manager() {
+ private com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager() {
return this.serviceManager;
}
}
diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/GroupIdInformationResponseImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/GroupIdInformationResponseImpl.java
index f43ef6f61d5d..f262fca7d0d4 100644
--- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/GroupIdInformationResponseImpl.java
+++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/GroupIdInformationResponseImpl.java
@@ -4,7 +4,6 @@
package com.azure.resourcemanager.digitaltwins.implementation;
-import com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager;
import com.azure.resourcemanager.digitaltwins.fluent.models.GroupIdInformationInner;
import com.azure.resourcemanager.digitaltwins.fluent.models.GroupIdInformationResponseInner;
import com.azure.resourcemanager.digitaltwins.models.GroupIdInformation;
@@ -16,10 +15,11 @@
public final class GroupIdInformationResponseImpl implements GroupIdInformationResponse {
private GroupIdInformationResponseInner innerObject;
- private final AzureDigitalTwinsManager serviceManager;
+ private final com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager;
GroupIdInformationResponseImpl(
- GroupIdInformationResponseInner innerObject, AzureDigitalTwinsManager serviceManager) {
+ GroupIdInformationResponseInner innerObject,
+ com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
@@ -42,7 +42,7 @@ public GroupIdInformationResponseInner innerModel() {
return this.innerObject;
}
- private AzureDigitalTwinsManager manager() {
+ private com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager() {
return this.serviceManager;
}
}
diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/OperationImpl.java b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/OperationImpl.java
index b193db513382..b2697fb9c3be 100644
--- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/OperationImpl.java
+++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/src/main/java/com/azure/resourcemanager/digitaltwins/implementation/OperationImpl.java
@@ -4,17 +4,19 @@
package com.azure.resourcemanager.digitaltwins.implementation;
-import com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager;
import com.azure.resourcemanager.digitaltwins.fluent.models.OperationInner;
import com.azure.resourcemanager.digitaltwins.models.Operation;
import com.azure.resourcemanager.digitaltwins.models.OperationDisplay;
+import java.util.Collections;
+import java.util.Map;
public final class OperationImpl implements Operation {
private OperationInner innerObject;
- private final AzureDigitalTwinsManager serviceManager;
+ private final com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager;
- OperationImpl(OperationInner innerObject, AzureDigitalTwinsManager serviceManager) {
+ OperationImpl(
+ OperationInner innerObject, com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
@@ -35,11 +37,20 @@ public Boolean isDataAction() {
return this.innerModel().isDataAction();
}
+ public Map properties() {
+ Map inner = this.innerModel().properties();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
public OperationInner innerModel() {
return this.innerObject;
}
- private AzureDigitalTwinsManager manager() {
+ private com.azure.resourcemanager.digitaltwins.AzureDigitalTwinsManager manager() {
return this.serviceManager;
}
}
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 f9c1dbe8fb44..68e5440667c7 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
@@ -85,7 +85,8 @@ Mono> listNext(
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of DigitalTwins service operations.
+ * @return a list of DigitalTwins service operations along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -108,7 +109,7 @@ private Mono> listSinglePageAsync() {
res.getValue().value(),
res.getValue().nextLink(),
null))
- .subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
@@ -118,7 +119,8 @@ private Mono> listSinglePageAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of DigitalTwins service operations.
+ * @return a list of DigitalTwins service operations along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -148,7 +150,7 @@ private Mono> listSinglePageAsync(Context context)
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of DigitalTwins service operations.
+ * @return a list of DigitalTwins service operations as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -162,7 +164,7 @@ private PagedFlux listAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of DigitalTwins service operations.
+ * @return a list of DigitalTwins service operations as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
@@ -175,7 +177,7 @@ private PagedFlux listAsync(Context context) {
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of DigitalTwins service operations.
+ * @return a list of DigitalTwins service operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -189,7 +191,7 @@ public PagedIterable list() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of DigitalTwins service operations.
+ * @return a list of DigitalTwins service operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(Context context) {
@@ -203,7 +205,8 @@ public PagedIterable list(Context context) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of DigitalTwins service operations.
+ * @return a list of DigitalTwins service operations along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono