diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/CHANGELOG.md b/sdk/iotcentral/azure-resourcemanager-iotcentral/CHANGELOG.md
index f77b4319217c6..94727e0c99250 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/CHANGELOG.md
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2022-03-23)
+
+- Azure Resource Manager IotCentral client library for Java. This package contains Microsoft Azure SDK for IotCentral Management SDK. Use this API to manage IoT Central Applications in your Azure subscription. Package tag package-preview-2021-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/README.md b/sdk/iotcentral/azure-resourcemanager-iotcentral/README.md
index ce46616c213be..d9afbad71601a 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/README.md
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager IotCentral client library for Java.
-This package contains Microsoft Azure SDK for IotCentral Management SDK. Use this API to manage IoT Central Applications in your Azure subscription. Package tag package-2021-06. 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 IotCentral Management SDK. Use this API to manage IoT Central Applications in your Azure subscription. Package tag package-preview-2021-11. 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-iotcentral
- 1.0.0
+ 1.1.0-beta.1
```
[//]: # ({x-version-update-end})
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/SAMPLE.md b/sdk/iotcentral/azure-resourcemanager-iotcentral/SAMPLE.md
index fc66b259ac18d..f7f04d9786118 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/SAMPLE.md
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/SAMPLE.md
@@ -16,6 +16,18 @@
## Operations
- [List](#operations_list)
+
+## PrivateEndpointConnections
+
+- [Create](#privateendpointconnections_create)
+- [Delete](#privateendpointconnections_delete)
+- [Get](#privateendpointconnections_get)
+- [List](#privateendpointconnections_list)
+
+## PrivateLinks
+
+- [Get](#privatelinks_get)
+- [List](#privatelinks_list)
### Apps_CheckNameAvailability
```java
@@ -25,7 +37,7 @@ import com.azure.resourcemanager.iotcentral.models.OperationInputs;
/** Samples for Apps CheckNameAvailability. */
public final class AppsCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2021-06-01/examples/Apps_CheckNameAvailability.json
+ * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/Apps_CheckNameAvailability.json
*/
/**
* Sample code: Apps_CheckNameAvailability.
@@ -50,7 +62,7 @@ import com.azure.resourcemanager.iotcentral.models.OperationInputs;
/** Samples for Apps CheckSubdomainAvailability. */
public final class AppsCheckSubdomainAvailabilitySamples {
/*
- * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2021-06-01/examples/Apps_CheckSubdomainAvailability.json
+ * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/Apps_CheckSubdomainAvailability.json
*/
/**
* Sample code: Apps_SubdomainAvailability.
@@ -77,7 +89,7 @@ import com.azure.resourcemanager.iotcentral.models.SystemAssignedServiceIdentity
/** Samples for Apps CreateOrUpdate. */
public final class AppsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2021-06-01/examples/Apps_CreateOrUpdate.json
+ * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/Apps_CreateOrUpdate.json
*/
/**
* Sample code: Apps_CreateOrUpdate.
@@ -109,7 +121,7 @@ import com.azure.core.util.Context;
/** Samples for Apps Delete. */
public final class AppsDeleteSamples {
/*
- * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2021-06-01/examples/Apps_Delete.json
+ * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/Apps_Delete.json
*/
/**
* Sample code: Apps_Delete.
@@ -130,7 +142,7 @@ import com.azure.core.util.Context;
/** Samples for Apps GetByResourceGroup. */
public final class AppsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2021-06-01/examples/Apps_Get.json
+ * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/Apps_Get.json
*/
/**
* Sample code: Apps_Get.
@@ -151,7 +163,7 @@ import com.azure.core.util.Context;
/** Samples for Apps List. */
public final class AppsListSamples {
/*
- * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2021-06-01/examples/Apps_ListBySubscription.json
+ * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/Apps_ListBySubscription.json
*/
/**
* Sample code: Apps_ListBySubscription.
@@ -172,7 +184,7 @@ import com.azure.core.util.Context;
/** Samples for Apps ListByResourceGroup. */
public final class AppsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2021-06-01/examples/Apps_ListByResourceGroup.json
+ * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/Apps_ListByResourceGroup.json
*/
/**
* Sample code: Apps_ListByResourceGroup.
@@ -193,7 +205,7 @@ import com.azure.core.util.Context;
/** Samples for Apps ListTemplates. */
public final class AppsListTemplatesSamples {
/*
- * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2021-06-01/examples/Apps_Templates.json
+ * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/Apps_Templates.json
*/
/**
* Sample code: Apps_ListTemplates.
@@ -210,14 +222,14 @@ public final class AppsListTemplatesSamples {
```java
import com.azure.core.util.Context;
-import com.azure.resourcemanager.iotcentral.models.App;
+import com.azure.resourcemanager.iotcentral.models.AppPatch;
import com.azure.resourcemanager.iotcentral.models.SystemAssignedServiceIdentity;
import com.azure.resourcemanager.iotcentral.models.SystemAssignedServiceIdentityType;
/** Samples for Apps Update. */
public final class AppsUpdateSamples {
/*
- * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2021-06-01/examples/Apps_Update.json
+ * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/Apps_Update.json
*/
/**
* Sample code: Apps_Update.
@@ -225,14 +237,16 @@ public final class AppsUpdateSamples {
* @param manager Entry point to IotCentralManager.
*/
public static void appsUpdate(com.azure.resourcemanager.iotcentral.IotCentralManager manager) {
- App resource =
- manager.apps().getByResourceGroupWithResponse("resRg", "myIoTCentralApp", Context.NONE).getValue();
- resource
- .update()
- .withIdentity(
- new SystemAssignedServiceIdentity().withType(SystemAssignedServiceIdentityType.SYSTEM_ASSIGNED))
- .withDisplayName("My IoT Central App 2")
- .apply();
+ manager
+ .apps()
+ .update(
+ "resRg",
+ "myIoTCentralApp",
+ new AppPatch()
+ .withIdentity(
+ new SystemAssignedServiceIdentity().withType(SystemAssignedServiceIdentityType.SYSTEM_ASSIGNED))
+ .withDisplayName("My IoT Central App 2"),
+ Context.NONE);
}
}
```
@@ -245,7 +259,7 @@ import com.azure.core.util.Context;
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2021-06-01/examples/Operations_List.json
+ * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/Operations_List.json
*/
/**
* Sample code: Operations_List.
@@ -258,3 +272,145 @@ public final class OperationsListSamples {
}
```
+### PrivateEndpointConnections_Create
+
+```java
+import com.azure.resourcemanager.iotcentral.models.PrivateEndpointServiceConnectionStatus;
+import com.azure.resourcemanager.iotcentral.models.PrivateLinkServiceConnectionState;
+
+/** Samples for PrivateEndpointConnections Create. */
+public final class PrivateEndpointConnectionsCreateSamples {
+ /*
+ * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/PrivateEndpointConnections_Update.json
+ */
+ /**
+ * Sample code: PrivateEndpointConnections_Update.
+ *
+ * @param manager Entry point to IotCentralManager.
+ */
+ public static void privateEndpointConnectionsUpdate(
+ com.azure.resourcemanager.iotcentral.IotCentralManager manager) {
+ manager
+ .privateEndpointConnections()
+ .define("myIoTCentralAppEndpoint")
+ .withExistingIotApp("resRg", "myIoTCentralApp")
+ .withPrivateLinkServiceConnectionState(
+ new PrivateLinkServiceConnectionState()
+ .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
+ .withDescription("Auto-approved")
+ .withActionsRequired("None"))
+ .create();
+ }
+}
+```
+
+### PrivateEndpointConnections_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections Delete. */
+public final class PrivateEndpointConnectionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/PrivateEndpointConnections_Delete.json
+ */
+ /**
+ * Sample code: PrivateEndpointConnections_Delete.
+ *
+ * @param manager Entry point to IotCentralManager.
+ */
+ public static void privateEndpointConnectionsDelete(
+ com.azure.resourcemanager.iotcentral.IotCentralManager manager) {
+ manager
+ .privateEndpointConnections()
+ .delete("resRg", "myIoTCentralApp", "myIoTCentralAppEndpoint", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections Get. */
+public final class PrivateEndpointConnectionsGetSamples {
+ /*
+ * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/PrivateEndpointConnections_Get.json
+ */
+ /**
+ * Sample code: PrivateEndpointConnections_Get.
+ *
+ * @param manager Entry point to IotCentralManager.
+ */
+ public static void privateEndpointConnectionsGet(com.azure.resourcemanager.iotcentral.IotCentralManager manager) {
+ manager
+ .privateEndpointConnections()
+ .getWithResponse("resRg", "myIoTCentralApp", "myIoTCentralAppEndpoint", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections List. */
+public final class PrivateEndpointConnectionsListSamples {
+ /*
+ * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/PrivateEndpointConnections_List.json
+ */
+ /**
+ * Sample code: PrivateEndpointConnections_List.
+ *
+ * @param manager Entry point to IotCentralManager.
+ */
+ public static void privateEndpointConnectionsList(com.azure.resourcemanager.iotcentral.IotCentralManager manager) {
+ manager.privateEndpointConnections().list("resRg", "myIoTCentralApp", Context.NONE);
+ }
+}
+```
+
+### PrivateLinks_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinks Get. */
+public final class PrivateLinksGetSamples {
+ /*
+ * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/PrivateLinks_Get.json
+ */
+ /**
+ * Sample code: PrivateLinks_Get.
+ *
+ * @param manager Entry point to IotCentralManager.
+ */
+ public static void privateLinksGet(com.azure.resourcemanager.iotcentral.IotCentralManager manager) {
+ manager.privateLinks().getWithResponse("resRg", "myIoTCentralApp", "iotApp", Context.NONE);
+ }
+}
+```
+
+### PrivateLinks_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinks List. */
+public final class PrivateLinksListSamples {
+ /*
+ * x-ms-original-file: specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/examples/PrivateLinks_List.json
+ */
+ /**
+ * Sample code: PrivateLinks_List.
+ *
+ * @param manager Entry point to IotCentralManager.
+ */
+ public static void privateLinksList(com.azure.resourcemanager.iotcentral.IotCentralManager manager) {
+ manager.privateLinks().list("resRg", "myIoTCentralApp", Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/pom.xml b/sdk/iotcentral/azure-resourcemanager-iotcentral/pom.xml
index c17d63cb0a0ef..8953ab9116c77 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/pom.xml
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/pom.xml
@@ -13,7 +13,7 @@
jar
Microsoft Azure SDK for IotCentral Management
- This package contains Microsoft Azure SDK for IotCentral Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Use this API to manage IoT Central Applications in your Azure subscription. Package tag package-2021-06.
+ This package contains Microsoft Azure SDK for IotCentral Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Use this API to manage IoT Central Applications in your Azure subscription. Package tag package-preview-2021-11.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/IotCentralManager.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/IotCentralManager.java
index 6b193f9c4572f..99e0b3ae1655d 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/IotCentralManager.java
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/IotCentralManager.java
@@ -25,8 +25,12 @@
import com.azure.resourcemanager.iotcentral.implementation.AppsImpl;
import com.azure.resourcemanager.iotcentral.implementation.IotCentralClientBuilder;
import com.azure.resourcemanager.iotcentral.implementation.OperationsImpl;
+import com.azure.resourcemanager.iotcentral.implementation.PrivateEndpointConnectionsImpl;
+import com.azure.resourcemanager.iotcentral.implementation.PrivateLinksImpl;
import com.azure.resourcemanager.iotcentral.models.Apps;
import com.azure.resourcemanager.iotcentral.models.Operations;
+import com.azure.resourcemanager.iotcentral.models.PrivateEndpointConnections;
+import com.azure.resourcemanager.iotcentral.models.PrivateLinks;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
@@ -38,6 +42,10 @@
public final class IotCentralManager {
private Apps apps;
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private PrivateLinks privateLinks;
+
private Operations operations;
private final IotCentralClient clientObject;
@@ -78,7 +86,7 @@ public static Configurable configure() {
/** The Configurable allowing configurations to be set. */
public static final class Configurable {
- private final ClientLogger logger = new ClientLogger(Configurable.class);
+ private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
@@ -152,9 +160,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -176,7 +186,7 @@ public IotCentralManager authenticate(TokenCredential credential, AzureProfile p
.append("-")
.append("com.azure.resourcemanager.iotcentral")
.append("/")
- .append("1.0.0");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -236,6 +246,23 @@ public Apps apps() {
return apps;
}
+ /** @return Resource collection API of PrivateEndpointConnections. */
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections =
+ new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ }
+ return privateEndpointConnections;
+ }
+
+ /** @return Resource collection API of PrivateLinks. */
+ public PrivateLinks privateLinks() {
+ if (this.privateLinks == null) {
+ this.privateLinks = new PrivateLinksImpl(clientObject.getPrivateLinks(), this);
+ }
+ return privateLinks;
+ }
+
/** @return Resource collection API of Operations. */
public Operations operations() {
if (this.operations == null) {
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/AppsClient.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/AppsClient.java
index 583a5e83cc45b..67cb3f22c350d 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/AppsClient.java
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/AppsClient.java
@@ -41,7 +41,7 @@ public interface AppsClient {
* @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 metadata of an IoT Central application.
+ * @return the metadata of an IoT Central application along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName, String resourceName, Context context);
@@ -57,7 +57,7 @@ public interface AppsClient {
* @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 IoT Central application.
+ * @return the {@link SyncPoller} for polling of the IoT Central application.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AppInner> beginCreateOrUpdate(
@@ -75,7 +75,7 @@ SyncPoller, AppInner> beginCreateOrUpdate(
* @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 IoT Central application.
+ * @return the {@link SyncPoller} for polling of the IoT Central application.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, AppInner> beginCreateOrUpdate(
@@ -123,11 +123,10 @@ SyncPoller, AppInner> beginCreateOrUpdate(
* @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 IoT Central application.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AppInner> beginUpdate(
- String resourceGroupName, String resourceName, AppPatch appPatch);
+ SyncPoller, Void> beginUpdate(String resourceGroupName, String resourceName, AppPatch appPatch);
/**
* Update the metadata of an IoT Central application.
@@ -139,10 +138,10 @@ SyncPoller, AppInner> beginUpdate(
* @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 IoT Central application.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AppInner> beginUpdate(
+ SyncPoller, Void> beginUpdate(
String resourceGroupName, String resourceName, AppPatch appPatch, Context context);
/**
@@ -154,10 +153,9 @@ SyncPoller, AppInner> beginUpdate(
* @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 IoT Central application.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AppInner update(String resourceGroupName, String resourceName, AppPatch appPatch);
+ void update(String resourceGroupName, String resourceName, AppPatch appPatch);
/**
* Update the metadata of an IoT Central application.
@@ -169,10 +167,9 @@ SyncPoller, AppInner> beginUpdate(
* @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 IoT Central application.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AppInner update(String resourceGroupName, String resourceName, AppPatch appPatch, Context context);
+ void update(String resourceGroupName, String resourceName, AppPatch appPatch, Context context);
/**
* Delete an IoT Central application.
@@ -182,7 +179,7 @@ SyncPoller, AppInner> beginUpdate(
* @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.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName);
@@ -196,7 +193,7 @@ SyncPoller, AppInner> beginUpdate(
* @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.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, Context context);
@@ -231,7 +228,7 @@ SyncPoller, AppInner> beginUpdate(
*
* @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 IoT Central Applications in a subscription.
+ * @return all IoT Central Applications in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -243,7 +240,7 @@ SyncPoller, AppInner> beginUpdate(
* @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 IoT Central Applications in a subscription.
+ * @return all IoT Central Applications in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -255,7 +252,7 @@ SyncPoller, AppInner> beginUpdate(
* @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 IoT Central Applications in a resource group.
+ * @return all the IoT Central Applications in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -268,7 +265,7 @@ SyncPoller, AppInner> beginUpdate(
* @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 IoT Central Applications in a resource group.
+ * @return all the IoT Central Applications in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -295,7 +292,8 @@ SyncPoller, AppInner> beginUpdate(
* @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 properties indicating whether a given IoT Central application name or subdomain is available.
+ * @return the properties indicating whether a given IoT Central application name or subdomain is available along
+ * with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response checkNameAvailabilityWithResponse(
@@ -323,7 +321,8 @@ Response checkNameAvailabilityWithResponse(
* @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 properties indicating whether a given IoT Central application name or subdomain is available.
+ * @return the properties indicating whether a given IoT Central application name or subdomain is available along
+ * with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response checkSubdomainAvailabilityWithResponse(
@@ -334,7 +333,7 @@ Response checkSubdomainAvailabilityWithResponse(
*
* @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 available application templates.
+ * @return all available application templates as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listTemplates();
@@ -346,7 +345,7 @@ Response checkSubdomainAvailabilityWithResponse(
* @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 available application templates.
+ * @return all available application templates as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listTemplates(Context context);
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/IotCentralClient.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/IotCentralClient.java
index 0322c1a334f15..d0d470a3cd12d 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/IotCentralClient.java
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/IotCentralClient.java
@@ -51,6 +51,20 @@ public interface IotCentralClient {
*/
AppsClient getApps();
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+
+ /**
+ * Gets the PrivateLinksClient object to access its operations.
+ *
+ * @return the PrivateLinksClient object.
+ */
+ PrivateLinksClient getPrivateLinks();
+
/**
* Gets the OperationsClient object to access its operations.
*
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/OperationsClient.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/OperationsClient.java
index fb19acfbc3dc7..def1fc5c9c359 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/OperationsClient.java
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/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 IoT Central operations.
+ * @return a list of IoT Central 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 IoT Central operations.
+ * @return a list of IoT Central operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/PrivateEndpointConnectionsClient.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/PrivateEndpointConnectionsClient.java
new file mode 100644
index 0000000000000..265311da784dc
--- /dev/null
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/PrivateEndpointConnectionsClient.java
@@ -0,0 +1,216 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotcentral.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.iotcentral.fluent.models.PrivateEndpointConnectionInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
+public interface PrivateEndpointConnectionsClient {
+ /**
+ * Get the metadata of a private endpoint connection for the IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @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 metadata of a private endpoint connection for the IoT Central Application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner get(
+ String resourceGroupName, String resourceName, String privateEndpointConnectionName);
+
+ /**
+ * Get the metadata of a private endpoint connection for the IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @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 metadata of a private endpoint connection for the IoT Central Application along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Update a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param privateEndpointConnection The private endpoint connection metadata.
+ * @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 the private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PrivateEndpointConnectionInner> beginCreate(
+ String resourceGroupName,
+ String resourceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection);
+
+ /**
+ * Update a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param privateEndpointConnection The private endpoint connection metadata.
+ * @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 the private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PrivateEndpointConnectionInner> beginCreate(
+ String resourceGroupName,
+ String resourceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection,
+ Context context);
+
+ /**
+ * Update a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param privateEndpointConnection The private endpoint connection metadata.
+ * @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 resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner create(
+ String resourceGroupName,
+ String resourceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection);
+
+ /**
+ * Update a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param privateEndpointConnection The private endpoint connection metadata.
+ * @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 private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner create(
+ String resourceGroupName,
+ String resourceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection,
+ Context context);
+
+ /**
+ * Deletes a private endpoint connection from the IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @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 long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String resourceName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes a private endpoint connection from the IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @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 long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Deletes a private endpoint connection from the IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String resourceName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes a private endpoint connection from the IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Get all private endpoint connections of a IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @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 private endpoint connections of a IoT Central Application as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String resourceName);
+
+ /**
+ * Get all private endpoint connections of a IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @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 private endpoint connections of a IoT Central Application as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String resourceName, Context context);
+}
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/PrivateLinksClient.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/PrivateLinksClient.java
new file mode 100644
index 0000000000000..688dbefd23281
--- /dev/null
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/PrivateLinksClient.java
@@ -0,0 +1,72 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotcentral.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.util.Context;
+import com.azure.resourcemanager.iotcentral.fluent.models.PrivateLinkResourceInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateLinksClient. */
+public interface PrivateLinksClient {
+ /**
+ * Get a private link resource of a IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param groupId The private link resource name.
+ * @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 private link resource of a IoT Central Application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateLinkResourceInner get(String resourceGroupName, String resourceName, String groupId);
+
+ /**
+ * Get a private link resource of a IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param groupId The private link resource name.
+ * @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 a private link resource of a IoT Central Application along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String resourceName, String groupId, Context context);
+
+ /**
+ * Get all private link resources of a IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @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 private link resources of a IoT Central Application as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String resourceName);
+
+ /**
+ * Get all private link resources of a IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @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 private link resources of a IoT Central Application as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String resourceName, Context context);
+}
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppAvailabilityInfoInner.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppAvailabilityInfoInner.java
index 75942e55dd4a8..ee681b4b2e5c3 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppAvailabilityInfoInner.java
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppAvailabilityInfoInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.iotcentral.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The properties indicating whether a given IoT Central application name or subdomain is available. */
@Immutable
public final class AppAvailabilityInfoInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AppAvailabilityInfoInner.class);
-
/*
* The value which indicates whether the provided name is available.
*/
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppInner.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppInner.java
index f9d25554703a0..d95849f2e73d6 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppInner.java
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppInner.java
@@ -9,16 +9,17 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iotcentral.models.AppSkuInfo;
import com.azure.resourcemanager.iotcentral.models.AppState;
+import com.azure.resourcemanager.iotcentral.models.NetworkRuleSets;
+import com.azure.resourcemanager.iotcentral.models.ProvisioningState;
+import com.azure.resourcemanager.iotcentral.models.PublicNetworkAccess;
import com.azure.resourcemanager.iotcentral.models.SystemAssignedServiceIdentity;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
import java.util.Map;
/** The IoT Central application. */
@Fluent
public final class AppInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AppInner.class);
-
/*
* The common properties of an IoT Central application.
*/
@@ -100,6 +101,15 @@ public AppInner withTags(Map tags) {
return this;
}
+ /**
+ * Get the provisioningState property: The provisioning state of the application.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
/**
* Get the applicationId property: The ID of the application.
*
@@ -191,6 +201,62 @@ public AppState state() {
return this.innerProperties() == null ? null : this.innerProperties().state();
}
+ /**
+ * Get the publicNetworkAccess property: Whether requests from the public network are allowed.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
+ }
+
+ /**
+ * Set the publicNetworkAccess property: Whether requests from the public network are allowed.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the AppInner object itself.
+ */
+ public AppInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AppProperties();
+ }
+ this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
+ return this;
+ }
+
+ /**
+ * Get the networkRuleSets property: Network Rule Set Properties of this IoT Central application.
+ *
+ * @return the networkRuleSets value.
+ */
+ public NetworkRuleSets networkRuleSets() {
+ return this.innerProperties() == null ? null : this.innerProperties().networkRuleSets();
+ }
+
+ /**
+ * Set the networkRuleSets property: Network Rule Set Properties of this IoT Central application.
+ *
+ * @param networkRuleSets the networkRuleSets value to set.
+ * @return the AppInner object itself.
+ */
+ public AppInner withNetworkRuleSets(NetworkRuleSets networkRuleSets) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AppProperties();
+ }
+ this.innerProperties().withNetworkRuleSets(networkRuleSets);
+ return this;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: Private endpoint connections created on this IoT Central
+ * application.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections();
+ }
+
/**
* Validates the instance.
*
@@ -201,7 +267,7 @@ public void validate() {
innerProperties().validate();
}
if (sku() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(new IllegalArgumentException("Missing required property sku in model AppInner"));
} else {
sku().validate();
@@ -210,4 +276,6 @@ public void validate() {
identity().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(AppInner.class);
}
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppProperties.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppProperties.java
index 5b29ec381f692..8b4dad20fdc3c 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppProperties.java
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppProperties.java
@@ -5,15 +5,21 @@
package com.azure.resourcemanager.iotcentral.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iotcentral.models.AppState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.azure.resourcemanager.iotcentral.models.NetworkRuleSets;
+import com.azure.resourcemanager.iotcentral.models.ProvisioningState;
+import com.azure.resourcemanager.iotcentral.models.PublicNetworkAccess;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
/** The properties of an IoT Central application. */
@Fluent
public final class AppProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AppProperties.class);
+ /*
+ * The provisioning state of the application.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
/*
* The ID of the application.
@@ -48,6 +54,33 @@ public final class AppProperties {
@JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY)
private AppState state;
+ /*
+ * Whether requests from the public network are allowed.
+ */
+ @JsonProperty(value = "publicNetworkAccess")
+ private PublicNetworkAccess publicNetworkAccess;
+
+ /*
+ * Network Rule Set Properties of this IoT Central application.
+ */
+ @JsonProperty(value = "networkRuleSets")
+ private NetworkRuleSets networkRuleSets;
+
+ /*
+ * Private endpoint connections created on this IoT Central application.
+ */
+ @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
+ private List privateEndpointConnections;
+
+ /**
+ * Get the provisioningState property: The provisioning state of the application.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
/**
* Get the applicationId property: The ID of the application.
*
@@ -130,11 +163,67 @@ public AppState state() {
return this.state;
}
+ /**
+ * Get the publicNetworkAccess property: Whether requests from the public network are allowed.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set the publicNetworkAccess property: Whether requests from the public network are allowed.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the AppProperties object itself.
+ */
+ public AppProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Get the networkRuleSets property: Network Rule Set Properties of this IoT Central application.
+ *
+ * @return the networkRuleSets value.
+ */
+ public NetworkRuleSets networkRuleSets() {
+ return this.networkRuleSets;
+ }
+
+ /**
+ * Set the networkRuleSets property: Network Rule Set Properties of this IoT Central application.
+ *
+ * @param networkRuleSets the networkRuleSets value to set.
+ * @return the AppProperties object itself.
+ */
+ public AppProperties withNetworkRuleSets(NetworkRuleSets networkRuleSets) {
+ this.networkRuleSets = networkRuleSets;
+ return this;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: Private endpoint connections created on this IoT Central
+ * application.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (networkRuleSets() != null) {
+ networkRuleSets().validate();
+ }
+ if (privateEndpointConnections() != null) {
+ privateEndpointConnections().forEach(e -> e.validate());
+ }
}
}
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppTemplateInner.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppTemplateInner.java
index ea1efef2f0c90..be50ae9bd5d3a 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppTemplateInner.java
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/AppTemplateInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.iotcentral.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iotcentral.models.AppTemplateLocations;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** IoT Central Application Template. */
@Immutable
public final class AppTemplateInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AppTemplateInner.class);
-
/*
* The ID of the template.
*/
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/OperationInner.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/OperationInner.java
index b0bbba75e45c7..8ec5ab6ce593c 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/OperationInner.java
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/OperationInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.iotcentral.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iotcentral.models.OperationDisplay;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** IoT Central REST API operation. */
@Fluent
public final class OperationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
-
/*
* Operation name: {provider}/{resource}/{read | write | action | delete}
*/
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/PrivateEndpointConnectionInner.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/PrivateEndpointConnectionInner.java
new file mode 100644
index 0000000000000..1c404359694e3
--- /dev/null
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/PrivateEndpointConnectionInner.java
@@ -0,0 +1,127 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotcentral.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.iotcentral.models.PrivateEndpoint;
+import com.azure.resourcemanager.iotcentral.models.PrivateEndpointConnectionProvisioningState;
+import com.azure.resourcemanager.iotcentral.models.PrivateLinkServiceConnectionState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The private endpoint connection resource. */
+@Fluent
+public final class PrivateEndpointConnectionInner extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private PrivateEndpointConnectionProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private PrivateEndpointConnectionProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the groupIds property: The group ids for the private endpoint resource.
+ *
+ * @return the groupIds value.
+ */
+ public List groupIds() {
+ return this.innerProperties() == null ? null : this.innerProperties().groupIds();
+ }
+
+ /**
+ * Get the privateEndpoint property: The private endpoint resource.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpoint();
+ }
+
+ /**
+ * Set the privateEndpoint property: The private endpoint resource.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateEndpoint(privateEndpoint);
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateLinkServiceConnectionState();
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
+ *
+ * @return the provisioningState value.
+ */
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/PrivateEndpointConnectionProperties.java
new file mode 100644
index 0000000000000..b301001cfc92e
--- /dev/null
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/PrivateEndpointConnectionProperties.java
@@ -0,0 +1,125 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotcentral.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.iotcentral.models.PrivateEndpoint;
+import com.azure.resourcemanager.iotcentral.models.PrivateEndpointConnectionProvisioningState;
+import com.azure.resourcemanager.iotcentral.models.PrivateLinkServiceConnectionState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties of the private endpoint connection. */
+@Fluent
+public final class PrivateEndpointConnectionProperties {
+ /*
+ * The group ids for the private endpoint resource.
+ */
+ @JsonProperty(value = "groupIds", access = JsonProperty.Access.WRITE_ONLY)
+ private List groupIds;
+
+ /*
+ * The private endpoint resource.
+ */
+ @JsonProperty(value = "privateEndpoint")
+ private PrivateEndpoint privateEndpoint;
+
+ /*
+ * A collection of information about the state of the connection between
+ * service consumer and provider.
+ */
+ @JsonProperty(value = "privateLinkServiceConnectionState", required = true)
+ private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+
+ /*
+ * The provisioning state of the private endpoint connection resource.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private PrivateEndpointConnectionProvisioningState provisioningState;
+
+ /**
+ * Get the groupIds property: The group ids for the private endpoint resource.
+ *
+ * @return the groupIds value.
+ */
+ public List groupIds() {
+ return this.groupIds;
+ }
+
+ /**
+ * Get the privateEndpoint property: The private endpoint resource.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the privateEndpoint property: The private endpoint resource.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
+ *
+ * @return the provisioningState value.
+ */
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (privateEndpoint() != null) {
+ privateEndpoint().validate();
+ }
+ if (privateLinkServiceConnectionState() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property privateLinkServiceConnectionState in model"
+ + " PrivateEndpointConnectionProperties"));
+ } else {
+ privateLinkServiceConnectionState().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionProperties.class);
+}
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/PrivateLinkResourceInner.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/PrivateLinkResourceInner.java
new file mode 100644
index 0000000000000..27427400772aa
--- /dev/null
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/PrivateLinkResourceInner.java
@@ -0,0 +1,98 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotcentral.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A private link resource. */
+@Fluent
+public final class PrivateLinkResourceInner extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private PrivateLinkResourceProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy
+ * information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private PrivateLinkResourceProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the groupId property: The private link resource group id.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.innerProperties() == null ? null : this.innerProperties().groupId();
+ }
+
+ /**
+ * Get the requiredMembers property: The private link resource required member names.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.innerProperties() == null ? null : this.innerProperties().requiredMembers();
+ }
+
+ /**
+ * Get the requiredZoneNames property: The private link resource private link DNS zone name.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.innerProperties() == null ? null : this.innerProperties().requiredZoneNames();
+ }
+
+ /**
+ * Set the requiredZoneNames property: The private link resource private link DNS zone name.
+ *
+ * @param requiredZoneNames the requiredZoneNames value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withRequiredZoneNames(List requiredZoneNames) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateLinkResourceProperties();
+ }
+ this.innerProperties().withRequiredZoneNames(requiredZoneNames);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/PrivateLinkResourceProperties.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/PrivateLinkResourceProperties.java
new file mode 100644
index 0000000000000..3ad6c8c3d87ac
--- /dev/null
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/fluent/models/PrivateLinkResourceProperties.java
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotcentral.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties of a private link resource. */
+@Fluent
+public final class PrivateLinkResourceProperties {
+ /*
+ * The private link resource group id.
+ */
+ @JsonProperty(value = "groupId", access = JsonProperty.Access.WRITE_ONLY)
+ private String groupId;
+
+ /*
+ * The private link resource required member names.
+ */
+ @JsonProperty(value = "requiredMembers", access = JsonProperty.Access.WRITE_ONLY)
+ private List requiredMembers;
+
+ /*
+ * The private link resource private link DNS zone name.
+ */
+ @JsonProperty(value = "requiredZoneNames")
+ private List requiredZoneNames;
+
+ /**
+ * Get the groupId property: The private link resource group id.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Get the requiredMembers property: The private link resource required member names.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.requiredMembers;
+ }
+
+ /**
+ * Get the requiredZoneNames property: The private link resource private link DNS zone name.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.requiredZoneNames;
+ }
+
+ /**
+ * Set the requiredZoneNames property: The private link resource private link DNS zone name.
+ *
+ * @param requiredZoneNames the requiredZoneNames value to set.
+ * @return the PrivateLinkResourceProperties object itself.
+ */
+ public PrivateLinkResourceProperties withRequiredZoneNames(List requiredZoneNames) {
+ this.requiredZoneNames = requiredZoneNames;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/AppImpl.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/AppImpl.java
index 74eaa77cea05d..5f629f2bd2636 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/AppImpl.java
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/AppImpl.java
@@ -7,13 +7,19 @@
import com.azure.core.management.Region;
import com.azure.core.util.Context;
import com.azure.resourcemanager.iotcentral.fluent.models.AppInner;
+import com.azure.resourcemanager.iotcentral.fluent.models.PrivateEndpointConnectionInner;
import com.azure.resourcemanager.iotcentral.models.App;
-import com.azure.resourcemanager.iotcentral.models.AppPatch;
import com.azure.resourcemanager.iotcentral.models.AppSkuInfo;
import com.azure.resourcemanager.iotcentral.models.AppState;
+import com.azure.resourcemanager.iotcentral.models.NetworkRuleSets;
+import com.azure.resourcemanager.iotcentral.models.PrivateEndpointConnection;
+import com.azure.resourcemanager.iotcentral.models.ProvisioningState;
+import com.azure.resourcemanager.iotcentral.models.PublicNetworkAccess;
import com.azure.resourcemanager.iotcentral.models.SystemAssignedServiceIdentity;
import java.util.Collections;
+import java.util.List;
import java.util.Map;
+import java.util.stream.Collectors;
public final class AppImpl implements App, App.Definition, App.Update {
private AppInner innerObject;
@@ -53,6 +59,10 @@ public SystemAssignedServiceIdentity identity() {
return this.innerModel().identity();
}
+ public ProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
public String applicationId() {
return this.innerModel().applicationId();
}
@@ -73,6 +83,28 @@ public AppState state() {
return this.innerModel().state();
}
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.innerModel().publicNetworkAccess();
+ }
+
+ public NetworkRuleSets networkRuleSets() {
+ return this.innerModel().networkRuleSets();
+ }
+
+ public List privateEndpointConnections() {
+ List inner = this.innerModel().privateEndpointConnections();
+ if (inner != null) {
+ return Collections
+ .unmodifiableList(
+ inner
+ .stream()
+ .map(inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -93,8 +125,6 @@ private com.azure.resourcemanager.iotcentral.IotCentralManager manager() {
private String resourceName;
- private AppPatch updateAppPatch;
-
public AppImpl withExistingResourceGroup(String resourceGroupName) {
this.resourceGroupName = resourceGroupName;
return this;
@@ -125,7 +155,6 @@ public App create(Context context) {
}
public AppImpl update() {
- this.updateAppPatch = new AppPatch();
return this;
}
@@ -134,13 +163,16 @@ public App apply() {
serviceManager
.serviceClient()
.getApps()
- .update(resourceGroupName, resourceName, updateAppPatch, Context.NONE);
+ .createOrUpdate(resourceGroupName, resourceName, this.innerModel(), Context.NONE);
return this;
}
public App apply(Context context) {
this.innerObject =
- serviceManager.serviceClient().getApps().update(resourceGroupName, resourceName, updateAppPatch, context);
+ serviceManager
+ .serviceClient()
+ .getApps()
+ .createOrUpdate(resourceGroupName, resourceName, this.innerModel(), context);
return this;
}
@@ -182,53 +214,28 @@ public AppImpl withRegion(String location) {
}
public AppImpl withSku(AppSkuInfo sku) {
- if (isInCreateMode()) {
- this.innerModel().withSku(sku);
- return this;
- } else {
- this.updateAppPatch.withSku(sku);
- return this;
- }
+ this.innerModel().withSku(sku);
+ return this;
}
public AppImpl withTags(Map tags) {
- if (isInCreateMode()) {
- this.innerModel().withTags(tags);
- return this;
- } else {
- this.updateAppPatch.withTags(tags);
- return this;
- }
+ this.innerModel().withTags(tags);
+ return this;
}
public AppImpl withIdentity(SystemAssignedServiceIdentity identity) {
- if (isInCreateMode()) {
- this.innerModel().withIdentity(identity);
- return this;
- } else {
- this.updateAppPatch.withIdentity(identity);
- return this;
- }
+ this.innerModel().withIdentity(identity);
+ return this;
}
public AppImpl withDisplayName(String displayName) {
- if (isInCreateMode()) {
- this.innerModel().withDisplayName(displayName);
- return this;
- } else {
- this.updateAppPatch.withDisplayName(displayName);
- return this;
- }
+ this.innerModel().withDisplayName(displayName);
+ return this;
}
public AppImpl withSubdomain(String subdomain) {
- if (isInCreateMode()) {
- this.innerModel().withSubdomain(subdomain);
- return this;
- } else {
- this.updateAppPatch.withSubdomain(subdomain);
- return this;
- }
+ this.innerModel().withSubdomain(subdomain);
+ return this;
}
public AppImpl withTemplate(String template) {
@@ -236,7 +243,13 @@ public AppImpl withTemplate(String template) {
return this;
}
- private boolean isInCreateMode() {
- return this.innerModel().id() == null;
+ public AppImpl withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ this.innerModel().withPublicNetworkAccess(publicNetworkAccess);
+ return this;
+ }
+
+ public AppImpl withNetworkRuleSets(NetworkRuleSets networkRuleSets) {
+ this.innerModel().withNetworkRuleSets(networkRuleSets);
+ return this;
}
}
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/AppsClientImpl.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/AppsClientImpl.java
index ccd794e425e27..36aaf41fa919d 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/AppsClientImpl.java
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/AppsClientImpl.java
@@ -31,7 +31,6 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.iotcentral.fluent.AppsClient;
@@ -48,8 +47,6 @@
/** An instance of this class provides access to all the operations defined in AppsClient. */
public final class AppsClientImpl implements AppsClient {
- private final ClientLogger logger = new ClientLogger(AppsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final AppsService service;
@@ -92,7 +89,7 @@ Mono> getByResourceGroup(
@Put(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps"
+ "/{resourceName}")
- @ExpectedResponses({200, 201, 202})
+ @ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> createOrUpdate(
@HostParam("$host") String endpoint,
@@ -108,7 +105,7 @@ Mono>> createOrUpdate(
@Patch(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps"
+ "/{resourceName}")
- @ExpectedResponses({200, 202})
+ @ExpectedResponses({202})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> update(
@HostParam("$host") String endpoint,
@@ -124,7 +121,7 @@ Mono>> update(
@Delete(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps"
+ "/{resourceName}")
- @ExpectedResponses({200, 202, 204})
+ @ExpectedResponses({202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@HostParam("$host") String endpoint,
@@ -233,7 +230,8 @@ Mono> listTemplatesNext(
* @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 metadata of an IoT Central application.
+ * @return the metadata of an IoT Central application along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -282,7 +280,8 @@ private Mono> getByResourceGroupWithResponseAsync(
* @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 metadata of an IoT Central application.
+ * @return the metadata of an IoT Central application along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -327,7 +326,7 @@ private Mono> getByResourceGroupWithResponseAsync(
* @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 metadata of an IoT Central application.
+ * @return the metadata of an IoT Central application on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getByResourceGroupAsync(String resourceGroupName, String resourceName) {
@@ -366,7 +365,7 @@ public AppInner getByResourceGroup(String resourceGroupName, String resourceName
* @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 metadata of an IoT Central application.
+ * @return the metadata of an IoT Central application along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getByResourceGroupWithResponse(
@@ -385,7 +384,7 @@ 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 IoT Central application.
+ * @return the IoT Central application along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -443,7 +442,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 the IoT Central application.
+ * @return the IoT Central application along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -497,7 +496,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 the IoT Central application.
+ * @return the {@link PollerFlux} for polling of the IoT Central application.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, AppInner> beginCreateOrUpdateAsync(
@@ -506,7 +505,7 @@ private PollerFlux, AppInner> beginCreateOrUpdateAsync(
return this
.client
.getLroResult(
- mono, this.client.getHttpPipeline(), AppInner.class, AppInner.class, Context.NONE);
+ mono, this.client.getHttpPipeline(), AppInner.class, AppInner.class, this.client.getContext());
}
/**
@@ -521,7 +520,7 @@ private PollerFlux, AppInner> beginCreateOrUpdateAsync(
* @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 IoT Central application.
+ * @return the {@link PollerFlux} for polling of the IoT Central application.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, AppInner> beginCreateOrUpdateAsync(
@@ -546,7 +545,7 @@ private PollerFlux, AppInner> beginCreateOrUpdateAsync(
* @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 IoT Central application.
+ * @return the {@link SyncPoller} for polling of the IoT Central application.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, AppInner> beginCreateOrUpdate(
@@ -566,7 +565,7 @@ public SyncPoller, AppInner> beginCreateOrUpdate(
* @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 IoT Central application.
+ * @return the {@link SyncPoller} for polling of the IoT Central application.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, AppInner> beginCreateOrUpdate(
@@ -585,7 +584,7 @@ public SyncPoller, AppInner> beginCreateOrUpdate(
* @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 IoT Central application.
+ * @return the IoT Central application on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, AppInner app) {
@@ -606,7 +605,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, String reso
* @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 IoT Central application.
+ * @return the IoT Central application on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -662,7 +661,7 @@ public AppInner createOrUpdate(String resourceGroupName, String resourceName, Ap
* @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 IoT Central application.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -718,7 +717,7 @@ 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 IoT Central application.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -770,16 +769,16 @@ 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 IoT Central application.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, AppInner> beginUpdateAsync(
+ private PollerFlux, Void> beginUpdateAsync(
String resourceGroupName, String resourceName, AppPatch appPatch) {
Mono>> mono = updateWithResponseAsync(resourceGroupName, resourceName, appPatch);
return this
.client
- .getLroResult(
- mono, this.client.getHttpPipeline(), AppInner.class, AppInner.class, Context.NONE);
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}
/**
@@ -792,18 +791,17 @@ private PollerFlux, AppInner> beginUpdateAsync(
* @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 IoT Central application.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, AppInner> beginUpdateAsync(
+ private PollerFlux, Void> beginUpdateAsync(
String resourceGroupName, String resourceName, AppPatch appPatch, Context context) {
context = this.client.mergeContext(context);
Mono>> mono =
updateWithResponseAsync(resourceGroupName, resourceName, appPatch, context);
return this
.client
- .getLroResult(
- mono, this.client.getHttpPipeline(), AppInner.class, AppInner.class, context);
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
}
/**
@@ -815,10 +813,10 @@ private PollerFlux, AppInner> beginUpdateAsync(
* @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 IoT Central application.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, AppInner> beginUpdate(
+ public SyncPoller, Void> beginUpdate(
String resourceGroupName, String resourceName, AppPatch appPatch) {
return beginUpdateAsync(resourceGroupName, resourceName, appPatch).getSyncPoller();
}
@@ -833,10 +831,10 @@ public SyncPoller, AppInner> beginUpdate(
* @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 IoT Central application.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, AppInner> beginUpdate(
+ public SyncPoller, Void> beginUpdate(
String resourceGroupName, String resourceName, AppPatch appPatch, Context context) {
return beginUpdateAsync(resourceGroupName, resourceName, appPatch, context).getSyncPoller();
}
@@ -850,10 +848,10 @@ public SyncPoller, AppInner> beginUpdate(
* @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 IoT Central application.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String resourceName, AppPatch appPatch) {
+ private Mono updateAsync(String resourceGroupName, String resourceName, AppPatch appPatch) {
return beginUpdateAsync(resourceGroupName, resourceName, appPatch)
.last()
.flatMap(this.client::getLroFinalResultOrError);
@@ -869,11 +867,10 @@ private Mono updateAsync(String resourceGroupName, String resourceName
* @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 IoT Central application.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(
- String resourceGroupName, String resourceName, AppPatch appPatch, Context context) {
+ private Mono updateAsync(String resourceGroupName, String resourceName, AppPatch appPatch, Context context) {
return beginUpdateAsync(resourceGroupName, resourceName, appPatch, context)
.last()
.flatMap(this.client::getLroFinalResultOrError);
@@ -888,11 +885,10 @@ 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 IoT Central application.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public AppInner update(String resourceGroupName, String resourceName, AppPatch appPatch) {
- return updateAsync(resourceGroupName, resourceName, appPatch).block();
+ public void update(String resourceGroupName, String resourceName, AppPatch appPatch) {
+ updateAsync(resourceGroupName, resourceName, appPatch).block();
}
/**
@@ -905,11 +901,10 @@ public AppInner update(String resourceGroupName, String resourceName, AppPatch a
* @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 IoT Central application.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public AppInner update(String resourceGroupName, String resourceName, AppPatch appPatch, Context context) {
- return updateAsync(resourceGroupName, resourceName, appPatch, context).block();
+ public void update(String resourceGroupName, String resourceName, AppPatch appPatch, Context context) {
+ updateAsync(resourceGroupName, resourceName, appPatch, context).block();
}
/**
@@ -920,7 +915,7 @@ public AppInner update(String resourceGroupName, String resourceName, AppPatch a
* @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 completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName) {
@@ -968,7 +963,7 @@ 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 completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
@@ -1013,14 +1008,15 @@ 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 completion.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName) {
Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName);
return this
.client
- .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}
/**
@@ -1032,7 +1028,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
* @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 completion.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
@@ -1052,7 +1048,7 @@ private PollerFlux, Void> beginDeleteAsync(
* @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 completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName) {
@@ -1068,7 +1064,7 @@ public SyncPoller, Void> beginDelete(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 completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
@@ -1084,7 +1080,7 @@ public SyncPoller, Void> beginDelete(
* @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 completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String resourceName) {
@@ -1100,7 +1096,7 @@ private Mono deleteAsync(String resourceGroupName, String resourceName) {
* @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 completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String resourceName, Context context) {
@@ -1143,7 +1139,8 @@ public void delete(String resourceGroupName, String resourceName, Context contex
*
* @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 IoT Central Applications in a subscription.
+ * @return all IoT Central Applications in a subscription along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -1189,7 +1186,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 IoT Central Applications in a subscription.
+ * @return all IoT Central Applications in a subscription along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -1230,7 +1228,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 all IoT Central Applications in a subscription.
+ * @return all IoT Central Applications in a subscription as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -1245,7 +1243,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 IoT Central Applications in a subscription.
+ * @return all IoT Central Applications in a subscription as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
@@ -1258,7 +1256,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 IoT Central Applications in a subscription.
+ * @return all IoT Central Applications in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -1272,7 +1270,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 IoT Central Applications in a subscription.
+ * @return all IoT Central Applications in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(Context context) {
@@ -1286,7 +1284,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 IoT Central Applications in a resource group.
+ * @return all the IoT Central Applications in a resource group along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
@@ -1338,7 +1337,8 @@ private Mono> listByResourceGroupSinglePageAsync(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 IoT Central Applications in a resource group.
+ * @return all the IoT Central Applications in a resource group along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(
@@ -1387,7 +1387,7 @@ private Mono> listByResourceGroupSinglePageAsync(
* @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 IoT Central Applications in a resource group.
+ * @return all the IoT Central Applications in a resource group as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
@@ -1404,7 +1404,7 @@ private PagedFlux listByResourceGroupAsync(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 all the IoT Central Applications in a resource group.
+ * @return all the IoT Central Applications in a resource group as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
@@ -1420,7 +1420,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupName, C
* @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 IoT Central Applications in a resource group.
+ * @return all the IoT Central Applications in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName) {
@@ -1435,7 +1435,7 @@ public PagedIterable listByResourceGroup(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 all the IoT Central Applications in a resource group.
+ * @return all the IoT Central Applications in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
@@ -1450,7 +1450,8 @@ public PagedIterable listByResourceGroup(String resourceGroupName, Con
* @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 properties indicating whether a given IoT Central application name or subdomain is available.
+ * @return the properties indicating whether a given IoT Central application name or subdomain is available along
+ * with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> checkNameAvailabilityWithResponseAsync(
@@ -1497,7 +1498,8 @@ private Mono> checkNameAvailabilityWithRespon
* @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 properties indicating whether a given IoT Central application name or subdomain is available.
+ * @return the properties indicating whether a given IoT Central application name or subdomain is available along
+ * with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> checkNameAvailabilityWithResponseAsync(
@@ -1540,7 +1542,8 @@ private Mono> checkNameAvailabilityWithRespon
* @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 properties indicating whether a given IoT Central application name or subdomain is available.
+ * @return the properties indicating whether a given IoT Central application name or subdomain is available on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono checkNameAvailabilityAsync(OperationInputs operationInputs) {
@@ -1579,7 +1582,8 @@ public AppAvailabilityInfoInner checkNameAvailability(OperationInputs operationI
* @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 properties indicating whether a given IoT Central application name or subdomain is available.
+ * @return the properties indicating whether a given IoT Central application name or subdomain is available along
+ * with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response checkNameAvailabilityWithResponse(
@@ -1595,7 +1599,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 the properties indicating whether a given IoT Central application name or subdomain is available.
+ * @return the properties indicating whether a given IoT Central application name or subdomain is available along
+ * with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> checkSubdomainAvailabilityWithResponseAsync(
@@ -1642,7 +1647,8 @@ private Mono> checkSubdomainAvailabilityWithR
* @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 properties indicating whether a given IoT Central application name or subdomain is available.
+ * @return the properties indicating whether a given IoT Central application name or subdomain is available along
+ * with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> checkSubdomainAvailabilityWithResponseAsync(
@@ -1685,7 +1691,8 @@ private Mono> checkSubdomainAvailabilityWithR
* @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 properties indicating whether a given IoT Central application name or subdomain is available.
+ * @return the properties indicating whether a given IoT Central application name or subdomain is available on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono checkSubdomainAvailabilityAsync(OperationInputs operationInputs) {
@@ -1724,7 +1731,8 @@ public AppAvailabilityInfoInner checkSubdomainAvailability(OperationInputs opera
* @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 properties indicating whether a given IoT Central application name or subdomain is available.
+ * @return the properties indicating whether a given IoT Central application name or subdomain is available along
+ * with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response checkSubdomainAvailabilityWithResponse(
@@ -1737,7 +1745,8 @@ public Response checkSubdomainAvailabilityWithResponse
*
* @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 available application templates.
+ * @return all available application templates along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listTemplatesSinglePageAsync() {
@@ -1783,7 +1792,8 @@ private Mono> listTemplatesSinglePageAsync() {
* @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 available application templates.
+ * @return all available application templates along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listTemplatesSinglePageAsync(Context context) {
@@ -1824,7 +1834,7 @@ private Mono> listTemplatesSinglePageAsync(Conte
*
* @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 available application templates.
+ * @return all available application templates as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listTemplatesAsync() {
@@ -1839,7 +1849,7 @@ private PagedFlux listTemplatesAsync() {
* @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 available application templates.
+ * @return all available application templates as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listTemplatesAsync(Context context) {
@@ -1853,7 +1863,7 @@ private PagedFlux listTemplatesAsync(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 available application templates.
+ * @return all available application templates as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listTemplates() {
@@ -1867,7 +1877,7 @@ public PagedIterable listTemplates() {
* @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 available application templates.
+ * @return all available application templates as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listTemplates(Context context) {
@@ -1881,7 +1891,8 @@ public PagedIterable listTemplates(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 IoT Central Applications with a next link.
+ * @return a list of IoT Central Applications with a next link along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
@@ -1918,7 +1929,8 @@ private Mono> listBySubscriptionNextSinglePageAsync(Stri
* @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 IoT Central Applications with a next link.
+ * @return a list of IoT Central Applications with a next link along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, Context context) {
@@ -1953,7 +1965,8 @@ private Mono> listBySubscriptionNextSinglePageAsync(Stri
* @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 IoT Central Applications with a next link.
+ * @return a list of IoT Central Applications with a next link along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
@@ -1990,7 +2003,8 @@ private Mono> listByResourceGroupNextSinglePageAsync(Str
* @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 IoT Central Applications with a next link.
+ * @return a list of IoT Central Applications with a next link along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, Context context) {
@@ -2025,7 +2039,8 @@ private Mono> listByResourceGroupNextSinglePageAsync(Str
* @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 IoT Central Application Templates with a next link.
+ * @return a list of IoT Central Application Templates with a next link along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listTemplatesNextSinglePageAsync(String nextLink) {
@@ -2061,7 +2076,8 @@ private Mono> listTemplatesNextSinglePageAsync(S
* @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 IoT Central Application Templates with a next link.
+ * @return a list of IoT Central Application Templates with a next link along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listTemplatesNextSinglePageAsync(String nextLink, Context context) {
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/AppsImpl.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/AppsImpl.java
index 5a52afca51106..97e8dc1db7872 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/AppsImpl.java
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/AppsImpl.java
@@ -15,13 +15,13 @@
import com.azure.resourcemanager.iotcentral.fluent.models.AppTemplateInner;
import com.azure.resourcemanager.iotcentral.models.App;
import com.azure.resourcemanager.iotcentral.models.AppAvailabilityInfo;
+import com.azure.resourcemanager.iotcentral.models.AppPatch;
import com.azure.resourcemanager.iotcentral.models.AppTemplate;
import com.azure.resourcemanager.iotcentral.models.Apps;
import com.azure.resourcemanager.iotcentral.models.OperationInputs;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class AppsImpl implements Apps {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AppsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(AppsImpl.class);
private final AppsClient innerClient;
@@ -56,6 +56,14 @@ public Response getByResourceGroupWithResponse(
}
}
+ public void update(String resourceGroupName, String resourceName, AppPatch appPatch) {
+ this.serviceClient().update(resourceGroupName, resourceName, appPatch);
+ }
+
+ public void update(String resourceGroupName, String resourceName, AppPatch appPatch, Context context) {
+ this.serviceClient().update(resourceGroupName, resourceName, appPatch, context);
+ }
+
public void deleteByResourceGroup(String resourceGroupName, String resourceName) {
this.serviceClient().delete(resourceGroupName, resourceName);
}
@@ -145,7 +153,7 @@ public PagedIterable listTemplates(Context context) {
public App getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -153,7 +161,7 @@ public App getById(String id) {
}
String resourceName = Utils.getValueFromIdByName(id, "iotApps");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'iotApps'.", id)));
@@ -164,7 +172,7 @@ public App getById(String id) {
public Response getByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -172,7 +180,7 @@ public Response getByIdWithResponse(String id, Context context) {
}
String resourceName = Utils.getValueFromIdByName(id, "iotApps");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'iotApps'.", id)));
@@ -183,7 +191,7 @@ public Response getByIdWithResponse(String id, Context context) {
public void deleteById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -191,7 +199,7 @@ public void deleteById(String id) {
}
String resourceName = Utils.getValueFromIdByName(id, "iotApps");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'iotApps'.", id)));
@@ -202,7 +210,7 @@ public void deleteById(String id) {
public void deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -210,7 +218,7 @@ public void deleteByIdWithResponse(String id, Context context) {
}
String resourceName = Utils.getValueFromIdByName(id, "iotApps");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'iotApps'.", id)));
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/IotCentralClientImpl.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/IotCentralClientImpl.java
index 28294e8e2e3eb..ae604556b866f 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/IotCentralClientImpl.java
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/IotCentralClientImpl.java
@@ -24,6 +24,8 @@
import com.azure.resourcemanager.iotcentral.fluent.AppsClient;
import com.azure.resourcemanager.iotcentral.fluent.IotCentralClient;
import com.azure.resourcemanager.iotcentral.fluent.OperationsClient;
+import com.azure.resourcemanager.iotcentral.fluent.PrivateEndpointConnectionsClient;
+import com.azure.resourcemanager.iotcentral.fluent.PrivateLinksClient;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;
@@ -37,8 +39,6 @@
/** Initializes a new instance of the IotCentralClientImpl type. */
@ServiceClient(builder = IotCentralClientBuilder.class)
public final class IotCentralClientImpl implements IotCentralClient {
- private final ClientLogger logger = new ClientLogger(IotCentralClientImpl.class);
-
/** The subscription identifier. */
private final String subscriptionId;
@@ -123,6 +123,30 @@ public AppsClient getApps() {
return this.apps;
}
+ /** The PrivateEndpointConnectionsClient object to access its operations. */
+ private final PrivateEndpointConnectionsClient privateEndpointConnections;
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /** The PrivateLinksClient object to access its operations. */
+ private final PrivateLinksClient privateLinks;
+
+ /**
+ * Gets the PrivateLinksClient object to access its operations.
+ *
+ * @return the PrivateLinksClient object.
+ */
+ public PrivateLinksClient getPrivateLinks() {
+ return this.privateLinks;
+ }
+
/** The OperationsClient object to access its operations. */
private final OperationsClient operations;
@@ -157,8 +181,10 @@ public OperationsClient getOperations() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2021-06-01";
+ this.apiVersion = "2021-11-01-preview";
this.apps = new AppsClientImpl(this);
+ this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
+ this.privateLinks = new PrivateLinksClientImpl(this);
this.operations = new OperationsClientImpl(this);
}
@@ -245,7 +271,7 @@ public Mono getLroFinalResultOrError(AsyncPollResponse,
managementError = null;
}
} catch (IOException | RuntimeException ioe) {
- logger.logThrowableAsWarning(ioe);
+ LOGGER.logThrowableAsWarning(ioe);
}
}
} else {
@@ -304,4 +330,6 @@ public Mono getBodyAsString(Charset charset) {
return Mono.just(new String(responseBody, charset));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(IotCentralClientImpl.class);
}
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/OperationsClientImpl.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/OperationsClientImpl.java
index 9b34a05ad0a69..f40fc4ddf1efb 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/OperationsClientImpl.java
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/OperationsClientImpl.java
@@ -25,7 +25,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iotcentral.fluent.OperationsClient;
import com.azure.resourcemanager.iotcentral.fluent.models.OperationInner;
import com.azure.resourcemanager.iotcentral.models.OperationListResult;
@@ -33,8 +32,6 @@
/** An instance of this class provides access to all the operations defined in OperationsClient. */
public final class OperationsClientImpl implements OperationsClient {
- private final ClientLogger logger = new ClientLogger(OperationsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final OperationsService service;
@@ -85,7 +82,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 IoT Central operations.
+ * @return a list of IoT Central operations along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -118,7 +116,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 IoT Central operations.
+ * @return a list of IoT Central operations along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -148,7 +147,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 IoT Central operations.
+ * @return a list of IoT Central operations as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -162,7 +161,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 IoT Central operations.
+ * @return a list of IoT Central operations as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
@@ -175,7 +174,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 IoT Central operations.
+ * @return a list of IoT Central operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -189,7 +188,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 IoT Central operations.
+ * @return a list of IoT Central operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(Context context) {
@@ -203,7 +202,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 IoT Central operations.
+ * @return a list of IoT Central operations along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -239,7 +239,8 @@ private Mono> listNextSinglePageAsync(String nextL
* @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 IoT Central operations.
+ * @return a list of IoT Central operations along with {@link PagedResponse} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink, Context context) {
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/OperationsImpl.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/OperationsImpl.java
index 03f136e3b2b79..305c0c34e17b9 100644
--- a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/OperationsImpl.java
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/OperationsImpl.java
@@ -11,10 +11,9 @@
import com.azure.resourcemanager.iotcentral.fluent.models.OperationInner;
import com.azure.resourcemanager.iotcentral.models.Operation;
import com.azure.resourcemanager.iotcentral.models.Operations;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class OperationsImpl implements Operations {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class);
private final OperationsClient innerClient;
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/PrivateEndpointConnectionImpl.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/PrivateEndpointConnectionImpl.java
new file mode 100644
index 0000000000000..e0efe2693920d
--- /dev/null
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/PrivateEndpointConnectionImpl.java
@@ -0,0 +1,142 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotcentral.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.iotcentral.fluent.models.PrivateEndpointConnectionInner;
+import com.azure.resourcemanager.iotcentral.models.PrivateEndpoint;
+import com.azure.resourcemanager.iotcentral.models.PrivateEndpointConnection;
+import com.azure.resourcemanager.iotcentral.models.PrivateEndpointConnectionProvisioningState;
+import com.azure.resourcemanager.iotcentral.models.PrivateLinkServiceConnectionState;
+import java.util.Collections;
+import java.util.List;
+
+public final class PrivateEndpointConnectionImpl
+ implements PrivateEndpointConnection, PrivateEndpointConnection.Definition {
+ private PrivateEndpointConnectionInner innerObject;
+
+ private final com.azure.resourcemanager.iotcentral.IotCentralManager serviceManager;
+
+ PrivateEndpointConnectionImpl(
+ PrivateEndpointConnectionInner innerObject,
+ com.azure.resourcemanager.iotcentral.IotCentralManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public List groupIds() {
+ List inner = this.innerModel().groupIds();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public PrivateEndpoint privateEndpoint() {
+ return this.innerModel().privateEndpoint();
+ }
+
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.innerModel().privateLinkServiceConnectionState();
+ }
+
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public PrivateEndpointConnectionInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.iotcentral.IotCentralManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String resourceName;
+
+ private String privateEndpointConnectionName;
+
+ public PrivateEndpointConnectionImpl withExistingIotApp(String resourceGroupName, String resourceName) {
+ this.resourceGroupName = resourceGroupName;
+ this.resourceName = resourceName;
+ return this;
+ }
+
+ public PrivateEndpointConnection create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getPrivateEndpointConnections()
+ .create(
+ resourceGroupName, resourceName, privateEndpointConnectionName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public PrivateEndpointConnection create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getPrivateEndpointConnections()
+ .create(resourceGroupName, resourceName, privateEndpointConnectionName, this.innerModel(), context);
+ return this;
+ }
+
+ PrivateEndpointConnectionImpl(String name, com.azure.resourcemanager.iotcentral.IotCentralManager serviceManager) {
+ this.innerObject = new PrivateEndpointConnectionInner();
+ this.serviceManager = serviceManager;
+ this.privateEndpointConnectionName = name;
+ }
+
+ public PrivateEndpointConnection refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getPrivateEndpointConnections()
+ .getWithResponse(resourceGroupName, resourceName, privateEndpointConnectionName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public PrivateEndpointConnection refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getPrivateEndpointConnections()
+ .getWithResponse(resourceGroupName, resourceName, privateEndpointConnectionName, context)
+ .getValue();
+ return this;
+ }
+
+ public PrivateEndpointConnectionImpl withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ this.innerModel().withPrivateEndpoint(privateEndpoint);
+ return this;
+ }
+
+ public PrivateEndpointConnectionImpl withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ this.innerModel().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
+ return this;
+ }
+}
diff --git a/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/PrivateEndpointConnectionsClientImpl.java
new file mode 100644
index 0000000000000..848ba8b95a5f8
--- /dev/null
+++ b/sdk/iotcentral/azure-resourcemanager-iotcentral/src/main/java/com/azure/resourcemanager/iotcentral/implementation/PrivateEndpointConnectionsClientImpl.java
@@ -0,0 +1,1090 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotcentral.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.iotcentral.fluent.PrivateEndpointConnectionsClient;
+import com.azure.resourcemanager.iotcentral.fluent.models.PrivateEndpointConnectionInner;
+import com.azure.resourcemanager.iotcentral.models.PrivateEndpointConnectionListResult;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
+public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpointConnectionsClient {
+ /** The proxy service used to perform REST calls. */
+ private final PrivateEndpointConnectionsService service;
+
+ /** The service client containing this operation class. */
+ private final IotCentralClientImpl client;
+
+ /**
+ * Initializes an instance of PrivateEndpointConnectionsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ PrivateEndpointConnectionsClientImpl(IotCentralClientImpl client) {
+ this.service =
+ RestProxy
+ .create(
+ PrivateEndpointConnectionsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for IotCentralClientPrivateEndpointConnections to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "IotCentralClientPriv")
+ private interface PrivateEndpointConnectionsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps"
+ + "/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("resourceName") String resourceName,
+ @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps"
+ + "/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> create(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("resourceName") String resourceName,
+ @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName,
+ @BodyParam("application/json") PrivateEndpointConnectionInner privateEndpointConnection,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps"
+ + "/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}")
+ @ExpectedResponses({202, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("resourceName") String resourceName,
+ @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps"
+ + "/{resourceName}/privateEndpointConnections")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("resourceName") String resourceName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Get the metadata of a private endpoint connection for the IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @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 metadata of a private endpoint connection for the IoT Central Application along with {@link Response}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String resourceName, String privateEndpointConnectionName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (privateEndpointConnectionName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter privateEndpointConnectionName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ privateEndpointConnectionName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the metadata of a private endpoint connection for the IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param context The context to associate with this operation.
+ * @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 metadata of a private endpoint connection for the IoT Central Application along with {@link Response}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (privateEndpointConnectionName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter privateEndpointConnectionName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ privateEndpointConnectionName,
+ accept,
+ context);
+ }
+
+ /**
+ * Get the metadata of a private endpoint connection for the IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @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 metadata of a private endpoint connection for the IoT Central Application on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName, String resourceName, String privateEndpointConnectionName) {
+ return getWithResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
+ /**
+ * Get the metadata of a private endpoint connection for the IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @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 metadata of a private endpoint connection for the IoT Central Application.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PrivateEndpointConnectionInner get(
+ String resourceGroupName, String resourceName, String privateEndpointConnectionName) {
+ return getAsync(resourceGroupName, resourceName, privateEndpointConnectionName).block();
+ }
+
+ /**
+ * Get the metadata of a private endpoint connection for the IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param context The context to associate with this operation.
+ * @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 metadata of a private endpoint connection for the IoT Central Application along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context) {
+ return getWithResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName, context).block();
+ }
+
+ /**
+ * Update a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param privateEndpointConnection The private endpoint connection metadata.
+ * @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 private endpoint connection resource along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(
+ String resourceGroupName,
+ String resourceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (privateEndpointConnectionName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter privateEndpointConnectionName is required and cannot be null."));
+ }
+ if (privateEndpointConnection == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter privateEndpointConnection is required and cannot be null."));
+ } else {
+ privateEndpointConnection.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .create(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ privateEndpointConnectionName,
+ privateEndpointConnection,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param privateEndpointConnection The private endpoint connection metadata.
+ * @param context The context to associate with this operation.
+ * @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 private endpoint connection resource along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(
+ String resourceGroupName,
+ String resourceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (privateEndpointConnectionName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter privateEndpointConnectionName is required and cannot be null."));
+ }
+ if (privateEndpointConnection == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter privateEndpointConnection is required and cannot be null."));
+ } else {
+ privateEndpointConnection.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .create(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ privateEndpointConnectionName,
+ privateEndpointConnection,
+ accept,
+ context);
+ }
+
+ /**
+ * Update a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param privateEndpointConnection The private endpoint connection metadata.
+ * @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 {@link PollerFlux} for polling of the private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, PrivateEndpointConnectionInner> beginCreateAsync(
+ String resourceGroupName,
+ String resourceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection) {
+ Mono>> mono =
+ createWithResponseAsync(
+ resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ PrivateEndpointConnectionInner.class,
+ PrivateEndpointConnectionInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Update a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param privateEndpointConnection The private endpoint connection metadata.
+ * @param context The context to associate with this operation.
+ * @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 {@link PollerFlux} for polling of the private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, PrivateEndpointConnectionInner> beginCreateAsync(
+ String resourceGroupName,
+ String resourceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createWithResponseAsync(
+ resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ PrivateEndpointConnectionInner.class,
+ PrivateEndpointConnectionInner.class,
+ context);
+ }
+
+ /**
+ * Update a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param privateEndpointConnection The private endpoint connection metadata.
+ * @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 {@link SyncPoller} for polling of the private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, PrivateEndpointConnectionInner> beginCreate(
+ String resourceGroupName,
+ String resourceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection) {
+ return beginCreateAsync(
+ resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection)
+ .getSyncPoller();
+ }
+
+ /**
+ * Update a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param privateEndpointConnection The private endpoint connection metadata.
+ * @param context The context to associate with this operation.
+ * @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 {@link SyncPoller} for polling of the private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, PrivateEndpointConnectionInner> beginCreate(
+ String resourceGroupName,
+ String resourceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection,
+ Context context) {
+ return beginCreateAsync(
+ resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Update a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param privateEndpointConnection The private endpoint connection metadata.
+ * @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 private endpoint connection resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(
+ String resourceGroupName,
+ String resourceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection) {
+ return beginCreateAsync(
+ resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param privateEndpointConnection The private endpoint connection metadata.
+ * @param context The context to associate with this operation.
+ * @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 private endpoint connection resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(
+ String resourceGroupName,
+ String resourceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection,
+ Context context) {
+ return beginCreateAsync(
+ resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param privateEndpointConnection The private endpoint connection metadata.
+ * @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 private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PrivateEndpointConnectionInner create(
+ String resourceGroupName,
+ String resourceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection) {
+ return createAsync(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection)
+ .block();
+ }
+
+ /**
+ * Update a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param privateEndpointConnection The private endpoint connection metadata.
+ * @param context The context to associate with this operation.
+ * @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 private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PrivateEndpointConnectionInner create(
+ String resourceGroupName,
+ String resourceName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection,
+ Context context) {
+ return createAsync(
+ resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, context)
+ .block();
+ }
+
+ /**
+ * Deletes a private endpoint connection from the IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String resourceName, String privateEndpointConnectionName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (privateEndpointConnectionName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter privateEndpointConnectionName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ privateEndpointConnectionName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes a private endpoint connection from the IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param context The context to associate with this operation.
+ * @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(
+ String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (resourceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
+ }
+ if (privateEndpointConnectionName == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter privateEndpointConnectionName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ resourceName,
+ privateEndpointConnectionName,
+ accept,
+ context);
+ }
+
+ /**
+ * Deletes a private endpoint connection from the IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @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 {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String resourceName, String privateEndpointConnectionName) {
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * Deletes a private endpoint connection from the IoT Central Application.
+ *
+ * @param resourceGroupName The name of the resource group that contains the IoT Central application.
+ * @param resourceName The ARM resource name of the IoT Central application.
+ * @param privateEndpointConnectionName The private endpoint connection name.
+ * @param context The context to associate with this operation.
+ * @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 {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux