net.bytebuddy
byte-buddy
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/AzureMapsManager.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/AzureMapsManager.java
index c5d5411ee244..98dac9a54aa2 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/AzureMapsManager.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/AzureMapsManager.java
@@ -11,6 +11,7 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
@@ -19,7 +20,6 @@
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
-import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
@@ -38,7 +38,10 @@
import java.util.Objects;
import java.util.stream.Collectors;
-/** Entry point to AzureMapsManager. Azure Maps. */
+/**
+ * Entry point to AzureMapsManager.
+ * Azure Maps.
+ */
public final class AzureMapsManager {
private Accounts accounts;
@@ -60,7 +63,7 @@ private AzureMapsManager(HttpPipeline httpPipeline, AzureProfile profile, Durati
/**
* Creates an instance of AzureMaps service API entry point.
- *
+ *
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the AzureMaps service API instance.
@@ -73,7 +76,7 @@ public static AzureMapsManager authenticate(TokenCredential credential, AzurePro
/**
* Creates an instance of AzureMaps service API entry point.
- *
+ *
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the AzureMaps service API instance.
@@ -86,14 +89,16 @@ public static AzureMapsManager authenticate(HttpPipeline httpPipeline, AzureProf
/**
* Gets a Configurable instance that can be used to create AzureMapsManager with optional configuration.
- *
+ *
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
return new AzureMapsManager.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);
@@ -165,8 +170,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.
@@ -208,7 +213,7 @@ public AzureMapsManager authenticate(TokenCredential credential, AzureProfile pr
.append("-")
.append("com.azure.resourcemanager.maps")
.append("/")
- .append("1.0.0");
+ .append("1.1.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -241,7 +246,7 @@ public AzureMapsManager authenticate(TokenCredential credential, AzureProfile pr
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
@@ -256,7 +261,7 @@ public AzureMapsManager authenticate(TokenCredential credential, AzureProfile pr
/**
* Gets the resource collection API of Accounts. It manages MapsAccount.
- *
+ *
* @return Resource collection API of Accounts.
*/
public Accounts accounts() {
@@ -268,7 +273,7 @@ public Accounts accounts() {
/**
* Gets the resource collection API of Maps.
- *
+ *
* @return Resource collection API of Maps.
*/
public Maps maps() {
@@ -280,7 +285,7 @@ public Maps maps() {
/**
* Gets the resource collection API of Creators. It manages Creator.
- *
+ *
* @return Resource collection API of Creators.
*/
public Creators creators() {
@@ -293,7 +298,7 @@ public Creators creators() {
/**
* Gets wrapped service client AzureMapsManagementClient providing direct access to the underlying auto-generated
* API implementation, based on Azure REST API.
- *
+ *
* @return Wrapped service client AzureMapsManagementClient.
*/
public AzureMapsManagementClient serviceClient() {
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/AccountsClient.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/AccountsClient.java
index c652eec716d6..7bfd3fdc1962 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/AccountsClient.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/AccountsClient.java
@@ -16,11 +16,13 @@
import com.azure.resourcemanager.maps.models.MapsAccountUpdateParameters;
import com.azure.resourcemanager.maps.models.MapsKeySpecification;
-/** An instance of this class provides access to all the operations defined in AccountsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in AccountsClient.
+ */
public interface AccountsClient {
/**
* Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccount The new or updated parameters for the Maps Account.
@@ -36,7 +38,7 @@ Response createOrUpdateWithResponse(String resourceGroupName,
/**
* Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccount The new or updated parameters for the Maps Account.
@@ -51,7 +53,7 @@ Response createOrUpdateWithResponse(String resourceGroupName,
/**
* Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags,
* Properties.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccountUpdateParameters The updated parameters for the Maps Account.
@@ -68,7 +70,7 @@ Response updateWithResponse(String resourceGroupName, String a
/**
* Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags,
* Properties.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccountUpdateParameters The updated parameters for the Maps Account.
@@ -83,7 +85,7 @@ MapsAccountInner update(String resourceGroupName, String accountName,
/**
* Delete a Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param context The context to associate with this operation.
@@ -97,7 +99,7 @@ MapsAccountInner update(String resourceGroupName, String accountName,
/**
* Delete a Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -109,7 +111,7 @@ MapsAccountInner update(String resourceGroupName, String accountName,
/**
* Get a Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param context The context to associate with this operation.
@@ -124,7 +126,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNa
/**
* Get a Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -137,7 +139,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNa
/**
* Get all Maps Accounts in a 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.
@@ -149,7 +151,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNa
/**
* Get all Maps Accounts in a 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.
@@ -162,7 +164,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNa
/**
* Get all Maps Accounts in a Subscription.
- *
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all Maps Accounts in a Subscription as paginated response with {@link PagedIterable}.
@@ -172,7 +174,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNa
/**
* Get all Maps Accounts in a Subscription.
- *
+ *
* @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.
@@ -185,11 +187,12 @@ Response getByResourceGroupWithResponse(String resourceGroupNa
/**
* Create and list an account shared access signature token. Use this SAS token for authentication to Azure Maps
* REST APIs through various Azure Maps SDKs. As prerequisite to create a SAS Token.
- *
- * Prerequisites: 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the
- * account. 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed
- * Identity is placed.
- *
+ *
+ * Prerequisites:
+ * 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the account.
+ * 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed Identity is
+ * placed.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccountSasParameters The updated parameters for the Maps Account.
@@ -198,7 +201,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNa
* @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 new Sas token which can be used to access the Maps REST APIs and is controlled by the specified Managed
- * identity permissions on Azure (IAM) Role Based Access Control along with {@link Response}.
+ * identity permissions on Azure (IAM) Role Based Access Control along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listSasWithResponse(String resourceGroupName, String accountName,
@@ -207,11 +210,12 @@ Response listSasWithResponse(String resourceGroupName,
/**
* Create and list an account shared access signature token. Use this SAS token for authentication to Azure Maps
* REST APIs through various Azure Maps SDKs. As prerequisite to create a SAS Token.
- *
- * Prerequisites: 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the
- * account. 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed
- * Identity is placed.
- *
+ *
+ * Prerequisites:
+ * 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the account.
+ * 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed Identity is
+ * placed.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccountSasParameters The updated parameters for the Maps Account.
@@ -219,7 +223,7 @@ Response listSasWithResponse(String resourceGroupName,
* @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 new Sas token which can be used to access the Maps REST APIs and is controlled by the specified Managed
- * identity permissions on Azure (IAM) Role Based Access Control.
+ * identity permissions on Azure (IAM) Role Based Access Control.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
MapsAccountSasTokenInner listSas(String resourceGroupName, String accountName,
@@ -228,7 +232,7 @@ MapsAccountSasTokenInner listSas(String resourceGroupName, String accountName,
/**
* Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs.
* Only one key is needed at a time; two are given to provide seamless key regeneration.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param context The context to associate with this operation.
@@ -243,7 +247,7 @@ MapsAccountSasTokenInner listSas(String resourceGroupName, String accountName,
/**
* Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs.
* Only one key is needed at a time; two are given to provide seamless key regeneration.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -257,7 +261,7 @@ MapsAccountSasTokenInner listSas(String resourceGroupName, String accountName,
/**
* Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working
* immediately.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param keySpecification Which key to regenerate: primary or secondary.
@@ -274,7 +278,7 @@ Response regenerateKeysWithResponse(String resourceGroupNa
/**
* Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working
* immediately.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param keySpecification Which key to regenerate: primary or secondary.
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/AzureMapsManagementClient.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/AzureMapsManagementClient.java
index 8dd537b53b23..08ef00f9288f 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/AzureMapsManagementClient.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/AzureMapsManagementClient.java
@@ -7,60 +7,62 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for AzureMapsManagementClient class. */
+/**
+ * The interface for AzureMapsManagementClient class.
+ */
public interface AzureMapsManagementClient {
/**
* 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 AccountsClient object to access its operations.
- *
+ *
* @return the AccountsClient object.
*/
AccountsClient getAccounts();
/**
* Gets the MapsClient object to access its operations.
- *
+ *
* @return the MapsClient object.
*/
MapsClient getMaps();
/**
* Gets the CreatorsClient object to access its operations.
- *
+ *
* @return the CreatorsClient object.
*/
CreatorsClient getCreators();
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/CreatorsClient.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/CreatorsClient.java
index 0f9ca5fa2dc3..e97786aebce9 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/CreatorsClient.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/CreatorsClient.java
@@ -12,11 +12,13 @@
import com.azure.resourcemanager.maps.fluent.models.CreatorInner;
import com.azure.resourcemanager.maps.models.CreatorUpdateParameters;
-/** An instance of this class provides access to all the operations defined in CreatorsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in CreatorsClient.
+ */
public interface CreatorsClient {
/**
* Get all Creator instances for an Azure Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -29,7 +31,7 @@ public interface CreatorsClient {
/**
* Get all Creator instances for an Azure Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param context The context to associate with this operation.
@@ -44,7 +46,7 @@ public interface CreatorsClient {
/**
* Create or update a Maps Creator resource. Creator resource will manage Azure resources required to populate a
* custom set of mapping data. It requires an account to exist before it can be created.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -54,7 +56,7 @@ public interface CreatorsClient {
* @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 an Azure resource which represents Maps Creator product and provides ability to manage private location
- * data along with {@link Response}.
+ * data along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(String resourceGroupName, String accountName, String creatorName,
@@ -63,7 +65,7 @@ Response createOrUpdateWithResponse(String resourceGroupName, Stri
/**
* Create or update a Maps Creator resource. Creator resource will manage Azure resources required to populate a
* custom set of mapping data. It requires an account to exist before it can be created.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -72,7 +74,7 @@ Response createOrUpdateWithResponse(String resourceGroupName, Stri
* @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 an Azure resource which represents Maps Creator product and provides ability to manage private location
- * data.
+ * data.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CreatorInner createOrUpdate(String resourceGroupName, String accountName, String creatorName,
@@ -80,7 +82,7 @@ CreatorInner createOrUpdate(String resourceGroupName, String accountName, String
/**
* Updates the Maps Creator resource. Only a subset of the parameters may be updated after creation, such as Tags.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -90,7 +92,7 @@ CreatorInner createOrUpdate(String resourceGroupName, String accountName, String
* @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 an Azure resource which represents Maps Creator product and provides ability to manage private location
- * data along with {@link Response}.
+ * data along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(String resourceGroupName, String accountName, String creatorName,
@@ -98,7 +100,7 @@ Response updateWithResponse(String resourceGroupName, String accou
/**
* Updates the Maps Creator resource. Only a subset of the parameters may be updated after creation, such as Tags.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -107,7 +109,7 @@ Response updateWithResponse(String resourceGroupName, String accou
* @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 an Azure resource which represents Maps Creator product and provides ability to manage private location
- * data.
+ * data.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CreatorInner update(String resourceGroupName, String accountName, String creatorName,
@@ -115,7 +117,7 @@ CreatorInner update(String resourceGroupName, String accountName, String creator
/**
* Delete a Maps Creator resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -131,7 +133,7 @@ Response deleteWithResponse(String resourceGroupName, String accountName,
/**
* Delete a Maps Creator resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -144,7 +146,7 @@ Response deleteWithResponse(String resourceGroupName, String accountName,
/**
* Get a Maps Creator resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -160,7 +162,7 @@ Response getWithResponse(String resourceGroupName, String accountN
/**
* Get a Maps Creator resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/MapsClient.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/MapsClient.java
index ff97e4b3c640..03dea6a57d5d 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/MapsClient.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/MapsClient.java
@@ -10,11 +10,13 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.maps.fluent.models.OperationDetailInner;
-/** An instance of this class provides access to all the operations defined in MapsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in MapsClient.
+ */
public interface MapsClient {
/**
* List operations available for the Maps Resource 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 the set of operations available for Maps as paginated response with {@link PagedIterable}.
@@ -24,7 +26,7 @@ public interface MapsClient {
/**
* List operations available for the Maps Resource 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.
@@ -36,7 +38,7 @@ public interface MapsClient {
/**
* List operations available for the Maps Resource 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 the set of operations available for Maps as paginated response with {@link PagedIterable}.
@@ -46,7 +48,7 @@ public interface MapsClient {
/**
* List operations available for the Maps Resource 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.
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/CreatorInner.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/CreatorInner.java
index 82a52e7ce799..08970b1efb2c 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/CreatorInner.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/CreatorInner.java
@@ -8,31 +8,51 @@
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.Map;
-/** An Azure resource which represents Maps Creator product and provides ability to manage private location data. */
+/**
+ * An Azure resource which represents Maps Creator product and provides ability to manage private location data.
+ */
@Fluent
public final class CreatorInner extends Resource {
/*
* The Creator resource properties.
*/
- @JsonProperty(value = "properties", required = true)
private CreatorProperties properties;
/*
* The system meta data relating to this resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of CreatorInner class. */
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of CreatorInner class.
+ */
public CreatorInner() {
}
/**
* Get the properties property: The Creator resource properties.
- *
+ *
* @return the properties value.
*/
public CreatorProperties properties() {
@@ -41,7 +61,7 @@ public CreatorProperties properties() {
/**
* Set the properties property: The Creator resource properties.
- *
+ *
* @param properties the properties value to set.
* @return the CreatorInner object itself.
*/
@@ -52,21 +72,55 @@ public CreatorInner withProperties(CreatorProperties properties) {
/**
* Get the systemData property: The system meta data relating to this resource.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}
- /** {@inheritDoc} */
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
@Override
public CreatorInner withLocation(String location) {
super.withLocation(location);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public CreatorInner withTags(Map tags) {
super.withTags(tags);
@@ -75,17 +129,69 @@ public CreatorInner withTags(Map tags) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (properties() == null) {
- throw LOGGER.logExceptionAsError(
- new IllegalArgumentException("Missing required property properties in model CreatorInner"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property properties in model CreatorInner"));
} else {
properties().validate();
}
}
private static final ClientLogger LOGGER = new ClientLogger(CreatorInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CreatorInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CreatorInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the CreatorInner.
+ */
+ public static CreatorInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CreatorInner deserializedCreatorInner = new CreatorInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedCreatorInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedCreatorInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedCreatorInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedCreatorInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedCreatorInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedCreatorInner.properties = CreatorProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedCreatorInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCreatorInner;
+ });
+ }
}
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/CreatorProperties.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/CreatorProperties.java
index 3a914ab081b9..ba3473ec1f55 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/CreatorProperties.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/CreatorProperties.java
@@ -5,31 +5,37 @@
package com.azure.resourcemanager.maps.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
-/** Creator resource properties. */
+/**
+ * Creator resource properties.
+ */
@Fluent
-public final class CreatorProperties {
+public final class CreatorProperties implements JsonSerializable {
/*
* The state of the resource provisioning, terminal states: Succeeded, Failed, Canceled
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;
/*
* The storage units to be allocated. Integer values from 1 to 100, inclusive.
*/
- @JsonProperty(value = "storageUnits", required = true)
private int storageUnits;
- /** Creates an instance of CreatorProperties class. */
+ /**
+ * Creates an instance of CreatorProperties class.
+ */
public CreatorProperties() {
}
/**
* Get the provisioningState property: The state of the resource provisioning, terminal states: Succeeded, Failed,
* Canceled.
- *
+ *
* @return the provisioningState value.
*/
public String provisioningState() {
@@ -38,7 +44,7 @@ public String provisioningState() {
/**
* Get the storageUnits property: The storage units to be allocated. Integer values from 1 to 100, inclusive.
- *
+ *
* @return the storageUnits value.
*/
public int storageUnits() {
@@ -47,7 +53,7 @@ public int storageUnits() {
/**
* Set the storageUnits property: The storage units to be allocated. Integer values from 1 to 100, inclusive.
- *
+ *
* @param storageUnits the storageUnits value to set.
* @return the CreatorProperties object itself.
*/
@@ -58,9 +64,48 @@ public CreatorProperties withStorageUnits(int storageUnits) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeIntField("storageUnits", this.storageUnits);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CreatorProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CreatorProperties if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the CreatorProperties.
+ */
+ public static CreatorProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CreatorProperties deserializedCreatorProperties = new CreatorProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("storageUnits".equals(fieldName)) {
+ deserializedCreatorProperties.storageUnits = reader.getInt();
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedCreatorProperties.provisioningState = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCreatorProperties;
+ });
+ }
}
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/MapsAccountInner.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/MapsAccountInner.java
index a9c1f354f4f0..71a0bcc4289b 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/MapsAccountInner.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/MapsAccountInner.java
@@ -8,52 +8,69 @@
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.maps.models.Kind;
import com.azure.resourcemanager.maps.models.ManagedServiceIdentity;
import com.azure.resourcemanager.maps.models.Sku;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
-/** An Azure resource which represents access to a suite of Maps REST APIs. */
+/**
+ * An Azure resource which represents access to a suite of Maps REST APIs.
+ */
@Fluent
public final class MapsAccountInner extends Resource {
/*
* The SKU of this account.
*/
- @JsonProperty(value = "sku", required = true)
private Sku sku;
/*
* Get or Set Kind property.
*/
- @JsonProperty(value = "kind")
private Kind kind;
/*
* Metadata pertaining to creation and last modification of the resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
/*
* Managed service identity (system assigned and/or user assigned identities)
*/
- @JsonProperty(value = "identity")
private ManagedServiceIdentity identity;
/*
* The map account properties.
*/
- @JsonProperty(value = "properties")
private MapsAccountProperties properties;
- /** Creates an instance of MapsAccountInner class. */
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of MapsAccountInner class.
+ */
public MapsAccountInner() {
}
/**
* Get the sku property: The SKU of this account.
- *
+ *
* @return the sku value.
*/
public Sku sku() {
@@ -62,7 +79,7 @@ public Sku sku() {
/**
* Set the sku property: The SKU of this account.
- *
+ *
* @param sku the sku value to set.
* @return the MapsAccountInner object itself.
*/
@@ -73,7 +90,7 @@ public MapsAccountInner withSku(Sku sku) {
/**
* Get the kind property: Get or Set Kind property.
- *
+ *
* @return the kind value.
*/
public Kind kind() {
@@ -82,7 +99,7 @@ public Kind kind() {
/**
* Set the kind property: Get or Set Kind property.
- *
+ *
* @param kind the kind value to set.
* @return the MapsAccountInner object itself.
*/
@@ -93,7 +110,7 @@ public MapsAccountInner withKind(Kind kind) {
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -102,7 +119,7 @@ public SystemData systemData() {
/**
* Get the identity property: Managed service identity (system assigned and/or user assigned identities).
- *
+ *
* @return the identity value.
*/
public ManagedServiceIdentity identity() {
@@ -111,7 +128,7 @@ public ManagedServiceIdentity identity() {
/**
* Set the identity property: Managed service identity (system assigned and/or user assigned identities).
- *
+ *
* @param identity the identity value to set.
* @return the MapsAccountInner object itself.
*/
@@ -122,7 +139,7 @@ public MapsAccountInner withIdentity(ManagedServiceIdentity identity) {
/**
* Get the properties property: The map account properties.
- *
+ *
* @return the properties value.
*/
public MapsAccountProperties properties() {
@@ -131,7 +148,7 @@ public MapsAccountProperties properties() {
/**
* Set the properties property: The map account properties.
- *
+ *
* @param properties the properties value to set.
* @return the MapsAccountInner object itself.
*/
@@ -140,14 +157,48 @@ public MapsAccountInner withProperties(MapsAccountProperties properties) {
return this;
}
- /** {@inheritDoc} */
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
@Override
public MapsAccountInner withLocation(String location) {
super.withLocation(location);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public MapsAccountInner withTags(Map tags) {
super.withTags(tags);
@@ -156,13 +207,13 @@ public MapsAccountInner withTags(Map tags) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (sku() == null) {
- throw LOGGER.logExceptionAsError(
- new IllegalArgumentException("Missing required property sku in model MapsAccountInner"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property sku in model MapsAccountInner"));
} else {
sku().validate();
}
@@ -175,4 +226,65 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(MapsAccountInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("sku", this.sku);
+ jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString());
+ jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MapsAccountInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MapsAccountInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the MapsAccountInner.
+ */
+ public static MapsAccountInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MapsAccountInner deserializedMapsAccountInner = new MapsAccountInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedMapsAccountInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedMapsAccountInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedMapsAccountInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedMapsAccountInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedMapsAccountInner.withTags(tags);
+ } else if ("sku".equals(fieldName)) {
+ deserializedMapsAccountInner.sku = Sku.fromJson(reader);
+ } else if ("kind".equals(fieldName)) {
+ deserializedMapsAccountInner.kind = Kind.fromString(reader.getString());
+ } else if ("systemData".equals(fieldName)) {
+ deserializedMapsAccountInner.systemData = SystemData.fromJson(reader);
+ } else if ("identity".equals(fieldName)) {
+ deserializedMapsAccountInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("properties".equals(fieldName)) {
+ deserializedMapsAccountInner.properties = MapsAccountProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMapsAccountInner;
+ });
+ }
}
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/MapsAccountKeysInner.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/MapsAccountKeysInner.java
index f29a3b7dbe0c..65e5ceadbf8a 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/MapsAccountKeysInner.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/MapsAccountKeysInner.java
@@ -5,45 +5,47 @@
package com.azure.resourcemanager.maps.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* The set of keys which can be used to access the Maps REST APIs. Two keys are provided for key rotation without
* interruption.
*/
@Immutable
-public final class MapsAccountKeysInner {
+public final class MapsAccountKeysInner implements JsonSerializable {
/*
* The last updated date and time of the primary key.
*/
- @JsonProperty(value = "primaryKeyLastUpdated", access = JsonProperty.Access.WRITE_ONLY)
private String primaryKeyLastUpdated;
/*
* The primary key for accessing the Maps REST APIs.
*/
- @JsonProperty(value = "primaryKey", access = JsonProperty.Access.WRITE_ONLY)
private String primaryKey;
/*
* The secondary key for accessing the Maps REST APIs.
*/
- @JsonProperty(value = "secondaryKey", access = JsonProperty.Access.WRITE_ONLY)
private String secondaryKey;
/*
* The last updated date and time of the secondary key.
*/
- @JsonProperty(value = "secondaryKeyLastUpdated", access = JsonProperty.Access.WRITE_ONLY)
private String secondaryKeyLastUpdated;
- /** Creates an instance of MapsAccountKeysInner class. */
+ /**
+ * Creates an instance of MapsAccountKeysInner class.
+ */
public MapsAccountKeysInner() {
}
/**
* Get the primaryKeyLastUpdated property: The last updated date and time of the primary key.
- *
+ *
* @return the primaryKeyLastUpdated value.
*/
public String primaryKeyLastUpdated() {
@@ -52,7 +54,7 @@ public String primaryKeyLastUpdated() {
/**
* Get the primaryKey property: The primary key for accessing the Maps REST APIs.
- *
+ *
* @return the primaryKey value.
*/
public String primaryKey() {
@@ -61,7 +63,7 @@ public String primaryKey() {
/**
* Get the secondaryKey property: The secondary key for accessing the Maps REST APIs.
- *
+ *
* @return the secondaryKey value.
*/
public String secondaryKey() {
@@ -70,7 +72,7 @@ public String secondaryKey() {
/**
* Get the secondaryKeyLastUpdated property: The last updated date and time of the secondary key.
- *
+ *
* @return the secondaryKeyLastUpdated value.
*/
public String secondaryKeyLastUpdated() {
@@ -79,9 +81,50 @@ public String secondaryKeyLastUpdated() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MapsAccountKeysInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MapsAccountKeysInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the MapsAccountKeysInner.
+ */
+ public static MapsAccountKeysInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MapsAccountKeysInner deserializedMapsAccountKeysInner = new MapsAccountKeysInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("primaryKeyLastUpdated".equals(fieldName)) {
+ deserializedMapsAccountKeysInner.primaryKeyLastUpdated = reader.getString();
+ } else if ("primaryKey".equals(fieldName)) {
+ deserializedMapsAccountKeysInner.primaryKey = reader.getString();
+ } else if ("secondaryKey".equals(fieldName)) {
+ deserializedMapsAccountKeysInner.secondaryKey = reader.getString();
+ } else if ("secondaryKeyLastUpdated".equals(fieldName)) {
+ deserializedMapsAccountKeysInner.secondaryKeyLastUpdated = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMapsAccountKeysInner;
+ });
+ }
}
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/MapsAccountProperties.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/MapsAccountProperties.java
index e41d0c37bd70..b91186c677d8 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/MapsAccountProperties.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/MapsAccountProperties.java
@@ -5,33 +5,36 @@
package com.azure.resourcemanager.maps.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.maps.models.CorsRules;
import com.azure.resourcemanager.maps.models.Encryption;
import com.azure.resourcemanager.maps.models.LinkedResource;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
-/** Additional Map account properties. */
+/**
+ * Additional Map account properties.
+ */
@Fluent
-public final class MapsAccountProperties {
+public final class MapsAccountProperties implements JsonSerializable {
/*
* A unique identifier for the maps account
*/
- @JsonProperty(value = "uniqueId", access = JsonProperty.Access.WRITE_ONLY)
private String uniqueId;
/*
- * Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will
- * disable Shared Keys and Shared Access Signature Token authentication from any usage.
+ * Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will disable
+ * Shared Keys and Shared Access Signature Token authentication from any usage.
*/
- @JsonProperty(value = "disableLocalAuth")
private Boolean disableLocalAuth;
/*
* The provisioning state of the Map account resource, Account updates can only be performed on terminal states.
* Terminal states: `Succeeded` and `Failed`
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;
/*
@@ -40,31 +43,30 @@ public final class MapsAccountProperties {
* Azure Maps REST API. Access is controlled by the Map Account Managed Identity(s) permissions to those
* resource(s).
*/
- @JsonProperty(value = "linkedResources")
private List linkedResources;
/*
* Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no
- * CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled
- * for the Blob service.
+ * CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for
+ * the Blob service.
*/
- @JsonProperty(value = "cors")
private CorsRules cors;
/*
* (Optional) Discouraged to include in resource definition. Only needed where it is possible to disable platform
* (AKA infrastructure) encryption. Azure SQL TDE is an example of this. Values are enabled and disabled.
*/
- @JsonProperty(value = "encryption")
private Encryption encryption;
- /** Creates an instance of MapsAccountProperties class. */
+ /**
+ * Creates an instance of MapsAccountProperties class.
+ */
public MapsAccountProperties() {
}
/**
* Get the uniqueId property: A unique identifier for the maps account.
- *
+ *
* @return the uniqueId value.
*/
public String uniqueId() {
@@ -75,7 +77,7 @@ public String uniqueId() {
* Get the disableLocalAuth property: Allows toggle functionality on Azure Policy to disable Azure Maps local
* authentication support. This will disable Shared Keys and Shared Access Signature Token authentication from any
* usage.
- *
+ *
* @return the disableLocalAuth value.
*/
public Boolean disableLocalAuth() {
@@ -86,7 +88,7 @@ public Boolean disableLocalAuth() {
* Set the disableLocalAuth property: Allows toggle functionality on Azure Policy to disable Azure Maps local
* authentication support. This will disable Shared Keys and Shared Access Signature Token authentication from any
* usage.
- *
+ *
* @param disableLocalAuth the disableLocalAuth value to set.
* @return the MapsAccountProperties object itself.
*/
@@ -98,7 +100,7 @@ public MapsAccountProperties withDisableLocalAuth(Boolean disableLocalAuth) {
/**
* Get the provisioningState property: The provisioning state of the Map account resource, Account updates can only
* be performed on terminal states. Terminal states: `Succeeded` and `Failed`.
- *
+ *
* @return the provisioningState value.
*/
public String provisioningState() {
@@ -110,7 +112,7 @@ public String provisioningState() {
* array cannot individually update, you must update all linked resources in the array together. These resources may
* be used on operations on the Azure Maps REST API. Access is controlled by the Map Account Managed Identity(s)
* permissions to those resource(s).
- *
+ *
* @return the linkedResources value.
*/
public List linkedResources() {
@@ -122,7 +124,7 @@ public List linkedResources() {
* array cannot individually update, you must update all linked resources in the array together. These resources may
* be used on operations on the Azure Maps REST API. Access is controlled by the Map Account Managed Identity(s)
* permissions to those resource(s).
- *
+ *
* @param linkedResources the linkedResources value to set.
* @return the MapsAccountProperties object itself.
*/
@@ -135,7 +137,7 @@ public MapsAccountProperties withLinkedResources(List linkedReso
* Get the cors property: Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in
* the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS
* will be disabled for the Blob service.
- *
+ *
* @return the cors value.
*/
public CorsRules cors() {
@@ -146,7 +148,7 @@ public CorsRules cors() {
* Set the cors property: Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in
* the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS
* will be disabled for the Blob service.
- *
+ *
* @param cors the cors value to set.
* @return the MapsAccountProperties object itself.
*/
@@ -159,7 +161,7 @@ public MapsAccountProperties withCors(CorsRules cors) {
* Get the encryption property: (Optional) Discouraged to include in resource definition. Only needed where it is
* possible to disable platform (AKA infrastructure) encryption. Azure SQL TDE is an example of this. Values are
* enabled and disabled.
- *
+ *
* @return the encryption value.
*/
public Encryption encryption() {
@@ -170,7 +172,7 @@ public Encryption encryption() {
* Set the encryption property: (Optional) Discouraged to include in resource definition. Only needed where it is
* possible to disable platform (AKA infrastructure) encryption. Azure SQL TDE is an example of this. Values are
* enabled and disabled.
- *
+ *
* @param encryption the encryption value to set.
* @return the MapsAccountProperties object itself.
*/
@@ -181,7 +183,7 @@ public MapsAccountProperties withEncryption(Encryption encryption) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -195,4 +197,56 @@ public void validate() {
encryption().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeBooleanField("disableLocalAuth", this.disableLocalAuth);
+ jsonWriter.writeArrayField("linkedResources", this.linkedResources,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("cors", this.cors);
+ jsonWriter.writeJsonField("encryption", this.encryption);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MapsAccountProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MapsAccountProperties if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the MapsAccountProperties.
+ */
+ public static MapsAccountProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MapsAccountProperties deserializedMapsAccountProperties = new MapsAccountProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("uniqueId".equals(fieldName)) {
+ deserializedMapsAccountProperties.uniqueId = reader.getString();
+ } else if ("disableLocalAuth".equals(fieldName)) {
+ deserializedMapsAccountProperties.disableLocalAuth = reader.getNullable(JsonReader::getBoolean);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedMapsAccountProperties.provisioningState = reader.getString();
+ } else if ("linkedResources".equals(fieldName)) {
+ List linkedResources
+ = reader.readArray(reader1 -> LinkedResource.fromJson(reader1));
+ deserializedMapsAccountProperties.linkedResources = linkedResources;
+ } else if ("cors".equals(fieldName)) {
+ deserializedMapsAccountProperties.cors = CorsRules.fromJson(reader);
+ } else if ("encryption".equals(fieldName)) {
+ deserializedMapsAccountProperties.encryption = Encryption.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMapsAccountProperties;
+ });
+ }
}
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/MapsAccountSasTokenInner.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/MapsAccountSasTokenInner.java
index fd996172f214..1dffca2d916b 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/MapsAccountSasTokenInner.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/MapsAccountSasTokenInner.java
@@ -5,27 +5,32 @@
package com.azure.resourcemanager.maps.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* A new Sas token which can be used to access the Maps REST APIs and is controlled by the specified Managed identity
* permissions on Azure (IAM) Role Based Access Control.
*/
@Immutable
-public final class MapsAccountSasTokenInner {
+public final class MapsAccountSasTokenInner implements JsonSerializable {
/*
* The shared access signature access token.
*/
- @JsonProperty(value = "accountSasToken", access = JsonProperty.Access.WRITE_ONLY)
private String accountSasToken;
- /** Creates an instance of MapsAccountSasTokenInner class. */
+ /**
+ * Creates an instance of MapsAccountSasTokenInner class.
+ */
public MapsAccountSasTokenInner() {
}
/**
* Get the accountSasToken property: The shared access signature access token.
- *
+ *
* @return the accountSasToken value.
*/
public String accountSasToken() {
@@ -34,9 +39,44 @@ public String accountSasToken() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MapsAccountSasTokenInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MapsAccountSasTokenInner if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the MapsAccountSasTokenInner.
+ */
+ public static MapsAccountSasTokenInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MapsAccountSasTokenInner deserializedMapsAccountSasTokenInner = new MapsAccountSasTokenInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("accountSasToken".equals(fieldName)) {
+ deserializedMapsAccountSasTokenInner.accountSasToken = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMapsAccountSasTokenInner;
+ });
+ }
}
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/OperationDetailInner.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/OperationDetailInner.java
index b6c2d845fff7..8e4af2c54a74 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/OperationDetailInner.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/OperationDetailInner.java
@@ -5,50 +5,53 @@
package com.azure.resourcemanager.maps.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.maps.models.OperationDisplay;
import com.azure.resourcemanager.maps.models.ServiceSpecification;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
-/** Operation detail payload. */
+/**
+ * Operation detail payload.
+ */
@Fluent
-public final class OperationDetailInner {
+public final class OperationDetailInner implements JsonSerializable {
/*
* Name of the operation
*/
- @JsonProperty(value = "name")
private String name;
/*
* Indicates whether the operation is a data action
*/
- @JsonProperty(value = "isDataAction")
private Boolean isDataAction;
/*
* Display of the operation
*/
- @JsonProperty(value = "display")
private OperationDisplay display;
/*
* Origin of the operation
*/
- @JsonProperty(value = "origin")
private String origin;
/*
* Properties of the operation
*/
- @JsonProperty(value = "properties")
private OperationProperties innerProperties;
- /** Creates an instance of OperationDetailInner class. */
+ /**
+ * Creates an instance of OperationDetailInner class.
+ */
public OperationDetailInner() {
}
/**
* Get the name property: Name of the operation.
- *
+ *
* @return the name value.
*/
public String name() {
@@ -57,7 +60,7 @@ public String name() {
/**
* Set the name property: Name of the operation.
- *
+ *
* @param name the name value to set.
* @return the OperationDetailInner object itself.
*/
@@ -68,7 +71,7 @@ public OperationDetailInner withName(String name) {
/**
* Get the isDataAction property: Indicates whether the operation is a data action.
- *
+ *
* @return the isDataAction value.
*/
public Boolean isDataAction() {
@@ -77,7 +80,7 @@ public Boolean isDataAction() {
/**
* Set the isDataAction property: Indicates whether the operation is a data action.
- *
+ *
* @param isDataAction the isDataAction value to set.
* @return the OperationDetailInner object itself.
*/
@@ -88,7 +91,7 @@ public OperationDetailInner withIsDataAction(Boolean isDataAction) {
/**
* Get the display property: Display of the operation.
- *
+ *
* @return the display value.
*/
public OperationDisplay display() {
@@ -97,7 +100,7 @@ public OperationDisplay display() {
/**
* Set the display property: Display of the operation.
- *
+ *
* @param display the display value to set.
* @return the OperationDetailInner object itself.
*/
@@ -108,7 +111,7 @@ public OperationDetailInner withDisplay(OperationDisplay display) {
/**
* Get the origin property: Origin of the operation.
- *
+ *
* @return the origin value.
*/
public String origin() {
@@ -117,7 +120,7 @@ public String origin() {
/**
* Set the origin property: Origin of the operation.
- *
+ *
* @param origin the origin value to set.
* @return the OperationDetailInner object itself.
*/
@@ -128,7 +131,7 @@ public OperationDetailInner withOrigin(String origin) {
/**
* Get the innerProperties property: Properties of the operation.
- *
+ *
* @return the innerProperties value.
*/
private OperationProperties innerProperties() {
@@ -137,7 +140,7 @@ private OperationProperties innerProperties() {
/**
* Get the serviceSpecification property: One property of operation, include metric specifications.
- *
+ *
* @return the serviceSpecification value.
*/
public ServiceSpecification serviceSpecification() {
@@ -146,7 +149,7 @@ public ServiceSpecification serviceSpecification() {
/**
* Set the serviceSpecification property: One property of operation, include metric specifications.
- *
+ *
* @param serviceSpecification the serviceSpecification value to set.
* @return the OperationDetailInner object itself.
*/
@@ -160,7 +163,7 @@ public OperationDetailInner withServiceSpecification(ServiceSpecification servic
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -171,4 +174,52 @@ public void validate() {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeBooleanField("isDataAction", this.isDataAction);
+ jsonWriter.writeJsonField("display", this.display);
+ jsonWriter.writeStringField("origin", this.origin);
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationDetailInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationDetailInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the OperationDetailInner.
+ */
+ public static OperationDetailInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationDetailInner deserializedOperationDetailInner = new OperationDetailInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedOperationDetailInner.name = reader.getString();
+ } else if ("isDataAction".equals(fieldName)) {
+ deserializedOperationDetailInner.isDataAction = reader.getNullable(JsonReader::getBoolean);
+ } else if ("display".equals(fieldName)) {
+ deserializedOperationDetailInner.display = OperationDisplay.fromJson(reader);
+ } else if ("origin".equals(fieldName)) {
+ deserializedOperationDetailInner.origin = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedOperationDetailInner.innerProperties = OperationProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationDetailInner;
+ });
+ }
}
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/OperationProperties.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/OperationProperties.java
index 44e669bbc6ac..5dd4b2610ee5 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/OperationProperties.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/OperationProperties.java
@@ -5,25 +5,32 @@
package com.azure.resourcemanager.maps.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.maps.models.ServiceSpecification;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
-/** Properties of operation, include metric specifications. */
+/**
+ * Properties of operation, include metric specifications.
+ */
@Fluent
-public final class OperationProperties {
+public final class OperationProperties implements JsonSerializable {
/*
* One property of operation, include metric specifications.
*/
- @JsonProperty(value = "serviceSpecification")
private ServiceSpecification serviceSpecification;
- /** Creates an instance of OperationProperties class. */
+ /**
+ * Creates an instance of OperationProperties class.
+ */
public OperationProperties() {
}
/**
* Get the serviceSpecification property: One property of operation, include metric specifications.
- *
+ *
* @return the serviceSpecification value.
*/
public ServiceSpecification serviceSpecification() {
@@ -32,7 +39,7 @@ public ServiceSpecification serviceSpecification() {
/**
* Set the serviceSpecification property: One property of operation, include metric specifications.
- *
+ *
* @param serviceSpecification the serviceSpecification value to set.
* @return the OperationProperties object itself.
*/
@@ -43,7 +50,7 @@ public OperationProperties withServiceSpecification(ServiceSpecification service
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -51,4 +58,40 @@ public void validate() {
serviceSpecification().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("serviceSpecification", this.serviceSpecification);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationProperties if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the OperationProperties.
+ */
+ public static OperationProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationProperties deserializedOperationProperties = new OperationProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("serviceSpecification".equals(fieldName)) {
+ deserializedOperationProperties.serviceSpecification = ServiceSpecification.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationProperties;
+ });
+ }
}
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/package-info.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/package-info.java
index 39562128a8d4..3eba93c76259 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/models/package-info.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/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 AzureMapsManagementClient. Azure Maps. */
+/**
+ * Package containing the inner data models for AzureMapsManagementClient.
+ * Azure Maps.
+ */
package com.azure.resourcemanager.maps.fluent.models;
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/package-info.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/package-info.java
index fa3d0cfe03ff..343c3b383b75 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/fluent/package-info.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/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 AzureMapsManagementClient. Azure Maps. */
+/**
+ * Package containing the service clients for AzureMapsManagementClient.
+ * Azure Maps.
+ */
package com.azure.resourcemanager.maps.fluent;
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/AccountsClientImpl.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/AccountsClientImpl.java
index 1c7df5bec573..291f8ccdff49 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/AccountsClientImpl.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/AccountsClientImpl.java
@@ -40,17 +40,23 @@
import com.azure.resourcemanager.maps.models.MapsKeySpecification;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in AccountsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in AccountsClient.
+ */
public final class AccountsClientImpl implements AccountsClient {
- /** The proxy service used to perform REST calls. */
+ /**
+ * The proxy service used to perform REST calls.
+ */
private final AccountsService service;
- /** The service client containing this operation class. */
+ /**
+ * The service client containing this operation class.
+ */
private final AzureMapsManagementClientImpl client;
/**
* Initializes an instance of AccountsClientImpl.
- *
+ *
* @param client the instance of the service client containing this operation class.
*/
AccountsClientImpl(AzureMapsManagementClientImpl client) {
@@ -168,7 +174,7 @@ Mono> listBySubscriptionNext(
/**
* Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccount The new or updated parameters for the Maps Account.
@@ -176,7 +182,7 @@ Mono> listBySubscriptionNext(
* @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 an Azure resource which represents access to a suite of Maps REST APIs along with {@link Response} on
- * successful completion of {@link Mono}.
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
@@ -210,7 +216,7 @@ private Mono> createOrUpdateWithResponseAsync(String
/**
* Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccount The new or updated parameters for the Maps Account.
@@ -219,7 +225,7 @@ private Mono> createOrUpdateWithResponseAsync(String
* @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 an Azure resource which represents access to a suite of Maps REST APIs along with {@link Response} on
- * successful completion of {@link Mono}.
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
@@ -252,15 +258,15 @@ private Mono> createOrUpdateWithResponseAsync(String
/**
* Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccount The new or updated parameters for the Maps Account.
* @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 an Azure resource which represents access to a suite of Maps REST APIs on successful completion of {@link
- * Mono}.
+ * @return an Azure resource which represents access to a suite of Maps REST APIs on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(String resourceGroupName, String accountName,
@@ -271,7 +277,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, Str
/**
* Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccount The new or updated parameters for the Maps Account.
@@ -289,7 +295,7 @@ public Response createOrUpdateWithResponse(String resourceGrou
/**
* Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccount The new or updated parameters for the Maps Account.
@@ -306,7 +312,7 @@ public MapsAccountInner createOrUpdate(String resourceGroupName, String accountN
/**
* Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags,
* Properties.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccountUpdateParameters The updated parameters for the Maps Account.
@@ -314,7 +320,7 @@ public MapsAccountInner createOrUpdate(String resourceGroupName, String accountN
* @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 an Azure resource which represents access to a suite of Maps REST APIs along with {@link Response} on
- * successful completion of {@link Mono}.
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(String resourceGroupName, String accountName,
@@ -351,7 +357,7 @@ private Mono> updateWithResponseAsync(String resource
/**
* Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags,
* Properties.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccountUpdateParameters The updated parameters for the Maps Account.
@@ -360,7 +366,7 @@ private Mono> updateWithResponseAsync(String resource
* @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 an Azure resource which represents access to a suite of Maps REST APIs along with {@link Response} on
- * successful completion of {@link Mono}.
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(String resourceGroupName, String accountName,
@@ -395,15 +401,15 @@ private Mono> updateWithResponseAsync(String resource
/**
* Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags,
* Properties.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccountUpdateParameters The updated parameters for the Maps Account.
* @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 an Azure resource which represents access to a suite of Maps REST APIs on successful completion of {@link
- * Mono}.
+ * @return an Azure resource which represents access to a suite of Maps REST APIs on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(String resourceGroupName, String accountName,
@@ -415,7 +421,7 @@ private Mono updateAsync(String resourceGroupName, String acco
/**
* Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags,
* Properties.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccountUpdateParameters The updated parameters for the Maps Account.
@@ -434,7 +440,7 @@ public Response updateWithResponse(String resourceGroupName, S
/**
* Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags,
* Properties.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccountUpdateParameters The updated parameters for the Maps Account.
@@ -451,7 +457,7 @@ public MapsAccountInner update(String resourceGroupName, String accountName,
/**
* Delete a Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -485,7 +491,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
/**
* Delete a Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param context The context to associate with this operation.
@@ -520,7 +526,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
/**
* Delete a Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -535,7 +541,7 @@ private Mono deleteAsync(String resourceGroupName, String accountName) {
/**
* Delete a Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param context The context to associate with this operation.
@@ -551,7 +557,7 @@ public Response deleteWithResponse(String resourceGroupName, String accoun
/**
* Delete a Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -565,7 +571,7 @@ public void delete(String resourceGroupName, String accountName) {
/**
* Get a Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -600,7 +606,7 @@ private Mono> getByResourceGroupWithResponseAsync(Str
/**
* Get a Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param context The context to associate with this operation.
@@ -635,7 +641,7 @@ private Mono> getByResourceGroupWithResponseAsync(Str
/**
* Get a Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -651,7 +657,7 @@ private Mono getByResourceGroupAsync(String resourceGroupName,
/**
* Get a Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param context The context to associate with this operation.
@@ -668,7 +674,7 @@ public Response getByResourceGroupWithResponse(String resource
/**
* Get a Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -683,13 +689,13 @@ public MapsAccountInner getByResourceGroup(String resourceGroupName, String acco
/**
* Get all Maps Accounts in a Resource Group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Maps Accounts in a Resource Group along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
+ * @return all Maps Accounts in a Resource Group along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
@@ -716,14 +722,14 @@ private Mono> listByResourceGroupSinglePageAsync
/**
* Get all Maps Accounts in a 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.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Maps Accounts in a Resource Group along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
+ * @return all Maps Accounts in a Resource Group along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
@@ -751,7 +757,7 @@ private Mono> listByResourceGroupSinglePageAsync
/**
* Get all Maps Accounts in a Resource Group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -766,7 +772,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGrou
/**
* Get all Maps Accounts in a 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.
@@ -782,7 +788,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGrou
/**
* Get all Maps Accounts in a Resource Group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -796,7 +802,7 @@ public PagedIterable listByResourceGroup(String resourceGroupN
/**
* Get all Maps Accounts in a 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.
@@ -811,11 +817,11 @@ public PagedIterable listByResourceGroup(String resourceGroupN
/**
* Get all Maps Accounts in a Subscription.
- *
+ *
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Maps Accounts in a Subscription along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
+ * @return all Maps Accounts in a Subscription along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -838,13 +844,13 @@ private Mono> listSinglePageAsync() {
/**
* Get all Maps Accounts in a Subscription.
- *
+ *
* @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 all Maps Accounts in a Subscription along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
+ * @return all Maps Accounts in a Subscription along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -867,7 +873,7 @@ private Mono> listSinglePageAsync(Context contex
/**
* Get all Maps Accounts in a Subscription.
- *
+ *
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all Maps Accounts in a Subscription as paginated response with {@link PagedFlux}.
@@ -880,7 +886,7 @@ private PagedFlux listAsync() {
/**
* Get all Maps Accounts in a Subscription.
- *
+ *
* @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.
@@ -895,7 +901,7 @@ private PagedFlux listAsync(Context context) {
/**
* Get all Maps Accounts in a Subscription.
- *
+ *
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all Maps Accounts in a Subscription as paginated response with {@link PagedIterable}.
@@ -907,7 +913,7 @@ public PagedIterable list() {
/**
* Get all Maps Accounts in a Subscription.
- *
+ *
* @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.
@@ -922,11 +928,12 @@ public PagedIterable list(Context context) {
/**
* Create and list an account shared access signature token. Use this SAS token for authentication to Azure Maps
* REST APIs through various Azure Maps SDKs. As prerequisite to create a SAS Token.
- *
- * Prerequisites: 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the
- * account. 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed
- * Identity is placed.
- *
+ *
+ * Prerequisites:
+ * 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the account.
+ * 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed Identity is
+ * placed.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccountSasParameters The updated parameters for the Maps Account.
@@ -934,8 +941,8 @@ public PagedIterable list(Context context) {
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a new Sas token which can be used to access the Maps REST APIs and is controlled by the specified Managed
- * identity permissions on Azure (IAM) Role Based Access Control along with {@link Response} on successful
- * completion of {@link Mono}.
+ * identity permissions on Azure (IAM) Role Based Access Control along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSasWithResponseAsync(String resourceGroupName,
@@ -970,11 +977,12 @@ private Mono> listSasWithResponseAsync(String
/**
* Create and list an account shared access signature token. Use this SAS token for authentication to Azure Maps
* REST APIs through various Azure Maps SDKs. As prerequisite to create a SAS Token.
- *
- * Prerequisites: 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the
- * account. 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed
- * Identity is placed.
- *
+ *
+ * Prerequisites:
+ * 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the account.
+ * 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed Identity is
+ * placed.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccountSasParameters The updated parameters for the Maps Account.
@@ -983,8 +991,8 @@ private Mono> listSasWithResponseAsync(String
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a new Sas token which can be used to access the Maps REST APIs and is controlled by the specified Managed
- * identity permissions on Azure (IAM) Role Based Access Control along with {@link Response} on successful
- * completion of {@link Mono}.
+ * identity permissions on Azure (IAM) Role Based Access Control along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSasWithResponseAsync(String resourceGroupName,
@@ -1019,11 +1027,12 @@ private Mono> listSasWithResponseAsync(String
/**
* Create and list an account shared access signature token. Use this SAS token for authentication to Azure Maps
* REST APIs through various Azure Maps SDKs. As prerequisite to create a SAS Token.
- *
- * Prerequisites: 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the
- * account. 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed
- * Identity is placed.
- *
+ *
+ * Prerequisites:
+ * 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the account.
+ * 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed Identity is
+ * placed.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccountSasParameters The updated parameters for the Maps Account.
@@ -1031,7 +1040,7 @@ private Mono> listSasWithResponseAsync(String
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a new Sas token which can be used to access the Maps REST APIs and is controlled by the specified Managed
- * identity permissions on Azure (IAM) Role Based Access Control on successful completion of {@link Mono}.
+ * identity permissions on Azure (IAM) Role Based Access Control on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono listSasAsync(String resourceGroupName, String accountName,
@@ -1043,11 +1052,12 @@ private Mono listSasAsync(String resourceGroupName, St
/**
* Create and list an account shared access signature token. Use this SAS token for authentication to Azure Maps
* REST APIs through various Azure Maps SDKs. As prerequisite to create a SAS Token.
- *
- * Prerequisites: 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the
- * account. 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed
- * Identity is placed.
- *
+ *
+ * Prerequisites:
+ * 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the account.
+ * 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed Identity is
+ * placed.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccountSasParameters The updated parameters for the Maps Account.
@@ -1056,7 +1066,7 @@ private Mono listSasAsync(String resourceGroupName, St
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a new Sas token which can be used to access the Maps REST APIs and is controlled by the specified Managed
- * identity permissions on Azure (IAM) Role Based Access Control along with {@link Response}.
+ * identity permissions on Azure (IAM) Role Based Access Control along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response listSasWithResponse(String resourceGroupName, String accountName,
@@ -1067,11 +1077,12 @@ public Response listSasWithResponse(String resourceGro
/**
* Create and list an account shared access signature token. Use this SAS token for authentication to Azure Maps
* REST APIs through various Azure Maps SDKs. As prerequisite to create a SAS Token.
- *
- * Prerequisites: 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the
- * account. 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed
- * Identity is placed.
- *
+ *
+ * Prerequisites:
+ * 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the account.
+ * 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed Identity is
+ * placed.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param mapsAccountSasParameters The updated parameters for the Maps Account.
@@ -1079,7 +1090,7 @@ public Response listSasWithResponse(String resourceGro
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a new Sas token which can be used to access the Maps REST APIs and is controlled by the specified Managed
- * identity permissions on Azure (IAM) Role Based Access Control.
+ * identity permissions on Azure (IAM) Role Based Access Control.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public MapsAccountSasTokenInner listSas(String resourceGroupName, String accountName,
@@ -1090,7 +1101,7 @@ public MapsAccountSasTokenInner listSas(String resourceGroupName, String account
/**
* Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs.
* Only one key is needed at a time; two are given to provide seamless key regeneration.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1126,7 +1137,7 @@ private Mono> listKeysWithResponseAsync(String re
/**
* Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs.
* Only one key is needed at a time; two are given to provide seamless key regeneration.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param context The context to associate with this operation.
@@ -1162,7 +1173,7 @@ private Mono> listKeysWithResponseAsync(String re
/**
* Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs.
* Only one key is needed at a time; two are given to provide seamless key regeneration.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1179,7 +1190,7 @@ private Mono listKeysAsync(String resourceGroupName, Strin
/**
* Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs.
* Only one key is needed at a time; two are given to provide seamless key regeneration.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param context The context to associate with this operation.
@@ -1197,7 +1208,7 @@ public Response listKeysWithResponse(String resourceGroupN
/**
* Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs.
* Only one key is needed at a time; two are given to provide seamless key regeneration.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1213,7 +1224,7 @@ public MapsAccountKeysInner listKeys(String resourceGroupName, String accountNam
/**
* Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working
* immediately.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param keySpecification Which key to regenerate: primary or secondary.
@@ -1221,7 +1232,7 @@ public MapsAccountKeysInner listKeys(String resourceGroupName, String accountNam
* @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 set of keys which can be used to access the Maps REST APIs along with {@link Response} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> regenerateKeysWithResponseAsync(String resourceGroupName,
@@ -1257,7 +1268,7 @@ private Mono> regenerateKeysWithResponseAsync(Str
/**
* Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working
* immediately.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param keySpecification Which key to regenerate: primary or secondary.
@@ -1266,7 +1277,7 @@ private Mono> regenerateKeysWithResponseAsync(Str
* @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 set of keys which can be used to access the Maps REST APIs along with {@link Response} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> regenerateKeysWithResponseAsync(String resourceGroupName,
@@ -1301,7 +1312,7 @@ private Mono> regenerateKeysWithResponseAsync(Str
/**
* Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working
* immediately.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param keySpecification Which key to regenerate: primary or secondary.
@@ -1320,7 +1331,7 @@ private Mono regenerateKeysAsync(String resourceGroupName,
/**
* Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working
* immediately.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param keySpecification Which key to regenerate: primary or secondary.
@@ -1339,7 +1350,7 @@ public Response regenerateKeysWithResponse(String resource
/**
* Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working
* immediately.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param keySpecification Which key to regenerate: primary or secondary.
@@ -1356,9 +1367,8 @@ public MapsAccountKeysInner regenerateKeys(String resourceGroupName, String acco
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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.
@@ -1384,9 +1394,8 @@ private Mono> listByResourceGroupNextSinglePageA
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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.
@@ -1412,9 +1421,8 @@ private Mono> listByResourceGroupNextSinglePageA
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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.
@@ -1440,9 +1448,8 @@ private Mono> listBySubscriptionNextSinglePageAs
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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.
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/AccountsImpl.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/AccountsImpl.java
index 5037f572effe..e7ae421af8f1 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/AccountsImpl.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/AccountsImpl.java
@@ -64,22 +64,22 @@ public MapsAccount getByResourceGroup(String resourceGroupName, String accountNa
public PagedIterable listByResourceGroup(String resourceGroupName) {
PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
- return Utils.mapPage(inner, inner1 -> new MapsAccountImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new MapsAccountImpl(inner1, this.manager()));
}
public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context);
- return Utils.mapPage(inner, inner1 -> new MapsAccountImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new MapsAccountImpl(inner1, this.manager()));
}
public PagedIterable list() {
PagedIterable inner = this.serviceClient().list();
- return Utils.mapPage(inner, inner1 -> new MapsAccountImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new MapsAccountImpl(inner1, this.manager()));
}
public PagedIterable list(Context context) {
PagedIterable inner = this.serviceClient().list(context);
- return Utils.mapPage(inner, inner1 -> new MapsAccountImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new MapsAccountImpl(inner1, this.manager()));
}
public Response listSasWithResponse(String resourceGroupName, String accountName,
@@ -150,12 +150,12 @@ public MapsAccountKeys regenerateKeys(String resourceGroupName, String accountNa
}
public MapsAccount getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String accountName = Utils.getValueFromIdByName(id, "accounts");
+ String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts");
if (accountName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
@@ -164,12 +164,12 @@ public MapsAccount getById(String id) {
}
public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String accountName = Utils.getValueFromIdByName(id, "accounts");
+ String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts");
if (accountName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
@@ -178,12 +178,12 @@ public Response getByIdWithResponse(String id, Context context) {
}
public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String accountName = Utils.getValueFromIdByName(id, "accounts");
+ String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts");
if (accountName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
@@ -192,12 +192,12 @@ public void deleteById(String id) {
}
public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String accountName = Utils.getValueFromIdByName(id, "accounts");
+ String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts");
if (accountName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/AzureMapsManagementClientBuilder.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/AzureMapsManagementClientBuilder.java
index ef9ee6ae21f6..ab3b9a0b0f1f 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/AzureMapsManagementClientBuilder.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/AzureMapsManagementClientBuilder.java
@@ -14,7 +14,9 @@
import com.azure.core.util.serializer.SerializerAdapter;
import java.time.Duration;
-/** A builder for creating a new instance of the AzureMapsManagementClientImpl type. */
+/**
+ * A builder for creating a new instance of the AzureMapsManagementClientImpl type.
+ */
@ServiceClientBuilder(serviceClients = { AzureMapsManagementClientImpl.class })
public final class AzureMapsManagementClientBuilder {
/*
@@ -24,7 +26,7 @@ public final class AzureMapsManagementClientBuilder {
/**
* Sets The ID of the target subscription.
- *
+ *
* @param subscriptionId the subscriptionId value.
* @return the AzureMapsManagementClientBuilder.
*/
@@ -40,7 +42,7 @@ public AzureMapsManagementClientBuilder subscriptionId(String subscriptionId) {
/**
* Sets server parameter.
- *
+ *
* @param endpoint the endpoint value.
* @return the AzureMapsManagementClientBuilder.
*/
@@ -56,7 +58,7 @@ public AzureMapsManagementClientBuilder endpoint(String endpoint) {
/**
* Sets The environment to connect to.
- *
+ *
* @param environment the environment value.
* @return the AzureMapsManagementClientBuilder.
*/
@@ -72,7 +74,7 @@ public AzureMapsManagementClientBuilder environment(AzureEnvironment environment
/**
* Sets The HTTP pipeline to send requests through.
- *
+ *
* @param pipeline the pipeline value.
* @return the AzureMapsManagementClientBuilder.
*/
@@ -88,7 +90,7 @@ public AzureMapsManagementClientBuilder pipeline(HttpPipeline pipeline) {
/**
* Sets The default poll interval for long-running operation.
- *
+ *
* @param defaultPollInterval the defaultPollInterval value.
* @return the AzureMapsManagementClientBuilder.
*/
@@ -104,7 +106,7 @@ public AzureMapsManagementClientBuilder defaultPollInterval(Duration defaultPoll
/**
* Sets The serializer to serialize an object into a string.
- *
+ *
* @param serializerAdapter the serializerAdapter value.
* @return the AzureMapsManagementClientBuilder.
*/
@@ -115,7 +117,7 @@ public AzureMapsManagementClientBuilder serializerAdapter(SerializerAdapter seri
/**
* Builds an instance of AzureMapsManagementClientImpl with the provided parameters.
- *
+ *
* @return an instance of AzureMapsManagementClientImpl.
*/
public AzureMapsManagementClientImpl buildClient() {
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/AzureMapsManagementClientImpl.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/AzureMapsManagementClientImpl.java
index 914b508cd056..ec1ce296780e 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/AzureMapsManagementClientImpl.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/AzureMapsManagementClientImpl.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.maps.implementation;
import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaderName;
import com.azure.core.http.HttpHeaders;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpResponse;
@@ -35,111 +36,131 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** Initializes a new instance of the AzureMapsManagementClientImpl type. */
+/**
+ * Initializes a new instance of the AzureMapsManagementClientImpl type.
+ */
@ServiceClient(builder = AzureMapsManagementClientBuilder.class)
public final class AzureMapsManagementClientImpl implements AzureMapsManagementClient {
- /** 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 AccountsClient object to access its operations. */
+ /**
+ * The AccountsClient object to access its operations.
+ */
private final AccountsClient accounts;
/**
* Gets the AccountsClient object to access its operations.
- *
+ *
* @return the AccountsClient object.
*/
public AccountsClient getAccounts() {
return this.accounts;
}
- /** The MapsClient object to access its operations. */
+ /**
+ * The MapsClient object to access its operations.
+ */
private final MapsClient maps;
/**
* Gets the MapsClient object to access its operations.
- *
+ *
* @return the MapsClient object.
*/
public MapsClient getMaps() {
return this.maps;
}
- /** The CreatorsClient object to access its operations. */
+ /**
+ * The CreatorsClient object to access its operations.
+ */
private final CreatorsClient creators;
/**
* Gets the CreatorsClient object to access its operations.
- *
+ *
* @return the CreatorsClient object.
*/
public CreatorsClient getCreators() {
@@ -148,7 +169,7 @@ public CreatorsClient getCreators() {
/**
* Initializes an instance of AzureMapsManagementClient 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.
@@ -171,7 +192,7 @@ public CreatorsClient getCreators() {
/**
* Gets default client context.
- *
+ *
* @return the default client context.
*/
public Context getContext() {
@@ -180,7 +201,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.
*/
@@ -190,7 +211,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.
@@ -208,7 +229,7 @@ public PollerFlux, U> getLroResult(Mono type of poll result.
* @param type of final result.
@@ -271,7 +292,7 @@ public int getStatusCode() {
}
public String getHeaderValue(String s) {
- return httpHeaders.getValue(s);
+ return httpHeaders.getValue(HttpHeaderName.fromString(s));
}
public HttpHeaders getHeaders() {
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/CreatorImpl.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/CreatorImpl.java
index 7576908e57c4..ebb297d5531d 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/CreatorImpl.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/CreatorImpl.java
@@ -133,9 +133,9 @@ public Creator apply(Context context) {
CreatorImpl(CreatorInner innerObject, com.azure.resourcemanager.maps.AzureMapsManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.accountName = Utils.getValueFromIdByName(innerObject.id(), "accounts");
- this.creatorName = Utils.getValueFromIdByName(innerObject.id(), "creators");
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "accounts");
+ this.creatorName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "creators");
}
public Creator refresh() {
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/CreatorsClientImpl.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/CreatorsClientImpl.java
index 7542351801ea..7e5d78c8fd33 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/CreatorsClientImpl.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/CreatorsClientImpl.java
@@ -35,17 +35,23 @@
import com.azure.resourcemanager.maps.models.CreatorUpdateParameters;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in CreatorsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in CreatorsClient.
+ */
public final class CreatorsClientImpl implements CreatorsClient {
- /** The proxy service used to perform REST calls. */
+ /**
+ * The proxy service used to perform REST calls.
+ */
private final CreatorsService service;
- /** The service client containing this operation class. */
+ /**
+ * The service client containing this operation class.
+ */
private final AzureMapsManagementClientImpl client;
/**
* Initializes an instance of CreatorsClientImpl.
- *
+ *
* @param client the instance of the service client containing this operation class.
*/
CreatorsClientImpl(AzureMapsManagementClientImpl client) {
@@ -118,14 +124,14 @@ Mono> listByAccountNext(@PathParam(value = "nextLink", enc
/**
* Get all Creator instances for an Azure Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all Creator instances for an Azure Maps Account along with {@link PagedResponse} on successful completion
- * of {@link Mono}.
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByAccountSinglePageAsync(String resourceGroupName,
@@ -156,7 +162,7 @@ private Mono> listByAccountSinglePageAsync(String re
/**
* Get all Creator instances for an Azure Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param context The context to associate with this operation.
@@ -164,7 +170,7 @@ private Mono> listByAccountSinglePageAsync(String re
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all Creator instances for an Azure Maps Account along with {@link PagedResponse} on successful completion
- * of {@link Mono}.
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByAccountSinglePageAsync(String resourceGroupName, String accountName,
@@ -195,7 +201,7 @@ private Mono> listByAccountSinglePageAsync(String re
/**
* Get all Creator instances for an Azure Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -211,7 +217,7 @@ private PagedFlux listByAccountAsync(String resourceGroupName, Str
/**
* Get all Creator instances for an Azure Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param context The context to associate with this operation.
@@ -228,7 +234,7 @@ private PagedFlux listByAccountAsync(String resourceGroupName, Str
/**
* Get all Creator instances for an Azure Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -243,7 +249,7 @@ public PagedIterable listByAccount(String resourceGroupName, Strin
/**
* Get all Creator instances for an Azure Maps Account.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param context The context to associate with this operation.
@@ -260,7 +266,7 @@ public PagedIterable listByAccount(String resourceGroupName, Strin
/**
* Create or update a Maps Creator resource. Creator resource will manage Azure resources required to populate a
* custom set of mapping data. It requires an account to exist before it can be created.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -269,7 +275,7 @@ public PagedIterable listByAccount(String resourceGroupName, Strin
* @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 an Azure resource which represents Maps Creator product and provides ability to manage private location
- * data along with {@link Response} on successful completion of {@link Mono}.
+ * data along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String accountName,
@@ -309,7 +315,7 @@ private Mono> createOrUpdateWithResponseAsync(String reso
/**
* Create or update a Maps Creator resource. Creator resource will manage Azure resources required to populate a
* custom set of mapping data. It requires an account to exist before it can be created.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -319,7 +325,7 @@ private Mono> createOrUpdateWithResponseAsync(String reso
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an Azure resource which represents Maps Creator product and provides ability to manage private location
- * data along with {@link Response} on successful completion of {@link Mono}.
+ * data along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String accountName,
@@ -358,7 +364,7 @@ private Mono> createOrUpdateWithResponseAsync(String reso
/**
* Create or update a Maps Creator resource. Creator resource will manage Azure resources required to populate a
* custom set of mapping data. It requires an account to exist before it can be created.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -367,7 +373,7 @@ private Mono> createOrUpdateWithResponseAsync(String reso
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an Azure resource which represents Maps Creator product and provides ability to manage private location
- * data on successful completion of {@link Mono}.
+ * data on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(String resourceGroupName, String accountName, String creatorName,
@@ -379,7 +385,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, String
/**
* Create or update a Maps Creator resource. Creator resource will manage Azure resources required to populate a
* custom set of mapping data. It requires an account to exist before it can be created.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -389,7 +395,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, String
* @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 an Azure resource which represents Maps Creator product and provides ability to manage private location
- * data along with {@link Response}.
+ * data along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response createOrUpdateWithResponse(String resourceGroupName, String accountName,
@@ -401,7 +407,7 @@ public Response createOrUpdateWithResponse(String resourceGroupNam
/**
* Create or update a Maps Creator resource. Creator resource will manage Azure resources required to populate a
* custom set of mapping data. It requires an account to exist before it can be created.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -410,7 +416,7 @@ public Response createOrUpdateWithResponse(String resourceGroupNam
* @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 an Azure resource which represents Maps Creator product and provides ability to manage private location
- * data.
+ * data.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public CreatorInner createOrUpdate(String resourceGroupName, String accountName, String creatorName,
@@ -421,7 +427,7 @@ public CreatorInner createOrUpdate(String resourceGroupName, String accountName,
/**
* Updates the Maps Creator resource. Only a subset of the parameters may be updated after creation, such as Tags.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -430,7 +436,7 @@ public CreatorInner createOrUpdate(String resourceGroupName, String accountName,
* @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 an Azure resource which represents Maps Creator product and provides ability to manage private location
- * data along with {@link Response} on successful completion of {@link Mono}.
+ * data along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(String resourceGroupName, String accountName,
@@ -469,7 +475,7 @@ private Mono> updateWithResponseAsync(String resourceGrou
/**
* Updates the Maps Creator resource. Only a subset of the parameters may be updated after creation, such as Tags.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -479,7 +485,7 @@ private Mono> updateWithResponseAsync(String resourceGrou
* @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 an Azure resource which represents Maps Creator product and provides ability to manage private location
- * data along with {@link Response} on successful completion of {@link Mono}.
+ * data along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(String resourceGroupName, String accountName,
@@ -516,7 +522,7 @@ private Mono> updateWithResponseAsync(String resourceGrou
/**
* Updates the Maps Creator resource. Only a subset of the parameters may be updated after creation, such as Tags.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -525,7 +531,7 @@ private Mono> updateWithResponseAsync(String resourceGrou
* @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 an Azure resource which represents Maps Creator product and provides ability to manage private location
- * data on successful completion of {@link Mono}.
+ * data on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(String resourceGroupName, String accountName, String creatorName,
@@ -536,7 +542,7 @@ private Mono updateAsync(String resourceGroupName, String accountN
/**
* Updates the Maps Creator resource. Only a subset of the parameters may be updated after creation, such as Tags.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -546,7 +552,7 @@ private Mono updateAsync(String resourceGroupName, String accountN
* @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 an Azure resource which represents Maps Creator product and provides ability to manage private location
- * data along with {@link Response}.
+ * data along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response updateWithResponse(String resourceGroupName, String accountName, String creatorName,
@@ -557,7 +563,7 @@ public Response updateWithResponse(String resourceGroupName, Strin
/**
* Updates the Maps Creator resource. Only a subset of the parameters may be updated after creation, such as Tags.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -566,7 +572,7 @@ public Response updateWithResponse(String resourceGroupName, Strin
* @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 an Azure resource which represents Maps Creator product and provides ability to manage private location
- * data.
+ * data.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public CreatorInner update(String resourceGroupName, String accountName, String creatorName,
@@ -577,7 +583,7 @@ public CreatorInner update(String resourceGroupName, String accountName, String
/**
* Delete a Maps Creator resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -616,7 +622,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
/**
* Delete a Maps Creator resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -655,7 +661,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
/**
* Delete a Maps Creator resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -671,7 +677,7 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str
/**
* Delete a Maps Creator resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -689,7 +695,7 @@ public Response deleteWithResponse(String resourceGroupName, String accoun
/**
* Delete a Maps Creator resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -704,7 +710,7 @@ public void delete(String resourceGroupName, String accountName, String creatorN
/**
* Get a Maps Creator resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -743,7 +749,7 @@ private Mono> getWithResponseAsync(String resourceGroupNa
/**
* Get a Maps Creator resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -782,7 +788,7 @@ private Mono> getWithResponseAsync(String resourceGroupNa
/**
* Get a Maps Creator resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -799,7 +805,7 @@ private Mono getAsync(String resourceGroupName, String accountName
/**
* Get a Maps Creator resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -817,7 +823,7 @@ public Response getWithResponse(String resourceGroupName, String a
/**
* Get a Maps Creator resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of the Maps Account.
* @param creatorName The name of the Maps Creator instance.
@@ -833,9 +839,8 @@ public CreatorInner get(String resourceGroupName, String accountName, String cre
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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.
@@ -860,9 +865,8 @@ private Mono> listByAccountNextSinglePageAsync(Strin
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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.
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/CreatorsImpl.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/CreatorsImpl.java
index 4366db06858e..ed7d382cc599 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/CreatorsImpl.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/CreatorsImpl.java
@@ -28,12 +28,12 @@ public CreatorsImpl(CreatorsClient innerClient, com.azure.resourcemanager.maps.A
public PagedIterable listByAccount(String resourceGroupName, String accountName) {
PagedIterable inner = this.serviceClient().listByAccount(resourceGroupName, accountName);
- return Utils.mapPage(inner, inner1 -> new CreatorImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new CreatorImpl(inner1, this.manager()));
}
public PagedIterable listByAccount(String resourceGroupName, String accountName, Context context) {
PagedIterable inner = this.serviceClient().listByAccount(resourceGroupName, accountName, context);
- return Utils.mapPage(inner, inner1 -> new CreatorImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new CreatorImpl(inner1, this.manager()));
}
public Response deleteWithResponse(String resourceGroupName, String accountName, String creatorName,
@@ -67,17 +67,17 @@ public Creator get(String resourceGroupName, String accountName, String creatorN
}
public Creator getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String accountName = Utils.getValueFromIdByName(id, "accounts");
+ String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts");
if (accountName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
}
- String creatorName = Utils.getValueFromIdByName(id, "creators");
+ String creatorName = ResourceManagerUtils.getValueFromIdByName(id, "creators");
if (creatorName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'creators'.", id)));
@@ -86,17 +86,17 @@ public Creator getById(String id) {
}
public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String accountName = Utils.getValueFromIdByName(id, "accounts");
+ String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts");
if (accountName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
}
- String creatorName = Utils.getValueFromIdByName(id, "creators");
+ String creatorName = ResourceManagerUtils.getValueFromIdByName(id, "creators");
if (creatorName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'creators'.", id)));
@@ -105,17 +105,17 @@ public Response getByIdWithResponse(String id, Context context) {
}
public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String accountName = Utils.getValueFromIdByName(id, "accounts");
+ String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts");
if (accountName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
}
- String creatorName = Utils.getValueFromIdByName(id, "creators");
+ String creatorName = ResourceManagerUtils.getValueFromIdByName(id, "creators");
if (creatorName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'creators'.", id)));
@@ -124,17 +124,17 @@ public void deleteById(String id) {
}
public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
}
- String accountName = Utils.getValueFromIdByName(id, "accounts");
+ String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts");
if (accountName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
}
- String creatorName = Utils.getValueFromIdByName(id, "creators");
+ String creatorName = ResourceManagerUtils.getValueFromIdByName(id, "creators");
if (creatorName == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'creators'.", id)));
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/MapsAccountImpl.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/MapsAccountImpl.java
index 7b1cab36ddb7..dcdafd147b6c 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/MapsAccountImpl.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/MapsAccountImpl.java
@@ -153,8 +153,8 @@ public MapsAccount apply(Context context) {
MapsAccountImpl(MapsAccountInner innerObject, com.azure.resourcemanager.maps.AzureMapsManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.accountName = Utils.getValueFromIdByName(innerObject.id(), "accounts");
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "accounts");
}
public MapsAccount refresh() {
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/MapsClientImpl.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/MapsClientImpl.java
index 734c2932cc2d..5a479248f846 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/MapsClientImpl.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/MapsClientImpl.java
@@ -30,17 +30,23 @@
import com.azure.resourcemanager.maps.models.MapsOperations;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in MapsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in MapsClient.
+ */
public final class MapsClientImpl implements MapsClient {
- /** The proxy service used to perform REST calls. */
+ /**
+ * The proxy service used to perform REST calls.
+ */
private final MapsService service;
- /** The service client containing this operation class. */
+ /**
+ * The service client containing this operation class.
+ */
private final AzureMapsManagementClientImpl client;
/**
* Initializes an instance of MapsClientImpl.
- *
+ *
* @param client the instance of the service client containing this operation class.
*/
MapsClientImpl(AzureMapsManagementClientImpl client) {
@@ -89,11 +95,11 @@ Mono> listSubscriptionOperationsNext(
/**
* List operations available for the Maps Resource Provider.
- *
+ *
* @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 set of operations available for Maps along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listOperationsSinglePageAsync() {
@@ -111,13 +117,13 @@ private Mono> listOperationsSinglePageAsync(
/**
* List operations available for the Maps Resource Provider.
- *
+ *
* @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 set of operations available for Maps along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listOperationsSinglePageAsync(Context context) {
@@ -134,7 +140,7 @@ private Mono> listOperationsSinglePageAsync(
/**
* List operations available for the Maps Resource Provider.
- *
+ *
* @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 set of operations available for Maps as paginated response with {@link PagedFlux}.
@@ -147,7 +153,7 @@ private PagedFlux listOperationsAsync() {
/**
* List operations available for the Maps Resource Provider.
- *
+ *
* @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.
@@ -162,7 +168,7 @@ private PagedFlux listOperationsAsync(Context context) {
/**
* List operations available for the Maps Resource Provider.
- *
+ *
* @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 set of operations available for Maps as paginated response with {@link PagedIterable}.
@@ -174,7 +180,7 @@ public PagedIterable listOperations() {
/**
* List operations available for the Maps Resource Provider.
- *
+ *
* @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.
@@ -188,11 +194,11 @@ public PagedIterable listOperations(Context context) {
/**
* List operations available for the Maps Resource Provider.
- *
+ *
* @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 set of operations available for Maps along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -215,13 +221,13 @@ private Mono> listSinglePageAsync() {
/**
* List operations available for the Maps Resource Provider.
- *
+ *
* @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 set of operations available for Maps along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -244,7 +250,7 @@ private Mono> listSinglePageAsync(Context co
/**
* List operations available for the Maps Resource Provider.
- *
+ *
* @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 set of operations available for Maps as paginated response with {@link PagedFlux}.
@@ -257,7 +263,7 @@ private PagedFlux listAsync() {
/**
* List operations available for the Maps Resource Provider.
- *
+ *
* @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.
@@ -272,7 +278,7 @@ private PagedFlux listAsync(Context context) {
/**
* List operations available for the Maps Resource Provider.
- *
+ *
* @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 set of operations available for Maps as paginated response with {@link PagedIterable}.
@@ -284,7 +290,7 @@ public PagedIterable list() {
/**
* List operations available for the Maps Resource Provider.
- *
+ *
* @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.
@@ -298,14 +304,13 @@ public PagedIterable list(Context context) {
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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 set of operations available for Maps along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listOperationsNextSinglePageAsync(String nextLink) {
@@ -326,15 +331,14 @@ private Mono> listOperationsNextSinglePageAs
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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 set of operations available for Maps along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listOperationsNextSinglePageAsync(String nextLink,
@@ -355,14 +359,13 @@ private Mono> listOperationsNextSinglePageAs
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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 set of operations available for Maps along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSubscriptionOperationsNextSinglePageAsync(String nextLink) {
@@ -384,15 +387,14 @@ private Mono> listSubscriptionOperationsNext
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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 set of operations available for Maps along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSubscriptionOperationsNextSinglePageAsync(String nextLink,
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/MapsImpl.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/MapsImpl.java
index 168ced232d42..84632304cb8b 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/MapsImpl.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/MapsImpl.java
@@ -26,22 +26,22 @@ public MapsImpl(MapsClient innerClient, com.azure.resourcemanager.maps.AzureMaps
public PagedIterable listOperations() {
PagedIterable inner = this.serviceClient().listOperations();
- return Utils.mapPage(inner, inner1 -> new OperationDetailImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationDetailImpl(inner1, this.manager()));
}
public PagedIterable listOperations(Context context) {
PagedIterable inner = this.serviceClient().listOperations(context);
- return Utils.mapPage(inner, inner1 -> new OperationDetailImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationDetailImpl(inner1, this.manager()));
}
public PagedIterable list() {
PagedIterable inner = this.serviceClient().list();
- return Utils.mapPage(inner, inner1 -> new OperationDetailImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationDetailImpl(inner1, this.manager()));
}
public PagedIterable list(Context context) {
PagedIterable inner = this.serviceClient().list(context);
- return Utils.mapPage(inner, inner1 -> new OperationDetailImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationDetailImpl(inner1, this.manager()));
}
private MapsClient serviceClient() {
diff --git a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/Utils.java b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/ResourceManagerUtils.java
similarity index 88%
rename from sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/Utils.java
rename to sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/ResourceManagerUtils.java
index 7485a636e185..44fc5699e312 100644
--- a/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/Utils.java
+++ b/sdk/maps/azure-resourcemanager-maps/src/main/java/com/azure/resourcemanager/maps/implementation/ResourceManagerUtils.java
@@ -19,7 +19,10 @@
import java.util.stream.Stream;
import reactor.core.publisher.Flux;
-final class Utils {
+final class ResourceManagerUtils {
+ private ResourceManagerUtils() {
+ }
+
static String getValueFromIdByName(String id, String name) {
if (id == null) {
return null;
@@ -60,7 +63,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri
segments.add(idSegment);
idItrReverted.forEachRemaining(segments::add);
Collections.reverse(segments);
- if (segments.size() > 0 && segments.get(0).isEmpty()) {
+ if (!segments.isEmpty() && segments.get(0).isEmpty()) {
segments.remove(0);
}
return String.join("/", segments);
@@ -74,7 +77,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri
}
static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) {
- return new PagedIterableImpl(pageIterable, mapper);
+ return new PagedIterableImpl<>(pageIterable, mapper);
}
private static final class PagedIterableImpl extends PagedIterable {
@@ -124,30 +127,27 @@ public Stream> streamByPage(String continuationToken, int prefe
@Override
public Iterator iterator() {
- return new IteratorImpl(pagedIterable.iterator(), mapper);
+ return new IteratorImpl<>(pagedIterable.iterator(), mapper);
}
@Override
public Iterable> iterableByPage() {
- return new IterableImpl, PagedResponse>(pagedIterable.iterableByPage(), pageMapper);
+ return new IterableImpl<>(pagedIterable.iterableByPage(), pageMapper);
}
@Override
public Iterable> iterableByPage(String continuationToken) {
- return new IterableImpl, PagedResponse>(pagedIterable.iterableByPage(continuationToken),
- pageMapper);
+ return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken), pageMapper);
}
@Override
public Iterable> iterableByPage(int preferredPageSize) {
- return new IterableImpl, PagedResponse>(pagedIterable.iterableByPage(preferredPageSize),
- pageMapper);
+ return new IterableImpl<>(pagedIterable.iterableByPage(preferredPageSize), pageMapper);
}
@Override
public Iterable> iterableByPage(String continuationToken, int preferredPageSize) {
- return new IterableImpl, PagedResponse>(
- pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper);
+ return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper);
}
}
@@ -189,7 +189,7 @@ private IterableImpl(Iterable iterable, Function mapper) {
@Override
public Iterator iterator() {
- return new IteratorImpl