diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/pom.xml b/iotcentral/resource-manager/v2017_07_01_privatepreview/pom.xml
index 6854016061bb6..43420fda28179 100644
--- a/iotcentral/resource-manager/v2017_07_01_privatepreview/pom.xml
+++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/pom.xml
@@ -1,133 +1,133 @@
-
-
- 4.0.0
- com.microsoft.azure.iotcentral.v2017_07_01_privatepreview
-
- com.microsoft.azure
- azure-arm-parent
- 0.0.2-beta
- ../../../pom.xml
-
- azure-mgmt-iotcentral
- 1.0.0-beta
- jar
- Microsoft Azure SDK for IoTCentral Management
- This package contains Microsoft IoTCentral Management SDK.
- https://github.com/Azure/azure-libraries-for-java
-
-
- The MIT License (MIT)
- http://opensource.org/licenses/MIT
- repo
-
-
-
- scm:git:https://github.com/Azure/azure-libraries-for-java
- scm:git:git@github.com:Azure/azure-libraries-for-java.git
- HEAD
-
-
- UTF-8
-
-
-
-
- microsoft
- Microsoft
-
-
-
-
- com.microsoft.azure
- azure-client-runtime
-
-
- com.microsoft.azure
- azure-arm-client-runtime
-
-
- junit
- junit
- test
-
-
- com.microsoft.azure
- azure-client-authentication
- test
-
-
- com.microsoft.azure
- azure-mgmt-resources
- test
-
-
- com.microsoft.azure
- azure-arm-client-runtime
- test-jar
- test
-
-
-
-
-
- org.apache.maven.plugins
- maven-jar-plugin
-
-
-
- true
- true
-
-
-
-
-
- org.codehaus.mojo
- build-helper-maven-plugin
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.1
-
-
- 1.7
-
-
- com.microsoft.azure.management.apigeneration.LangDefinitionProcessor
-
-
- true
- true
-
- true
- true
-
-
-
-
- org.apache.maven.plugins
- maven-javadoc-plugin
- 2.8
-
- *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search
-
-
- /**
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- */
- ]]>
-
-
-
-
-
-
+
+
+ 4.0.0
+ com.microsoft.azure.iotcentral.v2017_07_01_privatepreview
+
+ com.microsoft.azure
+ azure-arm-parent
+ 0.0.2-beta
+ ../../../pom.xml
+
+ azure-mgmt-iotcentral
+ 1.0.0-beta
+ jar
+ Microsoft Azure SDK for IoTCentral Management
+ This package contains Microsoft IoTCentral Management SDK.
+ https://github.com/Azure/azure-libraries-for-java
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+ scm:git:https://github.com/Azure/azure-libraries-for-java
+ scm:git:git@github.com:Azure/azure-libraries-for-java.git
+ HEAD
+
+
+ UTF-8
+
+
+
+
+ microsoft
+ Microsoft
+
+
+
+
+ com.microsoft.azure
+ azure-client-runtime
+
+
+ com.microsoft.azure
+ azure-arm-client-runtime
+
+
+ junit
+ junit
+ test
+
+
+ com.microsoft.azure
+ azure-client-authentication
+ test
+
+
+ com.microsoft.azure
+ azure-mgmt-resources
+ test
+
+
+ com.microsoft.azure
+ azure-arm-client-runtime
+ test-jar
+ test
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+
+
+ true
+ true
+
+
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.1
+
+
+ 1.7
+
+
+ com.microsoft.azure.management.apigeneration.LangDefinitionProcessor
+
+
+ true
+ true
+
+ true
+ true
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.8
+
+ *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search
+
+
+ /**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ */
+ ]]>
+
+
+
+
+
+
diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/App.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/App.java
index 65071067ea595..f14a7be9ced65 100644
--- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/App.java
+++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/App.java
@@ -10,12 +10,12 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.Resource;
+import com.microsoft.azure.arm.resources.models.GroupableResourceCore;
import com.microsoft.azure.arm.resources.models.HasResourceGroup;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.model.Updatable;
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
-import com.microsoft.azure.arm.resources.models.GroupableResourceCore;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iotcentral.v2017_07_01_privatepreview.implementation.IoTCentralManager;
import com.microsoft.azure.management.iotcentral.v2017_07_01_privatepreview.implementation.AppInner;
diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/AppPatch.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/AppPatch.java
index 32d38f7879495..1cbb6017addf3 100644
--- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/AppPatch.java
+++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/AppPatch.java
@@ -51,7 +51,7 @@ public class AppPatch {
private String template;
/**
- * Get the tags value.
+ * Get instance tags.
*
* @return the tags value
*/
@@ -60,7 +60,7 @@ public Map tags() {
}
/**
- * Set the tags value.
+ * Set instance tags.
*
* @param tags the tags value to set
* @return the AppPatch object itself.
@@ -71,7 +71,7 @@ public AppPatch withTags(Map tags) {
}
/**
- * Get the applicationId value.
+ * Get the ID of the application.
*
* @return the applicationId value
*/
@@ -80,7 +80,7 @@ public String applicationId() {
}
/**
- * Get the displayName value.
+ * Get the display name of the application.
*
* @return the displayName value
*/
@@ -89,7 +89,7 @@ public String displayName() {
}
/**
- * Set the displayName value.
+ * Set the display name of the application.
*
* @param displayName the displayName value to set
* @return the AppPatch object itself.
@@ -100,7 +100,7 @@ public AppPatch withDisplayName(String displayName) {
}
/**
- * Get the subdomain value.
+ * Get the subdomain of the application.
*
* @return the subdomain value
*/
@@ -109,7 +109,7 @@ public String subdomain() {
}
/**
- * Set the subdomain value.
+ * Set the subdomain of the application.
*
* @param subdomain the subdomain value to set
* @return the AppPatch object itself.
@@ -120,7 +120,7 @@ public AppPatch withSubdomain(String subdomain) {
}
/**
- * Get the template value.
+ * Get the ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.
*
* @return the template value
*/
@@ -129,7 +129,7 @@ public String template() {
}
/**
- * Set the template value.
+ * Set the ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.
*
* @param template the template value to set
* @return the AppPatch object itself.
diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/AppSkuInfo.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/AppSkuInfo.java
index b679a099905db..cd642442d4999 100644
--- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/AppSkuInfo.java
+++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/AppSkuInfo.java
@@ -21,7 +21,7 @@ public class AppSkuInfo {
private AppSku name;
/**
- * Get the name value.
+ * Get the name of the SKU. Possible values include: 'F1', 'S1'.
*
* @return the name value
*/
@@ -30,7 +30,7 @@ public AppSku name() {
}
/**
- * Set the name value.
+ * Set the name of the SKU. Possible values include: 'F1', 'S1'.
*
* @param name the name value to set
* @return the AppSkuInfo object itself.
diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/ErrorDetails.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/ErrorDetails.java
index 158a69f0ef77d..586ea88344d38 100644
--- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/ErrorDetails.java
+++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/ErrorDetails.java
@@ -33,7 +33,7 @@ public class ErrorDetails {
private String target;
/**
- * Get the code value.
+ * Get the error code.
*
* @return the code value
*/
@@ -42,7 +42,7 @@ public String code() {
}
/**
- * Get the message value.
+ * Get the error message.
*
* @return the message value
*/
@@ -51,7 +51,7 @@ public String message() {
}
/**
- * Get the target value.
+ * Get the target of the particular error.
*
* @return the target value
*/
diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/OperationDisplay.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/OperationDisplay.java
index 96fd6f299bcde..a4e6dde3fa3df 100644
--- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/OperationDisplay.java
+++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/OperationDisplay.java
@@ -39,7 +39,7 @@ public class OperationDisplay {
private String description;
/**
- * Get the provider value.
+ * Get service provider: Microsoft IoT Central.
*
* @return the provider value
*/
@@ -48,7 +48,7 @@ public String provider() {
}
/**
- * Get the resource value.
+ * Get resource Type: IoT Central.
*
* @return the resource value
*/
@@ -57,7 +57,7 @@ public String resource() {
}
/**
- * Get the operation value.
+ * Get name of the operation.
*
* @return the operation value
*/
@@ -66,7 +66,7 @@ public String operation() {
}
/**
- * Get the description value.
+ * Get friendly description for the operation,.
*
* @return the description value
*/
diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/OperationInputs.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/OperationInputs.java
index fec9e89c642b5..7f92e34667b3a 100644
--- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/OperationInputs.java
+++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/OperationInputs.java
@@ -21,7 +21,7 @@ public class OperationInputs {
private String name;
/**
- * Get the name value.
+ * Get the name of the IoT Central application instance to check.
*
* @return the name value
*/
@@ -30,7 +30,7 @@ public String name() {
}
/**
- * Set the name value.
+ * Set the name of the IoT Central application instance to check.
*
* @param name the name value to set
* @return the OperationInputs object itself.
diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppInner.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppInner.java
index 535766989b119..056a8d6629620 100644
--- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppInner.java
+++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppInner.java
@@ -52,7 +52,7 @@ public class AppInner extends Resource {
private AppSkuInfo sku;
/**
- * Get the applicationId value.
+ * Get the ID of the application.
*
* @return the applicationId value
*/
@@ -61,7 +61,7 @@ public String applicationId() {
}
/**
- * Get the displayName value.
+ * Get the display name of the application.
*
* @return the displayName value
*/
@@ -70,7 +70,7 @@ public String displayName() {
}
/**
- * Set the displayName value.
+ * Set the display name of the application.
*
* @param displayName the displayName value to set
* @return the AppInner object itself.
@@ -81,7 +81,7 @@ public AppInner withDisplayName(String displayName) {
}
/**
- * Get the subdomain value.
+ * Get the subdomain of the application.
*
* @return the subdomain value
*/
@@ -90,7 +90,7 @@ public String subdomain() {
}
/**
- * Set the subdomain value.
+ * Set the subdomain of the application.
*
* @param subdomain the subdomain value to set
* @return the AppInner object itself.
@@ -101,7 +101,7 @@ public AppInner withSubdomain(String subdomain) {
}
/**
- * Get the template value.
+ * Get the ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.
*
* @return the template value
*/
@@ -110,7 +110,7 @@ public String template() {
}
/**
- * Set the template value.
+ * Set the ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.
*
* @param template the template value to set
* @return the AppInner object itself.
@@ -121,7 +121,7 @@ public AppInner withTemplate(String template) {
}
/**
- * Get the sku value.
+ * Get a valid instance SKU.
*
* @return the sku value
*/
@@ -130,7 +130,7 @@ public AppSkuInfo sku() {
}
/**
- * Set the sku value.
+ * Set a valid instance SKU.
*
* @param sku the sku value to set
* @return the AppInner object itself.
diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppNameAvailabilityInfoInner.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppNameAvailabilityInfoInner.java
index 37072b7f30039..5631971f918bc 100644
--- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppNameAvailabilityInfoInner.java
+++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppNameAvailabilityInfoInner.java
@@ -36,7 +36,7 @@ public class AppNameAvailabilityInfoInner {
private String message;
/**
- * Get the nameAvailable value.
+ * Get the value which indicates whether the provided name is available.
*
* @return the nameAvailable value
*/
@@ -45,7 +45,7 @@ public Boolean nameAvailable() {
}
/**
- * Get the reason value.
+ * Get the reason for unavailability. Possible values include: 'Invalid', 'AlreadyExists'.
*
* @return the reason value
*/
@@ -54,7 +54,7 @@ public AppNameUnavailabilityReason reason() {
}
/**
- * Get the message value.
+ * Get the detailed reason message.
*
* @return the message value
*/
@@ -63,7 +63,7 @@ public String message() {
}
/**
- * Set the message value.
+ * Set the detailed reason message.
*
* @param message the message value to set
* @return the AppNameAvailabilityInfoInner object itself.
diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsImpl.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsImpl.java
index 3a9d1be9e392f..b50c952c2eb23 100644
--- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsImpl.java
+++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsImpl.java
@@ -79,29 +79,10 @@ public PagedList listByResourceGroup(String resourceGroupName) {
return this.wrapList(client.listByResourceGroup(resourceGroupName));
}
- private Observable> listByResourceGroupNextInnerPageAsync(String nextLink) {
- if (nextLink == null) {
- Observable.empty();
- }
- AppsInner client = this.inner();
- return client.listByResourceGroupNextAsync(nextLink)
- .flatMap(new Func1, Observable>>() {
- @Override
- public Observable> call(Page page) {
- return Observable.just(page).concatWith(listByResourceGroupNextInnerPageAsync(page.nextPageLink()));
- }
- });
- }
@Override
public Observable listByResourceGroupAsync(String resourceGroupName) {
AppsInner client = this.inner();
return client.listByResourceGroupAsync(resourceGroupName)
- .flatMap(new Func1, Observable>>() {
- @Override
- public Observable> call(Page page) {
- return listByResourceGroupNextInnerPageAsync(page.nextPageLink());
- }
- })
.flatMapIterable(new Func1, Iterable>() {
@Override
public Iterable call(Page page) {
@@ -122,29 +103,10 @@ public PagedList list() {
return this.wrapList(client.list());
}
- private Observable> listNextInnerPageAsync(String nextLink) {
- if (nextLink == null) {
- Observable.empty();
- }
- AppsInner client = this.inner();
- return client.listNextAsync(nextLink)
- .flatMap(new Func1, Observable>>() {
- @Override
- public Observable> call(Page page) {
- return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink()));
- }
- });
- }
@Override
public Observable listAsync() {
AppsInner client = this.inner();
return client.listAsync()
- .flatMap(new Func1, Observable>>() {
- @Override
- public Observable> call(Page page) {
- return listNextInnerPageAsync(page.nextPageLink());
- }
- })
.flatMapIterable(new Func1, Iterable>() {
@Override
public Iterable call(Page page) {
diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsInner.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsInner.java
index d207c38c3ccd4..2971d20d99fec 100644
--- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsInner.java
+++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/AppsInner.java
@@ -26,7 +26,6 @@
import com.microsoft.rest.Validator;
import java.io.IOException;
import java.util.List;
-import java.util.UUID;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
@@ -71,43 +70,43 @@ public AppsInner(Retrofit retrofit, IotCentralClientImpl client) {
interface AppsService {
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2017_07_01_privatepreview.Apps getByResourceGroup" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}")
- Observable> getByResourceGroup(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ Observable> getByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2017_07_01_privatepreview.Apps createOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}")
- Observable> createOrUpdate(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppInner app, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppInner app, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2017_07_01_privatepreview.Apps beginCreateOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}")
- Observable> beginCreateOrUpdate(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppInner app, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ Observable> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppInner app, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2017_07_01_privatepreview.Apps update" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}")
- Observable> update(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppPatch appPatch, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ Observable> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppPatch appPatch, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2017_07_01_privatepreview.Apps beginUpdate" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}")
- Observable> beginUpdate(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppPatch appPatch, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ Observable> beginUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppPatch appPatch, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2017_07_01_privatepreview.Apps delete" })
@HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}", method = "DELETE", hasBody = true)
- Observable> delete(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2017_07_01_privatepreview.Apps beginDelete" })
@HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}", method = "DELETE", hasBody = true)
- Observable> beginDelete(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2017_07_01_privatepreview.Apps list" })
@GET("subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/IoTApps")
- Observable> list(@Path("subscriptionId") UUID subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2017_07_01_privatepreview.Apps listByResourceGroup" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps")
- Observable> listByResourceGroup(@Path("subscriptionId") UUID subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ Observable> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2017_07_01_privatepreview.Apps checkNameAvailability" })
@POST("subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/checkNameAvailability")
- Observable> checkNameAvailability(@Path("subscriptionId") UUID subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body OperationInputs operationInputs, @Header("User-Agent") String userAgent);
+ Observable> checkNameAvailability(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body OperationInputs operationInputs, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2017_07_01_privatepreview.Apps listNext" })
@GET
@@ -181,6 +180,9 @@ public Observable> getByResourceGroupWithServiceRespon
if (resourceName == null) {
throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
}
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
return service.getByResourceGroup(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1, Observable>>() {
@Override
@@ -268,6 +270,9 @@ public Observable> createOrUpdateWithServiceResponseAs
if (resourceName == null) {
throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
}
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
if (app == null) {
throw new IllegalArgumentException("Parameter app is required and cannot be null.");
}
@@ -342,6 +347,9 @@ public Observable> beginCreateOrUpdateWithServiceRespo
if (resourceName == null) {
throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
}
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
if (app == null) {
throw new IllegalArgumentException("Parameter app is required and cannot be null.");
}
@@ -435,6 +443,9 @@ public Observable> updateWithServiceResponseAsync(Stri
if (resourceName == null) {
throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
}
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
if (appPatch == null) {
throw new IllegalArgumentException("Parameter appPatch is required and cannot be null.");
}
@@ -509,6 +520,9 @@ public Observable> beginUpdateWithServiceResponseAsync
if (resourceName == null) {
throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
}
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
if (appPatch == null) {
throw new IllegalArgumentException("Parameter appPatch is required and cannot be null.");
}
@@ -596,6 +610,9 @@ public Observable> deleteWithServiceResponseAsync(String r
if (resourceName == null) {
throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
}
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType());
}
@@ -661,6 +678,9 @@ public Observable> beginDeleteWithServiceResponseAsync(Str
if (resourceName == null) {
throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
}
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
return service.beginDelete(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1, Observable>>() {
@Override
@@ -767,6 +787,9 @@ public Observable>> listSinglePageAsync() {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1, Observable>>>() {
@Override
@@ -879,6 +902,9 @@ public Observable>> listByResourceGroupSinglePage
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
}
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
return service.listByResourceGroup(this.client.subscriptionId(), resourceGroupName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1, Observable>>>() {
@Override
@@ -952,6 +978,9 @@ public Observable> checkNameAvaila
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
if (name == null) {
throw new IllegalArgumentException("Parameter name is required and cannot be null.");
}
diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/IoTCentralManager.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/IoTCentralManager.java
index 4ea8f56075972..dda6245b0f5c5 100644
--- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/IoTCentralManager.java
+++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/IoTCentralManager.java
@@ -21,8 +21,6 @@
import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl;
import com.microsoft.azure.arm.resources.implementation.ManagerCore;
-import java.util.UUID;
-
/**
* Entry point to Azure IoTCentral resource management.
*/
@@ -108,6 +106,6 @@ private IoTCentralManager(RestClient restClient, String subscriptionId) {
super(
restClient,
subscriptionId,
- new IotCentralClientImpl(restClient).withSubscriptionId(UUID.fromString(subscriptionId)));
+ new IotCentralClientImpl(restClient).withSubscriptionId(subscriptionId));
}
}
diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/IotCentralClientImpl.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/IotCentralClientImpl.java
index 59dc4c957454b..1abd0722bf63e 100644
--- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/IotCentralClientImpl.java
+++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/IotCentralClientImpl.java
@@ -13,8 +13,6 @@
import com.microsoft.rest.credentials.ServiceClientCredentials;
import com.microsoft.rest.RestClient;
-import java.util.UUID;
-
/**
* Initializes a new instance of the IotCentralClientImpl class.
*/
@@ -31,14 +29,14 @@ public AzureClient getAzureClient() {
}
/** The subscription identifier. */
- private UUID subscriptionId;
+ private String subscriptionId;
/**
* Gets The subscription identifier.
*
* @return the subscriptionId value.
*/
- public UUID subscriptionId() {
+ public String subscriptionId() {
return this.subscriptionId;
}
@@ -48,7 +46,7 @@ public UUID subscriptionId() {
* @param subscriptionId the subscriptionId value.
* @return the service client itself
*/
- public IotCentralClientImpl withSubscriptionId(UUID subscriptionId) {
+ public IotCentralClientImpl withSubscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
return this;
}
diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationInner.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationInner.java
index 92efc873a0676..65faca8889ea3 100644
--- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationInner.java
+++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationInner.java
@@ -28,7 +28,7 @@ public class OperationInner {
private OperationDisplay display;
/**
- * Get the name value.
+ * Get operation name: {provider}/{resource}/{read | write | action | delete}.
*
* @return the name value
*/
@@ -37,7 +37,7 @@ public String name() {
}
/**
- * Get the display value.
+ * Get the object that represents the operation.
*
* @return the display value
*/
@@ -46,7 +46,7 @@ public OperationDisplay display() {
}
/**
- * Set the display value.
+ * Set the object that represents the operation.
*
* @param display the display value to set
* @return the OperationInner object itself.
diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationsImpl.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationsImpl.java
index 726aee0a5a296..ffad600a9aa1a 100644
--- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationsImpl.java
+++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationsImpl.java
@@ -28,41 +28,22 @@ public IoTCentralManager manager() {
return this.manager;
}
- private Observable> listNextInnerPageAsync(String nextLink) {
- if (nextLink == null) {
- Observable.empty();
- }
- OperationsInner client = this.inner();
- return client.listNextAsync(nextLink)
- .flatMap(new Func1, Observable>>() {
- @Override
- public Observable> call(Page page) {
- return Observable.just(page).concatWith(listNextInnerPageAsync(page.nextPageLink()));
- }
- });
- }
@Override
public Observable listAsync() {
OperationsInner client = this.inner();
return client.listAsync()
- .flatMap(new Func1, Observable>>() {
- @Override
- public Observable> call(Page page) {
- return listNextInnerPageAsync(page.nextPageLink());
- }
- })
.flatMapIterable(new Func1, Iterable>() {
@Override
public Iterable call(Page page) {
return page.items();
}
- })
+ })
.map(new Func1() {
@Override
public Operation call(OperationInner inner) {
return new OperationImpl(inner, manager());
}
- });
+ });
}
}
diff --git a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationsInner.java b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationsInner.java
index 7fb4bc3e6baf9..307ff280aae20 100644
--- a/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationsInner.java
+++ b/iotcentral/resource-manager/v2017_07_01_privatepreview/src/main/java/com/microsoft/azure/management/iotcentral/v2017_07_01_privatepreview/implementation/OperationsInner.java
@@ -145,6 +145,9 @@ public Observable>> call(ServiceResponse>> listSinglePageAsync() {
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
return service.list(this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1, Observable>>>() {
@Override
@@ -159,7 +162,7 @@ public Observable>> call(Response> listDelegate(Response response) throws ErrorDetailsException, IOException {
+ private ServiceResponse> listDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory()., ErrorDetailsException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken>() { }.getType())
.registerError(ErrorDetailsException.class)
diff --git a/iotcentral/resource-manager/v2018_09_01/pom.xml b/iotcentral/resource-manager/v2018_09_01/pom.xml
new file mode 100644
index 0000000000000..eeaf3750613a8
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/pom.xml
@@ -0,0 +1,133 @@
+
+
+ 4.0.0
+ com.microsoft.azure.iotcentral.v2018_09_01
+
+ com.microsoft.azure
+ azure-arm-parent
+ 0.0.2-beta
+ ../../../pom.xml
+
+ azure-mgmt-iotcentral
+ 1.0.0-beta
+ jar
+ Microsoft Azure SDK for IoTCentral Management
+ This package contains Microsoft IoTCentral Management SDK.
+ https://github.com/Azure/azure-libraries-for-java
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+ scm:git:https://github.com/Azure/azure-libraries-for-java
+ scm:git:git@github.com:Azure/azure-libraries-for-java.git
+ HEAD
+
+
+ UTF-8
+
+
+
+
+ microsoft
+ Microsoft
+
+
+
+
+ com.microsoft.azure
+ azure-client-runtime
+
+
+ com.microsoft.azure
+ azure-arm-client-runtime
+
+
+ junit
+ junit
+ test
+
+
+ com.microsoft.azure
+ azure-client-authentication
+ test
+
+
+ com.microsoft.azure
+ azure-mgmt-resources
+ test
+
+
+ com.microsoft.azure
+ azure-arm-client-runtime
+ test-jar
+ test
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+
+
+ true
+ true
+
+
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.1
+
+
+ 1.7
+
+
+ com.microsoft.azure.management.apigeneration.LangDefinitionProcessor
+
+
+ true
+ true
+
+ true
+ true
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.8
+
+ *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search
+
+
+ /**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ */
+ ]]>
+
+
+
+
+
+
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/App.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/App.java
new file mode 100644
index 0000000000000..f51ff4e27af1a
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/App.java
@@ -0,0 +1,163 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.Resource;
+import com.microsoft.azure.arm.resources.models.GroupableResourceCore;
+import com.microsoft.azure.arm.resources.models.HasResourceGroup;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.model.Creatable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.IoTCentralManager;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.AppInner;
+
+/**
+ * Type representing App.
+ */
+public interface App extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager {
+ /**
+ * @return the applicationId value.
+ */
+ String applicationId();
+
+ /**
+ * @return the displayName value.
+ */
+ String displayName();
+
+ /**
+ * @return the sku value.
+ */
+ AppSkuInfo sku();
+
+ /**
+ * @return the subdomain value.
+ */
+ String subdomain();
+
+ /**
+ * @return the template value.
+ */
+ String template();
+
+ /**
+ * The entirety of the App definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithSku, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of App definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a App definition.
+ */
+ interface Blank extends GroupableResourceCore.DefinitionWithRegion {
+ }
+
+ /**
+ * The stage of the App definition allowing to specify the resource group.
+ */
+ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup {
+ }
+
+ /**
+ * The stage of the app definition allowing to specify Sku.
+ */
+ interface WithSku {
+ /**
+ * Specifies sku.
+ */
+ WithCreate withSku(AppSkuInfo sku);
+ }
+
+ /**
+ * The stage of the app update allowing to specify DisplayName.
+ */
+ interface WithDisplayName {
+ /**
+ * Specifies displayName.
+ */
+ WithCreate withDisplayName(String displayName);
+ }
+
+ /**
+ * The stage of the app update allowing to specify Subdomain.
+ */
+ interface WithSubdomain {
+ /**
+ * Specifies subdomain.
+ */
+ WithCreate withSubdomain(String subdomain);
+ }
+
+ /**
+ * The stage of the app update allowing to specify Template.
+ */
+ interface WithTemplate {
+ /**
+ * Specifies template.
+ */
+ WithCreate withTemplate(String template);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * the resource to be created (via {@link WithCreate#create()}), but also allows
+ * for any other optional settings to be specified.
+ */
+ interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithDisplayName, DefinitionStages.WithSubdomain, DefinitionStages.WithTemplate {
+ }
+ }
+ /**
+ * The template for a App update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithDisplayName, UpdateStages.WithSubdomain, UpdateStages.WithTemplate {
+ }
+
+ /**
+ * Grouping of App update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the app {0} allowing to specify DisplayName.
+ */
+ interface WithDisplayName {
+ /**
+ * Specifies displayName.
+ */
+ Update withDisplayName(String displayName);
+ }
+
+ /**
+ * The stage of the app {0} allowing to specify Subdomain.
+ */
+ interface WithSubdomain {
+ /**
+ * Specifies subdomain.
+ */
+ Update withSubdomain(String subdomain);
+ }
+
+ /**
+ * The stage of the app {0} allowing to specify Template.
+ */
+ interface WithTemplate {
+ /**
+ * Specifies template.
+ */
+ Update withTemplate(String template);
+ }
+
+ }
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppNameAvailabilityInfo.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppNameAvailabilityInfo.java
new file mode 100644
index 0000000000000..d6cf9fec610a3
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppNameAvailabilityInfo.java
@@ -0,0 +1,35 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.IoTCentralManager;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.AppNameAvailabilityInfoInner;
+
+/**
+ * Type representing AppNameAvailabilityInfo.
+ */
+public interface AppNameAvailabilityInfo extends HasInner, HasManager {
+ /**
+ * @return the message value.
+ */
+ String message();
+
+ /**
+ * @return the nameAvailable value.
+ */
+ Boolean nameAvailable();
+
+ /**
+ * @return the reason value.
+ */
+ AppNameUnavailabilityReason reason();
+
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppNameUnavailabilityReason.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppNameUnavailabilityReason.java
new file mode 100644
index 0000000000000..01ab6c857a615
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppNameUnavailabilityReason.java
@@ -0,0 +1,53 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for AppNameUnavailabilityReason.
+ */
+public enum AppNameUnavailabilityReason {
+ /** Enum value Invalid. */
+ INVALID("Invalid"),
+
+ /** Enum value AlreadyExists. */
+ ALREADY_EXISTS("AlreadyExists");
+
+ /** The actual serialized value for a AppNameUnavailabilityReason instance. */
+ private String value;
+
+ AppNameUnavailabilityReason(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a AppNameUnavailabilityReason instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed AppNameUnavailabilityReason object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static AppNameUnavailabilityReason fromString(String value) {
+ AppNameUnavailabilityReason[] items = AppNameUnavailabilityReason.values();
+ for (AppNameUnavailabilityReason item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppPatch.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppPatch.java
new file mode 100644
index 0000000000000..87cbc43fd52dd
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppPatch.java
@@ -0,0 +1,142 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01;
+
+import java.util.Map;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+
+/**
+ * The description of the IoT Central application.
+ */
+@JsonFlatten
+public class AppPatch {
+ /**
+ * Instance tags.
+ */
+ @JsonProperty(value = "tags")
+ private Map tags;
+
+ /**
+ * The ID of the application.
+ */
+ @JsonProperty(value = "properties.applicationId", access = JsonProperty.Access.WRITE_ONLY)
+ private String applicationId;
+
+ /**
+ * The display name of the application.
+ */
+ @JsonProperty(value = "properties.displayName")
+ private String displayName;
+
+ /**
+ * The subdomain of the application.
+ */
+ @JsonProperty(value = "properties.subdomain")
+ private String subdomain;
+
+ /**
+ * The ID of the application template, which is a blueprint that defines
+ * the characteristics and behaviors of an application. Optional; if not
+ * specified, defaults to a blank blueprint and allows the application to
+ * be defined from scratch.
+ */
+ @JsonProperty(value = "properties.template")
+ private String template;
+
+ /**
+ * Get instance tags.
+ *
+ * @return the tags value
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set instance tags.
+ *
+ * @param tags the tags value to set
+ * @return the AppPatch object itself.
+ */
+ public AppPatch withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the ID of the application.
+ *
+ * @return the applicationId value
+ */
+ public String applicationId() {
+ return this.applicationId;
+ }
+
+ /**
+ * Get the display name of the application.
+ *
+ * @return the displayName value
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Set the display name of the application.
+ *
+ * @param displayName the displayName value to set
+ * @return the AppPatch object itself.
+ */
+ public AppPatch withDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Get the subdomain of the application.
+ *
+ * @return the subdomain value
+ */
+ public String subdomain() {
+ return this.subdomain;
+ }
+
+ /**
+ * Set the subdomain of the application.
+ *
+ * @param subdomain the subdomain value to set
+ * @return the AppPatch object itself.
+ */
+ public AppPatch withSubdomain(String subdomain) {
+ this.subdomain = subdomain;
+ return this;
+ }
+
+ /**
+ * Get the ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.
+ *
+ * @return the template value
+ */
+ public String template() {
+ return this.template;
+ }
+
+ /**
+ * Set the ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.
+ *
+ * @param template the template value to set
+ * @return the AppPatch object itself.
+ */
+ public AppPatch withTemplate(String template) {
+ this.template = template;
+ return this;
+ }
+
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppSku.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppSku.java
new file mode 100644
index 0000000000000..7f2f66345bfb9
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppSku.java
@@ -0,0 +1,41 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for AppSku.
+ */
+public final class AppSku extends ExpandableStringEnum {
+ /** Static value F1 for AppSku. */
+ public static final AppSku F1 = fromString("F1");
+
+ /** Static value S1 for AppSku. */
+ public static final AppSku S1 = fromString("S1");
+
+ /**
+ * Creates or finds a AppSku from its string representation.
+ * @param name a name to look for
+ * @return the corresponding AppSku
+ */
+ @JsonCreator
+ public static AppSku fromString(String name) {
+ return fromString(name, AppSku.class);
+ }
+
+ /**
+ * @return known AppSku values
+ */
+ public static Collection values() {
+ return values(AppSku.class);
+ }
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppSkuInfo.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppSkuInfo.java
new file mode 100644
index 0000000000000..44c1c9815f706
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/AppSkuInfo.java
@@ -0,0 +1,43 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Information about the SKU of the IoT Central application.
+ */
+public class AppSkuInfo {
+ /**
+ * The name of the SKU. Possible values include: 'F1', 'S1'.
+ */
+ @JsonProperty(value = "name", required = true)
+ private AppSku name;
+
+ /**
+ * Get the name of the SKU. Possible values include: 'F1', 'S1'.
+ *
+ * @return the name value
+ */
+ public AppSku name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name of the SKU. Possible values include: 'F1', 'S1'.
+ *
+ * @param name the name value to set
+ * @return the AppSkuInfo object itself.
+ */
+ public AppSkuInfo withName(AppSku name) {
+ this.name = name;
+ return this;
+ }
+
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Apps.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Apps.java
new file mode 100644
index 0000000000000..4b97c49f5b0fd
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Apps.java
@@ -0,0 +1,34 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup;
+import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion;
+import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup;
+import rx.Observable;
+import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup;
+import com.microsoft.azure.arm.collection.SupportsListing;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.AppsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Apps.
+ */
+public interface Apps extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner {
+ /**
+ * Check if an IoT Central application name is available.
+ *
+ * @param name The name of the IoT Central application instance to check.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable checkNameAvailabilityAsync(String name);
+
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/ErrorDetails.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/ErrorDetails.java
new file mode 100644
index 0000000000000..1b0cc3bc46502
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/ErrorDetails.java
@@ -0,0 +1,62 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Error details.
+ */
+public class ErrorDetails {
+ /**
+ * The error code.
+ */
+ @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
+ private String code;
+
+ /**
+ * The error message.
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /**
+ * The target of the particular error.
+ */
+ @JsonProperty(value = "target", access = JsonProperty.Access.WRITE_ONLY)
+ private String target;
+
+ /**
+ * Get the error code.
+ *
+ * @return the code value
+ */
+ public String code() {
+ return this.code;
+ }
+
+ /**
+ * Get the error message.
+ *
+ * @return the message value
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Get the target of the particular error.
+ *
+ * @return the target value
+ */
+ public String target() {
+ return this.target;
+ }
+
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/ErrorDetailsException.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/ErrorDetailsException.java
new file mode 100644
index 0000000000000..d6d9c28f291af
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/ErrorDetailsException.java
@@ -0,0 +1,44 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01;
+
+import com.microsoft.rest.RestException;
+import okhttp3.ResponseBody;
+import retrofit2.Response;
+
+/**
+ * Exception thrown for an invalid response with ErrorDetails information.
+ */
+public class ErrorDetailsException extends RestException {
+ /**
+ * Initializes a new instance of the ErrorDetailsException class.
+ *
+ * @param message the exception message or the response content if a message is not available
+ * @param response the HTTP response
+ */
+ public ErrorDetailsException(final String message, final Response response) {
+ super(message, response);
+ }
+
+ /**
+ * Initializes a new instance of the ErrorDetailsException class.
+ *
+ * @param message the exception message or the response content if a message is not available
+ * @param response the HTTP response
+ * @param body the deserialized response body
+ */
+ public ErrorDetailsException(final String message, final Response response, final ErrorDetails body) {
+ super(message, response, body);
+ }
+
+ @Override
+ public ErrorDetails body() {
+ return (ErrorDetails) super.body();
+ }
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Operation.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Operation.java
new file mode 100644
index 0000000000000..e21f06c57f6b7
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Operation.java
@@ -0,0 +1,30 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.IoTCentralManager;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.OperationInner;
+
+/**
+ * Type representing Operation.
+ */
+public interface Operation extends HasInner, HasManager {
+ /**
+ * @return the display value.
+ */
+ OperationDisplay display();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/OperationDisplay.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/OperationDisplay.java
new file mode 100644
index 0000000000000..a6dea68ca6850
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/OperationDisplay.java
@@ -0,0 +1,77 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The object that represents the operation.
+ */
+public class OperationDisplay {
+ /**
+ * Service provider: Microsoft IoT Central.
+ */
+ @JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY)
+ private String provider;
+
+ /**
+ * Resource Type: IoT Central.
+ */
+ @JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY)
+ private String resource;
+
+ /**
+ * Name of the operation.
+ */
+ @JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY)
+ private String operation;
+
+ /**
+ * Friendly description for the operation,.
+ */
+ @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
+ private String description;
+
+ /**
+ * Get service provider: Microsoft IoT Central.
+ *
+ * @return the provider value
+ */
+ public String provider() {
+ return this.provider;
+ }
+
+ /**
+ * Get resource Type: IoT Central.
+ *
+ * @return the resource value
+ */
+ public String resource() {
+ return this.resource;
+ }
+
+ /**
+ * Get name of the operation.
+ *
+ * @return the operation value
+ */
+ public String operation() {
+ return this.operation;
+ }
+
+ /**
+ * Get friendly description for the operation,.
+ *
+ * @return the description value
+ */
+ public String description() {
+ return this.description;
+ }
+
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/OperationInputs.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/OperationInputs.java
new file mode 100644
index 0000000000000..19aeb03c11312
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/OperationInputs.java
@@ -0,0 +1,43 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Input values.
+ */
+public class OperationInputs {
+ /**
+ * The name of the IoT Central application instance to check.
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /**
+ * Get the name of the IoT Central application instance to check.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name of the IoT Central application instance to check.
+ *
+ * @param name the name value to set
+ * @return the OperationInputs object itself.
+ */
+ public OperationInputs withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Operations.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Operations.java
new file mode 100644
index 0000000000000..1553da6ed8643
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/Operations.java
@@ -0,0 +1,27 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01;
+
+import rx.Observable;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.implementation.OperationsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Operations.
+ */
+public interface Operations extends HasInner {
+ /**
+ * Lists all of the available IoT Central application REST API operations.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync();
+
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppImpl.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppImpl.java
new file mode 100644
index 0000000000000..7e5706ebecca3
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppImpl.java
@@ -0,0 +1,129 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01.implementation;
+
+import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.App;
+import rx.Observable;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.AppPatch;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.AppSkuInfo;
+import rx.functions.Func1;
+
+class AppImpl extends GroupableResourceCoreImpl implements App, App.Definition, App.Update {
+ private AppPatch updateParameter;
+ AppImpl(String name, AppInner inner, IoTCentralManager manager) {
+ super(name, inner, manager);
+ this.updateParameter = new AppPatch();
+ }
+
+ @Override
+ public Observable createResourceAsync() {
+ AppsInner client = this.manager().inner().apps();
+ return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.inner())
+ .map(new Func1() {
+ @Override
+ public AppInner call(AppInner resource) {
+ resetCreateUpdateParameters();
+ return resource;
+ }
+ })
+ .map(innerToFluentMap(this));
+ }
+
+ @Override
+ public Observable updateResourceAsync() {
+ AppsInner client = this.manager().inner().apps();
+ return client.updateAsync(this.resourceGroupName(), this.name(), this.updateParameter)
+ .map(new Func1() {
+ @Override
+ public AppInner call(AppInner resource) {
+ resetCreateUpdateParameters();
+ return resource;
+ }
+ })
+ .map(innerToFluentMap(this));
+ }
+
+ @Override
+ protected Observable getInnerAsync() {
+ AppsInner client = this.manager().inner().apps();
+ return client.getByResourceGroupAsync(this.resourceGroupName(), this.name());
+ }
+
+ @Override
+ public boolean isInCreateMode() {
+ return this.inner().id() == null;
+ }
+
+ private void resetCreateUpdateParameters() {
+ this.updateParameter = new AppPatch();
+ }
+
+ @Override
+ public String applicationId() {
+ return this.inner().applicationId();
+ }
+
+ @Override
+ public String displayName() {
+ return this.inner().displayName();
+ }
+
+ @Override
+ public AppSkuInfo sku() {
+ return this.inner().sku();
+ }
+
+ @Override
+ public String subdomain() {
+ return this.inner().subdomain();
+ }
+
+ @Override
+ public String template() {
+ return this.inner().template();
+ }
+
+ @Override
+ public AppImpl withSku(AppSkuInfo sku) {
+ this.inner().withSku(sku);
+ return this;
+ }
+
+ @Override
+ public AppImpl withDisplayName(String displayName) {
+ if (isInCreateMode()) {
+ this.inner().withDisplayName(displayName);
+ } else {
+ this.updateParameter.withDisplayName(displayName);
+ }
+ return this;
+ }
+
+ @Override
+ public AppImpl withSubdomain(String subdomain) {
+ if (isInCreateMode()) {
+ this.inner().withSubdomain(subdomain);
+ } else {
+ this.updateParameter.withSubdomain(subdomain);
+ }
+ return this;
+ }
+
+ @Override
+ public AppImpl withTemplate(String template) {
+ if (isInCreateMode()) {
+ this.inner().withTemplate(template);
+ } else {
+ this.updateParameter.withTemplate(template);
+ }
+ return this;
+ }
+
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppInner.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppInner.java
new file mode 100644
index 0000000000000..ec7c274b353cf
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppInner.java
@@ -0,0 +1,143 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01.implementation;
+
+import com.microsoft.azure.management.iotcentral.v2018_09_01.AppSkuInfo;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+import com.microsoft.azure.Resource;
+
+/**
+ * The IoT Central application.
+ */
+@JsonFlatten
+public class AppInner extends Resource {
+ /**
+ * The ID of the application.
+ */
+ @JsonProperty(value = "properties.applicationId", access = JsonProperty.Access.WRITE_ONLY)
+ private String applicationId;
+
+ /**
+ * The display name of the application.
+ */
+ @JsonProperty(value = "properties.displayName")
+ private String displayName;
+
+ /**
+ * The subdomain of the application.
+ */
+ @JsonProperty(value = "properties.subdomain")
+ private String subdomain;
+
+ /**
+ * The ID of the application template, which is a blueprint that defines
+ * the characteristics and behaviors of an application. Optional; if not
+ * specified, defaults to a blank blueprint and allows the application to
+ * be defined from scratch.
+ */
+ @JsonProperty(value = "properties.template")
+ private String template;
+
+ /**
+ * A valid instance SKU.
+ */
+ @JsonProperty(value = "sku", required = true)
+ private AppSkuInfo sku;
+
+ /**
+ * Get the ID of the application.
+ *
+ * @return the applicationId value
+ */
+ public String applicationId() {
+ return this.applicationId;
+ }
+
+ /**
+ * Get the display name of the application.
+ *
+ * @return the displayName value
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Set the display name of the application.
+ *
+ * @param displayName the displayName value to set
+ * @return the AppInner object itself.
+ */
+ public AppInner withDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Get the subdomain of the application.
+ *
+ * @return the subdomain value
+ */
+ public String subdomain() {
+ return this.subdomain;
+ }
+
+ /**
+ * Set the subdomain of the application.
+ *
+ * @param subdomain the subdomain value to set
+ * @return the AppInner object itself.
+ */
+ public AppInner withSubdomain(String subdomain) {
+ this.subdomain = subdomain;
+ return this;
+ }
+
+ /**
+ * Get the ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.
+ *
+ * @return the template value
+ */
+ public String template() {
+ return this.template;
+ }
+
+ /**
+ * Set the ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.
+ *
+ * @param template the template value to set
+ * @return the AppInner object itself.
+ */
+ public AppInner withTemplate(String template) {
+ this.template = template;
+ return this;
+ }
+
+ /**
+ * Get a valid instance SKU.
+ *
+ * @return the sku value
+ */
+ public AppSkuInfo sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set a valid instance SKU.
+ *
+ * @param sku the sku value to set
+ * @return the AppInner object itself.
+ */
+ public AppInner withSku(AppSkuInfo sku) {
+ this.sku = sku;
+ return this;
+ }
+
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppNameAvailabilityInfoImpl.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppNameAvailabilityInfoImpl.java
new file mode 100644
index 0000000000000..d68656e3d4870
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppNameAvailabilityInfoImpl.java
@@ -0,0 +1,42 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01.implementation;
+
+import com.microsoft.azure.management.iotcentral.v2018_09_01.AppNameAvailabilityInfo;
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.AppNameUnavailabilityReason;
+
+class AppNameAvailabilityInfoImpl extends WrapperImpl implements AppNameAvailabilityInfo {
+ private final IoTCentralManager manager;
+ AppNameAvailabilityInfoImpl(AppNameAvailabilityInfoInner inner, IoTCentralManager manager) {
+ super(inner);
+ this.manager = manager;
+ }
+
+ @Override
+ public IoTCentralManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public String message() {
+ return this.inner().message();
+ }
+
+ @Override
+ public Boolean nameAvailable() {
+ return this.inner().nameAvailable();
+ }
+
+ @Override
+ public AppNameUnavailabilityReason reason() {
+ return this.inner().reason();
+ }
+
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppNameAvailabilityInfoInner.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppNameAvailabilityInfoInner.java
new file mode 100644
index 0000000000000..cac83d5ca21fd
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppNameAvailabilityInfoInner.java
@@ -0,0 +1,76 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01.implementation;
+
+import com.microsoft.azure.management.iotcentral.v2018_09_01.AppNameUnavailabilityReason;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The properties indicating whether a given IoT Central application name is
+ * available.
+ */
+public class AppNameAvailabilityInfoInner {
+ /**
+ * The value which indicates whether the provided name is available.
+ */
+ @JsonProperty(value = "nameAvailable", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean nameAvailable;
+
+ /**
+ * The reason for unavailability. Possible values include: 'Invalid',
+ * 'AlreadyExists'.
+ */
+ @JsonProperty(value = "reason", access = JsonProperty.Access.WRITE_ONLY)
+ private AppNameUnavailabilityReason reason;
+
+ /**
+ * The detailed reason message.
+ */
+ @JsonProperty(value = "message")
+ private String message;
+
+ /**
+ * Get the value which indicates whether the provided name is available.
+ *
+ * @return the nameAvailable value
+ */
+ public Boolean nameAvailable() {
+ return this.nameAvailable;
+ }
+
+ /**
+ * Get the reason for unavailability. Possible values include: 'Invalid', 'AlreadyExists'.
+ *
+ * @return the reason value
+ */
+ public AppNameUnavailabilityReason reason() {
+ return this.reason;
+ }
+
+ /**
+ * Get the detailed reason message.
+ *
+ * @return the message value
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Set the detailed reason message.
+ *
+ * @param message the message value to set
+ * @return the AppNameAvailabilityInfoInner object itself.
+ */
+ public AppNameAvailabilityInfoInner withMessage(String message) {
+ this.message = message;
+ return this;
+ }
+
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppsImpl.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppsImpl.java
new file mode 100644
index 0000000000000..f231df1b04565
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppsImpl.java
@@ -0,0 +1,151 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * def
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01.implementation;
+
+import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.Apps;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.App;
+import rx.Observable;
+import rx.Completable;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import com.microsoft.azure.arm.resources.ResourceUtilsCore;
+import com.microsoft.azure.arm.utils.RXMapper;
+import rx.functions.Func1;
+import com.microsoft.azure.PagedList;
+import com.microsoft.azure.Page;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.AppNameAvailabilityInfo;
+
+class AppsImpl extends GroupableResourcesCoreImpl implements Apps {
+ protected AppsImpl(IoTCentralManager manager) {
+ super(manager.inner().apps(), manager);
+ }
+
+ @Override
+ protected Observable getInnerAsync(String resourceGroupName, String name) {
+ AppsInner client = this.inner();
+ return client.getByResourceGroupAsync(resourceGroupName, name);
+ }
+
+ @Override
+ protected Completable deleteInnerAsync(String resourceGroupName, String name) {
+ AppsInner client = this.inner();
+ return client.deleteAsync(resourceGroupName, name).toCompletable();
+ }
+
+ @Override
+ public Observable deleteByIdsAsync(Collection ids) {
+ if (ids == null || ids.isEmpty()) {
+ return Observable.empty();
+ }
+ Collection> observables = new ArrayList<>();
+ for (String id : ids) {
+ final String resourceGroupName = ResourceUtilsCore.groupFromResourceId(id);
+ final String name = ResourceUtilsCore.nameFromResourceId(id);
+ Observable o = RXMapper.map(this.inner().deleteAsync(resourceGroupName, name), id);
+ observables.add(o);
+ }
+ return Observable.mergeDelayError(observables);
+ }
+
+ @Override
+ public Observable deleteByIdsAsync(String...ids) {
+ return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids)));
+ }
+
+ @Override
+ public void deleteByIds(Collection ids) {
+ if (ids != null && !ids.isEmpty()) {
+ this.deleteByIdsAsync(ids).toBlocking().last();
+ }
+ }
+
+ @Override
+ public void deleteByIds(String...ids) {
+ this.deleteByIds(new ArrayList(Arrays.asList(ids)));
+ }
+
+ @Override
+ public PagedList listByResourceGroup(String resourceGroupName) {
+ AppsInner client = this.inner();
+ return this.wrapList(client.listByResourceGroup(resourceGroupName));
+ }
+
+ @Override
+ public Observable listByResourceGroupAsync(String resourceGroupName) {
+ AppsInner client = this.inner();
+ return client.listByResourceGroupAsync(resourceGroupName)
+ .flatMapIterable(new Func1, Iterable>() {
+ @Override
+ public Iterable call(Page page) {
+ return page.items();
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public App call(AppInner inner) {
+ return wrapModel(inner);
+ }
+ });
+ }
+
+ @Override
+ public PagedList list() {
+ AppsInner client = this.inner();
+ return this.wrapList(client.list());
+ }
+
+ @Override
+ public Observable listAsync() {
+ AppsInner client = this.inner();
+ return client.listAsync()
+ .flatMapIterable(new Func1, Iterable>() {
+ @Override
+ public Iterable call(Page page) {
+ return page.items();
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public App call(AppInner inner) {
+ return wrapModel(inner);
+ }
+ });
+ }
+
+ @Override
+ public AppImpl define(String name) {
+ return wrapModel(name);
+ }
+
+ @Override
+ public Observable checkNameAvailabilityAsync(String name) {
+ AppsInner client = this.inner();
+ return client.checkNameAvailabilityAsync(name)
+ .map(new Func1() {
+ @Override
+ public AppNameAvailabilityInfo call(AppNameAvailabilityInfoInner inner) {
+ return new AppNameAvailabilityInfoImpl(inner, manager());
+ }
+ });
+ }
+
+ @Override
+ protected AppImpl wrapModel(AppInner inner) {
+ return new AppImpl(inner.name(), inner, manager());
+ }
+
+ @Override
+ protected AppImpl wrapModel(String name) {
+ return new AppImpl(name, new AppInner(), this.manager());
+ }
+
+}
diff --git a/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppsInner.java b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppsInner.java
new file mode 100644
index 0000000000000..b0572a8385658
--- /dev/null
+++ b/iotcentral/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/iotcentral/v2018_09_01/implementation/AppsInner.java
@@ -0,0 +1,1232 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.iotcentral.v2018_09_01.implementation;
+
+import com.microsoft.azure.arm.collection.InnerSupportsGet;
+import com.microsoft.azure.arm.collection.InnerSupportsDelete;
+import com.microsoft.azure.arm.collection.InnerSupportsListing;
+import retrofit2.Retrofit;
+import com.google.common.reflect.TypeToken;
+import com.microsoft.azure.AzureServiceFuture;
+import com.microsoft.azure.ListOperationCallback;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.AppPatch;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.ErrorDetailsException;
+import com.microsoft.azure.management.iotcentral.v2018_09_01.OperationInputs;
+import com.microsoft.azure.Page;
+import com.microsoft.azure.PagedList;
+import com.microsoft.rest.ServiceCallback;
+import com.microsoft.rest.ServiceFuture;
+import com.microsoft.rest.ServiceResponse;
+import com.microsoft.rest.Validator;
+import java.io.IOException;
+import java.util.List;
+import okhttp3.ResponseBody;
+import retrofit2.http.Body;
+import retrofit2.http.GET;
+import retrofit2.http.Header;
+import retrofit2.http.Headers;
+import retrofit2.http.HTTP;
+import retrofit2.http.PATCH;
+import retrofit2.http.Path;
+import retrofit2.http.POST;
+import retrofit2.http.PUT;
+import retrofit2.http.Query;
+import retrofit2.http.Url;
+import retrofit2.Response;
+import rx.functions.Func1;
+import rx.Observable;
+
+/**
+ * An instance of this class provides access to all the operations defined
+ * in Apps.
+ */
+public class AppsInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing {
+ /** The Retrofit service to perform REST calls. */
+ private AppsService service;
+ /** The service client containing this operation class. */
+ private IotCentralClientImpl client;
+
+ /**
+ * Initializes an instance of AppsInner.
+ *
+ * @param retrofit the Retrofit instance built from a Retrofit Builder.
+ * @param client the instance of the service client containing this operation class.
+ */
+ public AppsInner(Retrofit retrofit, IotCentralClientImpl client) {
+ this.service = retrofit.create(AppsService.class);
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for Apps to be
+ * used by Retrofit to perform actually REST calls.
+ */
+ interface AppsService {
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2018_09_01.Apps getByResourceGroup" })
+ @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}")
+ Observable> getByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2018_09_01.Apps createOrUpdate" })
+ @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}")
+ Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppInner app, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2018_09_01.Apps beginCreateOrUpdate" })
+ @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}")
+ Observable> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppInner app, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2018_09_01.Apps update" })
+ @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}")
+ Observable> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppPatch appPatch, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2018_09_01.Apps beginUpdate" })
+ @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}")
+ Observable> beginUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Body AppPatch appPatch, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2018_09_01.Apps delete" })
+ @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}", method = "DELETE", hasBody = true)
+ Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2018_09_01.Apps beginDelete" })
+ @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}", method = "DELETE", hasBody = true)
+ Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2018_09_01.Apps list" })
+ @GET("subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/IoTApps")
+ Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2018_09_01.Apps listByResourceGroup" })
+ @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps")
+ Observable> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2018_09_01.Apps checkNameAvailability" })
+ @POST("subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/checkNameAvailability")
+ Observable> checkNameAvailability(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body OperationInputs operationInputs, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2018_09_01.Apps listNext" })
+ @GET
+ Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.iotcentral.v2018_09_01.Apps listByResourceGroupNext" })
+ @GET
+ Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ }
+
+ /**
+ * Get the metadata of an 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 ErrorDetailsException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the AppInner object if successful.
+ */
+ public AppInner getByResourceGroup(String resourceGroupName, String resourceName) {
+ return getByResourceGroupWithServiceResponseAsync(resourceGroupName, resourceName).toBlocking().single().body();
+ }
+
+ /**
+ * Get the metadata of an 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 serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String resourceName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, resourceName), serviceCallback);
+ }
+
+ /**
+ * Get the metadata of an 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
+ * @return the observable to the AppInner object
+ */
+ public Observable getByResourceGroupAsync(String resourceGroupName, String resourceName) {
+ return getByResourceGroupWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1, AppInner>() {
+ @Override
+ public AppInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Get the metadata of an 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
+ * @return the observable to the AppInner object
+ */
+ public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String resourceName) {
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (resourceName == null) {
+ throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ return service.getByResourceGroup(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = getByResourceGroupDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse getByResourceGroupDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .registerError(ErrorDetailsException.class)
+ .build(response);
+ }
+
+ /**
+ * Create or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update 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 app The IoT Central application metadata and security metadata.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws ErrorDetailsException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the AppInner object if successful.
+ */
+ public AppInner createOrUpdate(String resourceGroupName, String resourceName, AppInner app) {
+ return createOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, app).toBlocking().last().body();
+ }
+
+ /**
+ * Create or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update 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 app The IoT Central application metadata and security metadata.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture createOrUpdateAsync(String resourceGroupName, String resourceName, AppInner app, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, app), serviceCallback);
+ }
+
+ /**
+ * Create or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update 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 app The IoT Central application metadata and security metadata.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable createOrUpdateAsync(String resourceGroupName, String resourceName, AppInner app) {
+ return createOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, app).map(new Func1, AppInner>() {
+ @Override
+ public AppInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Create or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update 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 app The IoT Central application metadata and security metadata.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String resourceName, AppInner app) {
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (resourceName == null) {
+ throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ if (app == null) {
+ throw new IllegalArgumentException("Parameter app is required and cannot be null.");
+ }
+ Validator.validate(app);
+ Observable> observable = service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), app, this.client.acceptLanguage(), this.client.userAgent());
+ return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType());
+ }
+
+ /**
+ * Create or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update 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 app The IoT Central application metadata and security metadata.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws ErrorDetailsException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the AppInner object if successful.
+ */
+ public AppInner beginCreateOrUpdate(String resourceGroupName, String resourceName, AppInner app) {
+ return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, app).toBlocking().single().body();
+ }
+
+ /**
+ * Create or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update 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 app The IoT Central application metadata and security metadata.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String resourceName, AppInner app, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, app), serviceCallback);
+ }
+
+ /**
+ * Create or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update 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 app The IoT Central application metadata and security metadata.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AppInner object
+ */
+ public Observable beginCreateOrUpdateAsync(String resourceGroupName, String resourceName, AppInner app) {
+ return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, app).map(new Func1, AppInner>() {
+ @Override
+ public AppInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Create or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update 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 app The IoT Central application metadata and security metadata.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AppInner object
+ */
+ public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String resourceName, AppInner app) {
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (resourceName == null) {
+ throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ if (app == null) {
+ throw new IllegalArgumentException("Parameter app is required and cannot be null.");
+ }
+ Validator.validate(app);
+ return service.beginCreateOrUpdate(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), app, this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = beginCreateOrUpdateDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse beginCreateOrUpdateDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .register(201, new TypeToken() { }.getType())
+ .register(202, new TypeToken() { }.getType())
+ .registerError(ErrorDetailsException.class)
+ .build(response);
+ }
+
+ /**
+ * Update the metadata of an 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 appPatch The IoT Central application metadata and security metadata.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws ErrorDetailsException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the AppInner object if successful.
+ */
+ public AppInner update(String resourceGroupName, String resourceName, AppPatch appPatch) {
+ return updateWithServiceResponseAsync(resourceGroupName, resourceName, appPatch).toBlocking().last().body();
+ }
+
+ /**
+ * Update the metadata of an 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 appPatch The IoT Central application metadata and security metadata.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture updateAsync(String resourceGroupName, String resourceName, AppPatch appPatch, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, resourceName, appPatch), serviceCallback);
+ }
+
+ /**
+ * Update the metadata of an 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 appPatch The IoT Central application metadata and security metadata.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable updateAsync(String resourceGroupName, String resourceName, AppPatch appPatch) {
+ return updateWithServiceResponseAsync(resourceGroupName, resourceName, appPatch).map(new Func1, AppInner>() {
+ @Override
+ public AppInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Update the metadata of an 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 appPatch The IoT Central application metadata and security metadata.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable> updateWithServiceResponseAsync(String resourceGroupName, String resourceName, AppPatch appPatch) {
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (resourceName == null) {
+ throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ if (appPatch == null) {
+ throw new IllegalArgumentException("Parameter appPatch is required and cannot be null.");
+ }
+ Validator.validate(appPatch);
+ Observable> observable = service.update(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), appPatch, this.client.acceptLanguage(), this.client.userAgent());
+ return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType());
+ }
+
+ /**
+ * Update the metadata of an 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 appPatch The IoT Central application metadata and security metadata.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws ErrorDetailsException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the AppInner object if successful.
+ */
+ public AppInner beginUpdate(String resourceGroupName, String resourceName, AppPatch appPatch) {
+ return beginUpdateWithServiceResponseAsync(resourceGroupName, resourceName, appPatch).toBlocking().single().body();
+ }
+
+ /**
+ * Update the metadata of an 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 appPatch The IoT Central application metadata and security metadata.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture beginUpdateAsync(String resourceGroupName, String resourceName, AppPatch appPatch, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(beginUpdateWithServiceResponseAsync(resourceGroupName, resourceName, appPatch), serviceCallback);
+ }
+
+ /**
+ * Update the metadata of an 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 appPatch The IoT Central application metadata and security metadata.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AppInner object
+ */
+ public Observable beginUpdateAsync(String resourceGroupName, String resourceName, AppPatch appPatch) {
+ return beginUpdateWithServiceResponseAsync(resourceGroupName, resourceName, appPatch).map(new Func1, AppInner>() {
+ @Override
+ public AppInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Update the metadata of an 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 appPatch The IoT Central application metadata and security metadata.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AppInner object
+ */
+ public Observable> beginUpdateWithServiceResponseAsync(String resourceGroupName, String resourceName, AppPatch appPatch) {
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (resourceName == null) {
+ throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ if (appPatch == null) {
+ throw new IllegalArgumentException("Parameter appPatch is required and cannot be null.");
+ }
+ Validator.validate(appPatch);
+ return service.beginUpdate(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), appPatch, this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = beginUpdateDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse beginUpdateDelegate(Response response) throws ErrorDetailsException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .register(202, new TypeToken() { }.getType())
+ .registerError(ErrorDetailsException.class)
+ .build(response);
+ }
+
+ /**
+ * Delete an 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 ErrorDetailsException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ */
+ public void delete(String resourceGroupName, String resourceName) {
+ deleteWithServiceResponseAsync(resourceGroupName, resourceName).toBlocking().last().body();
+ }
+
+ /**
+ * Delete an 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 serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture deleteAsync(String resourceGroupName, String resourceName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, resourceName), serviceCallback);
+ }
+
+ /**
+ * Delete an 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
+ * @return the observable for the request
+ */
+ public Observable deleteAsync(String resourceGroupName, String resourceName) {
+ return deleteWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1, Void>() {
+ @Override
+ public Void call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Delete an 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
+ * @return the observable for the request
+ */
+ public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String resourceName) {
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (resourceName == null) {
+ throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
+ return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType());
+ }
+
+ /**
+ * Delete an 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 ErrorDetailsException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ */
+ public void beginDelete(String resourceGroupName, String resourceName) {
+ beginDeleteWithServiceResponseAsync(resourceGroupName, resourceName).toBlocking().single().body();
+ }
+
+ /**
+ * Delete an 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 serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture beginDeleteAsync(String resourceGroupName, String resourceName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, resourceName), serviceCallback);
+ }
+
+ /**
+ * Delete an 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
+ * @return the {@link ServiceResponse} object if successful.
+ */
+ public Observable beginDeleteAsync(String resourceGroupName, String resourceName) {
+ return beginDeleteWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1, Void>() {
+ @Override
+ public Void call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Delete an 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
+ * @return the {@link ServiceResponse} object if successful.
+ */
+ public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String resourceName) {
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (resourceName == null) {
+ throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ return service.beginDelete(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1