scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -136,6 +155,17 @@ public Configurable withPolicy(HttpPipelinePolicy policy) {
return this;
}
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
/**
* Sets the retry policy to the HTTP pipeline.
*
@@ -147,6 +177,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * 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.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -154,9 +197,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -178,7 +223,7 @@ public DataLakeStoreManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.datalakestore")
.append("/")
- .append("1.0.0-beta.1");
+ .append("1.0.0-beta.2");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -192,20 +237,38 @@ public DataLakeStoreManager authenticate(TokenCredential credential, AzureProfil
userAgentBuilder.append(" (auto-generated)");
}
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies
- .add(
- new BearerTokenAuthenticationPolicy(
- credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
- policies.addAll(this.policies);
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
@@ -217,7 +280,11 @@ public DataLakeStoreManager authenticate(TokenCredential credential, AzureProfil
}
}
- /** @return Resource collection API of Accounts. */
+ /**
+ * Gets the resource collection API of Accounts. It manages DataLakeStoreAccount.
+ *
+ * @return Resource collection API of Accounts.
+ */
public Accounts accounts() {
if (this.accounts == null) {
this.accounts = new AccountsImpl(clientObject.getAccounts(), this);
@@ -225,7 +292,11 @@ public Accounts accounts() {
return accounts;
}
- /** @return Resource collection API of FirewallRules. */
+ /**
+ * Gets the resource collection API of FirewallRules. It manages FirewallRule.
+ *
+ * @return Resource collection API of FirewallRules.
+ */
public FirewallRules firewallRules() {
if (this.firewallRules == null) {
this.firewallRules = new FirewallRulesImpl(clientObject.getFirewallRules(), this);
@@ -233,7 +304,11 @@ public FirewallRules firewallRules() {
return firewallRules;
}
- /** @return Resource collection API of VirtualNetworkRules. */
+ /**
+ * Gets the resource collection API of VirtualNetworkRules. It manages VirtualNetworkRule.
+ *
+ * @return Resource collection API of VirtualNetworkRules.
+ */
public VirtualNetworkRules virtualNetworkRules() {
if (this.virtualNetworkRules == null) {
this.virtualNetworkRules = new VirtualNetworkRulesImpl(clientObject.getVirtualNetworkRules(), this);
@@ -241,7 +316,11 @@ public VirtualNetworkRules virtualNetworkRules() {
return virtualNetworkRules;
}
- /** @return Resource collection API of TrustedIdProviders. */
+ /**
+ * Gets the resource collection API of TrustedIdProviders. It manages TrustedIdProvider.
+ *
+ * @return Resource collection API of TrustedIdProviders.
+ */
public TrustedIdProviders trustedIdProviders() {
if (this.trustedIdProviders == null) {
this.trustedIdProviders = new TrustedIdProvidersImpl(clientObject.getTrustedIdProviders(), this);
@@ -249,7 +328,11 @@ public TrustedIdProviders trustedIdProviders() {
return trustedIdProviders;
}
- /** @return Resource collection API of Operations. */
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
@@ -257,7 +340,11 @@ public Operations operations() {
return operations;
}
- /** @return Resource collection API of Locations. */
+ /**
+ * Gets the resource collection API of Locations.
+ *
+ * @return Resource collection API of Locations.
+ */
public Locations locations() {
if (this.locations == null) {
this.locations = new LocationsImpl(clientObject.getLocations(), this);
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/AccountsClient.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/AccountsClient.java
index ec08e4b5bd1cf..2d8b2cf199991 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/AccountsClient.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/AccountsClient.java
@@ -26,7 +26,7 @@ public interface AccountsClient {
*
* @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 data Lake Store account list information response.
+ * @return data Lake Store account list information response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -49,7 +49,7 @@ public interface AccountsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account list information response.
+ * @return data Lake Store account list information response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -63,7 +63,7 @@ PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account list information response.
+ * @return data Lake Store account list information response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -87,7 +87,7 @@ PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account list information response.
+ * @return data Lake Store account list information response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(
@@ -109,9 +109,9 @@ PagedIterable listByResourceGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account information.
+ * @return the {@link SyncPoller} for polling of data Lake Store account information.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DataLakeStoreAccountInner> beginCreate(
String resourceGroupName, String accountName, CreateDataLakeStoreAccountParameters parameters);
@@ -125,9 +125,9 @@ SyncPoller, DataLakeStoreAccountInner> beg
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account information.
+ * @return the {@link SyncPoller} for polling of data Lake Store account information.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DataLakeStoreAccountInner> beginCreate(
String resourceGroupName, String accountName, CreateDataLakeStoreAccountParameters parameters, Context context);
@@ -167,28 +167,28 @@ DataLakeStoreAccountInner create(
*
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified Data Lake Store account.
+ * @return the specified Data Lake Store account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DataLakeStoreAccountInner getByResourceGroup(String resourceGroupName, String accountName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String accountName, Context context);
/**
* Gets the specified Data Lake Store account.
*
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the specified Data Lake Store account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String accountName, Context context);
+ DataLakeStoreAccountInner getByResourceGroup(String resourceGroupName, String accountName);
/**
* Updates the specified Data Lake Store account information.
@@ -199,9 +199,9 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account information.
+ * @return the {@link SyncPoller} for polling of data Lake Store account information.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DataLakeStoreAccountInner> beginUpdate(
String resourceGroupName, String accountName, UpdateDataLakeStoreAccountParameters parameters);
@@ -215,9 +215,9 @@ SyncPoller, DataLakeStoreAccountInner> beg
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account information.
+ * @return the {@link SyncPoller} for polling of data Lake Store account information.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DataLakeStoreAccountInner> beginUpdate(
String resourceGroupName, String accountName, UpdateDataLakeStoreAccountParameters parameters, Context context);
@@ -260,9 +260,9 @@ DataLakeStoreAccountInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String accountName);
/**
@@ -274,9 +274,9 @@ DataLakeStoreAccountInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, Context context);
/**
@@ -309,52 +309,52 @@ DataLakeStoreAccountInner update(
*
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void enableKeyVault(String resourceGroupName, String accountName);
+ Response enableKeyVaultWithResponse(String resourceGroupName, String accountName, Context context);
/**
* Attempts to enable a user managed Key Vault for encryption of the specified Data Lake Store account.
*
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response enableKeyVaultWithResponse(String resourceGroupName, String accountName, Context context);
+ void enableKeyVault(String resourceGroupName, String accountName);
/**
* Checks whether the specified account name is available or taken.
*
* @param location The resource location without whitespace.
* @param parameters Parameters supplied to check the Data Lake Store account name availability.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account name availability result information.
+ * @return data Lake Store account name availability result information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- NameAvailabilityInformationInner checkNameAvailability(String location, CheckNameAvailabilityParameters parameters);
+ Response checkNameAvailabilityWithResponse(
+ String location, CheckNameAvailabilityParameters parameters, Context context);
/**
* Checks whether the specified account name is available or taken.
*
* @param location The resource location without whitespace.
* @param parameters Parameters supplied to check the Data Lake Store account name availability.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return data Lake Store account name availability result information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response checkNameAvailabilityWithResponse(
- String location, CheckNameAvailabilityParameters parameters, Context context);
+ NameAvailabilityInformationInner checkNameAvailability(String location, CheckNameAvailabilityParameters parameters);
}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/FirewallRulesClient.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/FirewallRulesClient.java
index c305c33e79bbc..8d3c8d84fa0b7 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/FirewallRulesClient.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/FirewallRulesClient.java
@@ -23,7 +23,7 @@ public interface FirewallRulesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store firewall rule list information.
+ * @return data Lake Store firewall rule list information as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByAccount(String resourceGroupName, String accountName);
@@ -37,7 +37,7 @@ public interface FirewallRulesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store firewall rule list information.
+ * @return data Lake Store firewall rule list information as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByAccount(String resourceGroupName, String accountName, Context context);
@@ -50,17 +50,19 @@ public interface FirewallRulesClient {
* @param accountName The name of the Data Lake Store account.
* @param firewallRuleName The name of the firewall rule to create or update.
* @param parameters Parameters supplied to create or update the firewall rule.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store firewall rule information.
+ * @return data Lake Store firewall rule information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FirewallRuleInner createOrUpdate(
+ Response createOrUpdateWithResponse(
String resourceGroupName,
String accountName,
String firewallRuleName,
- CreateOrUpdateFirewallRuleParameters parameters);
+ CreateOrUpdateFirewallRuleParameters parameters,
+ Context context);
/**
* Creates or updates the specified firewall rule. During update, the firewall rule with the specified name will be
@@ -70,19 +72,17 @@ FirewallRuleInner createOrUpdate(
* @param accountName The name of the Data Lake Store account.
* @param firewallRuleName The name of the firewall rule to create or update.
* @param parameters Parameters supplied to create or update the firewall rule.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return data Lake Store firewall rule information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
+ FirewallRuleInner createOrUpdate(
String resourceGroupName,
String accountName,
String firewallRuleName,
- CreateOrUpdateFirewallRuleParameters parameters,
- Context context);
+ CreateOrUpdateFirewallRuleParameters parameters);
/**
* Gets the specified Data Lake Store firewall rule.
@@ -90,13 +90,15 @@ Response createOrUpdateWithResponse(
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
* @param firewallRuleName The name of the firewall rule to retrieve.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified Data Lake Store firewall rule.
+ * @return the specified Data Lake Store firewall rule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FirewallRuleInner get(String resourceGroupName, String accountName, String firewallRuleName);
+ Response getWithResponse(
+ String resourceGroupName, String accountName, String firewallRuleName, Context context);
/**
* Gets the specified Data Lake Store firewall rule.
@@ -104,15 +106,13 @@ Response createOrUpdateWithResponse(
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
* @param firewallRuleName The name of the firewall rule to retrieve.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the specified Data Lake Store firewall rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String accountName, String firewallRuleName, Context context);
+ FirewallRuleInner get(String resourceGroupName, String accountName, String firewallRuleName);
/**
* Updates the specified firewall rule.
@@ -120,13 +120,20 @@ Response getWithResponse(
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
* @param firewallRuleName The name of the firewall rule to update.
+ * @param parameters Parameters supplied to update the firewall rule.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store firewall rule information.
+ * @return data Lake Store firewall rule information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FirewallRuleInner update(String resourceGroupName, String accountName, String firewallRuleName);
+ Response updateWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String firewallRuleName,
+ UpdateFirewallRuleParameters parameters,
+ Context context);
/**
* Updates the specified firewall rule.
@@ -134,20 +141,13 @@ Response getWithResponse(
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
* @param firewallRuleName The name of the firewall rule to update.
- * @param parameters Parameters supplied to update the firewall rule.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return data Lake Store firewall rule information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName,
- String accountName,
- String firewallRuleName,
- UpdateFirewallRuleParameters parameters,
- Context context);
+ FirewallRuleInner update(String resourceGroupName, String accountName, String firewallRuleName);
/**
* Deletes the specified firewall rule from the specified Data Lake Store account.
@@ -155,12 +155,15 @@ Response updateWithResponse(
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
* @param firewallRuleName The name of the firewall rule to delete.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String accountName, String firewallRuleName);
+ Response deleteWithResponse(
+ String resourceGroupName, String accountName, String firewallRuleName, Context context);
/**
* Deletes the specified firewall rule from the specified Data Lake Store account.
@@ -168,13 +171,10 @@ Response updateWithResponse(
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
* @param firewallRuleName The name of the firewall rule to delete.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName, String accountName, String firewallRuleName, Context context);
+ void delete(String resourceGroupName, String accountName, String firewallRuleName);
}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/LocationsClient.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/LocationsClient.java
index 9a5ce8d12fa81..c97df9a9eb4b7 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/LocationsClient.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/LocationsClient.java
@@ -18,26 +18,27 @@ public interface LocationsClient {
* Gets subscription-level properties and limits for Data Lake Store specified by resource location.
*
* @param location The resource location without whitespace.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return subscription-level properties and limits for Data Lake Store specified by resource location.
+ * @return subscription-level properties and limits for Data Lake Store specified by resource location along with
+ * {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CapabilityInformationInner getCapability(String location);
+ Response getCapabilityWithResponse(String location, Context context);
/**
* Gets subscription-level properties and limits for Data Lake Store specified by resource location.
*
* @param location The resource location without whitespace.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return subscription-level properties and limits for Data Lake Store specified by resource location.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getCapabilityWithResponse(String location, Context context);
+ CapabilityInformationInner getCapability(String location);
/**
* Gets the current usage count and the limit for the resources of the location under the subscription.
@@ -46,7 +47,8 @@ public interface LocationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current usage count and the limit for the resources of the location under the subscription.
+ * @return the current usage count and the limit for the resources of the location under the subscription as
+ * paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getUsage(String location);
@@ -59,7 +61,8 @@ public interface LocationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current usage count and the limit for the resources of the location under the subscription.
+ * @return the current usage count and the limit for the resources of the location under the subscription as
+ * paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getUsage(String location, Context context);
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/OperationsClient.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/OperationsClient.java
index 9bea2aa0b1cbe..d3fa5bbd90bb1 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/OperationsClient.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/OperationsClient.java
@@ -15,22 +15,22 @@ public interface OperationsClient {
/**
* Lists all of the available Data Lake Store REST API operations.
*
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of available operations for Data Lake Store.
+ * @return the list of available operations for Data Lake Store along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationListResultInner list();
+ Response listWithResponse(Context context);
/**
* Lists all of the available Data Lake Store REST API operations.
*
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of available operations for Data Lake Store.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(Context context);
+ OperationListResultInner list();
}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/TrustedIdProvidersClient.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/TrustedIdProvidersClient.java
index 053699721a726..2576b36da3534 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/TrustedIdProvidersClient.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/TrustedIdProvidersClient.java
@@ -23,7 +23,8 @@ public interface TrustedIdProvidersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store trusted identity provider list information.
+ * @return data Lake Store trusted identity provider list information as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByAccount(String resourceGroupName, String accountName);
@@ -37,7 +38,8 @@ public interface TrustedIdProvidersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store trusted identity provider list information.
+ * @return data Lake Store trusted identity provider list information as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByAccount(String resourceGroupName, String accountName, Context context);
@@ -51,17 +53,19 @@ public interface TrustedIdProvidersClient {
* @param trustedIdProviderName The name of the trusted identity provider. This is used for differentiation of
* providers in the account.
* @param parameters Parameters supplied to create or replace the trusted identity provider.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store trusted identity provider information.
+ * @return data Lake Store trusted identity provider information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- TrustedIdProviderInner createOrUpdate(
+ Response createOrUpdateWithResponse(
String resourceGroupName,
String accountName,
String trustedIdProviderName,
- CreateOrUpdateTrustedIdProviderParameters parameters);
+ CreateOrUpdateTrustedIdProviderParameters parameters,
+ Context context);
/**
* Creates or updates the specified trusted identity provider. During update, the trusted identity provider with the
@@ -72,19 +76,17 @@ TrustedIdProviderInner createOrUpdate(
* @param trustedIdProviderName The name of the trusted identity provider. This is used for differentiation of
* providers in the account.
* @param parameters Parameters supplied to create or replace the trusted identity provider.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return data Lake Store trusted identity provider information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
+ TrustedIdProviderInner createOrUpdate(
String resourceGroupName,
String accountName,
String trustedIdProviderName,
- CreateOrUpdateTrustedIdProviderParameters parameters,
- Context context);
+ CreateOrUpdateTrustedIdProviderParameters parameters);
/**
* Gets the specified Data Lake Store trusted identity provider.
@@ -92,13 +94,15 @@ Response createOrUpdateWithResponse(
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
* @param trustedIdProviderName The name of the trusted identity provider to retrieve.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified Data Lake Store trusted identity provider.
+ * @return the specified Data Lake Store trusted identity provider along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- TrustedIdProviderInner get(String resourceGroupName, String accountName, String trustedIdProviderName);
+ Response getWithResponse(
+ String resourceGroupName, String accountName, String trustedIdProviderName, Context context);
/**
* Gets the specified Data Lake Store trusted identity provider.
@@ -106,15 +110,13 @@ Response createOrUpdateWithResponse(
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
* @param trustedIdProviderName The name of the trusted identity provider to retrieve.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the specified Data Lake Store trusted identity provider.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String accountName, String trustedIdProviderName, Context context);
+ TrustedIdProviderInner get(String resourceGroupName, String accountName, String trustedIdProviderName);
/**
* Updates the specified trusted identity provider.
@@ -123,13 +125,20 @@ Response getWithResponse(
* @param accountName The name of the Data Lake Store account.
* @param trustedIdProviderName The name of the trusted identity provider. This is used for differentiation of
* providers in the account.
+ * @param parameters Parameters supplied to update the trusted identity provider.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store trusted identity provider information.
+ * @return data Lake Store trusted identity provider information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- TrustedIdProviderInner update(String resourceGroupName, String accountName, String trustedIdProviderName);
+ Response updateWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String trustedIdProviderName,
+ UpdateTrustedIdProviderParameters parameters,
+ Context context);
/**
* Updates the specified trusted identity provider.
@@ -138,20 +147,13 @@ Response getWithResponse(
* @param accountName The name of the Data Lake Store account.
* @param trustedIdProviderName The name of the trusted identity provider. This is used for differentiation of
* providers in the account.
- * @param parameters Parameters supplied to update the trusted identity provider.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return data Lake Store trusted identity provider information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName,
- String accountName,
- String trustedIdProviderName,
- UpdateTrustedIdProviderParameters parameters,
- Context context);
+ TrustedIdProviderInner update(String resourceGroupName, String accountName, String trustedIdProviderName);
/**
* Deletes the specified trusted identity provider from the specified Data Lake Store account.
@@ -159,12 +161,15 @@ Response updateWithResponse(
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
* @param trustedIdProviderName The name of the trusted identity provider to delete.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String accountName, String trustedIdProviderName);
+ Response deleteWithResponse(
+ String resourceGroupName, String accountName, String trustedIdProviderName, Context context);
/**
* Deletes the specified trusted identity provider from the specified Data Lake Store account.
@@ -172,13 +177,10 @@ Response updateWithResponse(
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
* @param trustedIdProviderName The name of the trusted identity provider to delete.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName, String accountName, String trustedIdProviderName, Context context);
+ void delete(String resourceGroupName, String accountName, String trustedIdProviderName);
}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/VirtualNetworkRulesClient.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/VirtualNetworkRulesClient.java
index e6c92f4ae20db..58aad33637fb3 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/VirtualNetworkRulesClient.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/VirtualNetworkRulesClient.java
@@ -23,7 +23,7 @@ public interface VirtualNetworkRulesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store virtual network rule list information.
+ * @return data Lake Store virtual network rule list information as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByAccount(String resourceGroupName, String accountName);
@@ -37,7 +37,7 @@ public interface VirtualNetworkRulesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store virtual network rule list information.
+ * @return data Lake Store virtual network rule list information as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByAccount(String resourceGroupName, String accountName, Context context);
@@ -50,17 +50,19 @@ public interface VirtualNetworkRulesClient {
* @param accountName The name of the Data Lake Store account.
* @param virtualNetworkRuleName The name of the virtual network rule to create or update.
* @param parameters Parameters supplied to create or update the virtual network rule.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store virtual network rule information.
+ * @return data Lake Store virtual network rule information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- VirtualNetworkRuleInner createOrUpdate(
+ Response createOrUpdateWithResponse(
String resourceGroupName,
String accountName,
String virtualNetworkRuleName,
- CreateOrUpdateVirtualNetworkRuleParameters parameters);
+ CreateOrUpdateVirtualNetworkRuleParameters parameters,
+ Context context);
/**
* Creates or updates the specified virtual network rule. During update, the virtual network rule with the specified
@@ -70,19 +72,17 @@ VirtualNetworkRuleInner createOrUpdate(
* @param accountName The name of the Data Lake Store account.
* @param virtualNetworkRuleName The name of the virtual network rule to create or update.
* @param parameters Parameters supplied to create or update the virtual network rule.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return data Lake Store virtual network rule information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
+ VirtualNetworkRuleInner createOrUpdate(
String resourceGroupName,
String accountName,
String virtualNetworkRuleName,
- CreateOrUpdateVirtualNetworkRuleParameters parameters,
- Context context);
+ CreateOrUpdateVirtualNetworkRuleParameters parameters);
/**
* Gets the specified Data Lake Store virtual network rule.
@@ -90,13 +90,15 @@ Response createOrUpdateWithResponse(
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
* @param virtualNetworkRuleName The name of the virtual network rule to retrieve.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified Data Lake Store virtual network rule.
+ * @return the specified Data Lake Store virtual network rule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- VirtualNetworkRuleInner get(String resourceGroupName, String accountName, String virtualNetworkRuleName);
+ Response getWithResponse(
+ String resourceGroupName, String accountName, String virtualNetworkRuleName, Context context);
/**
* Gets the specified Data Lake Store virtual network rule.
@@ -104,15 +106,13 @@ Response createOrUpdateWithResponse(
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
* @param virtualNetworkRuleName The name of the virtual network rule to retrieve.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the specified Data Lake Store virtual network rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String accountName, String virtualNetworkRuleName, Context context);
+ VirtualNetworkRuleInner get(String resourceGroupName, String accountName, String virtualNetworkRuleName);
/**
* Updates the specified virtual network rule.
@@ -120,13 +120,20 @@ Response getWithResponse(
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
* @param virtualNetworkRuleName The name of the virtual network rule to update.
+ * @param parameters Parameters supplied to update the virtual network rule.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store virtual network rule information.
+ * @return data Lake Store virtual network rule information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- VirtualNetworkRuleInner update(String resourceGroupName, String accountName, String virtualNetworkRuleName);
+ Response updateWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String virtualNetworkRuleName,
+ UpdateVirtualNetworkRuleParameters parameters,
+ Context context);
/**
* Updates the specified virtual network rule.
@@ -134,20 +141,13 @@ Response getWithResponse(
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
* @param virtualNetworkRuleName The name of the virtual network rule to update.
- * @param parameters Parameters supplied to update the virtual network rule.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return data Lake Store virtual network rule information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName,
- String accountName,
- String virtualNetworkRuleName,
- UpdateVirtualNetworkRuleParameters parameters,
- Context context);
+ VirtualNetworkRuleInner update(String resourceGroupName, String accountName, String virtualNetworkRuleName);
/**
* Deletes the specified virtual network rule from the specified Data Lake Store account.
@@ -155,12 +155,15 @@ Response updateWithResponse(
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
* @param virtualNetworkRuleName The name of the virtual network rule to delete.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String accountName, String virtualNetworkRuleName);
+ Response deleteWithResponse(
+ String resourceGroupName, String accountName, String virtualNetworkRuleName, Context context);
/**
* Deletes the specified virtual network rule from the specified Data Lake Store account.
@@ -168,13 +171,10 @@ Response updateWithResponse(
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
* @param virtualNetworkRuleName The name of the virtual network rule to delete.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName, String accountName, String virtualNetworkRuleName, Context context);
+ void delete(String resourceGroupName, String accountName, String virtualNetworkRuleName);
}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/CapabilityInformationInner.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/CapabilityInformationInner.java
index 82adf704a57ff..ba41edede7580 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/CapabilityInformationInner.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/CapabilityInformationInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.datalakestore.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datalakestore.models.SubscriptionState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.UUID;
/** Subscription-level properties and limits for Data Lake Store. */
@Immutable
public final class CapabilityInformationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CapabilityInformationInner.class);
-
/*
* The subscription credentials that uniquely identifies the subscription.
*/
@@ -46,6 +42,10 @@ public final class CapabilityInformationInner {
@JsonProperty(value = "migrationState", access = JsonProperty.Access.WRITE_ONLY)
private Boolean migrationState;
+ /** Creates an instance of CapabilityInformationInner class. */
+ public CapabilityInformationInner() {
+ }
+
/**
* Get the subscriptionId property: The subscription credentials that uniquely identifies the subscription.
*
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/CreateDataLakeStoreAccountProperties.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/CreateDataLakeStoreAccountProperties.java
new file mode 100644
index 0000000000000..2f61f49d7ff42
--- /dev/null
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/CreateDataLakeStoreAccountProperties.java
@@ -0,0 +1,322 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakestore.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.datalakestore.models.CreateFirewallRuleWithAccountParameters;
+import com.azure.resourcemanager.datalakestore.models.CreateTrustedIdProviderWithAccountParameters;
+import com.azure.resourcemanager.datalakestore.models.CreateVirtualNetworkRuleWithAccountParameters;
+import com.azure.resourcemanager.datalakestore.models.EncryptionConfig;
+import com.azure.resourcemanager.datalakestore.models.EncryptionState;
+import com.azure.resourcemanager.datalakestore.models.FirewallAllowAzureIpsState;
+import com.azure.resourcemanager.datalakestore.models.FirewallState;
+import com.azure.resourcemanager.datalakestore.models.TierType;
+import com.azure.resourcemanager.datalakestore.models.TrustedIdProviderState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The CreateDataLakeStoreAccountProperties model. */
+@Fluent
+public final class CreateDataLakeStoreAccountProperties {
+ /*
+ * The default owner group for all new folders and files created in the Data Lake Store account.
+ */
+ @JsonProperty(value = "defaultGroup")
+ private String defaultGroup;
+
+ /*
+ * The Key Vault encryption configuration.
+ */
+ @JsonProperty(value = "encryptionConfig")
+ private EncryptionConfig encryptionConfig;
+
+ /*
+ * The current state of encryption for this Data Lake Store account.
+ */
+ @JsonProperty(value = "encryptionState")
+ private EncryptionState encryptionState;
+
+ /*
+ * The list of firewall rules associated with this Data Lake Store account.
+ */
+ @JsonProperty(value = "firewallRules")
+ private List firewallRules;
+
+ /*
+ * The list of virtual network rules associated with this Data Lake Store account.
+ */
+ @JsonProperty(value = "virtualNetworkRules")
+ private List virtualNetworkRules;
+
+ /*
+ * The current state of the IP address firewall for this Data Lake Store account.
+ */
+ @JsonProperty(value = "firewallState")
+ private FirewallState firewallState;
+
+ /*
+ * The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall
+ * is disabled, this is not enforced.
+ */
+ @JsonProperty(value = "firewallAllowAzureIps")
+ private FirewallAllowAzureIpsState firewallAllowAzureIps;
+
+ /*
+ * The list of trusted identity providers associated with this Data Lake Store account.
+ */
+ @JsonProperty(value = "trustedIdProviders")
+ private List trustedIdProviders;
+
+ /*
+ * The current state of the trusted identity provider feature for this Data Lake Store account.
+ */
+ @JsonProperty(value = "trustedIdProviderState")
+ private TrustedIdProviderState trustedIdProviderState;
+
+ /*
+ * The commitment tier to use for next month.
+ */
+ @JsonProperty(value = "newTier")
+ private TierType newTier;
+
+ /** Creates an instance of CreateDataLakeStoreAccountProperties class. */
+ public CreateDataLakeStoreAccountProperties() {
+ }
+
+ /**
+ * Get the defaultGroup property: The default owner group for all new folders and files created in the Data Lake
+ * Store account.
+ *
+ * @return the defaultGroup value.
+ */
+ public String defaultGroup() {
+ return this.defaultGroup;
+ }
+
+ /**
+ * Set the defaultGroup property: The default owner group for all new folders and files created in the Data Lake
+ * Store account.
+ *
+ * @param defaultGroup the defaultGroup value to set.
+ * @return the CreateDataLakeStoreAccountProperties object itself.
+ */
+ public CreateDataLakeStoreAccountProperties withDefaultGroup(String defaultGroup) {
+ this.defaultGroup = defaultGroup;
+ return this;
+ }
+
+ /**
+ * Get the encryptionConfig property: The Key Vault encryption configuration.
+ *
+ * @return the encryptionConfig value.
+ */
+ public EncryptionConfig encryptionConfig() {
+ return this.encryptionConfig;
+ }
+
+ /**
+ * Set the encryptionConfig property: The Key Vault encryption configuration.
+ *
+ * @param encryptionConfig the encryptionConfig value to set.
+ * @return the CreateDataLakeStoreAccountProperties object itself.
+ */
+ public CreateDataLakeStoreAccountProperties withEncryptionConfig(EncryptionConfig encryptionConfig) {
+ this.encryptionConfig = encryptionConfig;
+ return this;
+ }
+
+ /**
+ * Get the encryptionState property: The current state of encryption for this Data Lake Store account.
+ *
+ * @return the encryptionState value.
+ */
+ public EncryptionState encryptionState() {
+ return this.encryptionState;
+ }
+
+ /**
+ * Set the encryptionState property: The current state of encryption for this Data Lake Store account.
+ *
+ * @param encryptionState the encryptionState value to set.
+ * @return the CreateDataLakeStoreAccountProperties object itself.
+ */
+ public CreateDataLakeStoreAccountProperties withEncryptionState(EncryptionState encryptionState) {
+ this.encryptionState = encryptionState;
+ return this;
+ }
+
+ /**
+ * Get the firewallRules property: The list of firewall rules associated with this Data Lake Store account.
+ *
+ * @return the firewallRules value.
+ */
+ public List firewallRules() {
+ return this.firewallRules;
+ }
+
+ /**
+ * Set the firewallRules property: The list of firewall rules associated with this Data Lake Store account.
+ *
+ * @param firewallRules the firewallRules value to set.
+ * @return the CreateDataLakeStoreAccountProperties object itself.
+ */
+ public CreateDataLakeStoreAccountProperties withFirewallRules(
+ List firewallRules) {
+ this.firewallRules = firewallRules;
+ return this;
+ }
+
+ /**
+ * Get the virtualNetworkRules property: The list of virtual network rules associated with this Data Lake Store
+ * account.
+ *
+ * @return the virtualNetworkRules value.
+ */
+ public List virtualNetworkRules() {
+ return this.virtualNetworkRules;
+ }
+
+ /**
+ * Set the virtualNetworkRules property: The list of virtual network rules associated with this Data Lake Store
+ * account.
+ *
+ * @param virtualNetworkRules the virtualNetworkRules value to set.
+ * @return the CreateDataLakeStoreAccountProperties object itself.
+ */
+ public CreateDataLakeStoreAccountProperties withVirtualNetworkRules(
+ List virtualNetworkRules) {
+ this.virtualNetworkRules = virtualNetworkRules;
+ return this;
+ }
+
+ /**
+ * Get the firewallState property: The current state of the IP address firewall for this Data Lake Store account.
+ *
+ * @return the firewallState value.
+ */
+ public FirewallState firewallState() {
+ return this.firewallState;
+ }
+
+ /**
+ * Set the firewallState property: The current state of the IP address firewall for this Data Lake Store account.
+ *
+ * @param firewallState the firewallState value to set.
+ * @return the CreateDataLakeStoreAccountProperties object itself.
+ */
+ public CreateDataLakeStoreAccountProperties withFirewallState(FirewallState firewallState) {
+ this.firewallState = firewallState;
+ return this;
+ }
+
+ /**
+ * Get the firewallAllowAzureIps property: The current state of allowing or disallowing IPs originating within Azure
+ * through the firewall. If the firewall is disabled, this is not enforced.
+ *
+ * @return the firewallAllowAzureIps value.
+ */
+ public FirewallAllowAzureIpsState firewallAllowAzureIps() {
+ return this.firewallAllowAzureIps;
+ }
+
+ /**
+ * Set the firewallAllowAzureIps property: The current state of allowing or disallowing IPs originating within Azure
+ * through the firewall. If the firewall is disabled, this is not enforced.
+ *
+ * @param firewallAllowAzureIps the firewallAllowAzureIps value to set.
+ * @return the CreateDataLakeStoreAccountProperties object itself.
+ */
+ public CreateDataLakeStoreAccountProperties withFirewallAllowAzureIps(
+ FirewallAllowAzureIpsState firewallAllowAzureIps) {
+ this.firewallAllowAzureIps = firewallAllowAzureIps;
+ return this;
+ }
+
+ /**
+ * Get the trustedIdProviders property: The list of trusted identity providers associated with this Data Lake Store
+ * account.
+ *
+ * @return the trustedIdProviders value.
+ */
+ public List trustedIdProviders() {
+ return this.trustedIdProviders;
+ }
+
+ /**
+ * Set the trustedIdProviders property: The list of trusted identity providers associated with this Data Lake Store
+ * account.
+ *
+ * @param trustedIdProviders the trustedIdProviders value to set.
+ * @return the CreateDataLakeStoreAccountProperties object itself.
+ */
+ public CreateDataLakeStoreAccountProperties withTrustedIdProviders(
+ List trustedIdProviders) {
+ this.trustedIdProviders = trustedIdProviders;
+ return this;
+ }
+
+ /**
+ * Get the trustedIdProviderState property: The current state of the trusted identity provider feature for this Data
+ * Lake Store account.
+ *
+ * @return the trustedIdProviderState value.
+ */
+ public TrustedIdProviderState trustedIdProviderState() {
+ return this.trustedIdProviderState;
+ }
+
+ /**
+ * Set the trustedIdProviderState property: The current state of the trusted identity provider feature for this Data
+ * Lake Store account.
+ *
+ * @param trustedIdProviderState the trustedIdProviderState value to set.
+ * @return the CreateDataLakeStoreAccountProperties object itself.
+ */
+ public CreateDataLakeStoreAccountProperties withTrustedIdProviderState(
+ TrustedIdProviderState trustedIdProviderState) {
+ this.trustedIdProviderState = trustedIdProviderState;
+ return this;
+ }
+
+ /**
+ * Get the newTier property: The commitment tier to use for next month.
+ *
+ * @return the newTier value.
+ */
+ public TierType newTier() {
+ return this.newTier;
+ }
+
+ /**
+ * Set the newTier property: The commitment tier to use for next month.
+ *
+ * @param newTier the newTier value to set.
+ * @return the CreateDataLakeStoreAccountProperties object itself.
+ */
+ public CreateDataLakeStoreAccountProperties withNewTier(TierType newTier) {
+ this.newTier = newTier;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (encryptionConfig() != null) {
+ encryptionConfig().validate();
+ }
+ if (firewallRules() != null) {
+ firewallRules().forEach(e -> e.validate());
+ }
+ if (virtualNetworkRules() != null) {
+ virtualNetworkRules().forEach(e -> e.validate());
+ }
+ if (trustedIdProviders() != null) {
+ trustedIdProviders().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/CreateOrUpdateFirewallRuleProperties.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/CreateOrUpdateFirewallRuleProperties.java
new file mode 100644
index 0000000000000..345d939d58543
--- /dev/null
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/CreateOrUpdateFirewallRuleProperties.java
@@ -0,0 +1,97 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakestore.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The firewall rule properties to use when creating a new firewall rule. */
+@Fluent
+public final class CreateOrUpdateFirewallRuleProperties {
+ /*
+ * The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same
+ * protocol.
+ */
+ @JsonProperty(value = "startIpAddress", required = true)
+ private String startIpAddress;
+
+ /*
+ * The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same
+ * protocol.
+ */
+ @JsonProperty(value = "endIpAddress", required = true)
+ private String endIpAddress;
+
+ /** Creates an instance of CreateOrUpdateFirewallRuleProperties class. */
+ public CreateOrUpdateFirewallRuleProperties() {
+ }
+
+ /**
+ * Get the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6.
+ * Start and End should be in the same protocol.
+ *
+ * @return the startIpAddress value.
+ */
+ public String startIpAddress() {
+ return this.startIpAddress;
+ }
+
+ /**
+ * Set the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6.
+ * Start and End should be in the same protocol.
+ *
+ * @param startIpAddress the startIpAddress value to set.
+ * @return the CreateOrUpdateFirewallRuleProperties object itself.
+ */
+ public CreateOrUpdateFirewallRuleProperties withStartIpAddress(String startIpAddress) {
+ this.startIpAddress = startIpAddress;
+ return this;
+ }
+
+ /**
+ * Get the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start
+ * and End should be in the same protocol.
+ *
+ * @return the endIpAddress value.
+ */
+ public String endIpAddress() {
+ return this.endIpAddress;
+ }
+
+ /**
+ * Set the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start
+ * and End should be in the same protocol.
+ *
+ * @param endIpAddress the endIpAddress value to set.
+ * @return the CreateOrUpdateFirewallRuleProperties object itself.
+ */
+ public CreateOrUpdateFirewallRuleProperties withEndIpAddress(String endIpAddress) {
+ this.endIpAddress = endIpAddress;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (startIpAddress() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property startIpAddress in model CreateOrUpdateFirewallRuleProperties"));
+ }
+ if (endIpAddress() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property endIpAddress in model CreateOrUpdateFirewallRuleProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CreateOrUpdateFirewallRuleProperties.class);
+}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/CreateOrUpdateTrustedIdProviderProperties.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/CreateOrUpdateTrustedIdProviderProperties.java
new file mode 100644
index 0000000000000..664d4428defa6
--- /dev/null
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/CreateOrUpdateTrustedIdProviderProperties.java
@@ -0,0 +1,59 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakestore.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The trusted identity provider properties to use when creating a new trusted identity provider. */
+@Fluent
+public final class CreateOrUpdateTrustedIdProviderProperties {
+ /*
+ * The URL of this trusted identity provider.
+ */
+ @JsonProperty(value = "idProvider", required = true)
+ private String idProvider;
+
+ /** Creates an instance of CreateOrUpdateTrustedIdProviderProperties class. */
+ public CreateOrUpdateTrustedIdProviderProperties() {
+ }
+
+ /**
+ * Get the idProvider property: The URL of this trusted identity provider.
+ *
+ * @return the idProvider value.
+ */
+ public String idProvider() {
+ return this.idProvider;
+ }
+
+ /**
+ * Set the idProvider property: The URL of this trusted identity provider.
+ *
+ * @param idProvider the idProvider value to set.
+ * @return the CreateOrUpdateTrustedIdProviderProperties object itself.
+ */
+ public CreateOrUpdateTrustedIdProviderProperties withIdProvider(String idProvider) {
+ this.idProvider = idProvider;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (idProvider() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property idProvider in model CreateOrUpdateTrustedIdProviderProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CreateOrUpdateTrustedIdProviderProperties.class);
+}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/CreateOrUpdateVirtualNetworkRuleProperties.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/CreateOrUpdateVirtualNetworkRuleProperties.java
new file mode 100644
index 0000000000000..c14497d6b4581
--- /dev/null
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/CreateOrUpdateVirtualNetworkRuleProperties.java
@@ -0,0 +1,59 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakestore.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The virtual network rule properties to use when creating a new virtual network rule. */
+@Fluent
+public final class CreateOrUpdateVirtualNetworkRuleProperties {
+ /*
+ * The resource identifier for the subnet.
+ */
+ @JsonProperty(value = "subnetId", required = true)
+ private String subnetId;
+
+ /** Creates an instance of CreateOrUpdateVirtualNetworkRuleProperties class. */
+ public CreateOrUpdateVirtualNetworkRuleProperties() {
+ }
+
+ /**
+ * Get the subnetId property: The resource identifier for the subnet.
+ *
+ * @return the subnetId value.
+ */
+ public String subnetId() {
+ return this.subnetId;
+ }
+
+ /**
+ * Set the subnetId property: The resource identifier for the subnet.
+ *
+ * @param subnetId the subnetId value to set.
+ * @return the CreateOrUpdateVirtualNetworkRuleProperties object itself.
+ */
+ public CreateOrUpdateVirtualNetworkRuleProperties withSubnetId(String subnetId) {
+ this.subnetId = subnetId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (subnetId() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property subnetId in model CreateOrUpdateVirtualNetworkRuleProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(CreateOrUpdateVirtualNetworkRuleProperties.class);
+}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/DataLakeStoreAccountBasicInner.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/DataLakeStoreAccountBasicInner.java
index 3447ce14f6b4d..45ed7efda62c8 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/DataLakeStoreAccountBasicInner.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/DataLakeStoreAccountBasicInner.java
@@ -4,59 +4,50 @@
package com.azure.resourcemanager.datalakestore.fluent.models;
-import com.azure.core.annotation.Immutable;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datalakestore.models.DataLakeStoreAccountState;
import com.azure.resourcemanager.datalakestore.models.DataLakeStoreAccountStatus;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.Map;
import java.util.UUID;
/** Basic Data Lake Store account information, returned on list calls. */
-@JsonFlatten
-@Immutable
-public class DataLakeStoreAccountBasicInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeStoreAccountBasicInner.class);
-
- /*
- * The unique identifier associated with this Data Lake Store account.
- */
- @JsonProperty(value = "properties.accountId", access = JsonProperty.Access.WRITE_ONLY)
- private UUID accountId;
-
+@Fluent
+public final class DataLakeStoreAccountBasicInner extends Resource {
/*
- * The provisioning status of the Data Lake Store account.
+ * The basic Data Lake Store account properties.
*/
- @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private DataLakeStoreAccountStatus provisioningState;
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private DataLakeStoreAccountPropertiesBasic innerProperties;
- /*
- * The state of the Data Lake Store account.
- */
- @JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY)
- private DataLakeStoreAccountState state;
+ /** Creates an instance of DataLakeStoreAccountBasicInner class. */
+ public DataLakeStoreAccountBasicInner() {
+ }
- /*
- * The account creation time.
+ /**
+ * Get the innerProperties property: The basic Data Lake Store account properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.creationTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime creationTime;
+ private DataLakeStoreAccountPropertiesBasic innerProperties() {
+ return this.innerProperties;
+ }
- /*
- * The account last modified time.
- */
- @JsonProperty(value = "properties.lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastModifiedTime;
+ /** {@inheritDoc} */
+ @Override
+ public DataLakeStoreAccountBasicInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
- /*
- * The full CName endpoint for this account.
- */
- @JsonProperty(value = "properties.endpoint", access = JsonProperty.Access.WRITE_ONLY)
- private String endpoint;
+ /** {@inheritDoc} */
+ @Override
+ public DataLakeStoreAccountBasicInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
/**
* Get the accountId property: The unique identifier associated with this Data Lake Store account.
@@ -64,7 +55,7 @@ public class DataLakeStoreAccountBasicInner extends Resource {
* @return the accountId value.
*/
public UUID accountId() {
- return this.accountId;
+ return this.innerProperties() == null ? null : this.innerProperties().accountId();
}
/**
@@ -73,7 +64,7 @@ public UUID accountId() {
* @return the provisioningState value.
*/
public DataLakeStoreAccountStatus provisioningState() {
- return this.provisioningState;
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
/**
@@ -82,7 +73,7 @@ public DataLakeStoreAccountStatus provisioningState() {
* @return the state value.
*/
public DataLakeStoreAccountState state() {
- return this.state;
+ return this.innerProperties() == null ? null : this.innerProperties().state();
}
/**
@@ -91,7 +82,7 @@ public DataLakeStoreAccountState state() {
* @return the creationTime value.
*/
public OffsetDateTime creationTime() {
- return this.creationTime;
+ return this.innerProperties() == null ? null : this.innerProperties().creationTime();
}
/**
@@ -100,7 +91,7 @@ public OffsetDateTime creationTime() {
* @return the lastModifiedTime value.
*/
public OffsetDateTime lastModifiedTime() {
- return this.lastModifiedTime;
+ return this.innerProperties() == null ? null : this.innerProperties().lastModifiedTime();
}
/**
@@ -109,21 +100,7 @@ public OffsetDateTime lastModifiedTime() {
* @return the endpoint value.
*/
public String endpoint() {
- return this.endpoint;
- }
-
- /** {@inheritDoc} */
- @Override
- public DataLakeStoreAccountBasicInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public DataLakeStoreAccountBasicInner withTags(Map tags) {
- super.withTags(tags);
- return this;
+ return this.innerProperties() == null ? null : this.innerProperties().endpoint();
}
/**
@@ -132,5 +109,8 @@ public DataLakeStoreAccountBasicInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/DataLakeStoreAccountInner.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/DataLakeStoreAccountInner.java
index 9ba1a9868f203..b0a07815e820d 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/DataLakeStoreAccountInner.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/DataLakeStoreAccountInner.java
@@ -4,10 +4,8 @@
package com.azure.resourcemanager.datalakestore.fluent.models;
-import com.azure.core.annotation.Immutable;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datalakestore.models.DataLakeStoreAccountState;
import com.azure.resourcemanager.datalakestore.models.DataLakeStoreAccountStatus;
import com.azure.resourcemanager.datalakestore.models.EncryptionConfig;
@@ -18,7 +16,6 @@
import com.azure.resourcemanager.datalakestore.models.FirewallState;
import com.azure.resourcemanager.datalakestore.models.TierType;
import com.azure.resourcemanager.datalakestore.models.TrustedIdProviderState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -26,11 +23,8 @@
import java.util.UUID;
/** Data Lake Store account information. */
-@JsonFlatten
-@Immutable
-public class DataLakeStoreAccountInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeStoreAccountInner.class);
-
+@Fluent
+public final class DataLakeStoreAccountInner extends Resource {
/*
* The Key Vault encryption identity, if any.
*/
@@ -38,120 +32,14 @@ public class DataLakeStoreAccountInner extends Resource {
private EncryptionIdentity identity;
/*
- * The unique identifier associated with this Data Lake Store account.
- */
- @JsonProperty(value = "properties.accountId", access = JsonProperty.Access.WRITE_ONLY)
- private UUID accountId;
-
- /*
- * The provisioning status of the Data Lake Store account.
- */
- @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private DataLakeStoreAccountStatus provisioningState;
-
- /*
- * The state of the Data Lake Store account.
- */
- @JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY)
- private DataLakeStoreAccountState state;
-
- /*
- * The account creation time.
- */
- @JsonProperty(value = "properties.creationTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime creationTime;
-
- /*
- * The account last modified time.
- */
- @JsonProperty(value = "properties.lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastModifiedTime;
-
- /*
- * The full CName endpoint for this account.
- */
- @JsonProperty(value = "properties.endpoint", access = JsonProperty.Access.WRITE_ONLY)
- private String endpoint;
-
- /*
- * The default owner group for all new folders and files created in the
- * Data Lake Store account.
- */
- @JsonProperty(value = "properties.defaultGroup", access = JsonProperty.Access.WRITE_ONLY)
- private String defaultGroup;
-
- /*
- * The Key Vault encryption configuration.
- */
- @JsonProperty(value = "properties.encryptionConfig", access = JsonProperty.Access.WRITE_ONLY)
- private EncryptionConfig encryptionConfig;
-
- /*
- * The current state of encryption for this Data Lake Store account.
- */
- @JsonProperty(value = "properties.encryptionState", access = JsonProperty.Access.WRITE_ONLY)
- private EncryptionState encryptionState;
-
- /*
- * The current state of encryption provisioning for this Data Lake Store
- * account.
- */
- @JsonProperty(value = "properties.encryptionProvisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private EncryptionProvisioningState encryptionProvisioningState;
-
- /*
- * The list of firewall rules associated with this Data Lake Store account.
- */
- @JsonProperty(value = "properties.firewallRules", access = JsonProperty.Access.WRITE_ONLY)
- private List firewallRules;
-
- /*
- * The list of virtual network rules associated with this Data Lake Store
- * account.
- */
- @JsonProperty(value = "properties.virtualNetworkRules", access = JsonProperty.Access.WRITE_ONLY)
- private List virtualNetworkRules;
-
- /*
- * The current state of the IP address firewall for this Data Lake Store
- * account.
- */
- @JsonProperty(value = "properties.firewallState", access = JsonProperty.Access.WRITE_ONLY)
- private FirewallState firewallState;
-
- /*
- * The current state of allowing or disallowing IPs originating within
- * Azure through the firewall. If the firewall is disabled, this is not
- * enforced.
- */
- @JsonProperty(value = "properties.firewallAllowAzureIps", access = JsonProperty.Access.WRITE_ONLY)
- private FirewallAllowAzureIpsState firewallAllowAzureIps;
-
- /*
- * The list of trusted identity providers associated with this Data Lake
- * Store account.
+ * The Data Lake Store account properties.
*/
- @JsonProperty(value = "properties.trustedIdProviders", access = JsonProperty.Access.WRITE_ONLY)
- private List trustedIdProviders;
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private DataLakeStoreAccountProperties innerProperties;
- /*
- * The current state of the trusted identity provider feature for this Data
- * Lake Store account.
- */
- @JsonProperty(value = "properties.trustedIdProviderState", access = JsonProperty.Access.WRITE_ONLY)
- private TrustedIdProviderState trustedIdProviderState;
-
- /*
- * The commitment tier to use for next month.
- */
- @JsonProperty(value = "properties.newTier", access = JsonProperty.Access.WRITE_ONLY)
- private TierType newTier;
-
- /*
- * The commitment tier in use for the current month.
- */
- @JsonProperty(value = "properties.currentTier", access = JsonProperty.Access.WRITE_ONLY)
- private TierType currentTier;
+ /** Creates an instance of DataLakeStoreAccountInner class. */
+ public DataLakeStoreAccountInner() {
+ }
/**
* Get the identity property: The Key Vault encryption identity, if any.
@@ -163,57 +51,26 @@ public EncryptionIdentity identity() {
}
/**
- * Get the accountId property: The unique identifier associated with this Data Lake Store account.
+ * Get the innerProperties property: The Data Lake Store account properties.
*
- * @return the accountId value.
+ * @return the innerProperties value.
*/
- public UUID accountId() {
- return this.accountId;
+ private DataLakeStoreAccountProperties innerProperties() {
+ return this.innerProperties;
}
- /**
- * Get the provisioningState property: The provisioning status of the Data Lake Store account.
- *
- * @return the provisioningState value.
- */
- public DataLakeStoreAccountStatus provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Get the state property: The state of the Data Lake Store account.
- *
- * @return the state value.
- */
- public DataLakeStoreAccountState state() {
- return this.state;
- }
-
- /**
- * Get the creationTime property: The account creation time.
- *
- * @return the creationTime value.
- */
- public OffsetDateTime creationTime() {
- return this.creationTime;
- }
-
- /**
- * Get the lastModifiedTime property: The account last modified time.
- *
- * @return the lastModifiedTime value.
- */
- public OffsetDateTime lastModifiedTime() {
- return this.lastModifiedTime;
+ /** {@inheritDoc} */
+ @Override
+ public DataLakeStoreAccountInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
}
- /**
- * Get the endpoint property: The full CName endpoint for this account.
- *
- * @return the endpoint value.
- */
- public String endpoint() {
- return this.endpoint;
+ /** {@inheritDoc} */
+ @Override
+ public DataLakeStoreAccountInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
}
/**
@@ -223,7 +80,7 @@ public String endpoint() {
* @return the defaultGroup value.
*/
public String defaultGroup() {
- return this.defaultGroup;
+ return this.innerProperties() == null ? null : this.innerProperties().defaultGroup();
}
/**
@@ -232,7 +89,7 @@ public String defaultGroup() {
* @return the encryptionConfig value.
*/
public EncryptionConfig encryptionConfig() {
- return this.encryptionConfig;
+ return this.innerProperties() == null ? null : this.innerProperties().encryptionConfig();
}
/**
@@ -241,7 +98,7 @@ public EncryptionConfig encryptionConfig() {
* @return the encryptionState value.
*/
public EncryptionState encryptionState() {
- return this.encryptionState;
+ return this.innerProperties() == null ? null : this.innerProperties().encryptionState();
}
/**
@@ -251,7 +108,7 @@ public EncryptionState encryptionState() {
* @return the encryptionProvisioningState value.
*/
public EncryptionProvisioningState encryptionProvisioningState() {
- return this.encryptionProvisioningState;
+ return this.innerProperties() == null ? null : this.innerProperties().encryptionProvisioningState();
}
/**
@@ -260,7 +117,7 @@ public EncryptionProvisioningState encryptionProvisioningState() {
* @return the firewallRules value.
*/
public List firewallRules() {
- return this.firewallRules;
+ return this.innerProperties() == null ? null : this.innerProperties().firewallRules();
}
/**
@@ -270,7 +127,7 @@ public List firewallRules() {
* @return the virtualNetworkRules value.
*/
public List virtualNetworkRules() {
- return this.virtualNetworkRules;
+ return this.innerProperties() == null ? null : this.innerProperties().virtualNetworkRules();
}
/**
@@ -279,7 +136,7 @@ public List virtualNetworkRules() {
* @return the firewallState value.
*/
public FirewallState firewallState() {
- return this.firewallState;
+ return this.innerProperties() == null ? null : this.innerProperties().firewallState();
}
/**
@@ -289,7 +146,7 @@ public FirewallState firewallState() {
* @return the firewallAllowAzureIps value.
*/
public FirewallAllowAzureIpsState firewallAllowAzureIps() {
- return this.firewallAllowAzureIps;
+ return this.innerProperties() == null ? null : this.innerProperties().firewallAllowAzureIps();
}
/**
@@ -299,7 +156,7 @@ public FirewallAllowAzureIpsState firewallAllowAzureIps() {
* @return the trustedIdProviders value.
*/
public List trustedIdProviders() {
- return this.trustedIdProviders;
+ return this.innerProperties() == null ? null : this.innerProperties().trustedIdProviders();
}
/**
@@ -309,7 +166,7 @@ public List trustedIdProviders() {
* @return the trustedIdProviderState value.
*/
public TrustedIdProviderState trustedIdProviderState() {
- return this.trustedIdProviderState;
+ return this.innerProperties() == null ? null : this.innerProperties().trustedIdProviderState();
}
/**
@@ -318,7 +175,7 @@ public TrustedIdProviderState trustedIdProviderState() {
* @return the newTier value.
*/
public TierType newTier() {
- return this.newTier;
+ return this.innerProperties() == null ? null : this.innerProperties().newTier();
}
/**
@@ -327,21 +184,61 @@ public TierType newTier() {
* @return the currentTier value.
*/
public TierType currentTier() {
- return this.currentTier;
+ return this.innerProperties() == null ? null : this.innerProperties().currentTier();
}
- /** {@inheritDoc} */
- @Override
- public DataLakeStoreAccountInner withLocation(String location) {
- super.withLocation(location);
- return this;
+ /**
+ * Get the accountId property: The unique identifier associated with this Data Lake Store account.
+ *
+ * @return the accountId value.
+ */
+ public UUID accountId() {
+ return this.innerProperties() == null ? null : this.innerProperties().accountId();
}
- /** {@inheritDoc} */
- @Override
- public DataLakeStoreAccountInner withTags(Map tags) {
- super.withTags(tags);
- return this;
+ /**
+ * Get the provisioningState property: The provisioning status of the Data Lake Store account.
+ *
+ * @return the provisioningState value.
+ */
+ public DataLakeStoreAccountStatus provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the state property: The state of the Data Lake Store account.
+ *
+ * @return the state value.
+ */
+ public DataLakeStoreAccountState state() {
+ return this.innerProperties() == null ? null : this.innerProperties().state();
+ }
+
+ /**
+ * Get the creationTime property: The account creation time.
+ *
+ * @return the creationTime value.
+ */
+ public OffsetDateTime creationTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().creationTime();
+ }
+
+ /**
+ * Get the lastModifiedTime property: The account last modified time.
+ *
+ * @return the lastModifiedTime value.
+ */
+ public OffsetDateTime lastModifiedTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastModifiedTime();
+ }
+
+ /**
+ * Get the endpoint property: The full CName endpoint for this account.
+ *
+ * @return the endpoint value.
+ */
+ public String endpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().endpoint();
}
/**
@@ -353,17 +250,8 @@ public void validate() {
if (identity() != null) {
identity().validate();
}
- if (encryptionConfig() != null) {
- encryptionConfig().validate();
- }
- if (firewallRules() != null) {
- firewallRules().forEach(e -> e.validate());
- }
- if (virtualNetworkRules() != null) {
- virtualNetworkRules().forEach(e -> e.validate());
- }
- if (trustedIdProviders() != null) {
- trustedIdProviders().forEach(e -> e.validate());
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/models/DataLakeStoreAccountProperties.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/DataLakeStoreAccountProperties.java
similarity index 87%
rename from sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/models/DataLakeStoreAccountProperties.java
rename to sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/DataLakeStoreAccountProperties.java
index 301a87fa0d2ff..18bc19938d799 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/models/DataLakeStoreAccountProperties.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/DataLakeStoreAccountProperties.java
@@ -2,25 +2,24 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.datalakestore.models;
+package com.azure.resourcemanager.datalakestore.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.datalakestore.fluent.models.FirewallRuleInner;
-import com.azure.resourcemanager.datalakestore.fluent.models.TrustedIdProviderInner;
-import com.azure.resourcemanager.datalakestore.fluent.models.VirtualNetworkRuleInner;
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.azure.resourcemanager.datalakestore.models.EncryptionConfig;
+import com.azure.resourcemanager.datalakestore.models.EncryptionProvisioningState;
+import com.azure.resourcemanager.datalakestore.models.EncryptionState;
+import com.azure.resourcemanager.datalakestore.models.FirewallAllowAzureIpsState;
+import com.azure.resourcemanager.datalakestore.models.FirewallState;
+import com.azure.resourcemanager.datalakestore.models.TierType;
+import com.azure.resourcemanager.datalakestore.models.TrustedIdProviderState;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Data Lake Store account properties information. */
@Immutable
public final class DataLakeStoreAccountProperties extends DataLakeStoreAccountPropertiesBasic {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeStoreAccountProperties.class);
-
/*
- * The default owner group for all new folders and files created in the
- * Data Lake Store account.
+ * The default owner group for all new folders and files created in the Data Lake Store account.
*/
@JsonProperty(value = "defaultGroup", access = JsonProperty.Access.WRITE_ONLY)
private String defaultGroup;
@@ -38,8 +37,7 @@ public final class DataLakeStoreAccountProperties extends DataLakeStoreAccountPr
private EncryptionState encryptionState;
/*
- * The current state of encryption provisioning for this Data Lake Store
- * account.
+ * The current state of encryption provisioning for this Data Lake Store account.
*/
@JsonProperty(value = "encryptionProvisioningState", access = JsonProperty.Access.WRITE_ONLY)
private EncryptionProvisioningState encryptionProvisioningState;
@@ -51,37 +49,32 @@ public final class DataLakeStoreAccountProperties extends DataLakeStoreAccountPr
private List firewallRules;
/*
- * The list of virtual network rules associated with this Data Lake Store
- * account.
+ * The list of virtual network rules associated with this Data Lake Store account.
*/
@JsonProperty(value = "virtualNetworkRules", access = JsonProperty.Access.WRITE_ONLY)
private List virtualNetworkRules;
/*
- * The current state of the IP address firewall for this Data Lake Store
- * account.
+ * The current state of the IP address firewall for this Data Lake Store account.
*/
@JsonProperty(value = "firewallState", access = JsonProperty.Access.WRITE_ONLY)
private FirewallState firewallState;
/*
- * The current state of allowing or disallowing IPs originating within
- * Azure through the firewall. If the firewall is disabled, this is not
- * enforced.
+ * The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall
+ * is disabled, this is not enforced.
*/
@JsonProperty(value = "firewallAllowAzureIps", access = JsonProperty.Access.WRITE_ONLY)
private FirewallAllowAzureIpsState firewallAllowAzureIps;
/*
- * The list of trusted identity providers associated with this Data Lake
- * Store account.
+ * The list of trusted identity providers associated with this Data Lake Store account.
*/
@JsonProperty(value = "trustedIdProviders", access = JsonProperty.Access.WRITE_ONLY)
private List trustedIdProviders;
/*
- * The current state of the trusted identity provider feature for this Data
- * Lake Store account.
+ * The current state of the trusted identity provider feature for this Data Lake Store account.
*/
@JsonProperty(value = "trustedIdProviderState", access = JsonProperty.Access.WRITE_ONLY)
private TrustedIdProviderState trustedIdProviderState;
@@ -98,6 +91,10 @@ public final class DataLakeStoreAccountProperties extends DataLakeStoreAccountPr
@JsonProperty(value = "currentTier", access = JsonProperty.Access.WRITE_ONLY)
private TierType currentTier;
+ /** Creates an instance of DataLakeStoreAccountProperties class. */
+ public DataLakeStoreAccountProperties() {
+ }
+
/**
* Get the defaultGroup property: The default owner group for all new folders and files created in the Data Lake
* Store account.
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/models/DataLakeStoreAccountPropertiesBasic.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/DataLakeStoreAccountPropertiesBasic.java
similarity index 89%
rename from sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/models/DataLakeStoreAccountPropertiesBasic.java
rename to sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/DataLakeStoreAccountPropertiesBasic.java
index 99aa551f14347..590eed8c94948 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/models/DataLakeStoreAccountPropertiesBasic.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/DataLakeStoreAccountPropertiesBasic.java
@@ -2,11 +2,11 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.datalakestore.models;
+package com.azure.resourcemanager.datalakestore.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.azure.resourcemanager.datalakestore.models.DataLakeStoreAccountState;
+import com.azure.resourcemanager.datalakestore.models.DataLakeStoreAccountStatus;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.UUID;
@@ -14,8 +14,6 @@
/** The basic account specific properties that are associated with an underlying Data Lake Store account. */
@Immutable
public class DataLakeStoreAccountPropertiesBasic {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DataLakeStoreAccountPropertiesBasic.class);
-
/*
* The unique identifier associated with this Data Lake Store account.
*/
@@ -52,6 +50,10 @@ public class DataLakeStoreAccountPropertiesBasic {
@JsonProperty(value = "endpoint", access = JsonProperty.Access.WRITE_ONLY)
private String endpoint;
+ /** Creates an instance of DataLakeStoreAccountPropertiesBasic class. */
+ public DataLakeStoreAccountPropertiesBasic() {
+ }
+
/**
* Get the accountId property: The unique identifier associated with this Data Lake Store account.
*
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/FirewallRuleInner.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/FirewallRuleInner.java
index 4b891317fd4c5..54ee522630059 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/FirewallRuleInner.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/FirewallRuleInner.java
@@ -4,32 +4,18 @@
package com.azure.resourcemanager.datalakestore.fluent.models;
-import com.azure.core.annotation.Immutable;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Data Lake Store firewall rule information. */
-@JsonFlatten
-@Immutable
-public class FirewallRuleInner extends SubResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(FirewallRuleInner.class);
-
+@Fluent
+public final class FirewallRuleInner extends SubResource {
/*
- * The start IP address for the firewall rule. This can be either ipv4 or
- * ipv6. Start and End should be in the same protocol.
+ * The firewall rule properties.
*/
- @JsonProperty(value = "properties.startIpAddress", access = JsonProperty.Access.WRITE_ONLY)
- private String startIpAddress;
-
- /*
- * The end IP address for the firewall rule. This can be either ipv4 or
- * ipv6. Start and End should be in the same protocol.
- */
- @JsonProperty(value = "properties.endIpAddress", access = JsonProperty.Access.WRITE_ONLY)
- private String endIpAddress;
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private FirewallRuleProperties innerProperties;
/*
* The resource name.
@@ -43,24 +29,17 @@ public class FirewallRuleInner extends SubResource {
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
- /**
- * Get the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6.
- * Start and End should be in the same protocol.
- *
- * @return the startIpAddress value.
- */
- public String startIpAddress() {
- return this.startIpAddress;
+ /** Creates an instance of FirewallRuleInner class. */
+ public FirewallRuleInner() {
}
/**
- * Get the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start
- * and End should be in the same protocol.
+ * Get the innerProperties property: The firewall rule properties.
*
- * @return the endIpAddress value.
+ * @return the innerProperties value.
*/
- public String endIpAddress() {
- return this.endIpAddress;
+ private FirewallRuleProperties innerProperties() {
+ return this.innerProperties;
}
/**
@@ -88,11 +67,34 @@ public FirewallRuleInner withId(String id) {
return this;
}
+ /**
+ * Get the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6.
+ * Start and End should be in the same protocol.
+ *
+ * @return the startIpAddress value.
+ */
+ public String startIpAddress() {
+ return this.innerProperties() == null ? null : this.innerProperties().startIpAddress();
+ }
+
+ /**
+ * Get the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start
+ * and End should be in the same protocol.
+ *
+ * @return the endIpAddress value.
+ */
+ public String endIpAddress() {
+ return this.innerProperties() == null ? null : this.innerProperties().endIpAddress();
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/FirewallRuleProperties.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/FirewallRuleProperties.java
new file mode 100644
index 0000000000000..9e93cba91c227
--- /dev/null
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/FirewallRuleProperties.java
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakestore.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The firewall rule properties. */
+@Immutable
+public final class FirewallRuleProperties {
+ /*
+ * The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same
+ * protocol.
+ */
+ @JsonProperty(value = "startIpAddress", access = JsonProperty.Access.WRITE_ONLY)
+ private String startIpAddress;
+
+ /*
+ * The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same
+ * protocol.
+ */
+ @JsonProperty(value = "endIpAddress", access = JsonProperty.Access.WRITE_ONLY)
+ private String endIpAddress;
+
+ /** Creates an instance of FirewallRuleProperties class. */
+ public FirewallRuleProperties() {
+ }
+
+ /**
+ * Get the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6.
+ * Start and End should be in the same protocol.
+ *
+ * @return the startIpAddress value.
+ */
+ public String startIpAddress() {
+ return this.startIpAddress;
+ }
+
+ /**
+ * Get the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start
+ * and End should be in the same protocol.
+ *
+ * @return the endIpAddress value.
+ */
+ public String endIpAddress() {
+ return this.endIpAddress;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/NameAvailabilityInformationInner.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/NameAvailabilityInformationInner.java
index 1a3571bd27453..2cf59853d20cb 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/NameAvailabilityInformationInner.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/NameAvailabilityInformationInner.java
@@ -5,36 +5,33 @@
package com.azure.resourcemanager.datalakestore.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Data Lake Store account name availability result information. */
@Immutable
public final class NameAvailabilityInformationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(NameAvailabilityInformationInner.class);
-
/*
- * The Boolean value of true or false to indicate whether the Data Lake
- * Store account name is available or not.
+ * The Boolean value of true or false to indicate whether the Data Lake Store account name is available or not.
*/
@JsonProperty(value = "nameAvailable", access = JsonProperty.Access.WRITE_ONLY)
private Boolean nameAvailable;
/*
- * The reason why the Data Lake Store account name is not available, if
- * nameAvailable is false.
+ * The reason why the Data Lake Store account name is not available, if nameAvailable is false.
*/
@JsonProperty(value = "reason", access = JsonProperty.Access.WRITE_ONLY)
private String reason;
/*
- * The message describing why the Data Lake Store account name is not
- * available, if nameAvailable is false.
+ * The message describing why the Data Lake Store account name is not available, if nameAvailable is false.
*/
@JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
private String message;
+ /** Creates an instance of NameAvailabilityInformationInner class. */
+ public NameAvailabilityInformationInner() {
+ }
+
/**
* Get the nameAvailable property: The Boolean value of true or false to indicate whether the Data Lake Store
* account name is available or not.
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/OperationListResultInner.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/OperationListResultInner.java
index b7adb2293b132..0886a8483b433 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/OperationListResultInner.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/OperationListResultInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.datalakestore.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datalakestore.models.Operation;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The list of available operations for Data Lake Store. */
@Immutable
public final class OperationListResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationListResultInner.class);
-
/*
* The results of the list operation.
*/
@@ -28,6 +24,10 @@ public final class OperationListResultInner {
@JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
private String nextLink;
+ /** Creates an instance of OperationListResultInner class. */
+ public OperationListResultInner() {
+ }
+
/**
* Get the value property: The results of the list operation.
*
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/TrustedIdProviderInner.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/TrustedIdProviderInner.java
index 253bc3e4d28ed..79065bcd1a345 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/TrustedIdProviderInner.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/TrustedIdProviderInner.java
@@ -4,24 +4,18 @@
package com.azure.resourcemanager.datalakestore.fluent.models;
-import com.azure.core.annotation.Immutable;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Data Lake Store trusted identity provider information. */
-@JsonFlatten
-@Immutable
-public class TrustedIdProviderInner extends SubResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(TrustedIdProviderInner.class);
-
+@Fluent
+public final class TrustedIdProviderInner extends SubResource {
/*
- * The URL of this trusted identity provider.
+ * The trusted identity provider properties.
*/
- @JsonProperty(value = "properties.idProvider", access = JsonProperty.Access.WRITE_ONLY)
- private String idProvider;
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private TrustedIdProviderProperties innerProperties;
/*
* The resource name.
@@ -35,13 +29,17 @@ public class TrustedIdProviderInner extends SubResource {
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
+ /** Creates an instance of TrustedIdProviderInner class. */
+ public TrustedIdProviderInner() {
+ }
+
/**
- * Get the idProvider property: The URL of this trusted identity provider.
+ * Get the innerProperties property: The trusted identity provider properties.
*
- * @return the idProvider value.
+ * @return the innerProperties value.
*/
- public String idProvider() {
- return this.idProvider;
+ private TrustedIdProviderProperties innerProperties() {
+ return this.innerProperties;
}
/**
@@ -69,11 +67,23 @@ public TrustedIdProviderInner withId(String id) {
return this;
}
+ /**
+ * Get the idProvider property: The URL of this trusted identity provider.
+ *
+ * @return the idProvider value.
+ */
+ public String idProvider() {
+ return this.innerProperties() == null ? null : this.innerProperties().idProvider();
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/TrustedIdProviderProperties.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/TrustedIdProviderProperties.java
new file mode 100644
index 0000000000000..95821ac6ef2a9
--- /dev/null
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/TrustedIdProviderProperties.java
@@ -0,0 +1,39 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakestore.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The trusted identity provider properties. */
+@Immutable
+public final class TrustedIdProviderProperties {
+ /*
+ * The URL of this trusted identity provider.
+ */
+ @JsonProperty(value = "idProvider", access = JsonProperty.Access.WRITE_ONLY)
+ private String idProvider;
+
+ /** Creates an instance of TrustedIdProviderProperties class. */
+ public TrustedIdProviderProperties() {
+ }
+
+ /**
+ * Get the idProvider property: The URL of this trusted identity provider.
+ *
+ * @return the idProvider value.
+ */
+ public String idProvider() {
+ return this.idProvider;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/UpdateDataLakeStoreAccountProperties.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/UpdateDataLakeStoreAccountProperties.java
new file mode 100644
index 0000000000000..f8434717ab4c9
--- /dev/null
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/UpdateDataLakeStoreAccountProperties.java
@@ -0,0 +1,307 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakestore.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.datalakestore.models.FirewallAllowAzureIpsState;
+import com.azure.resourcemanager.datalakestore.models.FirewallState;
+import com.azure.resourcemanager.datalakestore.models.TierType;
+import com.azure.resourcemanager.datalakestore.models.TrustedIdProviderState;
+import com.azure.resourcemanager.datalakestore.models.UpdateEncryptionConfig;
+import com.azure.resourcemanager.datalakestore.models.UpdateFirewallRuleWithAccountParameters;
+import com.azure.resourcemanager.datalakestore.models.UpdateTrustedIdProviderWithAccountParameters;
+import com.azure.resourcemanager.datalakestore.models.UpdateVirtualNetworkRuleWithAccountParameters;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Data Lake Store account properties information to be updated. */
+@Fluent
+public final class UpdateDataLakeStoreAccountProperties {
+ /*
+ * The default owner group for all new folders and files created in the Data Lake Store account.
+ */
+ @JsonProperty(value = "defaultGroup")
+ private String defaultGroup;
+
+ /*
+ * Used for rotation of user managed Key Vault keys. Can only be used to rotate a user managed encryption Key Vault
+ * key.
+ */
+ @JsonProperty(value = "encryptionConfig")
+ private UpdateEncryptionConfig encryptionConfig;
+
+ /*
+ * The list of firewall rules associated with this Data Lake Store account.
+ */
+ @JsonProperty(value = "firewallRules")
+ private List firewallRules;
+
+ /*
+ * The list of virtual network rules associated with this Data Lake Store account.
+ */
+ @JsonProperty(value = "virtualNetworkRules")
+ private List virtualNetworkRules;
+
+ /*
+ * The current state of the IP address firewall for this Data Lake Store account. Disabling the firewall does not
+ * remove existing rules, they will just be ignored until the firewall is re-enabled.
+ */
+ @JsonProperty(value = "firewallState")
+ private FirewallState firewallState;
+
+ /*
+ * The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall
+ * is disabled, this is not enforced.
+ */
+ @JsonProperty(value = "firewallAllowAzureIps")
+ private FirewallAllowAzureIpsState firewallAllowAzureIps;
+
+ /*
+ * The list of trusted identity providers associated with this Data Lake Store account.
+ */
+ @JsonProperty(value = "trustedIdProviders")
+ private List trustedIdProviders;
+
+ /*
+ * The current state of the trusted identity provider feature for this Data Lake Store account. Disabling trusted
+ * identity provider functionality does not remove the providers, they will just be ignored until this feature is
+ * re-enabled.
+ */
+ @JsonProperty(value = "trustedIdProviderState")
+ private TrustedIdProviderState trustedIdProviderState;
+
+ /*
+ * The commitment tier to use for next month.
+ */
+ @JsonProperty(value = "newTier")
+ private TierType newTier;
+
+ /** Creates an instance of UpdateDataLakeStoreAccountProperties class. */
+ public UpdateDataLakeStoreAccountProperties() {
+ }
+
+ /**
+ * Get the defaultGroup property: The default owner group for all new folders and files created in the Data Lake
+ * Store account.
+ *
+ * @return the defaultGroup value.
+ */
+ public String defaultGroup() {
+ return this.defaultGroup;
+ }
+
+ /**
+ * Set the defaultGroup property: The default owner group for all new folders and files created in the Data Lake
+ * Store account.
+ *
+ * @param defaultGroup the defaultGroup value to set.
+ * @return the UpdateDataLakeStoreAccountProperties object itself.
+ */
+ public UpdateDataLakeStoreAccountProperties withDefaultGroup(String defaultGroup) {
+ this.defaultGroup = defaultGroup;
+ return this;
+ }
+
+ /**
+ * Get the encryptionConfig property: Used for rotation of user managed Key Vault keys. Can only be used to rotate a
+ * user managed encryption Key Vault key.
+ *
+ * @return the encryptionConfig value.
+ */
+ public UpdateEncryptionConfig encryptionConfig() {
+ return this.encryptionConfig;
+ }
+
+ /**
+ * Set the encryptionConfig property: Used for rotation of user managed Key Vault keys. Can only be used to rotate a
+ * user managed encryption Key Vault key.
+ *
+ * @param encryptionConfig the encryptionConfig value to set.
+ * @return the UpdateDataLakeStoreAccountProperties object itself.
+ */
+ public UpdateDataLakeStoreAccountProperties withEncryptionConfig(UpdateEncryptionConfig encryptionConfig) {
+ this.encryptionConfig = encryptionConfig;
+ return this;
+ }
+
+ /**
+ * Get the firewallRules property: The list of firewall rules associated with this Data Lake Store account.
+ *
+ * @return the firewallRules value.
+ */
+ public List firewallRules() {
+ return this.firewallRules;
+ }
+
+ /**
+ * Set the firewallRules property: The list of firewall rules associated with this Data Lake Store account.
+ *
+ * @param firewallRules the firewallRules value to set.
+ * @return the UpdateDataLakeStoreAccountProperties object itself.
+ */
+ public UpdateDataLakeStoreAccountProperties withFirewallRules(
+ List firewallRules) {
+ this.firewallRules = firewallRules;
+ return this;
+ }
+
+ /**
+ * Get the virtualNetworkRules property: The list of virtual network rules associated with this Data Lake Store
+ * account.
+ *
+ * @return the virtualNetworkRules value.
+ */
+ public List virtualNetworkRules() {
+ return this.virtualNetworkRules;
+ }
+
+ /**
+ * Set the virtualNetworkRules property: The list of virtual network rules associated with this Data Lake Store
+ * account.
+ *
+ * @param virtualNetworkRules the virtualNetworkRules value to set.
+ * @return the UpdateDataLakeStoreAccountProperties object itself.
+ */
+ public UpdateDataLakeStoreAccountProperties withVirtualNetworkRules(
+ List virtualNetworkRules) {
+ this.virtualNetworkRules = virtualNetworkRules;
+ return this;
+ }
+
+ /**
+ * Get the firewallState property: The current state of the IP address firewall for this Data Lake Store account.
+ * Disabling the firewall does not remove existing rules, they will just be ignored until the firewall is
+ * re-enabled.
+ *
+ * @return the firewallState value.
+ */
+ public FirewallState firewallState() {
+ return this.firewallState;
+ }
+
+ /**
+ * Set the firewallState property: The current state of the IP address firewall for this Data Lake Store account.
+ * Disabling the firewall does not remove existing rules, they will just be ignored until the firewall is
+ * re-enabled.
+ *
+ * @param firewallState the firewallState value to set.
+ * @return the UpdateDataLakeStoreAccountProperties object itself.
+ */
+ public UpdateDataLakeStoreAccountProperties withFirewallState(FirewallState firewallState) {
+ this.firewallState = firewallState;
+ return this;
+ }
+
+ /**
+ * Get the firewallAllowAzureIps property: The current state of allowing or disallowing IPs originating within Azure
+ * through the firewall. If the firewall is disabled, this is not enforced.
+ *
+ * @return the firewallAllowAzureIps value.
+ */
+ public FirewallAllowAzureIpsState firewallAllowAzureIps() {
+ return this.firewallAllowAzureIps;
+ }
+
+ /**
+ * Set the firewallAllowAzureIps property: The current state of allowing or disallowing IPs originating within Azure
+ * through the firewall. If the firewall is disabled, this is not enforced.
+ *
+ * @param firewallAllowAzureIps the firewallAllowAzureIps value to set.
+ * @return the UpdateDataLakeStoreAccountProperties object itself.
+ */
+ public UpdateDataLakeStoreAccountProperties withFirewallAllowAzureIps(
+ FirewallAllowAzureIpsState firewallAllowAzureIps) {
+ this.firewallAllowAzureIps = firewallAllowAzureIps;
+ return this;
+ }
+
+ /**
+ * Get the trustedIdProviders property: The list of trusted identity providers associated with this Data Lake Store
+ * account.
+ *
+ * @return the trustedIdProviders value.
+ */
+ public List trustedIdProviders() {
+ return this.trustedIdProviders;
+ }
+
+ /**
+ * Set the trustedIdProviders property: The list of trusted identity providers associated with this Data Lake Store
+ * account.
+ *
+ * @param trustedIdProviders the trustedIdProviders value to set.
+ * @return the UpdateDataLakeStoreAccountProperties object itself.
+ */
+ public UpdateDataLakeStoreAccountProperties withTrustedIdProviders(
+ List trustedIdProviders) {
+ this.trustedIdProviders = trustedIdProviders;
+ return this;
+ }
+
+ /**
+ * Get the trustedIdProviderState property: The current state of the trusted identity provider feature for this Data
+ * Lake Store account. Disabling trusted identity provider functionality does not remove the providers, they will
+ * just be ignored until this feature is re-enabled.
+ *
+ * @return the trustedIdProviderState value.
+ */
+ public TrustedIdProviderState trustedIdProviderState() {
+ return this.trustedIdProviderState;
+ }
+
+ /**
+ * Set the trustedIdProviderState property: The current state of the trusted identity provider feature for this Data
+ * Lake Store account. Disabling trusted identity provider functionality does not remove the providers, they will
+ * just be ignored until this feature is re-enabled.
+ *
+ * @param trustedIdProviderState the trustedIdProviderState value to set.
+ * @return the UpdateDataLakeStoreAccountProperties object itself.
+ */
+ public UpdateDataLakeStoreAccountProperties withTrustedIdProviderState(
+ TrustedIdProviderState trustedIdProviderState) {
+ this.trustedIdProviderState = trustedIdProviderState;
+ return this;
+ }
+
+ /**
+ * Get the newTier property: The commitment tier to use for next month.
+ *
+ * @return the newTier value.
+ */
+ public TierType newTier() {
+ return this.newTier;
+ }
+
+ /**
+ * Set the newTier property: The commitment tier to use for next month.
+ *
+ * @param newTier the newTier value to set.
+ * @return the UpdateDataLakeStoreAccountProperties object itself.
+ */
+ public UpdateDataLakeStoreAccountProperties withNewTier(TierType newTier) {
+ this.newTier = newTier;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (encryptionConfig() != null) {
+ encryptionConfig().validate();
+ }
+ if (firewallRules() != null) {
+ firewallRules().forEach(e -> e.validate());
+ }
+ if (virtualNetworkRules() != null) {
+ virtualNetworkRules().forEach(e -> e.validate());
+ }
+ if (trustedIdProviders() != null) {
+ trustedIdProviders().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/UpdateFirewallRuleProperties.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/UpdateFirewallRuleProperties.java
new file mode 100644
index 0000000000000..f2cf0f740b88b
--- /dev/null
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/UpdateFirewallRuleProperties.java
@@ -0,0 +1,82 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakestore.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The firewall rule properties to use when updating a firewall rule. */
+@Fluent
+public final class UpdateFirewallRuleProperties {
+ /*
+ * The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same
+ * protocol.
+ */
+ @JsonProperty(value = "startIpAddress")
+ private String startIpAddress;
+
+ /*
+ * The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same
+ * protocol.
+ */
+ @JsonProperty(value = "endIpAddress")
+ private String endIpAddress;
+
+ /** Creates an instance of UpdateFirewallRuleProperties class. */
+ public UpdateFirewallRuleProperties() {
+ }
+
+ /**
+ * Get the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6.
+ * Start and End should be in the same protocol.
+ *
+ * @return the startIpAddress value.
+ */
+ public String startIpAddress() {
+ return this.startIpAddress;
+ }
+
+ /**
+ * Set the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6.
+ * Start and End should be in the same protocol.
+ *
+ * @param startIpAddress the startIpAddress value to set.
+ * @return the UpdateFirewallRuleProperties object itself.
+ */
+ public UpdateFirewallRuleProperties withStartIpAddress(String startIpAddress) {
+ this.startIpAddress = startIpAddress;
+ return this;
+ }
+
+ /**
+ * Get the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start
+ * and End should be in the same protocol.
+ *
+ * @return the endIpAddress value.
+ */
+ public String endIpAddress() {
+ return this.endIpAddress;
+ }
+
+ /**
+ * Set the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start
+ * and End should be in the same protocol.
+ *
+ * @param endIpAddress the endIpAddress value to set.
+ * @return the UpdateFirewallRuleProperties object itself.
+ */
+ public UpdateFirewallRuleProperties withEndIpAddress(String endIpAddress) {
+ this.endIpAddress = endIpAddress;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/UpdateTrustedIdProviderProperties.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/UpdateTrustedIdProviderProperties.java
new file mode 100644
index 0000000000000..a4e12fa381711
--- /dev/null
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/UpdateTrustedIdProviderProperties.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakestore.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The trusted identity provider properties to use when updating a trusted identity provider. */
+@Fluent
+public final class UpdateTrustedIdProviderProperties {
+ /*
+ * The URL of this trusted identity provider.
+ */
+ @JsonProperty(value = "idProvider")
+ private String idProvider;
+
+ /** Creates an instance of UpdateTrustedIdProviderProperties class. */
+ public UpdateTrustedIdProviderProperties() {
+ }
+
+ /**
+ * Get the idProvider property: The URL of this trusted identity provider.
+ *
+ * @return the idProvider value.
+ */
+ public String idProvider() {
+ return this.idProvider;
+ }
+
+ /**
+ * Set the idProvider property: The URL of this trusted identity provider.
+ *
+ * @param idProvider the idProvider value to set.
+ * @return the UpdateTrustedIdProviderProperties object itself.
+ */
+ public UpdateTrustedIdProviderProperties withIdProvider(String idProvider) {
+ this.idProvider = idProvider;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/UpdateVirtualNetworkRuleProperties.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/UpdateVirtualNetworkRuleProperties.java
new file mode 100644
index 0000000000000..f65900c24aba6
--- /dev/null
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/UpdateVirtualNetworkRuleProperties.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakestore.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The virtual network rule properties to use when updating a virtual network rule. */
+@Fluent
+public final class UpdateVirtualNetworkRuleProperties {
+ /*
+ * The resource identifier for the subnet.
+ */
+ @JsonProperty(value = "subnetId")
+ private String subnetId;
+
+ /** Creates an instance of UpdateVirtualNetworkRuleProperties class. */
+ public UpdateVirtualNetworkRuleProperties() {
+ }
+
+ /**
+ * Get the subnetId property: The resource identifier for the subnet.
+ *
+ * @return the subnetId value.
+ */
+ public String subnetId() {
+ return this.subnetId;
+ }
+
+ /**
+ * Set the subnetId property: The resource identifier for the subnet.
+ *
+ * @param subnetId the subnetId value to set.
+ * @return the UpdateVirtualNetworkRuleProperties object itself.
+ */
+ public UpdateVirtualNetworkRuleProperties withSubnetId(String subnetId) {
+ this.subnetId = subnetId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/UsageInner.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/UsageInner.java
index 90749ff8122d1..0e300dd3dcfc3 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/UsageInner.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/UsageInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.datalakestore.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datalakestore.models.UsageName;
import com.azure.resourcemanager.datalakestore.models.UsageUnit;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Describes the Resource Usage. */
@Immutable
public final class UsageInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(UsageInner.class);
-
/*
* Gets the unit of measurement.
*/
@@ -35,8 +31,7 @@ public final class UsageInner {
private Integer currentValue;
/*
- * Gets the maximum count of the resources that can be allocated in the
- * subscription.
+ * Gets the maximum count of the resources that can be allocated in the subscription.
*/
@JsonProperty(value = "limit", access = JsonProperty.Access.WRITE_ONLY)
private Integer limit;
@@ -47,6 +42,10 @@ public final class UsageInner {
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private UsageName name;
+ /** Creates an instance of UsageInner class. */
+ public UsageInner() {
+ }
+
/**
* Get the unit property: Gets the unit of measurement.
*
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/VirtualNetworkRuleInner.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/VirtualNetworkRuleInner.java
index 31374c60a0d05..f23b4bd1c1ab6 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/VirtualNetworkRuleInner.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/VirtualNetworkRuleInner.java
@@ -4,24 +4,18 @@
package com.azure.resourcemanager.datalakestore.fluent.models;
-import com.azure.core.annotation.Immutable;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Data Lake Store virtual network rule information. */
-@JsonFlatten
-@Immutable
-public class VirtualNetworkRuleInner extends SubResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VirtualNetworkRuleInner.class);
-
+@Fluent
+public final class VirtualNetworkRuleInner extends SubResource {
/*
- * The resource identifier for the subnet.
+ * The virtual network rule properties.
*/
- @JsonProperty(value = "properties.subnetId", access = JsonProperty.Access.WRITE_ONLY)
- private String subnetId;
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private VirtualNetworkRuleProperties innerProperties;
/*
* The resource name.
@@ -35,13 +29,17 @@ public class VirtualNetworkRuleInner extends SubResource {
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
+ /** Creates an instance of VirtualNetworkRuleInner class. */
+ public VirtualNetworkRuleInner() {
+ }
+
/**
- * Get the subnetId property: The resource identifier for the subnet.
+ * Get the innerProperties property: The virtual network rule properties.
*
- * @return the subnetId value.
+ * @return the innerProperties value.
*/
- public String subnetId() {
- return this.subnetId;
+ private VirtualNetworkRuleProperties innerProperties() {
+ return this.innerProperties;
}
/**
@@ -69,11 +67,23 @@ public VirtualNetworkRuleInner withId(String id) {
return this;
}
+ /**
+ * Get the subnetId property: The resource identifier for the subnet.
+ *
+ * @return the subnetId value.
+ */
+ public String subnetId() {
+ return this.innerProperties() == null ? null : this.innerProperties().subnetId();
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/VirtualNetworkRuleProperties.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/VirtualNetworkRuleProperties.java
new file mode 100644
index 0000000000000..aef045eedbfcc
--- /dev/null
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/fluent/models/VirtualNetworkRuleProperties.java
@@ -0,0 +1,39 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datalakestore.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The virtual network rule properties. */
+@Immutable
+public final class VirtualNetworkRuleProperties {
+ /*
+ * The resource identifier for the subnet.
+ */
+ @JsonProperty(value = "subnetId", access = JsonProperty.Access.WRITE_ONLY)
+ private String subnetId;
+
+ /** Creates an instance of VirtualNetworkRuleProperties class. */
+ public VirtualNetworkRuleProperties() {
+ }
+
+ /**
+ * Get the subnetId property: The resource identifier for the subnet.
+ *
+ * @return the subnetId value.
+ */
+ public String subnetId() {
+ return this.subnetId;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/implementation/AccountsClientImpl.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/implementation/AccountsClientImpl.java
index 1a5e39235b141..ecf8125fb06dc 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/implementation/AccountsClientImpl.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/implementation/AccountsClientImpl.java
@@ -31,7 +31,6 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.datalakestore.fluent.AccountsClient;
@@ -48,8 +47,6 @@
/** An instance of this class provides access to all the operations defined in AccountsClient. */
public final class AccountsClientImpl implements AccountsClient {
- private final ClientLogger logger = new ClientLogger(AccountsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final AccountsService service;
@@ -72,7 +69,7 @@ public final class AccountsClientImpl implements AccountsClient {
*/
@Host("{$host}")
@ServiceInterface(name = "DataLakeStoreAccount")
- private interface AccountsService {
+ public interface AccountsService {
@Headers({"Content-Type: application/json"})
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeStore/accounts")
@ExpectedResponses({200})
@@ -238,7 +235,8 @@ Mono> listByResourceGroupNext(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account list information response.
+ * @return data Lake Store account list information response along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -302,7 +300,8 @@ private Mono> listSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account list information response.
+ * @return data Lake Store account list information response along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -362,7 +361,7 @@ private Mono> listSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account list information response.
+ * @return data Lake Store account list information response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -378,7 +377,7 @@ private PagedFlux listAsync(
*
* @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 data Lake Store account list information response.
+ * @return data Lake Store account list information response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -411,7 +410,7 @@ private PagedFlux listAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account list information response.
+ * @return data Lake Store account list information response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -427,7 +426,7 @@ private PagedFlux listAsync(
*
* @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 data Lake Store account list information response.
+ * @return data Lake Store account list information response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -458,7 +457,7 @@ public PagedIterable list() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account list information response.
+ * @return data Lake Store account list information response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
@@ -484,7 +483,8 @@ public PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account list information response.
+ * @return data Lake Store account list information response along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(
@@ -560,7 +560,8 @@ private Mono> listByResourceGroupS
* @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 data Lake Store account list information response.
+ * @return data Lake Store account list information response along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(
@@ -633,7 +634,7 @@ private Mono> listByResourceGroupS
* @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 data Lake Store account list information response.
+ * @return data Lake Store account list information response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(
@@ -657,7 +658,7 @@ private PagedFlux listByResourceGroupAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account list information response.
+ * @return data Lake Store account list information response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
@@ -691,7 +692,7 @@ private PagedFlux listByResourceGroupAsync(Strin
* @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 data Lake Store account list information response.
+ * @return data Lake Store account list information response as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(
@@ -718,7 +719,7 @@ private PagedFlux listByResourceGroupAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account list information response.
+ * @return data Lake Store account list information response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName) {
@@ -751,7 +752,7 @@ public PagedIterable listByResourceGroup(String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account list information response.
+ * @return data Lake Store account list information response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(
@@ -776,7 +777,7 @@ public PagedIterable listByResourceGroup(
* @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 data Lake Store account information.
+ * @return data Lake Store account information along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createWithResponseAsync(
@@ -832,7 +833,7 @@ private Mono>> createWithResponseAsync(
* @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 data Lake Store account information.
+ * @return data Lake Store account information along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createWithResponseAsync(
@@ -887,9 +888,9 @@ private Mono>> createWithResponseAsync(
* @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 data Lake Store account information.
+ * @return the {@link PollerFlux} for polling of data Lake Store account information.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DataLakeStoreAccountInner> beginCreateAsync(
String resourceGroupName, String accountName, CreateDataLakeStoreAccountParameters parameters) {
Mono>> mono = createWithResponseAsync(resourceGroupName, accountName, parameters);
@@ -900,7 +901,7 @@ private PollerFlux, DataLakeStoreAccountIn
this.client.getHttpPipeline(),
DataLakeStoreAccountInner.class,
DataLakeStoreAccountInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -913,9 +914,9 @@ private PollerFlux, DataLakeStoreAccountIn
* @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 data Lake Store account information.
+ * @return the {@link PollerFlux} for polling of data Lake Store account information.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DataLakeStoreAccountInner> beginCreateAsync(
String resourceGroupName,
String accountName,
@@ -943,12 +944,12 @@ private PollerFlux, DataLakeStoreAccountIn
* @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 data Lake Store account information.
+ * @return the {@link SyncPoller} for polling of data Lake Store account information.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DataLakeStoreAccountInner> beginCreate(
String resourceGroupName, String accountName, CreateDataLakeStoreAccountParameters parameters) {
- return beginCreateAsync(resourceGroupName, accountName, parameters).getSyncPoller();
+ return this.beginCreateAsync(resourceGroupName, accountName, parameters).getSyncPoller();
}
/**
@@ -961,15 +962,15 @@ public SyncPoller, DataLakeStoreAccountInn
* @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 data Lake Store account information.
+ * @return the {@link SyncPoller} for polling of data Lake Store account information.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DataLakeStoreAccountInner> beginCreate(
String resourceGroupName,
String accountName,
CreateDataLakeStoreAccountParameters parameters,
Context context) {
- return beginCreateAsync(resourceGroupName, accountName, parameters, context).getSyncPoller();
+ return this.beginCreateAsync(resourceGroupName, accountName, parameters, context).getSyncPoller();
}
/**
@@ -981,7 +982,7 @@ public SyncPoller, DataLakeStoreAccountInn
* @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 data Lake Store account information.
+ * @return data Lake Store account information on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(
@@ -1001,7 +1002,7 @@ private Mono createAsync(
* @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 data Lake Store account information.
+ * @return data Lake Store account information on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(
@@ -1060,7 +1061,8 @@ public DataLakeStoreAccountInner create(
* @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 specified Data Lake Store account.
+ * @return the specified Data Lake Store account along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -1109,7 +1111,8 @@ private Mono> getByResourceGroupWithResponse
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified Data Lake Store account.
+ * @return the specified Data Lake Store account along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -1154,19 +1157,12 @@ private Mono> getByResourceGroupWithResponse
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the specified Data Lake Store account.
+ * @return the specified Data Lake Store account on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getByResourceGroupAsync(String resourceGroupName, String accountName) {
return getByResourceGroupWithResponseAsync(resourceGroupName, accountName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -1174,14 +1170,16 @@ private Mono getByResourceGroupAsync(String resourceG
*
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
+ * @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 specified Data Lake Store account.
+ * @return the specified Data Lake Store account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public DataLakeStoreAccountInner getByResourceGroup(String resourceGroupName, String accountName) {
- return getByResourceGroupAsync(resourceGroupName, accountName).block();
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String accountName, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, accountName, context).block();
}
/**
@@ -1189,16 +1187,14 @@ public DataLakeStoreAccountInner getByResourceGroup(String resourceGroupName, St
*
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
- * @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 specified Data Lake Store account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getByResourceGroupWithResponse(
- String resourceGroupName, String accountName, Context context) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, accountName, context).block();
+ public DataLakeStoreAccountInner getByResourceGroup(String resourceGroupName, String accountName) {
+ return getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE).getValue();
}
/**
@@ -1210,7 +1206,7 @@ public Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account information.
+ * @return data Lake Store account information along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -1266,7 +1262,7 @@ private Mono>> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account information.
+ * @return data Lake Store account information along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(
@@ -1321,9 +1317,9 @@ private Mono>> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account information.
+ * @return the {@link PollerFlux} for polling of data Lake Store account information.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DataLakeStoreAccountInner> beginUpdateAsync(
String resourceGroupName, String accountName, UpdateDataLakeStoreAccountParameters parameters) {
Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, parameters);
@@ -1334,7 +1330,7 @@ private PollerFlux, DataLakeStoreAccountIn
this.client.getHttpPipeline(),
DataLakeStoreAccountInner.class,
DataLakeStoreAccountInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
@@ -1347,9 +1343,9 @@ private PollerFlux, DataLakeStoreAccountIn
* @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 data Lake Store account information.
+ * @return the {@link PollerFlux} for polling of data Lake Store account information.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DataLakeStoreAccountInner> beginUpdateAsync(
String resourceGroupName,
String accountName,
@@ -1377,12 +1373,12 @@ private PollerFlux, DataLakeStoreAccountIn
* @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 data Lake Store account information.
+ * @return the {@link SyncPoller} for polling of data Lake Store account information.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DataLakeStoreAccountInner> beginUpdate(
String resourceGroupName, String accountName, UpdateDataLakeStoreAccountParameters parameters) {
- return beginUpdateAsync(resourceGroupName, accountName, parameters).getSyncPoller();
+ return this.beginUpdateAsync(resourceGroupName, accountName, parameters).getSyncPoller();
}
/**
@@ -1395,15 +1391,15 @@ public SyncPoller, DataLakeStoreAccountInn
* @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 data Lake Store account information.
+ * @return the {@link SyncPoller} for polling of data Lake Store account information.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DataLakeStoreAccountInner> beginUpdate(
String resourceGroupName,
String accountName,
UpdateDataLakeStoreAccountParameters parameters,
Context context) {
- return beginUpdateAsync(resourceGroupName, accountName, parameters, context).getSyncPoller();
+ return this.beginUpdateAsync(resourceGroupName, accountName, parameters, context).getSyncPoller();
}
/**
@@ -1415,7 +1411,7 @@ public SyncPoller, DataLakeStoreAccountInn
* @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 data Lake Store account information.
+ * @return data Lake Store account information on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
@@ -1435,7 +1431,7 @@ private Mono updateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return data Lake Store account information.
+ * @return data Lake Store account information on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
@@ -1494,7 +1490,7 @@ public DataLakeStoreAccountInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName) {
@@ -1540,7 +1536,7 @@ private Mono>> deleteWithResponseAsync(String resource
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
@@ -1583,14 +1579,15 @@ private Mono>> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName) {
Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName);
return this
.client
- .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}
/**
@@ -1602,9 +1599,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
String resourceGroupName, String accountName, Context context) {
context = this.client.mergeContext(context);
@@ -1622,11 +1619,11 @@ private PollerFlux, Void> beginDeleteAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName) {
- return beginDeleteAsync(resourceGroupName, accountName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, accountName).getSyncPoller();
}
/**
@@ -1638,12 +1635,12 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, Context context) {
- return beginDeleteAsync(resourceGroupName, accountName, context).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, accountName, context).getSyncPoller();
}
/**
@@ -1654,7 +1651,7 @@ public SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String accountName) {
@@ -1670,7 +1667,7 @@ private Mono deleteAsync(String resourceGroupName, String accountName) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String accountName, Context context) {
@@ -1716,7 +1713,7 @@ public void delete(String resourceGroupName, String accountName, Context context
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> enableKeyVaultWithResponseAsync(String resourceGroupName, String accountName) {
@@ -1762,7 +1759,7 @@ private Mono> enableKeyVaultWithResponseAsync(String resourceGrou
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> enableKeyVaultWithResponseAsync(
@@ -1805,12 +1802,11 @@ private Mono> enableKeyVaultWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono enableKeyVaultAsync(String resourceGroupName, String accountName) {
- return enableKeyVaultWithResponseAsync(resourceGroupName, accountName)
- .flatMap((Response res) -> Mono.empty());
+ return enableKeyVaultWithResponseAsync(resourceGroupName, accountName).flatMap(ignored -> Mono.empty());
}
/**
@@ -1818,13 +1814,15 @@ private Mono enableKeyVaultAsync(String resourceGroupName, String accountN
*
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void enableKeyVault(String resourceGroupName, String accountName) {
- enableKeyVaultAsync(resourceGroupName, accountName).block();
+ public Response enableKeyVaultWithResponse(String resourceGroupName, String accountName, Context context) {
+ return enableKeyVaultWithResponseAsync(resourceGroupName, accountName, context).block();
}
/**
@@ -1832,15 +1830,13 @@ public void enableKeyVault(String resourceGroupName, String accountName) {
*
* @param resourceGroupName The name of the Azure resource group.
* @param accountName The name of the Data Lake Store account.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response enableKeyVaultWithResponse(String resourceGroupName, String accountName, Context context) {
- return enableKeyVaultWithResponseAsync(resourceGroupName, accountName, context).block();
+ public void enableKeyVault(String resourceGroupName, String accountName) {
+ enableKeyVaultWithResponse(resourceGroupName, accountName, Context.NONE);
}
/**
@@ -1851,7 +1847,8 @@ public Response enableKeyVaultWithResponse(String resourceGroupName, Strin
* @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 data Lake Store account name availability result information.
+ * @return data Lake Store account name availability result information along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> checkNameAvailabilityWithResponseAsync(
@@ -1901,7 +1898,8 @@ private Mono> checkNameAvailabilityWi
* @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 data Lake Store account name availability result information.
+ * @return data Lake Store account name availability result information along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> checkNameAvailabilityWithResponseAsync(
@@ -1947,20 +1945,13 @@ private Mono> checkNameAvailabilityWi
* @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 data Lake Store account name availability result information.
+ * @return data Lake Store account name availability result information on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono checkNameAvailabilityAsync(
String location, CheckNameAvailabilityParameters parameters) {
return checkNameAvailabilityWithResponseAsync(location, parameters)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -1968,15 +1959,16 @@ private Mono checkNameAvailabilityAsync(
*
* @param location The resource location without whitespace.
* @param parameters Parameters supplied to check the Data Lake Store account name availability.
+ * @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 data Lake Store account name availability result information.
+ * @return data Lake Store account name availability result information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public NameAvailabilityInformationInner checkNameAvailability(
- String location, CheckNameAvailabilityParameters parameters) {
- return checkNameAvailabilityAsync(location, parameters).block();
+ public Response checkNameAvailabilityWithResponse(
+ String location, CheckNameAvailabilityParameters parameters, Context context) {
+ return checkNameAvailabilityWithResponseAsync(location, parameters, context).block();
}
/**
@@ -1984,26 +1976,27 @@ public NameAvailabilityInformationInner checkNameAvailability(
*
* @param location The resource location without whitespace.
* @param parameters Parameters supplied to check the Data Lake Store account name availability.
- * @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 data Lake Store account name availability result information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response checkNameAvailabilityWithResponse(
- String location, CheckNameAvailabilityParameters parameters, Context context) {
- return checkNameAvailabilityWithResponseAsync(location, parameters, context).block();
+ public NameAvailabilityInformationInner checkNameAvailability(
+ String location, CheckNameAvailabilityParameters parameters) {
+ return checkNameAvailabilityWithResponse(location, parameters, Context.NONE).getValue();
}
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @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 data Lake Store account list information response.
+ * @return data Lake Store account list information response along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -2034,12 +2027,14 @@ private Mono> listNextSinglePageAs
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @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 data Lake Store account list information response.
+ * @return data Lake Store account list information response along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(
@@ -2071,11 +2066,13 @@ private Mono> listNextSinglePageAs
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @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 data Lake Store account list information response.
+ * @return data Lake Store account list information response along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(
@@ -2108,12 +2105,14 @@ private Mono> listByResourceGroupN
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @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 data Lake Store account list information response.
+ * @return data Lake Store account list information response along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/implementation/AccountsImpl.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/implementation/AccountsImpl.java
index 6c9993931326b..2079fa0a20585 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/implementation/AccountsImpl.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/implementation/AccountsImpl.java
@@ -18,10 +18,9 @@
import com.azure.resourcemanager.datalakestore.models.DataLakeStoreAccount;
import com.azure.resourcemanager.datalakestore.models.DataLakeStoreAccountBasic;
import com.azure.resourcemanager.datalakestore.models.NameAvailabilityInformation;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class AccountsImpl implements Accounts {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AccountsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(AccountsImpl.class);
private final AccountsClient innerClient;
@@ -67,15 +66,6 @@ public PagedIterable listByResourceGroup(
return Utils.mapPage(inner, inner1 -> new DataLakeStoreAccountBasicImpl(inner1, this.manager()));
}
- public DataLakeStoreAccount getByResourceGroup(String resourceGroupName, String accountName) {
- DataLakeStoreAccountInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, accountName);
- if (inner != null) {
- return new DataLakeStoreAccountImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getByResourceGroupWithResponse(
String resourceGroupName, String accountName, Context context) {
Response inner =
@@ -91,6 +81,15 @@ public Response getByResourceGroupWithResponse(
}
}
+ public DataLakeStoreAccount getByResourceGroup(String resourceGroupName, String accountName) {
+ DataLakeStoreAccountInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, accountName);
+ if (inner != null) {
+ return new DataLakeStoreAccountImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public void deleteByResourceGroup(String resourceGroupName, String accountName) {
this.serviceClient().delete(resourceGroupName, accountName);
}
@@ -99,22 +98,12 @@ public void delete(String resourceGroupName, String accountName, Context context
this.serviceClient().delete(resourceGroupName, accountName, context);
}
- public void enableKeyVault(String resourceGroupName, String accountName) {
- this.serviceClient().enableKeyVault(resourceGroupName, accountName);
- }
-
public Response enableKeyVaultWithResponse(String resourceGroupName, String accountName, Context context) {
return this.serviceClient().enableKeyVaultWithResponse(resourceGroupName, accountName, context);
}
- public NameAvailabilityInformation checkNameAvailability(
- String location, CheckNameAvailabilityParameters parameters) {
- NameAvailabilityInformationInner inner = this.serviceClient().checkNameAvailability(location, parameters);
- if (inner != null) {
- return new NameAvailabilityInformationImpl(inner, this.manager());
- } else {
- return null;
- }
+ public void enableKeyVault(String resourceGroupName, String accountName) {
+ this.serviceClient().enableKeyVault(resourceGroupName, accountName);
}
public Response checkNameAvailabilityWithResponse(
@@ -132,10 +121,20 @@ public Response checkNameAvailabilityWithResponse(
}
}
+ public NameAvailabilityInformation checkNameAvailability(
+ String location, CheckNameAvailabilityParameters parameters) {
+ NameAvailabilityInformationInner inner = this.serviceClient().checkNameAvailability(location, parameters);
+ if (inner != null) {
+ return new NameAvailabilityInformationImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public DataLakeStoreAccount getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -143,7 +142,7 @@ public DataLakeStoreAccount getById(String id) {
}
String accountName = Utils.getValueFromIdByName(id, "accounts");
if (accountName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
@@ -154,7 +153,7 @@ public DataLakeStoreAccount getById(String id) {
public Response getByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -162,7 +161,7 @@ public Response getByIdWithResponse(String id, Context con
}
String accountName = Utils.getValueFromIdByName(id, "accounts");
if (accountName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
@@ -173,7 +172,7 @@ public Response getByIdWithResponse(String id, Context con
public void deleteById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -181,7 +180,7 @@ public void deleteById(String id) {
}
String accountName = Utils.getValueFromIdByName(id, "accounts");
if (accountName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
@@ -192,7 +191,7 @@ public void deleteById(String id) {
public void deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -200,7 +199,7 @@ public void deleteByIdWithResponse(String id, Context context) {
}
String accountName = Utils.getValueFromIdByName(id, "accounts");
if (accountName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id)));
diff --git a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/implementation/DataLakeStoreAccountImpl.java b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/implementation/DataLakeStoreAccountImpl.java
index 5eada13f294f4..2629bea8f5356 100644
--- a/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/implementation/DataLakeStoreAccountImpl.java
+++ b/sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/implementation/DataLakeStoreAccountImpl.java
@@ -76,30 +76,6 @@ public EncryptionIdentity identity() {
return this.innerModel().identity();
}
- public UUID accountId() {
- return this.innerModel().accountId();
- }
-
- public DataLakeStoreAccountStatus provisioningState() {
- return this.innerModel().provisioningState();
- }
-
- public DataLakeStoreAccountState state() {
- return this.innerModel().state();
- }
-
- public OffsetDateTime creationTime() {
- return this.innerModel().creationTime();
- }
-
- public OffsetDateTime lastModifiedTime() {
- return this.innerModel().lastModifiedTime();
- }
-
- public String endpoint() {
- return this.innerModel().endpoint();
- }
-
public String defaultGroup() {
return this.innerModel().defaultGroup();
}
@@ -178,6 +154,30 @@ public TierType currentTier() {
return this.innerModel().currentTier();
}
+ public UUID accountId() {
+ return this.innerModel().accountId();
+ }
+
+ public DataLakeStoreAccountStatus provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public DataLakeStoreAccountState state() {
+ return this.innerModel().state();
+ }
+
+ public OffsetDateTime creationTime() {
+ return this.innerModel().creationTime();
+ }
+
+ public OffsetDateTime lastModifiedTime() {
+ return this.innerModel().lastModifiedTime();
+ }
+
+ public String endpoint() {
+ return this.innerModel().endpoint();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -186,6 +186,10 @@ public String regionName() {
return this.location();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public DataLakeStoreAccountInner innerModel() {
return this.innerObject;
}
@@ -284,14 +288,14 @@ public DataLakeStoreAccount refresh(Context context) {
return this;
}
- public void enableKeyVault() {
- serviceManager.accounts().enableKeyVault(resourceGroupName, accountName);
- }
-
public Response