diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/AzureSphereManager.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/AzureSphereManager.java
index 6b49b7f12dc7d..fe5e3f2a87dc1 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/AzureSphereManager.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/AzureSphereManager.java
@@ -48,7 +48,10 @@
import java.util.Objects;
import java.util.stream.Collectors;
-/** Entry point to AzureSphereManager. Azure Sphere resource management API. */
+/**
+ * Entry point to AzureSphereManager.
+ * Azure Sphere resource management API.
+ */
public final class AzureSphereManager {
private Operations operations;
@@ -71,18 +74,14 @@ public final class AzureSphereManager {
private AzureSphereManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject =
- new AzureSphereManagementClientBuilder()
- .pipeline(httpPipeline)
- .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
- .subscriptionId(profile.getSubscriptionId())
- .defaultPollInterval(defaultPollInterval)
- .buildClient();
+ this.clientObject = new AzureSphereManagementClientBuilder().pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint()).subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval).buildClient();
}
/**
* Creates an instance of AzureSphere service API entry point.
- *
+ *
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the AzureSphere service API instance.
@@ -95,7 +94,7 @@ public static AzureSphereManager authenticate(TokenCredential credential, AzureP
/**
* Creates an instance of AzureSphere service API entry point.
- *
+ *
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the AzureSphere service API instance.
@@ -108,14 +107,16 @@ public static AzureSphereManager authenticate(HttpPipeline httpPipeline, AzurePr
/**
* Gets a Configurable instance that can be used to create AzureSphereManager with optional configuration.
- *
+ *
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
return new AzureSphereManager.Configurable();
}
- /** The Configurable allowing configurations to be set. */
+ /**
+ * The Configurable allowing configurations to be set.
+ */
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
@@ -187,8 +188,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
/**
* Sets the retry options for the HTTP pipeline retry policy.
- *
- * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
*
* @param retryOptions the retry options for the HTTP pipeline retry policy.
* @return the configurable object itself.
@@ -205,8 +206,8 @@ public Configurable withRetryOptions(RetryOptions retryOptions) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval =
- Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ this.defaultPollInterval
+ = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
throw LOGGER
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
@@ -226,21 +227,12 @@ public AzureSphereManager authenticate(TokenCredential credential, AzureProfile
Objects.requireNonNull(profile, "'profile' cannot be null.");
StringBuilder userAgentBuilder = new StringBuilder();
- userAgentBuilder
- .append("azsdk-java")
- .append("-")
- .append("com.azure.resourcemanager.sphere")
- .append("/")
+ userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.sphere").append("/")
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
- userAgentBuilder
- .append(" (")
- .append(Configuration.getGlobalConfiguration().get("java.version"))
- .append("; ")
- .append(Configuration.getGlobalConfiguration().get("os.name"))
- .append("; ")
- .append(Configuration.getGlobalConfiguration().get("os.version"))
- .append("; auto-generated)");
+ userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version")).append("; auto-generated)");
} else {
userAgentBuilder.append(" (auto-generated)");
}
@@ -259,38 +251,25 @@ public AzureSphereManager authenticate(TokenCredential credential, AzureProfile
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
- policies
- .addAll(
- this
- .policies
- .stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
- .collect(Collectors.toList()));
+ policies.addAll(this.policies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
- policies
- .addAll(
- this
- .policies
- .stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
- .collect(Collectors.toList()));
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY).collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
- HttpPipeline httpPipeline =
- new HttpPipelineBuilder()
- .httpClient(httpClient)
- .policies(policies.toArray(new HttpPipelinePolicy[0]))
- .build();
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0])).build();
return new AzureSphereManager(httpPipeline, profile, defaultPollInterval);
}
}
/**
* Gets the resource collection API of Operations.
- *
+ *
* @return Resource collection API of Operations.
*/
public Operations operations() {
@@ -302,7 +281,7 @@ public Operations operations() {
/**
* Gets the resource collection API of Catalogs. It manages Catalog.
- *
+ *
* @return Resource collection API of Catalogs.
*/
public Catalogs catalogs() {
@@ -314,7 +293,7 @@ public Catalogs catalogs() {
/**
* Gets the resource collection API of Certificates.
- *
+ *
* @return Resource collection API of Certificates.
*/
public Certificates certificates() {
@@ -326,7 +305,7 @@ public Certificates certificates() {
/**
* Gets the resource collection API of Images. It manages Image.
- *
+ *
* @return Resource collection API of Images.
*/
public Images images() {
@@ -338,7 +317,7 @@ public Images images() {
/**
* Gets the resource collection API of Products. It manages Product.
- *
+ *
* @return Resource collection API of Products.
*/
public Products products() {
@@ -350,7 +329,7 @@ public Products products() {
/**
* Gets the resource collection API of DeviceGroups. It manages DeviceGroup.
- *
+ *
* @return Resource collection API of DeviceGroups.
*/
public DeviceGroups deviceGroups() {
@@ -362,7 +341,7 @@ public DeviceGroups deviceGroups() {
/**
* Gets the resource collection API of Deployments. It manages Deployment.
- *
+ *
* @return Resource collection API of Deployments.
*/
public Deployments deployments() {
@@ -374,7 +353,7 @@ public Deployments deployments() {
/**
* Gets the resource collection API of Devices. It manages Device.
- *
+ *
* @return Resource collection API of Devices.
*/
public Devices devices() {
@@ -385,8 +364,10 @@ public Devices devices() {
}
/**
- * @return Wrapped service client AzureSphereManagementClient providing direct access to the underlying
- * auto-generated API implementation, based on Azure REST API.
+ * Gets wrapped service client AzureSphereManagementClient providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client AzureSphereManagementClient.
*/
public AzureSphereManagementClient serviceClient() {
return this.clientObject;
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/AzureSphereManagementClient.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/AzureSphereManagementClient.java
index 82f217261953a..d6197ad1708b8 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/AzureSphereManagementClient.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/AzureSphereManagementClient.java
@@ -7,95 +7,97 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for AzureSphereManagementClient class. */
+/**
+ * The interface for AzureSphereManagementClient class.
+ */
public interface AzureSphereManagementClient {
/**
* Gets The ID of the target subscription.
- *
+ *
* @return the subscriptionId value.
*/
String getSubscriptionId();
/**
* Gets server parameter.
- *
+ *
* @return the endpoint value.
*/
String getEndpoint();
/**
* Gets Api Version.
- *
+ *
* @return the apiVersion value.
*/
String getApiVersion();
/**
* Gets The HTTP pipeline to send requests through.
- *
+ *
* @return the httpPipeline value.
*/
HttpPipeline getHttpPipeline();
/**
* Gets The default poll interval for long-running operation.
- *
+ *
* @return the defaultPollInterval value.
*/
Duration getDefaultPollInterval();
/**
* Gets the OperationsClient object to access its operations.
- *
+ *
* @return the OperationsClient object.
*/
OperationsClient getOperations();
/**
* Gets the CatalogsClient object to access its operations.
- *
+ *
* @return the CatalogsClient object.
*/
CatalogsClient getCatalogs();
/**
* Gets the CertificatesClient object to access its operations.
- *
+ *
* @return the CertificatesClient object.
*/
CertificatesClient getCertificates();
/**
* Gets the ImagesClient object to access its operations.
- *
+ *
* @return the ImagesClient object.
*/
ImagesClient getImages();
/**
* Gets the ProductsClient object to access its operations.
- *
+ *
* @return the ProductsClient object.
*/
ProductsClient getProducts();
/**
* Gets the DeviceGroupsClient object to access its operations.
- *
+ *
* @return the DeviceGroupsClient object.
*/
DeviceGroupsClient getDeviceGroups();
/**
* Gets the DeploymentsClient object to access its operations.
- *
+ *
* @return the DeploymentsClient object.
*/
DeploymentsClient getDeployments();
/**
* Gets the DevicesClient object to access its operations.
- *
+ *
* @return the DevicesClient object.
*/
DevicesClient getDevices();
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/CatalogsClient.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/CatalogsClient.java
index b06050790d6c4..b78e01e5beecb 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/CatalogsClient.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/CatalogsClient.java
@@ -20,11 +20,13 @@
import com.azure.resourcemanager.sphere.models.CatalogUpdate;
import com.azure.resourcemanager.sphere.models.ListDeviceGroupsRequest;
-/** An instance of this class provides access to all the operations defined in CatalogsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in CatalogsClient.
+ */
public interface CatalogsClient {
/**
* List Catalog resources by subscription ID.
- *
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a Catalog list operation as paginated response with {@link PagedIterable}.
@@ -34,7 +36,7 @@ public interface CatalogsClient {
/**
* List Catalog resources by subscription ID.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -46,7 +48,7 @@ public interface CatalogsClient {
/**
* List Catalog resources by resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -58,7 +60,7 @@ public interface CatalogsClient {
/**
* List Catalog resources by resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -71,7 +73,7 @@ public interface CatalogsClient {
/**
* Get a Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param context The context to associate with this operation.
@@ -81,12 +83,12 @@ public interface CatalogsClient {
* @return a Catalog along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String catalogName, Context context);
+ Response getByResourceGroupWithResponse(String resourceGroupName, String catalogName,
+ Context context);
/**
* Get a Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -99,7 +101,7 @@ Response getByResourceGroupWithResponse(
/**
* Create a Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param resource Resource create parameters.
@@ -109,12 +111,12 @@ Response getByResourceGroupWithResponse(
* @return the {@link SyncPoller} for polling of an Azure Sphere catalog.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, CatalogInner> beginCreateOrUpdate(
- String resourceGroupName, String catalogName, CatalogInner resource);
+ SyncPoller, CatalogInner> beginCreateOrUpdate(String resourceGroupName, String catalogName,
+ CatalogInner resource);
/**
* Create a Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param resource Resource create parameters.
@@ -125,12 +127,12 @@ SyncPoller, CatalogInner> beginCreateOrUpdate(
* @return the {@link SyncPoller} for polling of an Azure Sphere catalog.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, CatalogInner> beginCreateOrUpdate(
- String resourceGroupName, String catalogName, CatalogInner resource, Context context);
+ SyncPoller, CatalogInner> beginCreateOrUpdate(String resourceGroupName, String catalogName,
+ CatalogInner resource, Context context);
/**
* Create a Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param resource Resource create parameters.
@@ -144,7 +146,7 @@ SyncPoller, CatalogInner> beginCreateOrUpdate(
/**
* Create a Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param resource Resource create parameters.
@@ -159,7 +161,7 @@ SyncPoller, CatalogInner> beginCreateOrUpdate(
/**
* Update a Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param properties The resource properties to be updated.
@@ -170,12 +172,12 @@ SyncPoller, CatalogInner> beginCreateOrUpdate(
* @return an Azure Sphere catalog along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String catalogName, CatalogUpdate properties, Context context);
+ Response updateWithResponse(String resourceGroupName, String catalogName, CatalogUpdate properties,
+ Context context);
/**
* Update a Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param properties The resource properties to be updated.
@@ -189,7 +191,7 @@ Response updateWithResponse(
/**
* Delete a Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -202,7 +204,7 @@ Response updateWithResponse(
/**
* Delete a Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param context The context to associate with this operation.
@@ -216,7 +218,7 @@ Response updateWithResponse(
/**
* Delete a Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -228,7 +230,7 @@ Response updateWithResponse(
/**
* Delete a Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param context The context to associate with this operation.
@@ -241,35 +243,35 @@ Response updateWithResponse(
/**
* Counts devices in catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return response to the action call for count devices in a catalog along with {@link Response}.
+ * @return response to the action call for count devices in a catalog (preview API) along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response countDevicesWithResponse(
- String resourceGroupName, String catalogName, Context context);
+ Response countDevicesWithResponse(String resourceGroupName, String catalogName,
+ Context context);
/**
* Counts devices in catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return response to the action call for count devices in a catalog.
+ * @return response to the action call for count devices in a catalog (preview API).
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CountDeviceResponseInner countDevices(String resourceGroupName, String catalogName);
/**
* Lists deployments for catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -282,7 +284,7 @@ Response countDevicesWithResponse(
/**
* Lists deployments for catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param filter Filter the result list using the given expression.
@@ -296,18 +298,12 @@ Response countDevicesWithResponse(
* @return the response of a Deployment list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listDeployments(
- String resourceGroupName,
- String catalogName,
- String filter,
- Integer top,
- Integer skip,
- Integer maxpagesize,
- Context context);
+ PagedIterable listDeployments(String resourceGroupName, String catalogName, String filter,
+ Integer top, Integer skip, Integer maxpagesize, Context context);
/**
* List the device groups for the catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param listDeviceGroupsRequest List device groups for catalog.
@@ -317,12 +313,12 @@ PagedIterable listDeployments(
* @return the response of a DeviceGroup list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listDeviceGroups(
- String resourceGroupName, String catalogName, ListDeviceGroupsRequest listDeviceGroupsRequest);
+ PagedIterable listDeviceGroups(String resourceGroupName, String catalogName,
+ ListDeviceGroupsRequest listDeviceGroupsRequest);
/**
* List the device groups for the catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param listDeviceGroupsRequest List device groups for catalog.
@@ -337,19 +333,13 @@ PagedIterable listDeviceGroups(
* @return the response of a DeviceGroup list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listDeviceGroups(
- String resourceGroupName,
- String catalogName,
- ListDeviceGroupsRequest listDeviceGroupsRequest,
- String filter,
- Integer top,
- Integer skip,
- Integer maxpagesize,
+ PagedIterable listDeviceGroups(String resourceGroupName, String catalogName,
+ ListDeviceGroupsRequest listDeviceGroupsRequest, String filter, Integer top, Integer skip, Integer maxpagesize,
Context context);
/**
* Lists device insights for catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -362,7 +352,7 @@ PagedIterable listDeviceGroups(
/**
* Lists device insights for catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param filter Filter the result list using the given expression.
@@ -376,18 +366,12 @@ PagedIterable listDeviceGroups(
* @return paged collection of DeviceInsight items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listDeviceInsights(
- String resourceGroupName,
- String catalogName,
- String filter,
- Integer top,
- Integer skip,
- Integer maxpagesize,
- Context context);
+ PagedIterable listDeviceInsights(String resourceGroupName, String catalogName, String filter,
+ Integer top, Integer skip, Integer maxpagesize, Context context);
/**
* Lists devices for catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -400,7 +384,7 @@ PagedIterable listDeviceInsights(
/**
* Lists devices for catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param filter Filter the result list using the given expression.
@@ -414,12 +398,6 @@ PagedIterable listDeviceInsights(
* @return the response of a Device list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listDevices(
- String resourceGroupName,
- String catalogName,
- String filter,
- Integer top,
- Integer skip,
- Integer maxpagesize,
- Context context);
+ PagedIterable listDevices(String resourceGroupName, String catalogName, String filter, Integer top,
+ Integer skip, Integer maxpagesize, Context context);
}
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/CertificatesClient.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/CertificatesClient.java
index a25275cddf218..b76a551fcd5e8 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/CertificatesClient.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/CertificatesClient.java
@@ -14,11 +14,13 @@
import com.azure.resourcemanager.sphere.fluent.models.ProofOfPossessionNonceResponseInner;
import com.azure.resourcemanager.sphere.models.ProofOfPossessionNonceRequest;
-/** An instance of this class provides access to all the operations defined in CertificatesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in CertificatesClient.
+ */
public interface CertificatesClient {
/**
* List Certificate resources by Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -31,7 +33,7 @@ public interface CertificatesClient {
/**
* List Certificate resources by Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param filter Filter the result list using the given expression.
@@ -45,18 +47,12 @@ public interface CertificatesClient {
* @return the response of a Certificate list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCatalog(
- String resourceGroupName,
- String catalogName,
- String filter,
- Integer top,
- Integer skip,
- Integer maxpagesize,
- Context context);
+ PagedIterable listByCatalog(String resourceGroupName, String catalogName, String filter,
+ Integer top, Integer skip, Integer maxpagesize, Context context);
/**
* Get a Certificate.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param serialNumber Serial number of the certificate. Use '.default' to get current active certificate.
@@ -67,12 +63,12 @@ PagedIterable listByCatalog(
* @return a Certificate along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String catalogName, String serialNumber, Context context);
+ Response getWithResponse(String resourceGroupName, String catalogName, String serialNumber,
+ Context context);
/**
* Get a Certificate.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param serialNumber Serial number of the certificate. Use '.default' to get current active certificate.
@@ -86,7 +82,7 @@ Response getWithResponse(
/**
* Retrieves cert chain.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param serialNumber Serial number of the certificate. Use '.default' to get current active certificate.
@@ -97,12 +93,12 @@ Response getWithResponse(
* @return the certificate chain response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response retrieveCertChainWithResponse(
- String resourceGroupName, String catalogName, String serialNumber, Context context);
+ Response retrieveCertChainWithResponse(String resourceGroupName, String catalogName,
+ String serialNumber, Context context);
/**
* Retrieves cert chain.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param serialNumber Serial number of the certificate. Use '.default' to get current active certificate.
@@ -116,7 +112,7 @@ Response retrieveCertChainWithResponse(
/**
* Gets the proof of possession nonce.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param serialNumber Serial number of the certificate. Use '.default' to get current active certificate.
@@ -128,16 +124,13 @@ Response retrieveCertChainWithResponse(
* @return the proof of possession nonce along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response retrieveProofOfPossessionNonceWithResponse(
- String resourceGroupName,
- String catalogName,
- String serialNumber,
- ProofOfPossessionNonceRequest proofOfPossessionNonceRequest,
+ Response retrieveProofOfPossessionNonceWithResponse(String resourceGroupName,
+ String catalogName, String serialNumber, ProofOfPossessionNonceRequest proofOfPossessionNonceRequest,
Context context);
/**
* Gets the proof of possession nonce.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param serialNumber Serial number of the certificate. Use '.default' to get current active certificate.
@@ -148,9 +141,6 @@ Response retrieveProofOfPossessionNonceWith
* @return the proof of possession nonce.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ProofOfPossessionNonceResponseInner retrieveProofOfPossessionNonce(
- String resourceGroupName,
- String catalogName,
- String serialNumber,
- ProofOfPossessionNonceRequest proofOfPossessionNonceRequest);
+ ProofOfPossessionNonceResponseInner retrieveProofOfPossessionNonce(String resourceGroupName, String catalogName,
+ String serialNumber, ProofOfPossessionNonceRequest proofOfPossessionNonceRequest);
}
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/DeploymentsClient.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/DeploymentsClient.java
index 0d59f94edfa18..c02caa703a712 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/DeploymentsClient.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/DeploymentsClient.java
@@ -13,12 +13,14 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.sphere.fluent.models.DeploymentInner;
-/** An instance of this class provides access to all the operations defined in DeploymentsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in DeploymentsClient.
+ */
public interface DeploymentsClient {
/**
* List Deployment resources by DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be
* used for product or device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -29,13 +31,13 @@ public interface DeploymentsClient {
* @return the response of a Deployment list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByDeviceGroup(
- String resourceGroupName, String catalogName, String productName, String deviceGroupName);
+ PagedIterable listByDeviceGroup(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName);
/**
* List Deployment resources by DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be
* used for product or device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -51,27 +53,19 @@ PagedIterable listByDeviceGroup(
* @return the response of a Deployment list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByDeviceGroup(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String filter,
- Integer top,
- Integer skip,
- Integer maxpagesize,
- Context context);
+ PagedIterable listByDeviceGroup(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName, String filter, Integer top, Integer skip, Integer maxpagesize, Context context);
/**
* Get a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device
* group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
* @param deviceGroupName Name of device group.
* @param deploymentName Deployment name. Use .default for deployment creation and to get the current deployment for
- * the associated device group.
+ * the associated device group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -79,47 +73,38 @@ PagedIterable listByDeviceGroup(
* @return a Deployment along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deploymentName,
- Context context);
+ Response getWithResponse(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName, String deploymentName, Context context);
/**
* Get a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device
* group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
* @param deviceGroupName Name of device group.
* @param deploymentName Deployment name. Use .default for deployment creation and to get the current deployment for
- * the associated device group.
+ * the associated device group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a Deployment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentInner get(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
+ DeploymentInner get(String resourceGroupName, String catalogName, String productName, String deviceGroupName,
String deploymentName);
/**
* Create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
* @param deviceGroupName Name of device group.
* @param deploymentName Deployment name. Use .default for deployment creation and to get the current deployment for
- * the associated device group.
+ * the associated device group.
* @param resource Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -127,24 +112,20 @@ DeploymentInner get(
* @return the {@link SyncPoller} for polling of an deployment resource belonging to a device group resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeploymentInner> beginCreateOrUpdate(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deploymentName,
+ SyncPoller, DeploymentInner> beginCreateOrUpdate(String resourceGroupName,
+ String catalogName, String productName, String deviceGroupName, String deploymentName,
DeploymentInner resource);
/**
* Create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
* @param deviceGroupName Name of device group.
* @param deploymentName Deployment name. Use .default for deployment creation and to get the current deployment for
- * the associated device group.
+ * the associated device group.
* @param resource Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -153,25 +134,20 @@ SyncPoller, DeploymentInner> beginCreateOrUpdate(
* @return the {@link SyncPoller} for polling of an deployment resource belonging to a device group resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeploymentInner> beginCreateOrUpdate(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deploymentName,
- DeploymentInner resource,
+ SyncPoller, DeploymentInner> beginCreateOrUpdate(String resourceGroupName,
+ String catalogName, String productName, String deviceGroupName, String deploymentName, DeploymentInner resource,
Context context);
/**
* Create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
* @param deviceGroupName Name of device group.
* @param deploymentName Deployment name. Use .default for deployment creation and to get the current deployment for
- * the associated device group.
+ * the associated device group.
* @param resource Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -179,24 +155,19 @@ SyncPoller, DeploymentInner> beginCreateOrUpdate(
* @return an deployment resource belonging to a device group resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentInner createOrUpdate(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deploymentName,
- DeploymentInner resource);
+ DeploymentInner createOrUpdate(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName, String deploymentName, DeploymentInner resource);
/**
* Create a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
* @param deviceGroupName Name of device group.
* @param deploymentName Deployment name. Use .default for deployment creation and to get the current deployment for
- * the associated device group.
+ * the associated device group.
* @param resource Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -205,48 +176,38 @@ DeploymentInner createOrUpdate(
* @return an deployment resource belonging to a device group resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeploymentInner createOrUpdate(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deploymentName,
- DeploymentInner resource,
- Context context);
+ DeploymentInner createOrUpdate(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName, String deploymentName, DeploymentInner resource, Context context);
/**
* Delete a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
* @param deviceGroupName Name of device group.
* @param deploymentName Deployment name. Use .default for deployment creation and to get the current deployment for
- * the associated device group.
+ * the associated device group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deploymentName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName, String deploymentName);
/**
* Delete a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
* @param deviceGroupName Name of device group.
* @param deploymentName Deployment name. Use .default for deployment creation and to get the current deployment for
- * the associated device group.
+ * the associated device group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -254,57 +215,43 @@ SyncPoller, Void> beginDelete(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deploymentName,
- Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName, String deploymentName, Context context);
/**
* Delete a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
* @param deviceGroupName Name of device group.
* @param deploymentName Deployment name. Use .default for deployment creation and to get the current deployment for
- * the associated device group.
+ * the associated device group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
+ void delete(String resourceGroupName, String catalogName, String productName, String deviceGroupName,
String deploymentName);
/**
* Delete a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
* @param deviceGroupName Name of device group.
* @param deploymentName Deployment name. Use .default for deployment creation and to get the current deployment for
- * the associated device group.
+ * the associated device group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deploymentName,
- Context context);
+ void delete(String resourceGroupName, String catalogName, String productName, String deviceGroupName,
+ String deploymentName, Context context);
}
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/DeviceGroupsClient.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/DeviceGroupsClient.java
index 4e210133bb5c0..63a4d69a2bbb1 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/DeviceGroupsClient.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/DeviceGroupsClient.java
@@ -16,12 +16,14 @@
import com.azure.resourcemanager.sphere.models.ClaimDevicesRequest;
import com.azure.resourcemanager.sphere.models.DeviceGroupUpdate;
-/** An instance of this class provides access to all the operations defined in DeviceGroupsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in DeviceGroupsClient.
+ */
public interface DeviceGroupsClient {
/**
* List DeviceGroup resources by Product. '.default' and '.unassigned' are system defined values and cannot be used
* for product name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -36,7 +38,7 @@ public interface DeviceGroupsClient {
/**
* List DeviceGroup resources by Product. '.default' and '.unassigned' are system defined values and cannot be used
* for product name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -51,20 +53,13 @@ public interface DeviceGroupsClient {
* @return the response of a DeviceGroup list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByProduct(
- String resourceGroupName,
- String catalogName,
- String productName,
- String filter,
- Integer top,
- Integer skip,
- Integer maxpagesize,
- Context context);
+ PagedIterable listByProduct(String resourceGroupName, String catalogName, String productName,
+ String filter, Integer top, Integer skip, Integer maxpagesize, Context context);
/**
* Get a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -76,13 +71,13 @@ PagedIterable listByProduct(
* @return a DeviceGroup along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String catalogName, String productName, String deviceGroupName, Context context);
+ Response getWithResponse(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName, Context context);
/**
* Get a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -98,7 +93,7 @@ Response getWithResponse(
/**
* Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -110,17 +105,13 @@ Response getWithResponse(
* @return the {@link SyncPoller} for polling of an device group resource belonging to a product resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeviceGroupInner> beginCreateOrUpdate(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- DeviceGroupInner resource);
+ SyncPoller, DeviceGroupInner> beginCreateOrUpdate(String resourceGroupName,
+ String catalogName, String productName, String deviceGroupName, DeviceGroupInner resource);
/**
* Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -133,18 +124,13 @@ SyncPoller, DeviceGroupInner> beginCreateOrUpdate(
* @return the {@link SyncPoller} for polling of an device group resource belonging to a product resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeviceGroupInner> beginCreateOrUpdate(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- DeviceGroupInner resource,
- Context context);
+ SyncPoller, DeviceGroupInner> beginCreateOrUpdate(String resourceGroupName,
+ String catalogName, String productName, String deviceGroupName, DeviceGroupInner resource, Context context);
/**
* Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -156,17 +142,13 @@ SyncPoller, DeviceGroupInner> beginCreateOrUpdate(
* @return an device group resource belonging to a product resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeviceGroupInner createOrUpdate(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- DeviceGroupInner resource);
+ DeviceGroupInner createOrUpdate(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName, DeviceGroupInner resource);
/**
* Create a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -179,18 +161,13 @@ DeviceGroupInner createOrUpdate(
* @return an device group resource belonging to a product resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeviceGroupInner createOrUpdate(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- DeviceGroupInner resource,
- Context context);
+ DeviceGroupInner createOrUpdate(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName, DeviceGroupInner resource, Context context);
/**
* Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -202,17 +179,13 @@ DeviceGroupInner createOrUpdate(
* @return the {@link SyncPoller} for polling of an device group resource belonging to a product resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeviceGroupInner> beginUpdate(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- DeviceGroupUpdate properties);
+ SyncPoller, DeviceGroupInner> beginUpdate(String resourceGroupName, String catalogName,
+ String productName, String deviceGroupName, DeviceGroupUpdate properties);
/**
* Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -225,18 +198,13 @@ SyncPoller, DeviceGroupInner> beginUpdate(
* @return the {@link SyncPoller} for polling of an device group resource belonging to a product resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeviceGroupInner> beginUpdate(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- DeviceGroupUpdate properties,
- Context context);
+ SyncPoller, DeviceGroupInner> beginUpdate(String resourceGroupName, String catalogName,
+ String productName, String deviceGroupName, DeviceGroupUpdate properties, Context context);
/**
* Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -248,17 +216,13 @@ SyncPoller, DeviceGroupInner> beginUpdate(
* @return an device group resource belonging to a product resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeviceGroupInner update(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
+ DeviceGroupInner update(String resourceGroupName, String catalogName, String productName, String deviceGroupName,
DeviceGroupUpdate properties);
/**
* Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -271,18 +235,13 @@ DeviceGroupInner update(
* @return an device group resource belonging to a product resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeviceGroupInner update(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- DeviceGroupUpdate properties,
- Context context);
+ DeviceGroupInner update(String resourceGroupName, String catalogName, String productName, String deviceGroupName,
+ DeviceGroupUpdate properties, Context context);
/**
* Delete a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -293,13 +252,13 @@ DeviceGroupInner update(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String catalogName, String productName, String deviceGroupName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName);
/**
* Delete a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -311,13 +270,13 @@ SyncPoller, Void> beginDelete(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String catalogName, String productName, String deviceGroupName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName, Context context);
/**
* Delete a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -332,7 +291,7 @@ SyncPoller, Void> beginDelete(
/**
* Delete a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or
* device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -343,13 +302,13 @@ SyncPoller, Void> beginDelete(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(
- String resourceGroupName, String catalogName, String productName, String deviceGroupName, Context context);
+ void delete(String resourceGroupName, String catalogName, String productName, String deviceGroupName,
+ Context context);
/**
* Bulk claims the devices. Use '.unassigned' or '.default' for the device group and product names when bulk
* claiming devices to a catalog only.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -361,17 +320,13 @@ void delete(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginClaimDevices(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- ClaimDevicesRequest claimDevicesRequest);
+ SyncPoller, Void> beginClaimDevices(String resourceGroupName, String catalogName,
+ String productName, String deviceGroupName, ClaimDevicesRequest claimDevicesRequest);
/**
* Bulk claims the devices. Use '.unassigned' or '.default' for the device group and product names when bulk
* claiming devices to a catalog only.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -384,18 +339,13 @@ SyncPoller, Void> beginClaimDevices(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginClaimDevices(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- ClaimDevicesRequest claimDevicesRequest,
- Context context);
+ SyncPoller, Void> beginClaimDevices(String resourceGroupName, String catalogName,
+ String productName, String deviceGroupName, ClaimDevicesRequest claimDevicesRequest, Context context);
/**
* Bulk claims the devices. Use '.unassigned' or '.default' for the device group and product names when bulk
* claiming devices to a catalog only.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -406,17 +356,13 @@ SyncPoller, Void> beginClaimDevices(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void claimDevices(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
+ void claimDevices(String resourceGroupName, String catalogName, String productName, String deviceGroupName,
ClaimDevicesRequest claimDevicesRequest);
/**
* Bulk claims the devices. Use '.unassigned' or '.default' for the device group and product names when bulk
* claiming devices to a catalog only.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -428,18 +374,13 @@ void claimDevices(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void claimDevices(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- ClaimDevicesRequest claimDevicesRequest,
- Context context);
+ void claimDevices(String resourceGroupName, String catalogName, String productName, String deviceGroupName,
+ ClaimDevicesRequest claimDevicesRequest, Context context);
/**
* Counts devices in device group. '.default' and '.unassigned' are system defined values and cannot be used for
* product or device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -448,16 +389,16 @@ void claimDevices(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return response to the action call for count devices in a catalog along with {@link Response}.
+ * @return response to the action call for count devices in a catalog (preview API) along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response countDevicesWithResponse(
- String resourceGroupName, String catalogName, String productName, String deviceGroupName, Context context);
+ Response countDevicesWithResponse(String resourceGroupName, String catalogName,
+ String productName, String deviceGroupName, Context context);
/**
* Counts devices in device group. '.default' and '.unassigned' are system defined values and cannot be used for
* product or device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -465,9 +406,9 @@ Response countDevicesWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return response to the action call for count devices in a catalog.
+ * @return response to the action call for count devices in a catalog (preview API).
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CountDeviceResponseInner countDevices(
- String resourceGroupName, String catalogName, String productName, String deviceGroupName);
+ CountDeviceResponseInner countDevices(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName);
}
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/DevicesClient.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/DevicesClient.java
index b053aa5cadace..9e6322247bf44 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/DevicesClient.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/DevicesClient.java
@@ -16,12 +16,14 @@
import com.azure.resourcemanager.sphere.models.DeviceUpdate;
import com.azure.resourcemanager.sphere.models.GenerateCapabilityImageRequest;
-/** An instance of this class provides access to all the operations defined in DevicesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in DevicesClient.
+ */
public interface DevicesClient {
/**
* List Device resources by DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used
* for product or device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -32,13 +34,13 @@ public interface DevicesClient {
* @return the response of a Device list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByDeviceGroup(
- String resourceGroupName, String catalogName, String productName, String deviceGroupName);
+ PagedIterable listByDeviceGroup(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName);
/**
* List Device resources by DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used
* for product or device group name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -50,13 +52,13 @@ PagedIterable listByDeviceGroup(
* @return the response of a Device list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByDeviceGroup(
- String resourceGroupName, String catalogName, String productName, String deviceGroupName, Context context);
+ PagedIterable listByDeviceGroup(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName, Context context);
/**
* Get a Device. Use '.unassigned' or '.default' for the device group and product names when a device does not
* belong to a device group and product.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -69,18 +71,13 @@ PagedIterable listByDeviceGroup(
* @return a Device along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deviceName,
- Context context);
+ Response getWithResponse(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName, String deviceName, Context context);
/**
* Get a Device. Use '.unassigned' or '.default' for the device group and product names when a device does not
* belong to a device group and product.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -92,13 +89,13 @@ Response getWithResponse(
* @return a Device.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeviceInner get(
- String resourceGroupName, String catalogName, String productName, String deviceGroupName, String deviceName);
+ DeviceInner get(String resourceGroupName, String catalogName, String productName, String deviceGroupName,
+ String deviceName);
/**
* Create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the
* catalog only.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -111,18 +108,13 @@ DeviceInner get(
* @return the {@link SyncPoller} for polling of an device resource belonging to a device group resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeviceInner> beginCreateOrUpdate(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deviceName,
- DeviceInner resource);
+ SyncPoller, DeviceInner> beginCreateOrUpdate(String resourceGroupName, String catalogName,
+ String productName, String deviceGroupName, String deviceName, DeviceInner resource);
/**
* Create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the
* catalog only.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -136,19 +128,13 @@ SyncPoller, DeviceInner> beginCreateOrUpdate(
* @return the {@link SyncPoller} for polling of an device resource belonging to a device group resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeviceInner> beginCreateOrUpdate(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deviceName,
- DeviceInner resource,
- Context context);
+ SyncPoller, DeviceInner> beginCreateOrUpdate(String resourceGroupName, String catalogName,
+ String productName, String deviceGroupName, String deviceName, DeviceInner resource, Context context);
/**
* Create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the
* catalog only.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -161,18 +147,13 @@ SyncPoller, DeviceInner> beginCreateOrUpdate(
* @return an device resource belonging to a device group resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeviceInner createOrUpdate(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deviceName,
- DeviceInner resource);
+ DeviceInner createOrUpdate(String resourceGroupName, String catalogName, String productName, String deviceGroupName,
+ String deviceName, DeviceInner resource);
/**
* Create a Device. Use '.unassigned' or '.default' for the device group and product names to claim a device to the
* catalog only.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -186,19 +167,13 @@ DeviceInner createOrUpdate(
* @return an device resource belonging to a device group resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeviceInner createOrUpdate(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deviceName,
- DeviceInner resource,
- Context context);
+ DeviceInner createOrUpdate(String resourceGroupName, String catalogName, String productName, String deviceGroupName,
+ String deviceName, DeviceInner resource, Context context);
/**
* Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the
* catalog level.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -211,18 +186,13 @@ DeviceInner createOrUpdate(
* @return the {@link SyncPoller} for polling of an device resource belonging to a device group resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeviceInner> beginUpdate(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deviceName,
- DeviceUpdate properties);
+ SyncPoller, DeviceInner> beginUpdate(String resourceGroupName, String catalogName,
+ String productName, String deviceGroupName, String deviceName, DeviceUpdate properties);
/**
* Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the
* catalog level.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -236,19 +206,13 @@ SyncPoller, DeviceInner> beginUpdate(
* @return the {@link SyncPoller} for polling of an device resource belonging to a device group resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DeviceInner> beginUpdate(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deviceName,
- DeviceUpdate properties,
- Context context);
+ SyncPoller, DeviceInner> beginUpdate(String resourceGroupName, String catalogName,
+ String productName, String deviceGroupName, String deviceName, DeviceUpdate properties, Context context);
/**
* Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the
* catalog level.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -261,18 +225,13 @@ SyncPoller, DeviceInner> beginUpdate(
* @return an device resource belonging to a device group resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeviceInner update(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deviceName,
- DeviceUpdate properties);
+ DeviceInner update(String resourceGroupName, String catalogName, String productName, String deviceGroupName,
+ String deviceName, DeviceUpdate properties);
/**
* Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the
* catalog level.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -286,18 +245,12 @@ DeviceInner update(
* @return an device resource belonging to a device group resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeviceInner update(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deviceName,
- DeviceUpdate properties,
- Context context);
+ DeviceInner update(String resourceGroupName, String catalogName, String productName, String deviceGroupName,
+ String deviceName, DeviceUpdate properties, Context context);
/**
* Delete a Device.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -309,12 +262,12 @@ DeviceInner update(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String catalogName, String productName, String deviceGroupName, String deviceName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName, String deviceName);
/**
* Delete a Device.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -327,17 +280,12 @@ SyncPoller, Void> beginDelete(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deviceName,
- Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName, String deviceName, Context context);
/**
* Delete a Device.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -348,12 +296,12 @@ SyncPoller, Void> beginDelete(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(
- String resourceGroupName, String catalogName, String productName, String deviceGroupName, String deviceName);
+ void delete(String resourceGroupName, String catalogName, String productName, String deviceGroupName,
+ String deviceName);
/**
* Delete a Device.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -365,18 +313,13 @@ void delete(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deviceName,
- Context context);
+ void delete(String resourceGroupName, String catalogName, String productName, String deviceGroupName,
+ String deviceName, Context context);
/**
* Generates the capability image for the device. Use '.unassigned' or '.default' for the device group and product
* names to generate the image for a device that does not belong to a specific device group and product.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -390,18 +333,13 @@ void delete(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, SignedCapabilityImageResponseInner>
- beginGenerateCapabilityImage(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deviceName,
- GenerateCapabilityImageRequest generateDeviceCapabilityRequest);
+ beginGenerateCapabilityImage(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName, String deviceName, GenerateCapabilityImageRequest generateDeviceCapabilityRequest);
/**
* Generates the capability image for the device. Use '.unassigned' or '.default' for the device group and product
* names to generate the image for a device that does not belong to a specific device group and product.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -416,19 +354,14 @@ void delete(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, SignedCapabilityImageResponseInner>
- beginGenerateCapabilityImage(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deviceName,
- GenerateCapabilityImageRequest generateDeviceCapabilityRequest,
+ beginGenerateCapabilityImage(String resourceGroupName, String catalogName, String productName,
+ String deviceGroupName, String deviceName, GenerateCapabilityImageRequest generateDeviceCapabilityRequest,
Context context);
/**
* Generates the capability image for the device. Use '.unassigned' or '.default' for the device group and product
* names to generate the image for a device that does not belong to a specific device group and product.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -441,18 +374,14 @@ void delete(
* @return signed device capability image response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SignedCapabilityImageResponseInner generateCapabilityImage(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deviceName,
+ SignedCapabilityImageResponseInner generateCapabilityImage(String resourceGroupName, String catalogName,
+ String productName, String deviceGroupName, String deviceName,
GenerateCapabilityImageRequest generateDeviceCapabilityRequest);
/**
* Generates the capability image for the device. Use '.unassigned' or '.default' for the device group and product
* names to generate the image for a device that does not belong to a specific device group and product.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -466,12 +395,7 @@ SignedCapabilityImageResponseInner generateCapabilityImage(
* @return signed device capability image response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SignedCapabilityImageResponseInner generateCapabilityImage(
- String resourceGroupName,
- String catalogName,
- String productName,
- String deviceGroupName,
- String deviceName,
- GenerateCapabilityImageRequest generateDeviceCapabilityRequest,
- Context context);
+ SignedCapabilityImageResponseInner generateCapabilityImage(String resourceGroupName, String catalogName,
+ String productName, String deviceGroupName, String deviceName,
+ GenerateCapabilityImageRequest generateDeviceCapabilityRequest, Context context);
}
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/ImagesClient.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/ImagesClient.java
index 205ceca662eb9..de16245b13d1f 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/ImagesClient.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/ImagesClient.java
@@ -13,11 +13,13 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.sphere.fluent.models.ImageInner;
-/** An instance of this class provides access to all the operations defined in ImagesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ImagesClient.
+ */
public interface ImagesClient {
/**
* List Image resources by Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -30,7 +32,7 @@ public interface ImagesClient {
/**
* List Image resources by Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param filter Filter the result list using the given expression.
@@ -44,21 +46,15 @@ public interface ImagesClient {
* @return the response of a Image list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCatalog(
- String resourceGroupName,
- String catalogName,
- String filter,
- Integer top,
- Integer skip,
- Integer maxpagesize,
- Context context);
+ PagedIterable listByCatalog(String resourceGroupName, String catalogName, String filter, Integer top,
+ Integer skip, Integer maxpagesize, Context context);
/**
* Get a Image.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
- * @param imageName Image name. Use .default for image creation.
+ * @param imageName Image name. Use an image GUID for GA versions of the API.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -66,15 +62,15 @@ PagedIterable listByCatalog(
* @return a Image along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String catalogName, String imageName, Context context);
+ Response getWithResponse(String resourceGroupName, String catalogName, String imageName,
+ Context context);
/**
* Get a Image.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
- * @param imageName Image name. Use .default for image creation.
+ * @param imageName Image name. Use an image GUID for GA versions of the API.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -85,10 +81,10 @@ Response getWithResponse(
/**
* Create a Image.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
- * @param imageName Image name. Use .default for image creation.
+ * @param imageName Image name. Use an image GUID for GA versions of the API.
* @param resource Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -96,15 +92,15 @@ Response getWithResponse(
* @return the {@link SyncPoller} for polling of an image resource belonging to a catalog resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ImageInner> beginCreateOrUpdate(
- String resourceGroupName, String catalogName, String imageName, ImageInner resource);
+ SyncPoller, ImageInner> beginCreateOrUpdate(String resourceGroupName, String catalogName,
+ String imageName, ImageInner resource);
/**
* Create a Image.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
- * @param imageName Image name. Use .default for image creation.
+ * @param imageName Image name. Use an image GUID for GA versions of the API.
* @param resource Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -113,15 +109,15 @@ SyncPoller, ImageInner> beginCreateOrUpdate(
* @return the {@link SyncPoller} for polling of an image resource belonging to a catalog resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ImageInner> beginCreateOrUpdate(
- String resourceGroupName, String catalogName, String imageName, ImageInner resource, Context context);
+ SyncPoller, ImageInner> beginCreateOrUpdate(String resourceGroupName, String catalogName,
+ String imageName, ImageInner resource, Context context);
/**
* Create a Image.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
- * @param imageName Image name. Use .default for image creation.
+ * @param imageName Image name. Use an image GUID for GA versions of the API.
* @param resource Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -133,10 +129,10 @@ SyncPoller, ImageInner> beginCreateOrUpdate(
/**
* Create a Image.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
- * @param imageName Image name. Use .default for image creation.
+ * @param imageName Image name. Use an image GUID for GA versions of the API.
* @param resource Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -145,15 +141,15 @@ SyncPoller, ImageInner> beginCreateOrUpdate(
* @return an image resource belonging to a catalog resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ImageInner createOrUpdate(
- String resourceGroupName, String catalogName, String imageName, ImageInner resource, Context context);
+ ImageInner createOrUpdate(String resourceGroupName, String catalogName, String imageName, ImageInner resource,
+ Context context);
/**
* Delete a Image.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
- * @param imageName Image name. Use .default for image creation.
+ * @param imageName Image name. Use an image GUID for GA versions of the API.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -164,10 +160,10 @@ ImageInner createOrUpdate(
/**
* Delete a Image.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
- * @param imageName Image name. Use .default for image creation.
+ * @param imageName Image name. Use an image GUID for GA versions of the API.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -175,15 +171,15 @@ ImageInner createOrUpdate(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String catalogName, String imageName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String catalogName, String imageName,
+ Context context);
/**
* Delete a Image.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
- * @param imageName Image name. Use .default for image creation.
+ * @param imageName Image name. Use an image GUID for GA versions of the API.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -193,10 +189,10 @@ SyncPoller, Void> beginDelete(
/**
* Delete a Image.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
- * @param imageName Image name. Use .default for image creation.
+ * @param imageName Image name. Use an image GUID for GA versions of the API.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/OperationsClient.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/OperationsClient.java
index 628bd10d47fca..fa904d1972694 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/OperationsClient.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/OperationsClient.java
@@ -10,28 +10,30 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.sphere.fluent.models.OperationInner;
-/** An instance of this class provides access to all the operations defined in OperationsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
public interface OperationsClient {
/**
* List the operations for the provider.
- *
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
- * PagedIterable}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* List the operations for the provider.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
- * PagedIterable}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/ProductsClient.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/ProductsClient.java
index bcf5c9ad48259..a45303a560399 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/ProductsClient.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/ProductsClient.java
@@ -16,11 +16,13 @@
import com.azure.resourcemanager.sphere.fluent.models.ProductInner;
import com.azure.resourcemanager.sphere.models.ProductUpdate;
-/** An instance of this class provides access to all the operations defined in ProductsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ProductsClient.
+ */
public interface ProductsClient {
/**
* List Product resources by Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -33,7 +35,7 @@ public interface ProductsClient {
/**
* List Product resources by Catalog.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param context The context to associate with this operation.
@@ -47,7 +49,7 @@ public interface ProductsClient {
/**
* Get a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -58,12 +60,12 @@ public interface ProductsClient {
* @return a Product along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String catalogName, String productName, Context context);
+ Response getWithResponse(String resourceGroupName, String catalogName, String productName,
+ Context context);
/**
* Get a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -77,7 +79,7 @@ Response getWithResponse(
/**
* Create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -88,12 +90,12 @@ Response getWithResponse(
* @return the {@link SyncPoller} for polling of an product resource belonging to a catalog resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ProductInner> beginCreateOrUpdate(
- String resourceGroupName, String catalogName, String productName, ProductInner resource);
+ SyncPoller, ProductInner> beginCreateOrUpdate(String resourceGroupName, String catalogName,
+ String productName, ProductInner resource);
/**
* Create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -105,12 +107,12 @@ SyncPoller, ProductInner> beginCreateOrUpdate(
* @return the {@link SyncPoller} for polling of an product resource belonging to a catalog resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ProductInner> beginCreateOrUpdate(
- String resourceGroupName, String catalogName, String productName, ProductInner resource, Context context);
+ SyncPoller, ProductInner> beginCreateOrUpdate(String resourceGroupName, String catalogName,
+ String productName, ProductInner resource, Context context);
/**
* Create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -121,12 +123,12 @@ SyncPoller, ProductInner> beginCreateOrUpdate(
* @return an product resource belonging to a catalog resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ProductInner createOrUpdate(
- String resourceGroupName, String catalogName, String productName, ProductInner resource);
+ ProductInner createOrUpdate(String resourceGroupName, String catalogName, String productName,
+ ProductInner resource);
/**
* Create a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -138,12 +140,12 @@ ProductInner createOrUpdate(
* @return an product resource belonging to a catalog resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ProductInner createOrUpdate(
- String resourceGroupName, String catalogName, String productName, ProductInner resource, Context context);
+ ProductInner createOrUpdate(String resourceGroupName, String catalogName, String productName, ProductInner resource,
+ Context context);
/**
* Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -154,12 +156,12 @@ ProductInner createOrUpdate(
* @return the {@link SyncPoller} for polling of an product resource belonging to a catalog resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ProductInner> beginUpdate(
- String resourceGroupName, String catalogName, String productName, ProductUpdate properties);
+ SyncPoller, ProductInner> beginUpdate(String resourceGroupName, String catalogName,
+ String productName, ProductUpdate properties);
/**
* Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -171,12 +173,12 @@ SyncPoller, ProductInner> beginUpdate(
* @return the {@link SyncPoller} for polling of an product resource belonging to a catalog resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ProductInner> beginUpdate(
- String resourceGroupName, String catalogName, String productName, ProductUpdate properties, Context context);
+ SyncPoller, ProductInner> beginUpdate(String resourceGroupName, String catalogName,
+ String productName, ProductUpdate properties, Context context);
/**
* Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -191,7 +193,7 @@ SyncPoller, ProductInner> beginUpdate(
/**
* Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -203,12 +205,12 @@ SyncPoller, ProductInner> beginUpdate(
* @return an product resource belonging to a catalog resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ProductInner update(
- String resourceGroupName, String catalogName, String productName, ProductUpdate properties, Context context);
+ ProductInner update(String resourceGroupName, String catalogName, String productName, ProductUpdate properties,
+ Context context);
/**
* Delete a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name'.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -222,7 +224,7 @@ ProductInner update(
/**
* Delete a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name'.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -233,12 +235,12 @@ ProductInner update(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String catalogName, String productName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String catalogName, String productName,
+ Context context);
/**
* Delete a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name'.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -251,7 +253,7 @@ SyncPoller, Void> beginDelete(
/**
* Delete a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name'.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -266,7 +268,7 @@ SyncPoller, Void> beginDelete(
/**
* Counts devices in product. '.default' and '.unassigned' are system defined values and cannot be used for product
* name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -274,23 +276,23 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return response to the action call for count devices in a catalog along with {@link Response}.
+ * @return response to the action call for count devices in a catalog (preview API) along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response countDevicesWithResponse(
- String resourceGroupName, String catalogName, String productName, Context context);
+ Response countDevicesWithResponse(String resourceGroupName, String catalogName,
+ String productName, Context context);
/**
* Counts devices in product. '.default' and '.unassigned' are system defined values and cannot be used for product
* name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return response to the action call for count devices in a catalog.
+ * @return response to the action call for count devices in a catalog (preview API).
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CountDeviceResponseInner countDevices(String resourceGroupName, String catalogName, String productName);
@@ -298,7 +300,7 @@ Response countDevicesWithResponse(
/**
* Generates default device groups for the product. '.default' and '.unassigned' are system defined values and
* cannot be used for product name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -308,13 +310,13 @@ Response countDevicesWithResponse(
* @return the response of a DeviceGroup list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable generateDefaultDeviceGroups(
- String resourceGroupName, String catalogName, String productName);
+ PagedIterable generateDefaultDeviceGroups(String resourceGroupName, String catalogName,
+ String productName);
/**
* Generates default device groups for the product. '.default' and '.unassigned' are system defined values and
* cannot be used for product name.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param catalogName Name of catalog.
* @param productName Name of product.
@@ -325,6 +327,6 @@ PagedIterable generateDefaultDeviceGroups(
* @return the response of a DeviceGroup list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable generateDefaultDeviceGroups(
- String resourceGroupName, String catalogName, String productName, Context context);
+ PagedIterable generateDefaultDeviceGroups(String resourceGroupName, String catalogName,
+ String productName, Context context);
}
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/CatalogInner.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/CatalogInner.java
index a639e4b67f15c..ccedd272070fc 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/CatalogInner.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/CatalogInner.java
@@ -7,18 +7,20 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.sphere.models.ProvisioningState;
+import com.azure.resourcemanager.sphere.models.CatalogProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
-/** An Azure Sphere catalog. */
+/**
+ * An Azure Sphere catalog.
+ */
@Fluent
public final class CatalogInner extends Resource {
/*
* The resource-specific properties for this resource.
*/
@JsonProperty(value = "properties")
- private CatalogProperties innerProperties;
+ private CatalogProperties properties;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -26,59 +28,67 @@ public final class CatalogInner extends Resource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of CatalogInner class. */
+ /**
+ * Creates an instance of CatalogInner class.
+ */
public CatalogInner() {
}
/**
- * Get the innerProperties property: The resource-specific properties for this resource.
- *
- * @return the innerProperties value.
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public CatalogProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the CatalogInner object itself.
*/
- private CatalogProperties innerProperties() {
- return this.innerProperties;
+ public CatalogInner withProperties(CatalogProperties properties) {
+ this.properties = properties;
+ return this;
}
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public CatalogInner withLocation(String location) {
super.withLocation(location);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public CatalogInner withTags(Map tags) {
super.withTags(tags);
return this;
}
- /**
- * Get the provisioningState property: The status of the last operation.
- *
- * @return the provisioningState value.
- */
- public ProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
+ if (properties() != null) {
+ properties().validate();
}
}
}
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/CertificateChainResponseInner.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/CertificateChainResponseInner.java
index e5e299011709c..645198a6ac0db 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/CertificateChainResponseInner.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/CertificateChainResponseInner.java
@@ -7,7 +7,9 @@
import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The certificate chain response. */
+/**
+ * The certificate chain response.
+ */
@Immutable
public final class CertificateChainResponseInner {
/*
@@ -16,13 +18,15 @@ public final class CertificateChainResponseInner {
@JsonProperty(value = "certificateChain", access = JsonProperty.Access.WRITE_ONLY)
private String certificateChain;
- /** Creates an instance of CertificateChainResponseInner class. */
+ /**
+ * Creates an instance of CertificateChainResponseInner class.
+ */
public CertificateChainResponseInner() {
}
/**
* Get the certificateChain property: The certificate chain.
- *
+ *
* @return the certificateChain value.
*/
public String certificateChain() {
@@ -31,7 +35,7 @@ public String certificateChain() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/CertificateInner.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/CertificateInner.java
index 9f50de6cf610b..8cb6c15c3e929 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/CertificateInner.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/CertificateInner.java
@@ -4,22 +4,22 @@
package com.azure.resourcemanager.sphere.fluent.models;
-import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.sphere.models.CertificateStatus;
-import com.azure.resourcemanager.sphere.models.ProvisioningState;
+import com.azure.resourcemanager.sphere.models.CertificateProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-/** An certificate resource belonging to a catalog resource. */
-@Immutable
+/**
+ * An certificate resource belonging to a catalog resource.
+ */
+@Fluent
public final class CertificateInner extends ProxyResource {
/*
* The resource-specific properties for this resource.
*/
@JsonProperty(value = "properties")
- private CertificateProperties innerProperties;
+ private CertificateProperties properties;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -27,99 +27,49 @@ public final class CertificateInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of CertificateInner class. */
- public CertificateInner() {
- }
-
- /**
- * Get the innerProperties property: The resource-specific properties for this resource.
- *
- * @return the innerProperties value.
- */
- private CertificateProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the certificate property: The certificate as a UTF-8 encoded base 64 string.
- *
- * @return the certificate value.
- */
- public String certificate() {
- return this.innerProperties() == null ? null : this.innerProperties().certificate();
- }
-
- /**
- * Get the status property: The certificate status.
- *
- * @return the status value.
- */
- public CertificateStatus status() {
- return this.innerProperties() == null ? null : this.innerProperties().status();
- }
-
- /**
- * Get the subject property: The certificate subject.
- *
- * @return the subject value.
- */
- public String subject() {
- return this.innerProperties() == null ? null : this.innerProperties().subject();
- }
-
/**
- * Get the thumbprint property: The certificate thumbprint.
- *
- * @return the thumbprint value.
+ * Creates an instance of CertificateInner class.
*/
- public String thumbprint() {
- return this.innerProperties() == null ? null : this.innerProperties().thumbprint();
+ public CertificateInner() {
}
/**
- * Get the expiryUtc property: The certificate expiry date.
- *
- * @return the expiryUtc value.
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
*/
- public OffsetDateTime expiryUtc() {
- return this.innerProperties() == null ? null : this.innerProperties().expiryUtc();
+ public CertificateProperties properties() {
+ return this.properties;
}
/**
- * Get the notBeforeUtc property: The certificate not before date.
- *
- * @return the notBeforeUtc value.
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the CertificateInner object itself.
*/
- public OffsetDateTime notBeforeUtc() {
- return this.innerProperties() == null ? null : this.innerProperties().notBeforeUtc();
+ public CertificateInner withProperties(CertificateProperties properties) {
+ this.properties = properties;
+ return this;
}
/**
- * Get the provisioningState property: The status of the last operation.
- *
- * @return the provisioningState value.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
*/
- public ProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ public SystemData systemData() {
+ return this.systemData;
}
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
+ if (properties() != null) {
+ properties().validate();
}
}
}
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/CountDeviceResponseInner.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/CountDeviceResponseInner.java
index 80c30909e9da4..09b7713150178 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/CountDeviceResponseInner.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/CountDeviceResponseInner.java
@@ -7,14 +7,20 @@
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.sphere.models.CountElementsResponse;
-/** Response to the action call for count devices in a catalog. */
+/**
+ * Response to the action call for count devices in a catalog (preview API).
+ */
@Fluent
public final class CountDeviceResponseInner extends CountElementsResponse {
- /** Creates an instance of CountDeviceResponseInner class. */
+ /**
+ * Creates an instance of CountDeviceResponseInner class.
+ */
public CountDeviceResponseInner() {
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public CountDeviceResponseInner withValue(int value) {
super.withValue(value);
@@ -23,7 +29,7 @@ public CountDeviceResponseInner withValue(int value) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/DeploymentInner.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/DeploymentInner.java
index ed70be5ad59c9..cc20d198b15b6 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/DeploymentInner.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/DeploymentInner.java
@@ -6,105 +6,70 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.resourcemanager.sphere.models.ProvisioningState;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.sphere.models.DeploymentProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-import java.util.List;
-/** An deployment resource belonging to a device group resource. */
+/**
+ * An deployment resource belonging to a device group resource.
+ */
@Fluent
public final class DeploymentInner extends ProxyResource {
/*
* The resource-specific properties for this resource.
*/
@JsonProperty(value = "properties")
- private DeploymentProperties innerProperties;
+ private DeploymentProperties properties;
- /** Creates an instance of DeploymentInner class. */
- public DeploymentInner() {
- }
-
- /**
- * Get the innerProperties property: The resource-specific properties for this resource.
- *
- * @return the innerProperties value.
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
- private DeploymentProperties innerProperties() {
- return this.innerProperties;
- }
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
/**
- * Get the deploymentId property: Deployment ID.
- *
- * @return the deploymentId value.
+ * Creates an instance of DeploymentInner class.
*/
- public String deploymentId() {
- return this.innerProperties() == null ? null : this.innerProperties().deploymentId();
- }
-
- /**
- * Set the deploymentId property: Deployment ID.
- *
- * @param deploymentId the deploymentId value to set.
- * @return the DeploymentInner object itself.
- */
- public DeploymentInner withDeploymentId(String deploymentId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DeploymentProperties();
- }
- this.innerProperties().withDeploymentId(deploymentId);
- return this;
+ public DeploymentInner() {
}
/**
- * Get the deployedImages property: Images deployed.
- *
- * @return the deployedImages value.
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
*/
- public List deployedImages() {
- return this.innerProperties() == null ? null : this.innerProperties().deployedImages();
+ public DeploymentProperties properties() {
+ return this.properties;
}
/**
- * Set the deployedImages property: Images deployed.
- *
- * @param deployedImages the deployedImages value to set.
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
* @return the DeploymentInner object itself.
*/
- public DeploymentInner withDeployedImages(List deployedImages) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DeploymentProperties();
- }
- this.innerProperties().withDeployedImages(deployedImages);
+ public DeploymentInner withProperties(DeploymentProperties properties) {
+ this.properties = properties;
return this;
}
/**
- * Get the deploymentDateUtc property: Deployment date UTC.
- *
- * @return the deploymentDateUtc value.
- */
- public OffsetDateTime deploymentDateUtc() {
- return this.innerProperties() == null ? null : this.innerProperties().deploymentDateUtc();
- }
-
- /**
- * Get the provisioningState property: The status of the last operation.
- *
- * @return the provisioningState value.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
*/
- public ProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ public SystemData systemData() {
+ return this.systemData;
}
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
+ if (properties() != null) {
+ properties().validate();
}
}
}
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/DeviceGroupInner.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/DeviceGroupInner.java
index c09d49d6624ea..5bce6f135bb14 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/DeviceGroupInner.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/DeviceGroupInner.java
@@ -6,176 +6,70 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.resourcemanager.sphere.models.AllowCrashDumpCollection;
-import com.azure.resourcemanager.sphere.models.OSFeedType;
-import com.azure.resourcemanager.sphere.models.ProvisioningState;
-import com.azure.resourcemanager.sphere.models.RegionalDataBoundary;
-import com.azure.resourcemanager.sphere.models.UpdatePolicy;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.sphere.models.DeviceGroupProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** An device group resource belonging to a product resource. */
+/**
+ * An device group resource belonging to a product resource.
+ */
@Fluent
public final class DeviceGroupInner extends ProxyResource {
/*
* The resource-specific properties for this resource.
*/
@JsonProperty(value = "properties")
- private DeviceGroupProperties innerProperties;
+ private DeviceGroupProperties properties;
- /** Creates an instance of DeviceGroupInner class. */
- public DeviceGroupInner() {
- }
-
- /**
- * Get the innerProperties property: The resource-specific properties for this resource.
- *
- * @return the innerProperties value.
- */
- private DeviceGroupProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the description property: Description of the device group.
- *
- * @return the description value.
- */
- public String description() {
- return this.innerProperties() == null ? null : this.innerProperties().description();
- }
-
- /**
- * Set the description property: Description of the device group.
- *
- * @param description the description value to set.
- * @return the DeviceGroupInner object itself.
- */
- public DeviceGroupInner withDescription(String description) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DeviceGroupProperties();
- }
- this.innerProperties().withDescription(description);
- return this;
- }
-
- /**
- * Get the osFeedType property: Operating system feed type of the device group.
- *
- * @return the osFeedType value.
- */
- public OSFeedType osFeedType() {
- return this.innerProperties() == null ? null : this.innerProperties().osFeedType();
- }
-
- /**
- * Set the osFeedType property: Operating system feed type of the device group.
- *
- * @param osFeedType the osFeedType value to set.
- * @return the DeviceGroupInner object itself.
- */
- public DeviceGroupInner withOsFeedType(OSFeedType osFeedType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DeviceGroupProperties();
- }
- this.innerProperties().withOsFeedType(osFeedType);
- return this;
- }
-
- /**
- * Get the updatePolicy property: Update policy of the device group.
- *
- * @return the updatePolicy value.
- */
- public UpdatePolicy updatePolicy() {
- return this.innerProperties() == null ? null : this.innerProperties().updatePolicy();
- }
-
- /**
- * Set the updatePolicy property: Update policy of the device group.
- *
- * @param updatePolicy the updatePolicy value to set.
- * @return the DeviceGroupInner object itself.
- */
- public DeviceGroupInner withUpdatePolicy(UpdatePolicy updatePolicy) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DeviceGroupProperties();
- }
- this.innerProperties().withUpdatePolicy(updatePolicy);
- return this;
- }
-
- /**
- * Get the allowCrashDumpsCollection property: Flag to define if the user allows for crash dump collection.
- *
- * @return the allowCrashDumpsCollection value.
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
- public AllowCrashDumpCollection allowCrashDumpsCollection() {
- return this.innerProperties() == null ? null : this.innerProperties().allowCrashDumpsCollection();
- }
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
/**
- * Set the allowCrashDumpsCollection property: Flag to define if the user allows for crash dump collection.
- *
- * @param allowCrashDumpsCollection the allowCrashDumpsCollection value to set.
- * @return the DeviceGroupInner object itself.
+ * Creates an instance of DeviceGroupInner class.
*/
- public DeviceGroupInner withAllowCrashDumpsCollection(AllowCrashDumpCollection allowCrashDumpsCollection) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DeviceGroupProperties();
- }
- this.innerProperties().withAllowCrashDumpsCollection(allowCrashDumpsCollection);
- return this;
+ public DeviceGroupInner() {
}
/**
- * Get the regionalDataBoundary property: Regional data boundary for the device group.
- *
- * @return the regionalDataBoundary value.
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
*/
- public RegionalDataBoundary regionalDataBoundary() {
- return this.innerProperties() == null ? null : this.innerProperties().regionalDataBoundary();
+ public DeviceGroupProperties properties() {
+ return this.properties;
}
/**
- * Set the regionalDataBoundary property: Regional data boundary for the device group.
- *
- * @param regionalDataBoundary the regionalDataBoundary value to set.
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
* @return the DeviceGroupInner object itself.
*/
- public DeviceGroupInner withRegionalDataBoundary(RegionalDataBoundary regionalDataBoundary) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DeviceGroupProperties();
- }
- this.innerProperties().withRegionalDataBoundary(regionalDataBoundary);
+ public DeviceGroupInner withProperties(DeviceGroupProperties properties) {
+ this.properties = properties;
return this;
}
/**
- * Get the hasDeployment property: Deployment status for the device group.
- *
- * @return the hasDeployment value.
- */
- public Boolean hasDeployment() {
- return this.innerProperties() == null ? null : this.innerProperties().hasDeployment();
- }
-
- /**
- * Get the provisioningState property: The status of the last operation.
- *
- * @return the provisioningState value.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
*/
- public ProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ public SystemData systemData() {
+ return this.systemData;
}
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
+ if (properties() != null) {
+ properties().validate();
}
}
}
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/DeviceInner.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/DeviceInner.java
index 4d6a8dfe174b8..5e37559821520 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/DeviceInner.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/DeviceInner.java
@@ -6,117 +6,70 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.resourcemanager.sphere.models.ProvisioningState;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.sphere.models.DeviceProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-/** An device resource belonging to a device group resource. */
+/**
+ * An device resource belonging to a device group resource.
+ */
@Fluent
public final class DeviceInner extends ProxyResource {
/*
* The resource-specific properties for this resource.
*/
@JsonProperty(value = "properties")
- private DeviceProperties innerProperties;
+ private DeviceProperties properties;
- /** Creates an instance of DeviceInner class. */
- public DeviceInner() {
- }
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
/**
- * Get the innerProperties property: The resource-specific properties for this resource.
- *
- * @return the innerProperties value.
+ * Creates an instance of DeviceInner class.
*/
- private DeviceProperties innerProperties() {
- return this.innerProperties;
+ public DeviceInner() {
}
/**
- * Get the deviceId property: Device ID.
- *
- * @return the deviceId value.
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
*/
- public String deviceId() {
- return this.innerProperties() == null ? null : this.innerProperties().deviceId();
+ public DeviceProperties properties() {
+ return this.properties;
}
/**
- * Set the deviceId property: Device ID.
- *
- * @param deviceId the deviceId value to set.
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
* @return the DeviceInner object itself.
*/
- public DeviceInner withDeviceId(String deviceId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DeviceProperties();
- }
- this.innerProperties().withDeviceId(deviceId);
+ public DeviceInner withProperties(DeviceProperties properties) {
+ this.properties = properties;
return this;
}
/**
- * Get the chipSku property: SKU of the chip.
- *
- * @return the chipSku value.
- */
- public String chipSku() {
- return this.innerProperties() == null ? null : this.innerProperties().chipSku();
- }
-
- /**
- * Get the lastAvailableOsVersion property: OS version available for installation when update requested.
- *
- * @return the lastAvailableOsVersion value.
- */
- public String lastAvailableOsVersion() {
- return this.innerProperties() == null ? null : this.innerProperties().lastAvailableOsVersion();
- }
-
- /**
- * Get the lastInstalledOsVersion property: OS version running on device when update requested.
- *
- * @return the lastInstalledOsVersion value.
- */
- public String lastInstalledOsVersion() {
- return this.innerProperties() == null ? null : this.innerProperties().lastInstalledOsVersion();
- }
-
- /**
- * Get the lastOsUpdateUtc property: Time when update requested and new OS version available.
- *
- * @return the lastOsUpdateUtc value.
- */
- public OffsetDateTime lastOsUpdateUtc() {
- return this.innerProperties() == null ? null : this.innerProperties().lastOsUpdateUtc();
- }
-
- /**
- * Get the lastUpdateRequestUtc property: Time when update was last requested.
- *
- * @return the lastUpdateRequestUtc value.
- */
- public OffsetDateTime lastUpdateRequestUtc() {
- return this.innerProperties() == null ? null : this.innerProperties().lastUpdateRequestUtc();
- }
-
- /**
- * Get the provisioningState property: The status of the last operation.
- *
- * @return the provisioningState value.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
*/
- public ProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ public SystemData systemData() {
+ return this.systemData;
}
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
+ if (properties() != null) {
+ properties().validate();
}
}
}
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/DeviceInsightInner.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/DeviceInsightInner.java
index 4290335b8721a..26e8172ee6491 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/DeviceInsightInner.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/DeviceInsightInner.java
@@ -9,7 +9,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
-/** Device insight report. */
+/**
+ * Device insight report.
+ */
@Fluent
public final class DeviceInsightInner {
/*
@@ -60,13 +62,15 @@ public final class DeviceInsightInner {
@JsonProperty(value = "eventCount", required = true)
private int eventCount;
- /** Creates an instance of DeviceInsightInner class. */
+ /**
+ * Creates an instance of DeviceInsightInner class.
+ */
public DeviceInsightInner() {
}
/**
* Get the deviceId property: Device ID.
- *
+ *
* @return the deviceId value.
*/
public String deviceId() {
@@ -75,7 +79,7 @@ public String deviceId() {
/**
* Set the deviceId property: Device ID.
- *
+ *
* @param deviceId the deviceId value to set.
* @return the DeviceInsightInner object itself.
*/
@@ -86,7 +90,7 @@ public DeviceInsightInner withDeviceId(String deviceId) {
/**
* Get the description property: Event description.
- *
+ *
* @return the description value.
*/
public String description() {
@@ -95,7 +99,7 @@ public String description() {
/**
* Set the description property: Event description.
- *
+ *
* @param description the description value to set.
* @return the DeviceInsightInner object itself.
*/
@@ -106,7 +110,7 @@ public DeviceInsightInner withDescription(String description) {
/**
* Get the startTimestampUtc property: Event start timestamp.
- *
+ *
* @return the startTimestampUtc value.
*/
public OffsetDateTime startTimestampUtc() {
@@ -115,7 +119,7 @@ public OffsetDateTime startTimestampUtc() {
/**
* Set the startTimestampUtc property: Event start timestamp.
- *
+ *
* @param startTimestampUtc the startTimestampUtc value to set.
* @return the DeviceInsightInner object itself.
*/
@@ -126,7 +130,7 @@ public DeviceInsightInner withStartTimestampUtc(OffsetDateTime startTimestampUtc
/**
* Get the endTimestampUtc property: Event end timestamp.
- *
+ *
* @return the endTimestampUtc value.
*/
public OffsetDateTime endTimestampUtc() {
@@ -135,7 +139,7 @@ public OffsetDateTime endTimestampUtc() {
/**
* Set the endTimestampUtc property: Event end timestamp.
- *
+ *
* @param endTimestampUtc the endTimestampUtc value to set.
* @return the DeviceInsightInner object itself.
*/
@@ -146,7 +150,7 @@ public DeviceInsightInner withEndTimestampUtc(OffsetDateTime endTimestampUtc) {
/**
* Get the eventCategory property: Event category.
- *
+ *
* @return the eventCategory value.
*/
public String eventCategory() {
@@ -155,7 +159,7 @@ public String eventCategory() {
/**
* Set the eventCategory property: Event category.
- *
+ *
* @param eventCategory the eventCategory value to set.
* @return the DeviceInsightInner object itself.
*/
@@ -166,7 +170,7 @@ public DeviceInsightInner withEventCategory(String eventCategory) {
/**
* Get the eventClass property: Event class.
- *
+ *
* @return the eventClass value.
*/
public String eventClass() {
@@ -175,7 +179,7 @@ public String eventClass() {
/**
* Set the eventClass property: Event class.
- *
+ *
* @param eventClass the eventClass value to set.
* @return the DeviceInsightInner object itself.
*/
@@ -186,7 +190,7 @@ public DeviceInsightInner withEventClass(String eventClass) {
/**
* Get the eventType property: Event type.
- *
+ *
* @return the eventType value.
*/
public String eventType() {
@@ -195,7 +199,7 @@ public String eventType() {
/**
* Set the eventType property: Event type.
- *
+ *
* @param eventType the eventType value to set.
* @return the DeviceInsightInner object itself.
*/
@@ -206,7 +210,7 @@ public DeviceInsightInner withEventType(String eventType) {
/**
* Get the eventCount property: Event count.
- *
+ *
* @return the eventCount value.
*/
public int eventCount() {
@@ -215,7 +219,7 @@ public int eventCount() {
/**
* Set the eventCount property: Event count.
- *
+ *
* @param eventCount the eventCount value to set.
* @return the DeviceInsightInner object itself.
*/
@@ -226,47 +230,37 @@ public DeviceInsightInner withEventCount(int eventCount) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (deviceId() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property deviceId in model DeviceInsightInner"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property deviceId in model DeviceInsightInner"));
}
if (description() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property description in model DeviceInsightInner"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property description in model DeviceInsightInner"));
}
if (startTimestampUtc() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property startTimestampUtc in model DeviceInsightInner"));
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ "Missing required property startTimestampUtc in model DeviceInsightInner"));
}
if (endTimestampUtc() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property endTimestampUtc in model DeviceInsightInner"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property endTimestampUtc in model DeviceInsightInner"));
}
if (eventCategory() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property eventCategory in model DeviceInsightInner"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property eventCategory in model DeviceInsightInner"));
}
if (eventClass() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property eventClass in model DeviceInsightInner"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property eventClass in model DeviceInsightInner"));
}
if (eventType() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property eventType in model DeviceInsightInner"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property eventType in model DeviceInsightInner"));
}
}
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/ImageInner.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/ImageInner.java
index 7f5a89784b1f0..d7bb5032b0f7a 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/ImageInner.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/ImageInner.java
@@ -6,166 +6,70 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.resourcemanager.sphere.models.ImageType;
-import com.azure.resourcemanager.sphere.models.ProvisioningState;
-import com.azure.resourcemanager.sphere.models.RegionalDataBoundary;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.sphere.models.ImageProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** An image resource belonging to a catalog resource. */
+/**
+ * An image resource belonging to a catalog resource.
+ */
@Fluent
public final class ImageInner extends ProxyResource {
/*
* The resource-specific properties for this resource.
*/
@JsonProperty(value = "properties")
- private ImageProperties innerProperties;
+ private ImageProperties properties;
- /** Creates an instance of ImageInner class. */
- public ImageInner() {
- }
-
- /**
- * Get the innerProperties property: The resource-specific properties for this resource.
- *
- * @return the innerProperties value.
- */
- private ImageProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the image property: Image as a UTF-8 encoded base 64 string on image create. This field contains the image
- * URI on image reads.
- *
- * @return the image value.
- */
- public String image() {
- return this.innerProperties() == null ? null : this.innerProperties().image();
- }
-
- /**
- * Set the image property: Image as a UTF-8 encoded base 64 string on image create. This field contains the image
- * URI on image reads.
- *
- * @param image the image value to set.
- * @return the ImageInner object itself.
- */
- public ImageInner withImage(String image) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ImageProperties();
- }
- this.innerProperties().withImage(image);
- return this;
- }
-
- /**
- * Get the imageId property: Image ID.
- *
- * @return the imageId value.
- */
- public String imageId() {
- return this.innerProperties() == null ? null : this.innerProperties().imageId();
- }
-
- /**
- * Set the imageId property: Image ID.
- *
- * @param imageId the imageId value to set.
- * @return the ImageInner object itself.
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
- public ImageInner withImageId(String imageId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ImageProperties();
- }
- this.innerProperties().withImageId(imageId);
- return this;
- }
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
/**
- * Get the imageName property: Image name.
- *
- * @return the imageName value.
+ * Creates an instance of ImageInner class.
*/
- public String imageName() {
- return this.innerProperties() == null ? null : this.innerProperties().imageName();
+ public ImageInner() {
}
/**
- * Get the regionalDataBoundary property: Regional data boundary for an image.
- *
- * @return the regionalDataBoundary value.
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
*/
- public RegionalDataBoundary regionalDataBoundary() {
- return this.innerProperties() == null ? null : this.innerProperties().regionalDataBoundary();
+ public ImageProperties properties() {
+ return this.properties;
}
/**
- * Set the regionalDataBoundary property: Regional data boundary for an image.
- *
- * @param regionalDataBoundary the regionalDataBoundary value to set.
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
* @return the ImageInner object itself.
*/
- public ImageInner withRegionalDataBoundary(RegionalDataBoundary regionalDataBoundary) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ImageProperties();
- }
- this.innerProperties().withRegionalDataBoundary(regionalDataBoundary);
+ public ImageInner withProperties(ImageProperties properties) {
+ this.properties = properties;
return this;
}
/**
- * Get the uri property: Location the image.
- *
- * @return the uri value.
- */
- public String uri() {
- return this.innerProperties() == null ? null : this.innerProperties().uri();
- }
-
- /**
- * Get the description property: The image description.
- *
- * @return the description value.
- */
- public String description() {
- return this.innerProperties() == null ? null : this.innerProperties().description();
- }
-
- /**
- * Get the componentId property: The image component id.
- *
- * @return the componentId value.
- */
- public String componentId() {
- return this.innerProperties() == null ? null : this.innerProperties().componentId();
- }
-
- /**
- * Get the imageType property: The image type.
- *
- * @return the imageType value.
- */
- public ImageType imageType() {
- return this.innerProperties() == null ? null : this.innerProperties().imageType();
- }
-
- /**
- * Get the provisioningState property: The status of the last operation.
- *
- * @return the provisioningState value.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
*/
- public ProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ public SystemData systemData() {
+ return this.systemData;
}
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
+ if (properties() != null) {
+ properties().validate();
}
}
}
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/OperationInner.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/OperationInner.java
index 239055d7f0702..dfc05b47ebf82 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/OperationInner.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/OperationInner.java
@@ -12,8 +12,8 @@
/**
* REST API Operation
- *
- * Details of a REST API operation, returned from the Resource Provider Operations API.
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
*/
@Fluent
public final class OperationInner {
@@ -50,14 +50,16 @@ public final class OperationInner {
@JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
private ActionType actionType;
- /** Creates an instance of OperationInner class. */
+ /**
+ * Creates an instance of OperationInner class.
+ */
public OperationInner() {
}
/**
* Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
* "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
- *
+ *
* @return the name value.
*/
public String name() {
@@ -67,7 +69,7 @@ public String name() {
/**
* Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
* operations and "false" for ARM/control-plane operations.
- *
+ *
* @return the isDataAction value.
*/
public Boolean isDataAction() {
@@ -76,7 +78,7 @@ public Boolean isDataAction() {
/**
* Get the display property: Localized display information for this particular operation.
- *
+ *
* @return the display value.
*/
public OperationDisplay display() {
@@ -85,7 +87,7 @@ public OperationDisplay display() {
/**
* Set the display property: Localized display information for this particular operation.
- *
+ *
* @param display the display value to set.
* @return the OperationInner object itself.
*/
@@ -97,7 +99,7 @@ public OperationInner withDisplay(OperationDisplay display) {
/**
* Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
* audit logs UX. Default value is "user,system".
- *
+ *
* @return the origin value.
*/
public Origin origin() {
@@ -107,7 +109,7 @@ public Origin origin() {
/**
* Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
* only APIs.
- *
+ *
* @return the actionType value.
*/
public ActionType actionType() {
@@ -116,7 +118,7 @@ public ActionType actionType() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/ProductInner.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/ProductInner.java
index c5a3f9cc1d70a..a4bb450d3b9a4 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/ProductInner.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/ProductInner.java
@@ -6,71 +6,70 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.resourcemanager.sphere.models.ProvisioningState;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.sphere.models.ProductProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** An product resource belonging to a catalog resource. */
+/**
+ * An product resource belonging to a catalog resource.
+ */
@Fluent
public final class ProductInner extends ProxyResource {
/*
* The resource-specific properties for this resource.
*/
@JsonProperty(value = "properties")
- private ProductProperties innerProperties;
+ private ProductProperties properties;
- /** Creates an instance of ProductInner class. */
- public ProductInner() {
- }
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
/**
- * Get the innerProperties property: The resource-specific properties for this resource.
- *
- * @return the innerProperties value.
+ * Creates an instance of ProductInner class.
*/
- private ProductProperties innerProperties() {
- return this.innerProperties;
+ public ProductInner() {
}
/**
- * Get the description property: Description of the product.
- *
- * @return the description value.
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
*/
- public String description() {
- return this.innerProperties() == null ? null : this.innerProperties().description();
+ public ProductProperties properties() {
+ return this.properties;
}
/**
- * Set the description property: Description of the product.
- *
- * @param description the description value to set.
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
* @return the ProductInner object itself.
*/
- public ProductInner withDescription(String description) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ProductProperties();
- }
- this.innerProperties().withDescription(description);
+ public ProductInner withProperties(ProductProperties properties) {
+ this.properties = properties;
return this;
}
/**
- * Get the provisioningState property: The status of the last operation.
- *
- * @return the provisioningState value.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
*/
- public ProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ public SystemData systemData() {
+ return this.systemData;
}
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
+ if (properties() != null) {
+ properties().validate();
}
}
}
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/ProofOfPossessionNonceResponseInner.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/ProofOfPossessionNonceResponseInner.java
index ee5f94ce18c2f..a1582786030f5 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/ProofOfPossessionNonceResponseInner.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/ProofOfPossessionNonceResponseInner.java
@@ -5,17 +5,22 @@
package com.azure.resourcemanager.sphere.fluent.models;
import com.azure.core.annotation.Immutable;
+import com.azure.resourcemanager.sphere.models.CertificateProperties;
-/** Result of the action to generate a proof of possession nonce. */
+/**
+ * Result of the action to generate a proof of possession nonce.
+ */
@Immutable
public final class ProofOfPossessionNonceResponseInner extends CertificateProperties {
- /** Creates an instance of ProofOfPossessionNonceResponseInner class. */
+ /**
+ * Creates an instance of ProofOfPossessionNonceResponseInner class.
+ */
public ProofOfPossessionNonceResponseInner() {
}
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/SignedCapabilityImageResponseInner.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/SignedCapabilityImageResponseInner.java
index 1822b0e457228..e493a98d9a8e7 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/SignedCapabilityImageResponseInner.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/SignedCapabilityImageResponseInner.java
@@ -7,7 +7,9 @@
import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Signed device capability image response. */
+/**
+ * Signed device capability image response.
+ */
@Immutable
public final class SignedCapabilityImageResponseInner {
/*
@@ -16,13 +18,15 @@ public final class SignedCapabilityImageResponseInner {
@JsonProperty(value = "image", access = JsonProperty.Access.WRITE_ONLY)
private String image;
- /** Creates an instance of SignedCapabilityImageResponseInner class. */
+ /**
+ * Creates an instance of SignedCapabilityImageResponseInner class.
+ */
public SignedCapabilityImageResponseInner() {
}
/**
* Get the image property: The signed device capability image as a UTF-8 encoded base 64 string.
- *
+ *
* @return the image value.
*/
public String image() {
@@ -31,7 +35,7 @@ public String image() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/package-info.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/package-info.java
index 6c295b60279c0..282d5be0e6b81 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/package-info.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/models/package-info.java
@@ -2,5 +2,8 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the inner data models for AzureSphereManagementClient. Azure Sphere resource management API. */
+/**
+ * Package containing the inner data models for AzureSphereManagementClient.
+ * Azure Sphere resource management API.
+ */
package com.azure.resourcemanager.sphere.fluent.models;
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/package-info.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/package-info.java
index 9853cc0ca23a1..4690f89ececb5 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/package-info.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/fluent/package-info.java
@@ -2,5 +2,8 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the service clients for AzureSphereManagementClient. Azure Sphere resource management API. */
+/**
+ * Package containing the service clients for AzureSphereManagementClient.
+ * Azure Sphere resource management API.
+ */
package com.azure.resourcemanager.sphere.fluent;
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/implementation/AzureSphereManagementClientBuilder.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/implementation/AzureSphereManagementClientBuilder.java
index 6f5c108a3bba2..18072266d45b5 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/implementation/AzureSphereManagementClientBuilder.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/implementation/AzureSphereManagementClientBuilder.java
@@ -14,8 +14,10 @@
import com.azure.core.util.serializer.SerializerAdapter;
import java.time.Duration;
-/** A builder for creating a new instance of the AzureSphereManagementClientImpl type. */
-@ServiceClientBuilder(serviceClients = {AzureSphereManagementClientImpl.class})
+/**
+ * A builder for creating a new instance of the AzureSphereManagementClientImpl type.
+ */
+@ServiceClientBuilder(serviceClients = { AzureSphereManagementClientImpl.class })
public final class AzureSphereManagementClientBuilder {
/*
* The ID of the target subscription.
@@ -24,7 +26,7 @@ public final class AzureSphereManagementClientBuilder {
/**
* Sets The ID of the target subscription.
- *
+ *
* @param subscriptionId the subscriptionId value.
* @return the AzureSphereManagementClientBuilder.
*/
@@ -40,7 +42,7 @@ public AzureSphereManagementClientBuilder subscriptionId(String subscriptionId)
/**
* Sets server parameter.
- *
+ *
* @param endpoint the endpoint value.
* @return the AzureSphereManagementClientBuilder.
*/
@@ -56,7 +58,7 @@ public AzureSphereManagementClientBuilder endpoint(String endpoint) {
/**
* Sets The environment to connect to.
- *
+ *
* @param environment the environment value.
* @return the AzureSphereManagementClientBuilder.
*/
@@ -72,7 +74,7 @@ public AzureSphereManagementClientBuilder environment(AzureEnvironment environme
/**
* Sets The HTTP pipeline to send requests through.
- *
+ *
* @param pipeline the pipeline value.
* @return the AzureSphereManagementClientBuilder.
*/
@@ -88,7 +90,7 @@ public AzureSphereManagementClientBuilder pipeline(HttpPipeline pipeline) {
/**
* Sets The default poll interval for long-running operation.
- *
+ *
* @param defaultPollInterval the defaultPollInterval value.
* @return the AzureSphereManagementClientBuilder.
*/
@@ -104,7 +106,7 @@ public AzureSphereManagementClientBuilder defaultPollInterval(Duration defaultPo
/**
* Sets The serializer to serialize an object into a string.
- *
+ *
* @param serializerAdapter the serializerAdapter value.
* @return the AzureSphereManagementClientBuilder.
*/
@@ -115,30 +117,20 @@ public AzureSphereManagementClientBuilder serializerAdapter(SerializerAdapter se
/**
* Builds an instance of AzureSphereManagementClientImpl with the provided parameters.
- *
+ *
* @return an instance of AzureSphereManagementClientImpl.
*/
public AzureSphereManagementClientImpl buildClient() {
String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
- HttpPipeline localPipeline =
- (pipeline != null)
- ? pipeline
- : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
- Duration localDefaultPollInterval =
- (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
- SerializerAdapter localSerializerAdapter =
- (serializerAdapter != null)
- ? serializerAdapter
- : SerializerFactory.createDefaultManagementSerializerAdapter();
- AzureSphereManagementClientImpl client =
- new AzureSphereManagementClientImpl(
- localPipeline,
- localSerializerAdapter,
- localDefaultPollInterval,
- localEnvironment,
- subscriptionId,
- localEndpoint);
+ HttpPipeline localPipeline = (pipeline != null) ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval
+ = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
+ AzureSphereManagementClientImpl client = new AzureSphereManagementClientImpl(localPipeline,
+ localSerializerAdapter, localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint);
return client;
}
}
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/implementation/AzureSphereManagementClientImpl.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/implementation/AzureSphereManagementClientImpl.java
index 251919142566f..dc35fc2688cc1 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/implementation/AzureSphereManagementClientImpl.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/implementation/AzureSphereManagementClientImpl.java
@@ -40,171 +40,201 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** Initializes a new instance of the AzureSphereManagementClientImpl type. */
+/**
+ * Initializes a new instance of the AzureSphereManagementClientImpl type.
+ */
@ServiceClient(builder = AzureSphereManagementClientBuilder.class)
public final class AzureSphereManagementClientImpl implements AzureSphereManagementClient {
- /** The ID of the target subscription. */
+ /**
+ * The ID of the target subscription.
+ */
private final String subscriptionId;
/**
* Gets The ID of the target subscription.
- *
+ *
* @return the subscriptionId value.
*/
public String getSubscriptionId() {
return this.subscriptionId;
}
- /** server parameter. */
+ /**
+ * server parameter.
+ */
private final String endpoint;
/**
* Gets server parameter.
- *
+ *
* @return the endpoint value.
*/
public String getEndpoint() {
return this.endpoint;
}
- /** Api Version. */
+ /**
+ * Api Version.
+ */
private final String apiVersion;
/**
* Gets Api Version.
- *
+ *
* @return the apiVersion value.
*/
public String getApiVersion() {
return this.apiVersion;
}
- /** The HTTP pipeline to send requests through. */
+ /**
+ * The HTTP pipeline to send requests through.
+ */
private final HttpPipeline httpPipeline;
/**
* Gets The HTTP pipeline to send requests through.
- *
+ *
* @return the httpPipeline value.
*/
public HttpPipeline getHttpPipeline() {
return this.httpPipeline;
}
- /** The serializer to serialize an object into a string. */
+ /**
+ * The serializer to serialize an object into a string.
+ */
private final SerializerAdapter serializerAdapter;
/**
* Gets The serializer to serialize an object into a string.
- *
+ *
* @return the serializerAdapter value.
*/
SerializerAdapter getSerializerAdapter() {
return this.serializerAdapter;
}
- /** The default poll interval for long-running operation. */
+ /**
+ * The default poll interval for long-running operation.
+ */
private final Duration defaultPollInterval;
/**
* Gets The default poll interval for long-running operation.
- *
+ *
* @return the defaultPollInterval value.
*/
public Duration getDefaultPollInterval() {
return this.defaultPollInterval;
}
- /** The OperationsClient object to access its operations. */
+ /**
+ * The OperationsClient object to access its operations.
+ */
private final OperationsClient operations;
/**
* Gets the OperationsClient object to access its operations.
- *
+ *
* @return the OperationsClient object.
*/
public OperationsClient getOperations() {
return this.operations;
}
- /** The CatalogsClient object to access its operations. */
+ /**
+ * The CatalogsClient object to access its operations.
+ */
private final CatalogsClient catalogs;
/**
* Gets the CatalogsClient object to access its operations.
- *
+ *
* @return the CatalogsClient object.
*/
public CatalogsClient getCatalogs() {
return this.catalogs;
}
- /** The CertificatesClient object to access its operations. */
+ /**
+ * The CertificatesClient object to access its operations.
+ */
private final CertificatesClient certificates;
/**
* Gets the CertificatesClient object to access its operations.
- *
+ *
* @return the CertificatesClient object.
*/
public CertificatesClient getCertificates() {
return this.certificates;
}
- /** The ImagesClient object to access its operations. */
+ /**
+ * The ImagesClient object to access its operations.
+ */
private final ImagesClient images;
/**
* Gets the ImagesClient object to access its operations.
- *
+ *
* @return the ImagesClient object.
*/
public ImagesClient getImages() {
return this.images;
}
- /** The ProductsClient object to access its operations. */
+ /**
+ * The ProductsClient object to access its operations.
+ */
private final ProductsClient products;
/**
* Gets the ProductsClient object to access its operations.
- *
+ *
* @return the ProductsClient object.
*/
public ProductsClient getProducts() {
return this.products;
}
- /** The DeviceGroupsClient object to access its operations. */
+ /**
+ * The DeviceGroupsClient object to access its operations.
+ */
private final DeviceGroupsClient deviceGroups;
/**
* Gets the DeviceGroupsClient object to access its operations.
- *
+ *
* @return the DeviceGroupsClient object.
*/
public DeviceGroupsClient getDeviceGroups() {
return this.deviceGroups;
}
- /** The DeploymentsClient object to access its operations. */
+ /**
+ * The DeploymentsClient object to access its operations.
+ */
private final DeploymentsClient deployments;
/**
* Gets the DeploymentsClient object to access its operations.
- *
+ *
* @return the DeploymentsClient object.
*/
public DeploymentsClient getDeployments() {
return this.deployments;
}
- /** The DevicesClient object to access its operations. */
+ /**
+ * The DevicesClient object to access its operations.
+ */
private final DevicesClient devices;
/**
* Gets the DevicesClient object to access its operations.
- *
+ *
* @return the DevicesClient object.
*/
public DevicesClient getDevices() {
@@ -213,7 +243,7 @@ public DevicesClient getDevices() {
/**
* Initializes an instance of AzureSphereManagementClient client.
- *
+ *
* @param httpPipeline The HTTP pipeline to send requests through.
* @param serializerAdapter The serializer to serialize an object into a string.
* @param defaultPollInterval The default poll interval for long-running operation.
@@ -221,13 +251,8 @@ public DevicesClient getDevices() {
* @param subscriptionId The ID of the target subscription.
* @param endpoint server parameter.
*/
- AzureSphereManagementClientImpl(
- HttpPipeline httpPipeline,
- SerializerAdapter serializerAdapter,
- Duration defaultPollInterval,
- AzureEnvironment environment,
- String subscriptionId,
- String endpoint) {
+ AzureSphereManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) {
this.httpPipeline = httpPipeline;
this.serializerAdapter = serializerAdapter;
this.defaultPollInterval = defaultPollInterval;
@@ -246,7 +271,7 @@ public DevicesClient getDevices() {
/**
* Gets default client context.
- *
+ *
* @return the default client context.
*/
public Context getContext() {
@@ -255,7 +280,7 @@ public Context getContext() {
/**
* Merges default client context with provided context.
- *
+ *
* @param context the context to be merged with default client context.
* @return the merged context.
*/
@@ -265,7 +290,7 @@ public Context mergeContext(Context context) {
/**
* Gets long running operation result.
- *
+ *
* @param activationResponse the response of activation operation.
* @param httpPipeline the http pipeline.
* @param pollResultType type of poll result.
@@ -275,26 +300,15 @@ public Context mergeContext(Context context) {
* @param type of final result.
* @return poller flux for poll result and final result.
*/
- public PollerFlux, U> getLroResult(
- Mono>> activationResponse,
- HttpPipeline httpPipeline,
- Type pollResultType,
- Type finalResultType,
- Context context) {
- return PollerFactory
- .create(
- serializerAdapter,
- httpPipeline,
- pollResultType,
- finalResultType,
- defaultPollInterval,
- activationResponse,
- context);
+ public PollerFlux, U> getLroResult(Mono>> activationResponse,
+ HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context) {
+ return PollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType,
+ defaultPollInterval, activationResponse, context);
}
/**
* Gets the final result, or an error, based on last async poll response.
- *
+ *
* @param response the last async poll response.
* @param type of poll result.
* @param type of final result.
@@ -307,19 +321,16 @@ public Mono getLroFinalResultOrError(AsyncPollResponse,
HttpResponse errorResponse = null;
PollResult.Error lroError = response.getValue().getError();
if (lroError != null) {
- errorResponse =
- new HttpResponseImpl(
- lroError.getResponseStatusCode(), lroError.getResponseHeaders(), lroError.getResponseBody());
+ errorResponse = new HttpResponseImpl(lroError.getResponseStatusCode(), lroError.getResponseHeaders(),
+ lroError.getResponseBody());
errorMessage = response.getValue().getError().getMessage();
String errorBody = response.getValue().getError().getResponseBody();
if (errorBody != null) {
// try to deserialize error body to ManagementError
try {
- managementError =
- this
- .getSerializerAdapter()
- .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON);
+ managementError = this.getSerializerAdapter().deserialize(errorBody, ManagementError.class,
+ SerializerEncoding.JSON);
if (managementError.getCode() == null || managementError.getMessage() == null) {
managementError = null;
}
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/implementation/CatalogImpl.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/implementation/CatalogImpl.java
index e36df7131263a..fc87826811d00 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/implementation/CatalogImpl.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/implementation/CatalogImpl.java
@@ -11,6 +11,7 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.sphere.fluent.models.CatalogInner;
import com.azure.resourcemanager.sphere.models.Catalog;
+import com.azure.resourcemanager.sphere.models.CatalogProperties;
import com.azure.resourcemanager.sphere.models.CatalogUpdate;
import com.azure.resourcemanager.sphere.models.CountDeviceResponse;
import com.azure.resourcemanager.sphere.models.Deployment;
@@ -18,7 +19,6 @@
import com.azure.resourcemanager.sphere.models.DeviceGroup;
import com.azure.resourcemanager.sphere.models.DeviceInsight;
import com.azure.resourcemanager.sphere.models.ListDeviceGroupsRequest;
-import com.azure.resourcemanager.sphere.models.ProvisioningState;
import java.util.Collections;
import java.util.Map;
@@ -52,12 +52,12 @@ public Map tags() {
}
}
- public SystemData systemData() {
- return this.innerModel().systemData();
+ public CatalogProperties properties() {
+ return this.innerModel().properties();
}
- public ProvisioningState provisioningState() {
- return this.innerModel().provisioningState();
+ public SystemData systemData() {
+ return this.innerModel().systemData();
}
public Region region() {
@@ -92,20 +92,14 @@ public CatalogImpl withExistingResourceGroup(String resourceGroupName) {
}
public Catalog create() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getCatalogs()
- .createOrUpdate(resourceGroupName, catalogName, this.innerModel(), Context.NONE);
+ this.innerObject = serviceManager.serviceClient().getCatalogs().createOrUpdate(resourceGroupName, catalogName,
+ this.innerModel(), Context.NONE);
return this;
}
public Catalog create(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getCatalogs()
- .createOrUpdate(resourceGroupName, catalogName, this.innerModel(), context);
+ this.innerObject = serviceManager.serviceClient().getCatalogs().createOrUpdate(resourceGroupName, catalogName,
+ this.innerModel(), context);
return this;
}
@@ -121,22 +115,14 @@ public CatalogImpl update() {
}
public Catalog apply() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getCatalogs()
- .updateWithResponse(resourceGroupName, catalogName, updateProperties, Context.NONE)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getCatalogs()
+ .updateWithResponse(resourceGroupName, catalogName, updateProperties, Context.NONE).getValue();
return this;
}
public Catalog apply(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getCatalogs()
- .updateWithResponse(resourceGroupName, catalogName, updateProperties, context)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getCatalogs()
+ .updateWithResponse(resourceGroupName, catalogName, updateProperties, context).getValue();
return this;
}
@@ -148,22 +134,14 @@ public Catalog apply(Context context) {
}
public Catalog refresh() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getCatalogs()
- .getByResourceGroupWithResponse(resourceGroupName, catalogName, Context.NONE)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getCatalogs()
+ .getByResourceGroupWithResponse(resourceGroupName, catalogName, Context.NONE).getValue();
return this;
}
public Catalog refresh(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getCatalogs()
- .getByResourceGroupWithResponse(resourceGroupName, catalogName, context)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getCatalogs()
+ .getByResourceGroupWithResponse(resourceGroupName, catalogName, context).getValue();
return this;
}
@@ -179,50 +157,40 @@ public PagedIterable listDeployments() {
return serviceManager.catalogs().listDeployments(resourceGroupName, catalogName);
}
- public PagedIterable listDeployments(
- String filter, Integer top, Integer skip, Integer maxpagesize, Context context) {
- return serviceManager
- .catalogs()
- .listDeployments(resourceGroupName, catalogName, filter, top, skip, maxpagesize, context);
+ public PagedIterable listDeployments(String filter, Integer top, Integer skip, Integer maxpagesize,
+ Context context) {
+ return serviceManager.catalogs().listDeployments(resourceGroupName, catalogName, filter, top, skip, maxpagesize,
+ context);
}
public PagedIterable listDeviceGroups(ListDeviceGroupsRequest listDeviceGroupsRequest) {
return serviceManager.catalogs().listDeviceGroups(resourceGroupName, catalogName, listDeviceGroupsRequest);
}
- public PagedIterable listDeviceGroups(
- ListDeviceGroupsRequest listDeviceGroupsRequest,
- String filter,
- Integer top,
- Integer skip,
- Integer maxpagesize,
- Context context) {
- return serviceManager
- .catalogs()
- .listDeviceGroups(
- resourceGroupName, catalogName, listDeviceGroupsRequest, filter, top, skip, maxpagesize, context);
+ public PagedIterable listDeviceGroups(ListDeviceGroupsRequest listDeviceGroupsRequest, String filter,
+ Integer top, Integer skip, Integer maxpagesize, Context context) {
+ return serviceManager.catalogs().listDeviceGroups(resourceGroupName, catalogName, listDeviceGroupsRequest,
+ filter, top, skip, maxpagesize, context);
}
public PagedIterable listDeviceInsights() {
return serviceManager.catalogs().listDeviceInsights(resourceGroupName, catalogName);
}
- public PagedIterable listDeviceInsights(
- String filter, Integer top, Integer skip, Integer maxpagesize, Context context) {
- return serviceManager
- .catalogs()
- .listDeviceInsights(resourceGroupName, catalogName, filter, top, skip, maxpagesize, context);
+ public PagedIterable listDeviceInsights(String filter, Integer top, Integer skip,
+ Integer maxpagesize, Context context) {
+ return serviceManager.catalogs().listDeviceInsights(resourceGroupName, catalogName, filter, top, skip,
+ maxpagesize, context);
}
public PagedIterable listDevices() {
return serviceManager.catalogs().listDevices(resourceGroupName, catalogName);
}
- public PagedIterable listDevices(
- String filter, Integer top, Integer skip, Integer maxpagesize, Context context) {
- return serviceManager
- .catalogs()
- .listDevices(resourceGroupName, catalogName, filter, top, skip, maxpagesize, context);
+ public PagedIterable listDevices(String filter, Integer top, Integer skip, Integer maxpagesize,
+ Context context) {
+ return serviceManager.catalogs().listDevices(resourceGroupName, catalogName, filter, top, skip, maxpagesize,
+ context);
}
public CatalogImpl withRegion(Region location) {
@@ -245,6 +213,11 @@ public CatalogImpl withTags(Map tags) {
}
}
+ public CatalogImpl withProperties(CatalogProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
private boolean isInCreateMode() {
return this.innerModel().id() == null;
}
diff --git a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/implementation/CatalogsClientImpl.java b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/implementation/CatalogsClientImpl.java
index aab63c3693db3..3b5ec2a69e3e5 100644
--- a/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/implementation/CatalogsClientImpl.java
+++ b/sdk/sphere/azure-resourcemanager-sphere/src/main/java/com/azure/resourcemanager/sphere/implementation/CatalogsClientImpl.java
@@ -51,17 +51,23 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in CatalogsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in CatalogsClient.
+ */
public final class CatalogsClientImpl implements CatalogsClient {
- /** The proxy service used to perform REST calls. */
+ /**
+ * The proxy service used to perform REST calls.
+ */
private final CatalogsService service;
- /** The service client containing this operation class. */
+ /**
+ * The service client containing this operation class.
+ */
private final AzureSphereManagementClientImpl client;
/**
* Initializes an instance of CatalogsClientImpl.
- *
+ *
* @param client the instance of the service client containing this operation class.
*/
CatalogsClientImpl(AzureSphereManagementClientImpl client) {
@@ -76,341 +82,232 @@ public final class CatalogsClientImpl implements CatalogsClient {
@Host("{$host}")
@ServiceInterface(name = "AzureSphereManagemen")
public interface CatalogsService {
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.AzureSphere/catalogs")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept,
- Context context);
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroup(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @HeaderParam("Accept") String accept,
+ Mono> listByResourceGroup(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("catalogName") String catalogName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}")
- @ExpectedResponses({200, 201})
+ Mono> getByResourceGroup(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("catalogName") String catalogName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}")
+ @ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("catalogName") String catalogName,
- @BodyParam("application/json") CatalogInner resource,
- @HeaderParam("Accept") String accept,
+ Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("catalogName") String catalogName,
+ @BodyParam("application/json") CatalogInner resource, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
- @Patch(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> update(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("catalogName") String catalogName,
- @BodyParam("application/json") CatalogUpdate properties,
- @HeaderParam("Accept") String accept,
+ Mono> update(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("catalogName") String catalogName,
+ @BodyParam("application/json") CatalogUpdate properties, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
- @Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}")
- @ExpectedResponses({200, 202, 204})
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}")
+ @ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("catalogName") String catalogName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/countDevices")
- @ExpectedResponses({200})
+ Mono>> delete(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("catalogName") String catalogName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/countDevices")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> countDevices(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("catalogName") String catalogName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeployments")
- @ExpectedResponses({200})
+ Mono> countDevices(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("catalogName") String catalogName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeployments")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listDeployments(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("catalogName") String catalogName,
- @QueryParam("$filter") String filter,
- @QueryParam("$top") Integer top,
- @QueryParam("$skip") Integer skip,
- @QueryParam("$maxpagesize") Integer maxpagesize,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceGroups")
- @ExpectedResponses({200})
+ Mono> listDeployments(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("catalogName") String catalogName,
+ @QueryParam("$filter") String filter, @QueryParam("$top") Integer top, @QueryParam("$skip") Integer skip,
+ @QueryParam("$maxpagesize") Integer maxpagesize, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceGroups")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listDeviceGroups(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("catalogName") String catalogName,
- @QueryParam("$filter") String filter,
- @QueryParam("$top") Integer top,
- @QueryParam("$skip") Integer skip,
+ Mono> listDeviceGroups(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("catalogName") String catalogName,
+ @QueryParam("$filter") String filter, @QueryParam("$top") Integer top, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize,
@BodyParam("application/json") ListDeviceGroupsRequest listDeviceGroupsRequest,
- @HeaderParam("Accept") String accept,
- Context context);
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceInsights")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDeviceInsights")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listDeviceInsights(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("catalogName") String catalogName,
- @QueryParam("$filter") String filter,
- @QueryParam("$top") Integer top,
- @QueryParam("$skip") Integer skip,
- @QueryParam("$maxpagesize") Integer maxpagesize,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDevices")
- @ExpectedResponses({200})
+ Mono> listDeviceInsights(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("catalogName") String catalogName,
+ @QueryParam("$filter") String filter, @QueryParam("$top") Integer top, @QueryParam("$skip") Integer skip,
+ @QueryParam("$maxpagesize") Integer maxpagesize, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/listDevices")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listDevices(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("catalogName") String catalogName,
- @QueryParam("$filter") String filter,
- @QueryParam("$top") Integer top,
- @QueryParam("$skip") Integer skip,
- @QueryParam("$maxpagesize") Integer maxpagesize,
- @HeaderParam("Accept") String accept,
- Context context);
+ Mono> listDevices(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("catalogName") String catalogName,
+ @QueryParam("$filter") String filter, @QueryParam("$top") Integer top, @QueryParam("$skip") Integer skip,
+ @QueryParam("$maxpagesize") Integer maxpagesize, @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listBySubscriptionNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listDeploymentsNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listDeviceGroupsNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listDeviceInsightsNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listDevicesNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ Mono> listDevicesNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
}
/**
* List Catalog resources by subscription ID.
- *
+ *
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a Catalog list operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .list(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* List Catalog resources by subscription ID.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a Catalog list operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- accept,
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept,
context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
* List Catalog resources by subscription ID.
- *
+ *
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a Catalog list operation as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
- return new PagedFlux<>(
- () -> listSinglePageAsync(), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ return new PagedFlux<>(() -> listSinglePageAsync(),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
}
/**
* List Catalog resources by subscription ID.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -419,13 +316,13 @@ private PagedFlux listAsync() {
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux