diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 31f329aa14f2..01d5388d917f 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -361,7 +361,7 @@ com.azure.resourcemanager:azure-resourcemanager-peering;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-policyinsights;1.0.0;1.1.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-support;1.1.0;1.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-subscription;1.0.0;1.1.0-beta.2
-com.azure.resourcemanager:azure-resourcemanager-powerbidedicated;1.0.0;1.1.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-powerbidedicated;1.0.0;1.1.0
com.azure.resourcemanager:azure-resourcemanager-applicationinsights;1.1.0;1.2.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-deploymentmanager;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-notificationhubs;1.0.0;1.1.0-beta.1
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/CHANGELOG.md b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/CHANGELOG.md
index e401b16d5f01..03e7147e6a11 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/CHANGELOG.md
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/CHANGELOG.md
@@ -1,14 +1,98 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.1.0 (2026-03-05)
-### Features Added
+- Azure Resource Manager PowerBIDedicated client library for Java. This package contains Microsoft Azure SDK for PowerBIDedicated Management SDK. PowerBI Dedicated Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete Power BI dedicated capacities. Package api-version 2021-01-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.OperationListResult` was removed
-### Other Changes
+#### `models.AutoScaleVCoreListResult` was removed
+
+#### `models.DedicatedCapacities` was removed
+
+#### `PowerBIDedicatedManager` was modified
+
+* `fluent.PowerBIDedicated serviceClient()` -> `fluent.PowerBIDedicatedManagementClient serviceClient()`
+
+#### `models.AutoScaleVCoreSku` was modified
+
+* `validate()` was removed
+
+#### `models.CheckCapacityNameAvailabilityParameters` was modified
+
+* `validate()` was removed
+
+#### `models.OperationDisplay` was modified
+
+* `OperationDisplay()` was changed to private access
+* `validate()` was removed
+* `withDescription(java.lang.String)` was removed
+
+#### `models.SkuDetailsForExistingResource` was modified
+
+* `SkuDetailsForExistingResource()` was changed to private access
+* `withSku(models.CapacitySku)` was removed
+* `withResourceType(java.lang.String)` was removed
+* `validate()` was removed
+
+#### `models.DedicatedCapacityAdministrators` was modified
+
+* `validate()` was removed
+
+#### `models.MetricSpecificationDimensionsItem` was modified
+
+* `MetricSpecificationDimensionsItem()` was changed to private access
+* `withDisplayName(java.lang.String)` was removed
+* `validate()` was removed
+
+#### `models.AutoScaleVCoreUpdateParameters` was modified
+
+* `validate()` was removed
+
+#### `models.ServiceSpecification` was modified
+
+* `ServiceSpecification()` was changed to private access
+* `withMetricSpecifications(java.util.List)` was removed
+* `withLogSpecifications(java.util.List)` was removed
+* `validate()` was removed
+
+#### `models.LogSpecification` was modified
+
+* `LogSpecification()` was changed to private access
+* `withDisplayName(java.lang.String)` was removed
+* `validate()` was removed
+
+#### `models.CapacitySku` was modified
+
+* `validate()` was removed
+
+#### `models.DedicatedCapacity$Definition` was modified
+
+* `withSystemData(com.azure.core.management.SystemData)` was removed
+
+#### `models.DedicatedCapacityUpdateParameters` was modified
+
+* `validate()` was removed
+
+#### `models.MetricSpecification` was modified
+
+* `MetricSpecification()` was changed to private access
+* `validate()` was removed
+* `withDisplayDescription(java.lang.String)` was removed
+* `withDimensions(java.util.List)` was removed
+* `withDisplayName(java.lang.String)` was removed
+
+#### `models.AutoScaleVCore$Definition` was modified
+
+* `withSystemData(com.azure.core.management.SystemData)` was removed
+
+#### `models.OperationProperties` was modified
+
+* `OperationProperties()` was changed to private access
+* `withServiceSpecification(models.ServiceSpecification)` was removed
+* `validate()` was removed
## 1.0.0 (2024-12-25)
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/README.md b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/README.md
index f130e4c6135f..925b2b115e61 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/README.md
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager PowerBIDedicated client library for Java.
-This package contains Microsoft Azure SDK for PowerBIDedicated Management SDK. PowerBI Dedicated Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete Power BI dedicated capacities. Package tag package-2021-01-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for PowerBIDedicated Management SDK. PowerBI Dedicated Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete Power BI dedicated capacities. Package api-version 2021-01-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-powerbidedicated
- 1.1.0-beta.1
+ 1.1.0
```
[//]: # ({x-version-update-end})
@@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
-AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
@@ -60,7 +60,7 @@ PowerBIDedicatedManager manager = PowerBIDedicatedManager
.authenticate(credential, profile);
```
-The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
See [Authentication][authenticate] for more options.
@@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
-
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/SAMPLE.md b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/SAMPLE.md
index ebc830819408..f9800cf7f9df 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/SAMPLE.md
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/SAMPLE.md
@@ -40,9 +40,7 @@ import java.util.Map;
*/
public final class AutoScaleVCoresCreateSamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/
- * createAutoScaleVCore.json
+ * x-ms-original-file: 2021-01-01/createAutoScaleVCore.json
*/
/**
* Sample code: Create auto scale v-core.
@@ -84,9 +82,7 @@ public final class AutoScaleVCoresCreateSamples {
*/
public final class AutoScaleVCoresDeleteSamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/
- * deleteAutoScaleVCore.json
+ * x-ms-original-file: 2021-01-01/deleteAutoScaleVCore.json
*/
/**
* Sample code: Delete an auto scale v-core.
@@ -109,9 +105,7 @@ public final class AutoScaleVCoresDeleteSamples {
*/
public final class AutoScaleVCoresGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/
- * getAutoScaleVCore.json
+ * x-ms-original-file: 2021-01-01/getAutoScaleVCore.json
*/
/**
* Sample code: Get details of an auto scale v-core.
@@ -134,9 +128,7 @@ public final class AutoScaleVCoresGetByResourceGroupSamples {
*/
public final class AutoScaleVCoresListSamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/
- * listAutoScaleVCoresInSubscription.json
+ * x-ms-original-file: 2021-01-01/listAutoScaleVCoresInSubscription.json
*/
/**
* Sample code: List auto scale v-cores in subscription.
@@ -158,9 +150,7 @@ public final class AutoScaleVCoresListSamples {
*/
public final class AutoScaleVCoresListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/
- * listAutoScaleVCoresInResourceGroup.json
+ * x-ms-original-file: 2021-01-01/listAutoScaleVCoresInResourceGroup.json
*/
/**
* Sample code: List auto scale v-cores in resource group.
@@ -188,9 +178,7 @@ import java.util.Map;
*/
public final class AutoScaleVCoresUpdateSamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/
- * updateAutoScaleVCore.json
+ * x-ms-original-file: 2021-01-01/updateAutoScaleVCore.json
*/
/**
* Sample code: Update auto scale v-core parameters.
@@ -233,9 +221,7 @@ import com.azure.resourcemanager.powerbidedicated.models.CheckCapacityNameAvaila
*/
public final class CapacitiesCheckNameAvailabilitySamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/
- * checkNameAvailability.json
+ * x-ms-original-file: 2021-01-01/checkNameAvailability.json
*/
/**
* Sample code: Check name availability of a capacity.
@@ -268,9 +254,7 @@ import java.util.Map;
*/
public final class CapacitiesCreateSamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/
- * createCapacity.json
+ * x-ms-original-file: 2021-01-01/createCapacity.json
*/
/**
* Sample code: Create capacity.
@@ -311,9 +295,7 @@ public final class CapacitiesCreateSamples {
*/
public final class CapacitiesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/
- * deleteCapacity.json
+ * x-ms-original-file: 2021-01-01/deleteCapacity.json
*/
/**
* Sample code: Get details of a capacity.
@@ -335,9 +317,7 @@ public final class CapacitiesDeleteSamples {
*/
public final class CapacitiesGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/getCapacity
- * .json
+ * x-ms-original-file: 2021-01-01/getCapacity.json
*/
/**
* Sample code: Get details of a capacity.
@@ -359,9 +339,7 @@ public final class CapacitiesGetByResourceGroupSamples {
*/
public final class CapacitiesListSamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/
- * listCapacitiesInSubscription.json
+ * x-ms-original-file: 2021-01-01/listCapacitiesInSubscription.json
*/
/**
* Sample code: Get details of a capacity.
@@ -383,9 +361,7 @@ public final class CapacitiesListSamples {
*/
public final class CapacitiesListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/
- * listCapacitiesInResourceGroup.json
+ * x-ms-original-file: 2021-01-01/listCapacitiesInResourceGroup.json
*/
/**
* Sample code: List capacities in resource group.
@@ -407,9 +383,7 @@ public final class CapacitiesListByResourceGroupSamples {
*/
public final class CapacitiesListSkusSamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/
- * listSKUsForNew.json
+ * x-ms-original-file: 2021-01-01/listSKUsForNew.json
*/
/**
* Sample code: List eligible SKUs for a new capacity.
@@ -431,9 +405,7 @@ public final class CapacitiesListSkusSamples {
*/
public final class CapacitiesListSkusForCapacitySamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/
- * listSKUsForExisting.json
+ * x-ms-original-file: 2021-01-01/listSKUsForExisting.json
*/
/**
* Sample code: List eligible SKUs for an existing capacity.
@@ -455,9 +427,7 @@ public final class CapacitiesListSkusForCapacitySamples {
*/
public final class CapacitiesResumeSamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/
- * resumeCapacity.json
+ * x-ms-original-file: 2021-01-01/resumeCapacity.json
*/
/**
* Sample code: Get details of a capacity.
@@ -479,9 +449,7 @@ public final class CapacitiesResumeSamples {
*/
public final class CapacitiesSuspendSamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/
- * suspendCapacity.json
+ * x-ms-original-file: 2021-01-01/suspendCapacity.json
*/
/**
* Sample code: Suspend capacity.
@@ -511,9 +479,7 @@ import java.util.Map;
*/
public final class CapacitiesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/
- * updateToGen2.json
+ * x-ms-original-file: 2021-01-01/updateToGen2.json
*/
/**
* Sample code: Update capacity to Generation 2.
@@ -533,9 +499,7 @@ public final class CapacitiesUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/
- * updateCapacity.json
+ * x-ms-original-file: 2021-01-01/updateCapacity.json
*/
/**
* Sample code: Update capacity parameters.
@@ -577,9 +541,7 @@ public final class CapacitiesUpdateSamples {
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file:
- * specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/operations.
- * json
+ * x-ms-original-file: 2021-01-01/operations.json
*/
/**
* Sample code: List operations.
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/pom.xml b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/pom.xml
index aeadcb8bf9c6..d104e8b8b99c 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/pom.xml
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/pom.xml
@@ -1,9 +1,9 @@
-
+
4.0.0
com.azure
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-powerbidedicated
- 1.1.0-beta.1
+ 1.1.0
jar
Microsoft Azure SDK for PowerBIDedicated Management
- This package contains Microsoft Azure SDK for PowerBIDedicated Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. PowerBI Dedicated Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete Power BI dedicated capacities. Package tag package-2021-01-01.
+ This package contains Microsoft Azure SDK for PowerBIDedicated Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. PowerBI Dedicated Web API provides a RESTful set of web services that enables users to create, retrieve, update, and delete Power BI dedicated capacities. Package api-version 2021-01-01.
https://github.com/Azure/azure-sdk-for-java
@@ -45,7 +45,7 @@
UTF-8
0
0
- false
+ true
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/PowerBIDedicatedManager.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/PowerBIDedicatedManager.java
index b93ce66881dc..0c1d4cb99e49 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/PowerBIDedicatedManager.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/PowerBIDedicatedManager.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated;
@@ -22,12 +22,13 @@
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
+import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.powerbidedicated.fluent.PowerBIDedicated;
+import com.azure.resourcemanager.powerbidedicated.fluent.PowerBIDedicatedManagementClient;
import com.azure.resourcemanager.powerbidedicated.implementation.AutoScaleVCoresImpl;
import com.azure.resourcemanager.powerbidedicated.implementation.CapacitiesImpl;
import com.azure.resourcemanager.powerbidedicated.implementation.OperationsImpl;
-import com.azure.resourcemanager.powerbidedicated.implementation.PowerBIDedicatedBuilder;
+import com.azure.resourcemanager.powerbidedicated.implementation.PowerBIDedicatedManagementClientBuilder;
import com.azure.resourcemanager.powerbidedicated.models.AutoScaleVCores;
import com.azure.resourcemanager.powerbidedicated.models.Capacities;
import com.azure.resourcemanager.powerbidedicated.models.Operations;
@@ -35,6 +36,7 @@
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
+import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
@@ -44,18 +46,18 @@
* delete Power BI dedicated capacities.
*/
public final class PowerBIDedicatedManager {
- private Capacities capacities;
-
private Operations operations;
+ private Capacities capacities;
+
private AutoScaleVCores autoScaleVCores;
- private final PowerBIDedicated clientObject;
+ private final PowerBIDedicatedManagementClient clientObject;
private PowerBIDedicatedManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject = new PowerBIDedicatedBuilder().pipeline(httpPipeline)
+ this.clientObject = new PowerBIDedicatedManagementClientBuilder().pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
.defaultPollInterval(defaultPollInterval)
@@ -102,6 +104,9 @@ public static Configurable configure() {
*/
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
+ private static final String SDK_VERSION = "version";
+ private static final Map PROPERTIES
+ = CoreUtils.getProperties("azure-resourcemanager-powerbidedicated.properties");
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
@@ -209,12 +214,14 @@ public PowerBIDedicatedManager authenticate(TokenCredential credential, AzurePro
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+
StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java")
.append("-")
.append("com.azure.resourcemanager.powerbidedicated")
.append("/")
- .append("1.0.0");
+ .append(clientVersion);
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -260,18 +267,6 @@ public PowerBIDedicatedManager authenticate(TokenCredential credential, AzurePro
}
}
- /**
- * Gets the resource collection API of Capacities. It manages DedicatedCapacity.
- *
- * @return Resource collection API of Capacities.
- */
- public Capacities capacities() {
- if (this.capacities == null) {
- this.capacities = new CapacitiesImpl(clientObject.getCapacities(), this);
- }
- return capacities;
- }
-
/**
* Gets the resource collection API of Operations.
*
@@ -284,6 +279,18 @@ public Operations operations() {
return operations;
}
+ /**
+ * Gets the resource collection API of Capacities. It manages DedicatedCapacity.
+ *
+ * @return Resource collection API of Capacities.
+ */
+ public Capacities capacities() {
+ if (this.capacities == null) {
+ this.capacities = new CapacitiesImpl(clientObject.getCapacities(), this);
+ }
+ return capacities;
+ }
+
/**
* Gets the resource collection API of AutoScaleVCores. It manages AutoScaleVCore.
*
@@ -297,12 +304,12 @@ public AutoScaleVCores autoScaleVCores() {
}
/**
- * Gets wrapped service client PowerBIDedicated providing direct access to the underlying auto-generated API
- * implementation, based on Azure REST API.
+ * Gets wrapped service client PowerBIDedicatedManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
*
- * @return Wrapped service client PowerBIDedicated.
+ * @return Wrapped service client PowerBIDedicatedManagementClient.
*/
- public PowerBIDedicated serviceClient() {
+ public PowerBIDedicatedManagementClient serviceClient() {
return this.clientObject;
}
}
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/AutoScaleVCoresClient.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/AutoScaleVCoresClient.java
index 853ec3e2bc7f..5032f72e2e3e 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/AutoScaleVCoresClient.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/AutoScaleVCoresClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.fluent;
@@ -19,8 +19,7 @@ public interface AutoScaleVCoresClient {
/**
* Gets details about the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -35,8 +34,7 @@ Response getByResourceGroupWithResponse(String resourceGrou
/**
* Gets details about the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -49,8 +47,7 @@ Response getByResourceGroupWithResponse(String resourceGrou
/**
* Provisions the specified auto scale v-core based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
* @param vCoreParameters Contains the information used to provision the auto scale v-core.
* @param context The context to associate with this operation.
@@ -66,8 +63,7 @@ Response createWithResponse(String resourceGroupName, Strin
/**
* Provisions the specified auto scale v-core based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
* @param vCoreParameters Contains the information used to provision the auto scale v-core.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -79,71 +75,66 @@ Response createWithResponse(String resourceGroupName, Strin
AutoScaleVCoreInner create(String resourceGroupName, String vcoreName, AutoScaleVCoreInner vCoreParameters);
/**
- * Deletes the specified auto scale v-core.
+ * Updates the current state of the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
+ * @param vCoreUpdateParameters Request object that contains the updated information for the auto scale v-core.
* @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}.
+ * @return represents an instance of an auto scale v-core resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String vcoreName, Context context);
+ Response updateWithResponse(String resourceGroupName, String vcoreName,
+ AutoScaleVCoreUpdateParameters vCoreUpdateParameters, Context context);
/**
- * Deletes the specified auto scale v-core.
+ * Updates the current state of the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
+ * @param vCoreUpdateParameters Request object that contains the updated information for the auto scale v-core.
* @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 represents an instance of an auto scale v-core resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String vcoreName);
+ AutoScaleVCoreInner update(String resourceGroupName, String vcoreName,
+ AutoScaleVCoreUpdateParameters vCoreUpdateParameters);
/**
- * Updates the current state of the specified auto scale v-core.
+ * Deletes the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
- * @param vCoreUpdateParameters Request object that contains the updated information for the auto scale v-core.
* @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 represents an instance of an auto scale v-core resource along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String vcoreName,
- AutoScaleVCoreUpdateParameters vCoreUpdateParameters, Context context);
+ Response deleteWithResponse(String resourceGroupName, String vcoreName, Context context);
/**
- * Updates the current state of the specified auto scale v-core.
+ * Deletes the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
- * @param vCoreUpdateParameters Request object that contains the updated information for the auto scale v-core.
* @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 represents an instance of an auto scale v-core resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AutoScaleVCoreInner update(String resourceGroupName, String vcoreName,
- AutoScaleVCoreUpdateParameters vCoreUpdateParameters);
+ void delete(String resourceGroupName, String vcoreName);
/**
* Gets all the auto scale v-cores for the given resource group.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -155,8 +146,7 @@ AutoScaleVCoreInner update(String resourceGroupName, String vcoreName,
/**
* Gets all the auto scale v-cores for the given resource group.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/CapacitiesClient.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/CapacitiesClient.java
index 0e929b21341f..9fedd2c5d0db 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/CapacitiesClient.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/CapacitiesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.fluent;
@@ -25,8 +25,7 @@ public interface CapacitiesClient {
/**
* Gets details about the specified dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @param context The context to associate with this operation.
@@ -42,8 +41,7 @@ Response getByResourceGroupWithResponse(String resourceG
/**
* Gets details about the specified dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -57,9 +55,8 @@ Response getByResourceGroupWithResponse(String resourceG
/**
* Provisions the specified Dedicated capacity based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be a minimum of 3 characters, and a
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @param capacityParameters Contains the information used to provision the Dedicated capacity.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -74,9 +71,8 @@ SyncPoller, DedicatedCapacityInner> beginCrea
/**
* Provisions the specified Dedicated capacity based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be a minimum of 3 characters, and a
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @param capacityParameters Contains the information used to provision the Dedicated capacity.
* @param context The context to associate with this operation.
@@ -92,9 +88,8 @@ SyncPoller, DedicatedCapacityInner> beginCrea
/**
* Provisions the specified Dedicated capacity based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be a minimum of 3 characters, and a
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @param capacityParameters Contains the information used to provision the Dedicated capacity.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -109,9 +104,8 @@ DedicatedCapacityInner create(String resourceGroupName, String dedicatedCapacity
/**
* Provisions the specified Dedicated capacity based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be a minimum of 3 characters, and a
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @param capacityParameters Contains the information used to provision the Dedicated capacity.
* @param context The context to associate with this operation.
@@ -124,13 +118,78 @@ DedicatedCapacityInner create(String resourceGroupName, String dedicatedCapacity
DedicatedCapacityInner create(String resourceGroupName, String dedicatedCapacityName,
DedicatedCapacityInner capacityParameters, Context context);
+ /**
+ * Updates the current state of the specified Dedicated capacity.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
+ * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of represents an instance of a Dedicated Capacity resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DedicatedCapacityInner> beginUpdate(String resourceGroupName,
+ String dedicatedCapacityName, DedicatedCapacityUpdateParameters capacityUpdateParameters);
+
+ /**
+ * Updates the current state of the specified Dedicated capacity.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
+ * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of represents an instance of a Dedicated Capacity resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DedicatedCapacityInner> beginUpdate(String resourceGroupName,
+ String dedicatedCapacityName, DedicatedCapacityUpdateParameters capacityUpdateParameters, Context context);
+
+ /**
+ * Updates the current state of the specified Dedicated capacity.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
+ * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
+ * @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 represents an instance of a Dedicated Capacity resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DedicatedCapacityInner update(String resourceGroupName, String dedicatedCapacityName,
+ DedicatedCapacityUpdateParameters capacityUpdateParameters);
+
+ /**
+ * Updates the current state of the specified Dedicated capacity.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
+ * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
+ * @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 represents an instance of a Dedicated Capacity resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DedicatedCapacityInner update(String resourceGroupName, String dedicatedCapacityName,
+ DedicatedCapacityUpdateParameters capacityUpdateParameters, Context context);
+
/**
* Deletes the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @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.
@@ -142,10 +201,9 @@ DedicatedCapacityInner create(String resourceGroupName, String dedicatedCapacity
/**
* Deletes the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @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.
@@ -159,10 +217,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* Deletes the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @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.
@@ -173,10 +230,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* Deletes the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @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.
@@ -186,82 +242,60 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
void delete(String resourceGroupName, String dedicatedCapacityName, Context context);
/**
- * Updates the current state of the specified Dedicated capacity.
+ * Gets all the Dedicated capacities for the given resource group.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
- * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of represents an instance of a Dedicated Capacity resource.
+ * @return all the Dedicated capacities for the given resource group as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DedicatedCapacityInner> beginUpdate(String resourceGroupName,
- String dedicatedCapacityName, DedicatedCapacityUpdateParameters capacityUpdateParameters);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * Updates the current state of the specified Dedicated capacity.
+ * Gets all the Dedicated capacities for the given resource group.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
- * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of represents an instance of a Dedicated Capacity resource.
+ * @return all the Dedicated capacities for the given resource group as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, DedicatedCapacityInner> beginUpdate(String resourceGroupName,
- String dedicatedCapacityName, DedicatedCapacityUpdateParameters capacityUpdateParameters, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
- * Updates the current state of the specified Dedicated capacity.
+ * Lists all the Dedicated capacities for the given subscription.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
- * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
- * @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 represents an instance of a Dedicated Capacity resource.
+ * @return an array of Dedicated capacities resources as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- DedicatedCapacityInner update(String resourceGroupName, String dedicatedCapacityName,
- DedicatedCapacityUpdateParameters capacityUpdateParameters);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
/**
- * Updates the current state of the specified Dedicated capacity.
+ * Lists all the Dedicated capacities for the given subscription.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
- * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
* @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 represents an instance of a Dedicated Capacity resource.
+ * @return an array of Dedicated capacities resources as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- DedicatedCapacityInner update(String resourceGroupName, String dedicatedCapacityName,
- DedicatedCapacityUpdateParameters capacityUpdateParameters, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
/**
* Suspends operation of the specified dedicated capacity instance.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @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.
@@ -273,10 +307,9 @@ DedicatedCapacityInner update(String resourceGroupName, String dedicatedCapacity
/**
* Suspends operation of the specified dedicated capacity instance.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @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.
@@ -290,10 +323,9 @@ SyncPoller, Void> beginSuspend(String resourceGroupName, String
/**
* Suspends operation of the specified dedicated capacity instance.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @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.
@@ -304,10 +336,9 @@ SyncPoller, Void> beginSuspend(String resourceGroupName, String
/**
* Suspends operation of the specified dedicated capacity instance.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @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.
@@ -319,10 +350,9 @@ SyncPoller, Void> beginSuspend(String resourceGroupName, String
/**
* Resumes operation of the specified Dedicated capacity instance.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @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.
@@ -334,10 +364,9 @@ SyncPoller, Void> beginSuspend(String resourceGroupName, String
/**
* Resumes operation of the specified Dedicated capacity instance.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @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.
@@ -351,10 +380,9 @@ SyncPoller, Void> beginResume(String resourceGroupName, String
/**
* Resumes operation of the specified Dedicated capacity instance.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @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.
@@ -365,10 +393,9 @@ SyncPoller, Void> beginResume(String resourceGroupName, String
/**
* Resumes operation of the specified Dedicated capacity instance.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @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.
@@ -378,55 +405,35 @@ SyncPoller, Void> beginResume(String resourceGroupName, String
void resume(String resourceGroupName, String dedicatedCapacityName, Context context);
/**
- * Gets all the Dedicated capacities for the given resource group.
- *
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Dedicated capacities for the given resource group as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * Gets all the Dedicated capacities for the given resource group.
+ * Lists eligible SKUs for a PowerBI Dedicated resource.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Dedicated capacities for the given resource group as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
- /**
- * Lists all the Dedicated capacities for the given subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an array of Dedicated capacities resources as paginated response with {@link PagedIterable}.
+ * @return an object that represents enumerating SKUs for existing resources along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listSkusForCapacityWithResponse(String resourceGroupName,
+ String dedicatedCapacityName, Context context);
/**
- * Lists all the Dedicated capacities for the given subscription.
+ * Lists eligible SKUs for a PowerBI Dedicated resource.
*
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @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 an array of Dedicated capacities resources as paginated response with {@link PagedIterable}.
+ * @return an object that represents enumerating SKUs for existing resources.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SkuEnumerationForExistingResourceResultInner listSkusForCapacity(String resourceGroupName,
+ String dedicatedCapacityName);
/**
* Lists eligible SKUs for PowerBI Dedicated resource provider.
@@ -450,44 +457,11 @@ SyncPoller, Void> beginResume(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
SkuEnumerationForNewResourceResultInner listSkus();
- /**
- * Lists eligible SKUs for a PowerBI Dedicated resource.
- *
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
- * @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 an object that represents enumerating SKUs for existing resources along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listSkusForCapacityWithResponse(String resourceGroupName,
- String dedicatedCapacityName, Context context);
-
- /**
- * Lists eligible SKUs for a PowerBI Dedicated resource.
- *
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
- * @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 an object that represents enumerating SKUs for existing resources.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SkuEnumerationForExistingResourceResultInner listSkusForCapacity(String resourceGroupName,
- String dedicatedCapacityName);
-
/**
* Check the name availability in the target location.
*
- * @param location The region name which the operation will lookup into.
- * @param capacityParameters The name of the capacity.
+ * @param location The location name.
+ * @param capacityParameters The request body.
* @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.
@@ -501,8 +475,8 @@ Response checkNameAvailabilityWithResp
/**
* Check the name availability in the target location.
*
- * @param location The region name which the operation will lookup into.
- * @param capacityParameters The name of the capacity.
+ * @param location The location name.
+ * @param capacityParameters The request body.
* @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.
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/OperationsClient.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/OperationsClient.java
index bc7deda04e85..4bb4aef9ce95 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/OperationsClient.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/OperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.fluent;
@@ -15,7 +15,7 @@
*/
public interface OperationsClient {
/**
- * Lists all of the available PowerBIDedicated REST API operations.
+ * List the operations for the provider.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -25,7 +25,7 @@ public interface OperationsClient {
PagedIterable list();
/**
- * Lists all of the available PowerBIDedicated REST API operations.
+ * List the operations for the provider.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/PowerBIDedicated.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/PowerBIDedicatedManagementClient.java
similarity index 80%
rename from sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/PowerBIDedicated.java
rename to sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/PowerBIDedicatedManagementClient.java
index eeb6defe0a3a..e37dfd7a0bff 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/PowerBIDedicated.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/PowerBIDedicatedManagementClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.fluent;
@@ -8,31 +8,30 @@
import java.time.Duration;
/**
- * The interface for PowerBIDedicated class.
+ * The interface for PowerBIDedicatedManagementClient class.
*/
-public interface PowerBIDedicated {
+public interface PowerBIDedicatedManagementClient {
/**
- * Gets A unique identifier for a Microsoft Azure subscription. The subscription ID forms part of the URI for every
- * service call.
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
+ * Gets Service host.
*
* @return the endpoint value.
*/
String getEndpoint();
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
String getApiVersion();
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
/**
* Gets The HTTP pipeline to send requests through.
*
@@ -48,18 +47,18 @@ public interface PowerBIDedicated {
Duration getDefaultPollInterval();
/**
- * Gets the CapacitiesClient object to access its operations.
+ * Gets the OperationsClient object to access its operations.
*
- * @return the CapacitiesClient object.
+ * @return the OperationsClient object.
*/
- CapacitiesClient getCapacities();
+ OperationsClient getOperations();
/**
- * Gets the OperationsClient object to access its operations.
+ * Gets the CapacitiesClient object to access its operations.
*
- * @return the OperationsClient object.
+ * @return the CapacitiesClient object.
*/
- OperationsClient getOperations();
+ CapacitiesClient getCapacities();
/**
* Gets the AutoScaleVCoresClient object to access its operations.
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/AutoScaleVCoreInner.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/AutoScaleVCoreInner.java
index 45ca878bb520..a6d5a7715f26 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/AutoScaleVCoreInner.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/AutoScaleVCoreInner.java
@@ -1,13 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -22,17 +21,17 @@
@Fluent
public final class AutoScaleVCoreInner extends Resource {
/*
- * The SKU of the auto scale v-core resource.
+ * Properties of an auto scale v-core resource.
*/
- private AutoScaleVCoreSku sku;
+ private AutoScaleVCoreProperties innerProperties;
/*
- * Properties of an auto scale v-core resource.
+ * The SKU of the auto scale v-core resource.
*/
- private AutoScaleVCoreProperties innerProperties;
+ private AutoScaleVCoreSku sku;
/*
- * Metadata pertaining to creation and last modification of the resource.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
private SystemData systemData;
@@ -57,6 +56,15 @@ public final class AutoScaleVCoreInner extends Resource {
public AutoScaleVCoreInner() {
}
+ /**
+ * Get the innerProperties property: Properties of an auto scale v-core resource.
+ *
+ * @return the innerProperties value.
+ */
+ private AutoScaleVCoreProperties innerProperties() {
+ return this.innerProperties;
+ }
+
/**
* Get the sku property: The SKU of the auto scale v-core resource.
*
@@ -78,16 +86,7 @@ public AutoScaleVCoreInner withSku(AutoScaleVCoreSku sku) {
}
/**
- * Get the innerProperties property: Properties of an auto scale v-core resource.
- *
- * @return the innerProperties value.
- */
- private AutoScaleVCoreProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
@@ -95,17 +94,6 @@ public SystemData systemData() {
return this.systemData;
}
- /**
- * Set the systemData property: Metadata pertaining to creation and last modification of the resource.
- *
- * @param systemData the systemData value to set.
- * @return the AutoScaleVCoreInner object itself.
- */
- public AutoScaleVCoreInner withSystemData(SystemData systemData) {
- this.systemData = systemData;
- return this;
- }
-
/**
* Get the type property: The type of the resource.
*
@@ -212,25 +200,6 @@ public AutoScaleVCoreInner withCapacityLimit(Integer capacityLimit) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (sku() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Missing required property sku in model AutoScaleVCoreInner"));
- } else {
- sku().validate();
- }
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(AutoScaleVCoreInner.class);
-
/**
* {@inheritDoc}
*/
@@ -241,7 +210,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("sku", this.sku);
jsonWriter.writeJsonField("properties", this.innerProperties);
- jsonWriter.writeJsonField("systemData", this.systemData);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/AutoScaleVCoreMutableProperties.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/AutoScaleVCoreMutableProperties.java
index 9c4492636174..7eaa414a1d46 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/AutoScaleVCoreMutableProperties.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/AutoScaleVCoreMutableProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.fluent.models;
@@ -47,14 +47,6 @@ public AutoScaleVCoreMutableProperties withCapacityLimit(Integer capacityLimit)
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/AutoScaleVCoreProperties.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/AutoScaleVCoreProperties.java
index 15236e7757d0..aff9bb62fe67 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/AutoScaleVCoreProperties.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/AutoScaleVCoreProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.fluent.models;
@@ -74,15 +74,6 @@ public AutoScaleVCoreProperties withCapacityLimit(Integer capacityLimit) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/CheckCapacityNameAvailabilityResultInner.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/CheckCapacityNameAvailabilityResultInner.java
index 2025acb5721a..ea777f5845ec 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/CheckCapacityNameAvailabilityResultInner.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/CheckCapacityNameAvailabilityResultInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -14,7 +14,7 @@
/**
* The checking result of capacity name availability.
*/
-@Fluent
+@Immutable
public final class CheckCapacityNameAvailabilityResultInner
implements JsonSerializable {
/*
@@ -35,7 +35,7 @@ public final class CheckCapacityNameAvailabilityResultInner
/**
* Creates an instance of CheckCapacityNameAvailabilityResultInner class.
*/
- public CheckCapacityNameAvailabilityResultInner() {
+ private CheckCapacityNameAvailabilityResultInner() {
}
/**
@@ -47,17 +47,6 @@ public Boolean nameAvailable() {
return this.nameAvailable;
}
- /**
- * Set the nameAvailable property: Indicator of availability of the capacity name.
- *
- * @param nameAvailable the nameAvailable value to set.
- * @return the CheckCapacityNameAvailabilityResultInner object itself.
- */
- public CheckCapacityNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable) {
- this.nameAvailable = nameAvailable;
- return this;
- }
-
/**
* Get the reason property: The reason of unavailability.
*
@@ -67,17 +56,6 @@ public String reason() {
return this.reason;
}
- /**
- * Set the reason property: The reason of unavailability.
- *
- * @param reason the reason value to set.
- * @return the CheckCapacityNameAvailabilityResultInner object itself.
- */
- public CheckCapacityNameAvailabilityResultInner withReason(String reason) {
- this.reason = reason;
- return this;
- }
-
/**
* Get the message property: The detailed message of the request unavailability.
*
@@ -87,25 +65,6 @@ public String message() {
return this.message;
}
- /**
- * Set the message property: The detailed message of the request unavailability.
- *
- * @param message the message value to set.
- * @return the CheckCapacityNameAvailabilityResultInner object itself.
- */
- public CheckCapacityNameAvailabilityResultInner withMessage(String message) {
- this.message = message;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/DedicatedCapacityInner.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/DedicatedCapacityInner.java
index 5504bf28b687..9270c4857bbb 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/DedicatedCapacityInner.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/DedicatedCapacityInner.java
@@ -1,13 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -25,17 +24,17 @@
@Fluent
public final class DedicatedCapacityInner extends Resource {
/*
- * The SKU of the PowerBI Dedicated capacity resource.
+ * Properties of the provision operation request.
*/
- private CapacitySku sku;
+ private DedicatedCapacityProperties innerProperties;
/*
- * Properties of the provision operation request.
+ * The SKU of the PowerBI Dedicated capacity resource.
*/
- private DedicatedCapacityProperties innerProperties;
+ private CapacitySku sku;
/*
- * Metadata pertaining to creation and last modification of the resource.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
private SystemData systemData;
@@ -60,6 +59,15 @@ public final class DedicatedCapacityInner extends Resource {
public DedicatedCapacityInner() {
}
+ /**
+ * Get the innerProperties property: Properties of the provision operation request.
+ *
+ * @return the innerProperties value.
+ */
+ private DedicatedCapacityProperties innerProperties() {
+ return this.innerProperties;
+ }
+
/**
* Get the sku property: The SKU of the PowerBI Dedicated capacity resource.
*
@@ -81,16 +89,7 @@ public DedicatedCapacityInner withSku(CapacitySku sku) {
}
/**
- * Get the innerProperties property: Properties of the provision operation request.
- *
- * @return the innerProperties value.
- */
- private DedicatedCapacityProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
@@ -98,17 +97,6 @@ public SystemData systemData() {
return this.systemData;
}
- /**
- * Set the systemData property: Metadata pertaining to creation and last modification of the resource.
- *
- * @param systemData the systemData value to set.
- * @return the DedicatedCapacityInner object itself.
- */
- public DedicatedCapacityInner withSystemData(SystemData systemData) {
- this.systemData = systemData;
- return this;
- }
-
/**
* Get the type property: The type of the resource.
*
@@ -245,25 +233,6 @@ public String friendlyName() {
return this.innerProperties() == null ? null : this.innerProperties().friendlyName();
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (sku() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Missing required property sku in model DedicatedCapacityInner"));
- } else {
- sku().validate();
- }
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(DedicatedCapacityInner.class);
-
/**
* {@inheritDoc}
*/
@@ -274,7 +243,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("sku", this.sku);
jsonWriter.writeJsonField("properties", this.innerProperties);
- jsonWriter.writeJsonField("systemData", this.systemData);
return jsonWriter.writeEndObject();
}
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/DedicatedCapacityMutableProperties.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/DedicatedCapacityMutableProperties.java
index 76e42036f882..d46c91329eb5 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/DedicatedCapacityMutableProperties.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/DedicatedCapacityMutableProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.fluent.models;
@@ -129,17 +129,6 @@ DedicatedCapacityMutableProperties withFriendlyName(String friendlyName) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (administration() != null) {
- administration().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/DedicatedCapacityProperties.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/DedicatedCapacityProperties.java
index 5a5f9e60a34f..886a36a205ff 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/DedicatedCapacityProperties.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/DedicatedCapacityProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.fluent.models;
@@ -105,18 +105,6 @@ public DedicatedCapacityProperties withMode(Mode mode) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- if (administration() != null) {
- administration().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/OperationInner.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/OperationInner.java
index 09c00bb36102..9a798c67636c 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/OperationInner.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/OperationInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -16,7 +16,7 @@
/**
* Capacities REST API operation.
*/
-@Fluent
+@Immutable
public final class OperationInner implements JsonSerializable {
/*
* Operation name: {provider}/{resource}/{operation}.
@@ -41,7 +41,7 @@ public final class OperationInner implements JsonSerializable {
/**
* Creates an instance of OperationInner class.
*/
- public OperationInner() {
+ private OperationInner() {
}
/**
@@ -62,17 +62,6 @@ public OperationDisplay display() {
return this.display;
}
- /**
- * Set the display property: The object that represents the operation.
- *
- * @param display the display value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withDisplay(OperationDisplay display) {
- this.display = display;
- return this;
- }
-
/**
* Get the origin property: Origin of the operation.
*
@@ -91,31 +80,6 @@ public OperationProperties properties() {
return this.properties;
}
- /**
- * Set the properties property: Additional properties to expose performance metrics to shoebox.
- *
- * @param properties the properties value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withProperties(OperationProperties properties) {
- this.properties = properties;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (display() != null) {
- display().validate();
- }
- if (properties() != null) {
- properties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/SkuEnumerationForExistingResourceResultInner.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/SkuEnumerationForExistingResourceResultInner.java
index fad1d81e57c7..bb3a692336cc 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/SkuEnumerationForExistingResourceResultInner.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/SkuEnumerationForExistingResourceResultInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -16,7 +16,7 @@
/**
* An object that represents enumerating SKUs for existing resources.
*/
-@Fluent
+@Immutable
public final class SkuEnumerationForExistingResourceResultInner
implements JsonSerializable {
/*
@@ -27,7 +27,7 @@ public final class SkuEnumerationForExistingResourceResultInner
/**
* Creates an instance of SkuEnumerationForExistingResourceResultInner class.
*/
- public SkuEnumerationForExistingResourceResultInner() {
+ private SkuEnumerationForExistingResourceResultInner() {
}
/**
@@ -39,28 +39,6 @@ public List value() {
return this.value;
}
- /**
- * Set the value property: The collection of available SKUs for existing resources.
- *
- * @param value the value value to set.
- * @return the SkuEnumerationForExistingResourceResultInner object itself.
- */
- public SkuEnumerationForExistingResourceResultInner withValue(List value) {
- this.value = value;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (value() != null) {
- value().forEach(e -> e.validate());
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/SkuEnumerationForNewResourceResultInner.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/SkuEnumerationForNewResourceResultInner.java
index 1531dfda4c4c..561cb14581cc 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/SkuEnumerationForNewResourceResultInner.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/SkuEnumerationForNewResourceResultInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -16,7 +16,7 @@
/**
* An object that represents enumerating SKUs for new resources.
*/
-@Fluent
+@Immutable
public final class SkuEnumerationForNewResourceResultInner
implements JsonSerializable {
/*
@@ -27,7 +27,7 @@ public final class SkuEnumerationForNewResourceResultInner
/**
* Creates an instance of SkuEnumerationForNewResourceResultInner class.
*/
- public SkuEnumerationForNewResourceResultInner() {
+ private SkuEnumerationForNewResourceResultInner() {
}
/**
@@ -39,28 +39,6 @@ public List value() {
return this.value;
}
- /**
- * Set the value property: The collection of available SKUs for new resources.
- *
- * @param value the value value to set.
- * @return the SkuEnumerationForNewResourceResultInner object itself.
- */
- public SkuEnumerationForNewResourceResultInner withValue(List value) {
- this.value = value;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (value() != null) {
- value().forEach(e -> e.validate());
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/package-info.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/package-info.java
index 1e09c8525a5c..f544b5b2d2c0 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/package-info.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/models/package-info.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
* Package containing the inner data models for PowerBIDedicated.
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/package-info.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/package-info.java
index 0941b81ce6cf..f01bcdfaf580 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/package-info.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/fluent/package-info.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
* Package containing the service clients for PowerBIDedicated.
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/implementation/AutoScaleVCoreImpl.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/implementation/AutoScaleVCoreImpl.java
index 6d0c30480b80..3d7fb0c3f244 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/implementation/AutoScaleVCoreImpl.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/implementation/AutoScaleVCoreImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.implementation;
@@ -193,11 +193,6 @@ public AutoScaleVCoreImpl withTags(Map tags) {
}
}
- public AutoScaleVCoreImpl withSystemData(SystemData systemData) {
- this.innerModel().withSystemData(systemData);
- return this;
- }
-
public AutoScaleVCoreImpl withCapacityObjectId(String capacityObjectId) {
this.innerModel().withCapacityObjectId(capacityObjectId);
return this;
@@ -214,6 +209,6 @@ public AutoScaleVCoreImpl withCapacityLimit(Integer capacityLimit) {
}
private boolean isInCreateMode() {
- return this.innerModel().id() == null;
+ return this.innerModel() == null || this.innerModel().id() == null;
}
}
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/implementation/AutoScaleVCoresClientImpl.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/implementation/AutoScaleVCoresClientImpl.java
index 48ec36b312c2..cc82f4ef6f45 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/implementation/AutoScaleVCoresClientImpl.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/implementation/AutoScaleVCoresClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.implementation;
@@ -31,7 +31,7 @@
import com.azure.core.util.FluxUtil;
import com.azure.resourcemanager.powerbidedicated.fluent.AutoScaleVCoresClient;
import com.azure.resourcemanager.powerbidedicated.fluent.models.AutoScaleVCoreInner;
-import com.azure.resourcemanager.powerbidedicated.models.AutoScaleVCoreListResult;
+import com.azure.resourcemanager.powerbidedicated.implementation.models.AutoScaleVCoreListResult;
import com.azure.resourcemanager.powerbidedicated.models.AutoScaleVCoreUpdateParameters;
import reactor.core.publisher.Mono;
@@ -47,89 +47,169 @@ public final class AutoScaleVCoresClientImpl implements AutoScaleVCoresClient {
/**
* The service client containing this operation class.
*/
- private final PowerBIDedicatedImpl client;
+ private final PowerBIDedicatedManagementClientImpl client;
/**
* Initializes an instance of AutoScaleVCoresClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- AutoScaleVCoresClientImpl(PowerBIDedicatedImpl client) {
+ AutoScaleVCoresClientImpl(PowerBIDedicatedManagementClientImpl client) {
this.service
= RestProxy.create(AutoScaleVCoresService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for PowerBIDedicatedAutoScaleVCores to be used by the proxy service to
- * perform REST calls.
+ * The interface defining all the services for PowerBIDedicatedManagementClientAutoScaleVCores to be used by the
+ * proxy service to perform REST calls.
*/
- @Host("{$host}")
- @ServiceInterface(name = "PowerBIDedicatedAuto")
+ @Host("{endpoint}")
+ @ServiceInterface(name = "PowerBIDedicatedManagementClientAutoScaleVCores")
public interface AutoScaleVCoresService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores/{vcoreName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono> getByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("vcoreName") String vcoreName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores/{vcoreName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vcoreName") String vcoreName,
+ @HeaderParam("Accept") String accept, Context context);
+
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores/{vcoreName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> create(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono> create(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vcoreName") String vcoreName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") AutoScaleVCoreInner vCoreParameters, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores/{vcoreName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vcoreName") String vcoreName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") AutoScaleVCoreInner vCoreParameters, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores/{vcoreName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vcoreName") String vcoreName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") AutoScaleVCoreUpdateParameters vCoreUpdateParameters, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores/{vcoreName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response updateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vcoreName") String vcoreName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") AutoScaleVCoreUpdateParameters vCoreUpdateParameters, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores/{vcoreName}")
+ @ExpectedResponses({ 200, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("vcoreName") String vcoreName,
- @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") AutoScaleVCoreInner vCoreParameters, @HeaderParam("Accept") String accept,
Context context);
- @Headers({ "Content-Type: application/json" })
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores/{vcoreName}")
@ExpectedResponses({ 200, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> delete(@HostParam("$host") String endpoint,
+ Response deleteSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("vcoreName") String vcoreName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ Context context);
@Headers({ "Content-Type: application/json" })
- @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores/{vcoreName}")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> update(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vcoreName") String vcoreName,
- @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") AutoScaleVCoreUpdateParameters vCoreUpdateParameters,
- @HeaderParam("Accept") String accept, Context context);
+ Mono> listByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/autoScaleVCores")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
+ Response listByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/autoScaleVCores")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/autoScaleVCores")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
+ Response listSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listBySubscriptionNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
}
/**
* Gets details about the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -140,71 +220,17 @@ Mono> list(@HostParam("$host") String endpoin
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
String vcoreName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (vcoreName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vcoreName is required and cannot be null."));
- }
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, vcoreName, this.client.getApiVersion(), accept, context))
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, vcoreName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Gets details about the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
- * @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 details about the specified auto scale v-core along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
- String vcoreName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (vcoreName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vcoreName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- vcoreName, this.client.getApiVersion(), accept, context);
- }
-
- /**
- * Gets details about the specified auto scale v-core.
- *
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -220,8 +246,7 @@ private Mono getByResourceGroupAsync(String resourceGroupNa
/**
* Gets details about the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -232,14 +257,15 @@ private Mono getByResourceGroupAsync(String resourceGroupNa
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getByResourceGroupWithResponse(String resourceGroupName, String vcoreName,
Context context) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, vcoreName, context).block();
+ final String accept = "application/json";
+ return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, vcoreName, accept, context);
}
/**
* Gets details about the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -254,8 +280,7 @@ public AutoScaleVCoreInner getByResourceGroup(String resourceGroupName, String v
/**
* Provisions the specified auto scale v-core based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
* @param vCoreParameters Contains the information used to provision the auto scale v-core.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -267,83 +292,19 @@ public AutoScaleVCoreInner getByResourceGroup(String resourceGroupName, String v
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createWithResponseAsync(String resourceGroupName, String vcoreName,
AutoScaleVCoreInner vCoreParameters) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (vcoreName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vcoreName is required and cannot be null."));
- }
- if (vCoreParameters == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter vCoreParameters is required and cannot be null."));
- } else {
- vCoreParameters.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, vcoreName, this.client.getApiVersion(), vCoreParameters, accept, context))
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, vcoreName, contentType, accept, vCoreParameters,
+ context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Provisions the specified auto scale v-core based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
- * @param vCoreParameters Contains the information used to provision the auto scale v-core.
- * @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 represents an instance of an auto scale v-core resource along with {@link Response} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createWithResponseAsync(String resourceGroupName, String vcoreName,
- AutoScaleVCoreInner vCoreParameters, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (vcoreName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vcoreName is required and cannot be null."));
- }
- if (vCoreParameters == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter vCoreParameters is required and cannot be null."));
- } else {
- vCoreParameters.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, vcoreName,
- this.client.getApiVersion(), vCoreParameters, accept, context);
- }
-
- /**
- * Provisions the specified auto scale v-core based on the configuration specified in the request.
- *
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
* @param vCoreParameters Contains the information used to provision the auto scale v-core.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -361,8 +322,7 @@ private Mono createAsync(String resourceGroupName, String v
/**
* Provisions the specified auto scale v-core based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
* @param vCoreParameters Contains the information used to provision the auto scale v-core.
* @param context The context to associate with this operation.
@@ -374,14 +334,17 @@ private Mono createAsync(String resourceGroupName, String v
@ServiceMethod(returns = ReturnType.SINGLE)
public Response createWithResponse(String resourceGroupName, String vcoreName,
AutoScaleVCoreInner vCoreParameters, Context context) {
- return createWithResponseAsync(resourceGroupName, vcoreName, vCoreParameters, context).block();
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, vcoreName, contentType, accept, vCoreParameters,
+ context);
}
/**
* Provisions the specified auto scale v-core based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
* @param vCoreParameters Contains the information used to provision the auto scale v-core.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -395,272 +358,154 @@ public AutoScaleVCoreInner create(String resourceGroupName, String vcoreName, Au
}
/**
- * Deletes the specified auto scale v-core.
+ * Updates the current state of the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
+ * @param vCoreUpdateParameters Request object that contains the updated information for the auto scale v-core.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return represents an instance of an auto scale v-core resource along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(String resourceGroupName, String vcoreName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (vcoreName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vcoreName is required and cannot be null."));
- }
+ private Mono> updateWithResponseAsync(String resourceGroupName, String vcoreName,
+ AutoScaleVCoreUpdateParameters vCoreUpdateParameters) {
+ final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, vcoreName, this.client.getApiVersion(), accept, context))
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, vcoreName, contentType, accept,
+ vCoreUpdateParameters, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Deletes the specified auto scale v-core.
- *
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(String resourceGroupName, String vcoreName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (vcoreName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vcoreName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, vcoreName,
- this.client.getApiVersion(), accept, context);
- }
-
- /**
- * Deletes the specified auto scale v-core.
+ * Updates the current state of the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
+ * @param vCoreUpdateParameters Request object that contains the updated information for the auto scale v-core.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
+ * @return represents an instance of an auto scale v-core resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String vcoreName) {
- return deleteWithResponseAsync(resourceGroupName, vcoreName).flatMap(ignored -> Mono.empty());
+ private Mono updateAsync(String resourceGroupName, String vcoreName,
+ AutoScaleVCoreUpdateParameters vCoreUpdateParameters) {
+ return updateWithResponseAsync(resourceGroupName, vcoreName, vCoreUpdateParameters)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Deletes the specified auto scale v-core.
+ * Updates the current state of the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
+ * @param vCoreUpdateParameters Request object that contains the updated information for the auto scale v-core.
* @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 Response deleteWithResponse(String resourceGroupName, String vcoreName, Context context) {
- return deleteWithResponseAsync(resourceGroupName, vcoreName, context).block();
- }
-
- /**
- * Deletes the specified auto scale v-core.
- *
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
- * @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 represents an instance of an auto scale v-core resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String vcoreName) {
- deleteWithResponse(resourceGroupName, vcoreName, Context.NONE);
+ public Response updateWithResponse(String resourceGroupName, String vcoreName,
+ AutoScaleVCoreUpdateParameters vCoreUpdateParameters, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, vcoreName, contentType, accept, vCoreUpdateParameters,
+ context);
}
/**
* Updates the current state of the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
* @param vCoreUpdateParameters Request object that contains the updated information for the auto scale v-core.
* @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 represents an instance of an auto scale v-core resource along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return represents an instance of an auto scale v-core resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> updateWithResponseAsync(String resourceGroupName, String vcoreName,
+ public AutoScaleVCoreInner update(String resourceGroupName, String vcoreName,
AutoScaleVCoreUpdateParameters vCoreUpdateParameters) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (vcoreName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vcoreName is required and cannot be null."));
- }
- if (vCoreUpdateParameters == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter vCoreUpdateParameters is required and cannot be null."));
- } else {
- vCoreUpdateParameters.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, vcoreName, this.client.getApiVersion(), vCoreUpdateParameters, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ return updateWithResponse(resourceGroupName, vcoreName, vCoreUpdateParameters, Context.NONE).getValue();
}
/**
- * Updates the current state of the specified auto scale v-core.
+ * Deletes the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
- * @param vCoreUpdateParameters Request object that contains the updated information for the auto scale v-core.
- * @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 represents an instance of an auto scale v-core resource along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> updateWithResponseAsync(String resourceGroupName, String vcoreName,
- AutoScaleVCoreUpdateParameters vCoreUpdateParameters, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (vcoreName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vcoreName is required and cannot be null."));
- }
- if (vCoreUpdateParameters == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter vCoreUpdateParameters is required and cannot be null."));
- } else {
- vCoreUpdateParameters.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, vcoreName,
- this.client.getApiVersion(), vCoreUpdateParameters, accept, context);
+ private Mono> deleteWithResponseAsync(String resourceGroupName, String vcoreName) {
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, vcoreName, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Updates the current state of the specified auto scale v-core.
+ * Deletes the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
- * @param vCoreUpdateParameters Request object that contains the updated information for the auto scale v-core.
* @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 represents an instance of an auto scale v-core resource on successful completion of {@link Mono}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String vcoreName,
- AutoScaleVCoreUpdateParameters vCoreUpdateParameters) {
- return updateWithResponseAsync(resourceGroupName, vcoreName, vCoreUpdateParameters)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ private Mono deleteAsync(String resourceGroupName, String vcoreName) {
+ return deleteWithResponseAsync(resourceGroupName, vcoreName).flatMap(ignored -> Mono.empty());
}
/**
- * Updates the current state of the specified auto scale v-core.
+ * Deletes the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
- * @param vCoreUpdateParameters Request object that contains the updated information for the auto scale v-core.
* @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 represents an instance of an auto scale v-core resource along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response updateWithResponse(String resourceGroupName, String vcoreName,
- AutoScaleVCoreUpdateParameters vCoreUpdateParameters, Context context) {
- return updateWithResponseAsync(resourceGroupName, vcoreName, vCoreUpdateParameters, context).block();
+ public Response deleteWithResponse(String resourceGroupName, String vcoreName, Context context) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, vcoreName, context);
}
/**
- * Updates the current state of the specified auto scale v-core.
+ * Deletes the specified auto scale v-core.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param vcoreName The name of the auto scale v-core. It must be a minimum of 3 characters, and a maximum of 63.
- * @param vCoreUpdateParameters Request object that contains the updated information for the auto scale v-core.
* @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 represents an instance of an auto scale v-core resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public AutoScaleVCoreInner update(String resourceGroupName, String vcoreName,
- AutoScaleVCoreUpdateParameters vCoreUpdateParameters) {
- return updateWithResponse(resourceGroupName, vcoreName, vCoreUpdateParameters, Context.NONE).getValue();
+ public void delete(String resourceGroupName, String vcoreName) {
+ deleteWithResponse(resourceGroupName, vcoreName, Context.NONE);
}
/**
* Gets all the auto scale v-cores for the given resource group.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -669,99 +514,72 @@ public AutoScaleVCoreInner update(String resourceGroupName, String vcoreName,
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(),
- this.client.getSubscriptionId(), resourceGroupName, this.client.getApiVersion(), accept, context))
+ .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null))
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Gets all the auto scale v-cores for the given resource group.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the auto scale v-cores for the given resource group along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * @return all the auto scale v-cores for the given resource group as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- this.client.getApiVersion(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), null, null));
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
}
/**
* Gets all the auto scale v-cores for the given resource group.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the auto scale v-cores for the given resource group as paginated response with {@link PagedFlux}.
+ * @return all the auto scale v-cores for the given resource group along with {@link PagedResponse}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
- return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) {
+ final String accept = "application/json";
+ Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
}
/**
* Gets all the auto scale v-cores for the given resource group.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the auto scale v-cores for the given resource group as paginated response with {@link PagedFlux}.
+ * @return all the auto scale v-cores for the given resource group along with {@link PagedResponse}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
- return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupSinglePage(String resourceGroupName,
+ Context context) {
+ final String accept = "application/json";
+ Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
}
/**
* Gets all the auto scale v-cores for the given resource group.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -769,14 +587,14 @@ private PagedFlux listByResourceGroupAsync(String resourceG
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName) {
- return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName));
+ return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePage(nextLink));
}
/**
* Gets all the auto scale v-cores for the given resource group.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -785,7 +603,8 @@ public PagedIterable listByResourceGroup(String resourceGro
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
- return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context));
+ return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePage(nextLink, context));
}
/**
@@ -798,50 +617,26 @@ public PagedIterable listByResourceGroup(String resourceGro
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
- this.client.getApiVersion(), accept, context))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null))
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Lists all the auto scale v-cores for the given subscription.
*
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an array of auto scale v-core resources along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return an array of auto scale v-core resources as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(this.client.getEndpoint(), this.client.getSubscriptionId(), this.client.getApiVersion(), accept,
- context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), null, null));
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
}
/**
@@ -849,11 +644,15 @@ private Mono> listSinglePageAsync(Context con
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an array of auto scale v-core resources as paginated response with {@link PagedFlux}.
+ * @return an array of auto scale v-core resources along with {@link PagedResponse}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync() {
- return new PagedFlux<>(() -> listSinglePageAsync());
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage() {
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
}
/**
@@ -863,11 +662,15 @@ 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 an array of auto scale v-core resources as paginated response with {@link PagedFlux}.
+ * @return an array of auto scale v-core resources along with {@link PagedResponse}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(context));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(Context context) {
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
}
/**
@@ -879,7 +682,7 @@ private PagedFlux listAsync(Context context) {
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
- return new PagedIterable<>(listAsync());
+ return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink));
}
/**
@@ -893,6 +696,123 @@ public PagedIterable list() {
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(Context context) {
- return new PagedIterable<>(listAsync(context));
+ return new PagedIterable<>(() -> listSinglePage(context),
+ nextLink -> listBySubscriptionNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the auto scale v-cores for the given resource group along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the auto scale v-cores for the given resource group along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all the auto scale v-cores for the given resource group along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an array of auto scale v-core resources along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an array of auto scale v-core resources along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listBySubscriptionNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an array of auto scale v-core resources along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listBySubscriptionNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
}
}
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/implementation/AutoScaleVCoresImpl.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/implementation/AutoScaleVCoresImpl.java
index c70baa73a0a5..a1c68e62c6a9 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/implementation/AutoScaleVCoresImpl.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/implementation/AutoScaleVCoresImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.implementation;
diff --git a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/implementation/CapacitiesClientImpl.java b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/implementation/CapacitiesClientImpl.java
index 8232f2f3debc..b5f9b94a305d 100644
--- a/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/implementation/CapacitiesClientImpl.java
+++ b/sdk/powerbidedicated/azure-resourcemanager-powerbidedicated/src/main/java/com/azure/resourcemanager/powerbidedicated/implementation/CapacitiesClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.powerbidedicated.implementation;
@@ -29,6 +29,7 @@
import com.azure.core.http.rest.RestProxy;
import com.azure.core.management.exception.ManagementException;
import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
import com.azure.core.util.polling.PollerFlux;
@@ -38,8 +39,8 @@
import com.azure.resourcemanager.powerbidedicated.fluent.models.DedicatedCapacityInner;
import com.azure.resourcemanager.powerbidedicated.fluent.models.SkuEnumerationForExistingResourceResultInner;
import com.azure.resourcemanager.powerbidedicated.fluent.models.SkuEnumerationForNewResourceResultInner;
+import com.azure.resourcemanager.powerbidedicated.implementation.models.DedicatedCapacities;
import com.azure.resourcemanager.powerbidedicated.models.CheckCapacityNameAvailabilityParameters;
-import com.azure.resourcemanager.powerbidedicated.models.DedicatedCapacities;
import com.azure.resourcemanager.powerbidedicated.models.DedicatedCapacityUpdateParameters;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
@@ -57,138 +58,265 @@ public final class CapacitiesClientImpl implements CapacitiesClient {
/**
* The service client containing this operation class.
*/
- private final PowerBIDedicatedImpl client;
+ private final PowerBIDedicatedManagementClientImpl client;
/**
* Initializes an instance of CapacitiesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- CapacitiesClientImpl(PowerBIDedicatedImpl client) {
+ CapacitiesClientImpl(PowerBIDedicatedManagementClientImpl client) {
this.service
= RestProxy.create(CapacitiesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for PowerBIDedicatedCapacities to be used by the proxy service to perform
- * REST calls.
+ * The interface defining all the services for PowerBIDedicatedManagementClientCapacities to be used by the proxy
+ * service to perform REST calls.
*/
- @Host("{$host}")
- @ServiceInterface(name = "PowerBIDedicatedCapa")
+ @Host("{endpoint}")
+ @ServiceInterface(name = "PowerBIDedicatedManagementClientCapacities")
public interface CapacitiesService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("dedicatedCapacityName") String dedicatedCapacityName,
+ Mono> getByResourceGroup(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("dedicatedCapacityName") String dedicatedCapacityName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("dedicatedCapacityName") String dedicatedCapacityName, @HeaderParam("Accept") String accept,
+ Context context);
+
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> create(@HostParam("$host") String endpoint,
+ Mono>> create(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("dedicatedCapacityName") String dedicatedCapacityName,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") DedicatedCapacityInner capacityParameters,
- @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DedicatedCapacityInner capacityParameters, Context context);
- @Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}")
- @ExpectedResponses({ 200, 202, 204 })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}")
+ @ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
+ Response createSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("dedicatedCapacityName") String dedicatedCapacityName,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DedicatedCapacityInner capacityParameters, Context context);
- @Headers({ "Content-Type: application/json" })
@Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(@HostParam("$host") String endpoint,
+ Mono>> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("dedicatedCapacityName") String dedicatedCapacityName,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") DedicatedCapacityUpdateParameters capacityUpdateParameters,
- @HeaderParam("Accept") String accept, Context context);
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DedicatedCapacityUpdateParameters capacityUpdateParameters, Context context);
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/suspend")
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> suspend(@HostParam("$host") String endpoint,
+ Response updateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("dedicatedCapacityName") String dedicatedCapacityName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") DedicatedCapacityUpdateParameters capacityUpdateParameters, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}")
+ @ExpectedResponses({ 200, 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("dedicatedCapacityName") String dedicatedCapacityName, Context context);
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/resume")
- @ExpectedResponses({ 200, 202 })
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}")
+ @ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> resume(@HostParam("$host") String endpoint,
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("dedicatedCapacityName") String dedicatedCapacityName,
+ @PathParam("dedicatedCapacityName") String dedicatedCapacityName, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context);
+ Response listByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/capacities")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
+ Mono> list(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/skus")
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/capacities")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listSkus(@HostParam("$host") String endpoint,
+ Response listSync(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/suspend")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> suspend(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("dedicatedCapacityName") String dedicatedCapacityName, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/suspend")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response suspendSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("dedicatedCapacityName") String dedicatedCapacityName, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/resume")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> resume(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("dedicatedCapacityName") String dedicatedCapacityName, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/resume")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response resumeSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("dedicatedCapacityName") String dedicatedCapacityName, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/skus")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listSkusForCapacity(
- @HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("dedicatedCapacityName") String dedicatedCapacityName,
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("dedicatedCapacityName") String dedicatedCapacityName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}/skus")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSkusForCapacitySync(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("dedicatedCapacityName") String dedicatedCapacityName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/skus")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listSkus(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/skus")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSkusSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/locations/{location}/checkNameAvailability")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> checkNameAvailability(
- @HostParam("$host") String endpoint, @PathParam("location") String location,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") CheckCapacityNameAvailabilityParameters capacityParameters,
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") CheckCapacityNameAvailabilityParameters capacityParameters, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/locations/{location}/checkNameAvailability")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response checkNameAvailabilitySync(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") CheckCapacityNameAvailabilityParameters capacityParameters, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context);
}
/**
* Gets details about the specified dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -200,73 +328,17 @@ Mono> checkNameAvailability(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
String dedicatedCapacityName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dedicatedCapacityName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter dedicatedCapacityName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName,
- dedicatedCapacityName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context))
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dedicatedCapacityName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Gets details about the specified dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
- * maximum of 63.
- * @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 details about the specified dedicated capacity along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
- String dedicatedCapacityName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dedicatedCapacityName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter dedicatedCapacityName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, dedicatedCapacityName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context);
- }
-
- /**
- * Gets details about the specified dedicated capacity.
- *
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -284,8 +356,7 @@ private Mono getByResourceGroupAsync(String resourceGrou
/**
* Gets details about the specified dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @param context The context to associate with this operation.
@@ -297,14 +368,15 @@ private Mono getByResourceGroupAsync(String resourceGrou
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getByResourceGroupWithResponse(String resourceGroupName,
String dedicatedCapacityName, Context context) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, dedicatedCapacityName, context).block();
+ final String accept = "application/json";
+ return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dedicatedCapacityName, accept, context);
}
/**
* Gets details about the specified dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -320,9 +392,8 @@ public DedicatedCapacityInner getByResourceGroup(String resourceGroupName, Strin
/**
* Provisions the specified Dedicated capacity based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be a minimum of 3 characters, and a
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @param capacityParameters Contains the information used to provision the Dedicated capacity.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -334,113 +405,67 @@ public DedicatedCapacityInner getByResourceGroup(String resourceGroupName, Strin
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createWithResponseAsync(String resourceGroupName,
String dedicatedCapacityName, DedicatedCapacityInner capacityParameters) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dedicatedCapacityName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter dedicatedCapacityName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (capacityParameters == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter capacityParameters is required and cannot be null."));
- } else {
- capacityParameters.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.create(this.client.getEndpoint(), resourceGroupName, dedicatedCapacityName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), capacityParameters, accept, context))
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dedicatedCapacityName, contentType, accept,
+ capacityParameters, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Provisions the specified Dedicated capacity based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be a minimum of 3 characters, and a
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @param capacityParameters Contains the information used to provision the Dedicated capacity.
- * @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 represents an instance of a Dedicated Capacity resource along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return represents an instance of a Dedicated Capacity resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createWithResponseAsync(String resourceGroupName,
- String dedicatedCapacityName, DedicatedCapacityInner capacityParameters, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dedicatedCapacityName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter dedicatedCapacityName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (capacityParameters == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter capacityParameters is required and cannot be null."));
- } else {
- capacityParameters.validate();
- }
+ private Response createWithResponse(String resourceGroupName, String dedicatedCapacityName,
+ DedicatedCapacityInner capacityParameters) {
+ final String contentType = "application/json";
final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.create(this.client.getEndpoint(), resourceGroupName, dedicatedCapacityName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), capacityParameters, accept, context);
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dedicatedCapacityName, contentType, accept,
+ capacityParameters, Context.NONE);
}
/**
* Provisions the specified Dedicated capacity based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be a minimum of 3 characters, and a
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @param capacityParameters Contains the information used to provision the Dedicated capacity.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of represents an instance of a Dedicated Capacity resource.
+ * @return represents an instance of a Dedicated Capacity resource along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, DedicatedCapacityInner> beginCreateAsync(
- String resourceGroupName, String dedicatedCapacityName, DedicatedCapacityInner capacityParameters) {
- Mono>> mono
- = createWithResponseAsync(resourceGroupName, dedicatedCapacityName, capacityParameters);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), DedicatedCapacityInner.class, DedicatedCapacityInner.class,
- this.client.getContext());
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createWithResponse(String resourceGroupName, String dedicatedCapacityName,
+ DedicatedCapacityInner capacityParameters, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dedicatedCapacityName, contentType, accept,
+ capacityParameters, context);
}
/**
* Provisions the specified Dedicated capacity based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be a minimum of 3 characters, and a
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @param capacityParameters Contains the information used to provision the Dedicated capacity.
- * @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.
@@ -448,21 +473,19 @@ private PollerFlux, DedicatedCapacityInner> b
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, DedicatedCapacityInner> beginCreateAsync(
- String resourceGroupName, String dedicatedCapacityName, DedicatedCapacityInner capacityParameters,
- Context context) {
- context = this.client.mergeContext(context);
+ String resourceGroupName, String dedicatedCapacityName, DedicatedCapacityInner capacityParameters) {
Mono>> mono
- = createWithResponseAsync(resourceGroupName, dedicatedCapacityName, capacityParameters, context);
+ = createWithResponseAsync(resourceGroupName, dedicatedCapacityName, capacityParameters);
return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), DedicatedCapacityInner.class, DedicatedCapacityInner.class, context);
+ this.client.getHttpPipeline(), DedicatedCapacityInner.class, DedicatedCapacityInner.class,
+ this.client.getContext());
}
/**
* Provisions the specified Dedicated capacity based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be a minimum of 3 characters, and a
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @param capacityParameters Contains the information used to provision the Dedicated capacity.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -473,15 +496,17 @@ private PollerFlux, DedicatedCapacityInner> b
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DedicatedCapacityInner> beginCreate(String resourceGroupName,
String dedicatedCapacityName, DedicatedCapacityInner capacityParameters) {
- return this.beginCreateAsync(resourceGroupName, dedicatedCapacityName, capacityParameters).getSyncPoller();
+ Response response
+ = createWithResponse(resourceGroupName, dedicatedCapacityName, capacityParameters);
+ return this.client.getLroResult(response,
+ DedicatedCapacityInner.class, DedicatedCapacityInner.class, Context.NONE);
}
/**
* Provisions the specified Dedicated capacity based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be a minimum of 3 characters, and a
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @param capacityParameters Contains the information used to provision the Dedicated capacity.
* @param context The context to associate with this operation.
@@ -493,16 +518,17 @@ public SyncPoller, DedicatedCapacityInner> be
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, DedicatedCapacityInner> beginCreate(String resourceGroupName,
String dedicatedCapacityName, DedicatedCapacityInner capacityParameters, Context context) {
- return this.beginCreateAsync(resourceGroupName, dedicatedCapacityName, capacityParameters, context)
- .getSyncPoller();
+ Response response
+ = createWithResponse(resourceGroupName, dedicatedCapacityName, capacityParameters, context);
+ return this.client.getLroResult(response,
+ DedicatedCapacityInner.class, DedicatedCapacityInner.class, context);
}
/**
* Provisions the specified Dedicated capacity based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be a minimum of 3 characters, and a
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @param capacityParameters Contains the information used to provision the Dedicated capacity.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -520,30 +546,8 @@ private Mono createAsync(String resourceGroupName, Strin
/**
* Provisions the specified Dedicated capacity based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be a minimum of 3 characters, and a
- * maximum of 63.
- * @param capacityParameters Contains the information used to provision the Dedicated capacity.
- * @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 represents an instance of a Dedicated Capacity resource on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createAsync(String resourceGroupName, String dedicatedCapacityName,
- DedicatedCapacityInner capacityParameters, Context context) {
- return beginCreateAsync(resourceGroupName, dedicatedCapacityName, capacityParameters, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Provisions the specified Dedicated capacity based on the configuration specified in the request.
- *
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be a minimum of 3 characters, and a
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @param capacityParameters Contains the information used to provision the Dedicated capacity.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -554,15 +558,14 @@ private Mono createAsync(String resourceGroupName, Strin
@ServiceMethod(returns = ReturnType.SINGLE)
public DedicatedCapacityInner create(String resourceGroupName, String dedicatedCapacityName,
DedicatedCapacityInner capacityParameters) {
- return createAsync(resourceGroupName, dedicatedCapacityName, capacityParameters).block();
+ return beginCreate(resourceGroupName, dedicatedCapacityName, capacityParameters).getFinalResult();
}
/**
* Provisions the specified Dedicated capacity based on the configuration specified in the request.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be a minimum of 3 characters, and a
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
* maximum of 63.
* @param capacityParameters Contains the information used to provision the Dedicated capacity.
* @param context The context to associate with this operation.
@@ -574,865 +577,657 @@ public DedicatedCapacityInner create(String resourceGroupName, String dedicatedC
@ServiceMethod(returns = ReturnType.SINGLE)
public DedicatedCapacityInner create(String resourceGroupName, String dedicatedCapacityName,
DedicatedCapacityInner capacityParameters, Context context) {
- return createAsync(resourceGroupName, dedicatedCapacityName, capacityParameters, context).block();
+ return beginCreate(resourceGroupName, dedicatedCapacityName, capacityParameters, context).getFinalResult();
}
/**
- * Deletes the specified Dedicated capacity.
+ * Updates the current state of the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
+ * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return represents an instance of a Dedicated Capacity resource along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName,
- String dedicatedCapacityName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dedicatedCapacityName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter dedicatedCapacityName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
+ private Mono>> updateWithResponseAsync(String resourceGroupName,
+ String dedicatedCapacityName, DedicatedCapacityUpdateParameters capacityUpdateParameters) {
+ final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, dedicatedCapacityName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context))
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dedicatedCapacityName, contentType, accept,
+ capacityUpdateParameters, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Deletes the specified Dedicated capacity.
+ * Updates the current state of the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
+ * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return represents an instance of a Dedicated Capacity resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName,
- String dedicatedCapacityName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dedicatedCapacityName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter dedicatedCapacityName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
+ private Response updateWithResponse(String resourceGroupName, String dedicatedCapacityName,
+ DedicatedCapacityUpdateParameters capacityUpdateParameters) {
+ final String contentType = "application/json";
final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), resourceGroupName, dedicatedCapacityName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context);
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dedicatedCapacityName, contentType, accept,
+ capacityUpdateParameters, Context.NONE);
}
/**
- * Deletes the specified Dedicated capacity.
+ * Updates the current state of the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
+ * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
+ * @return represents an instance of a Dedicated Capacity resource along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
- String dedicatedCapacityName) {
- Mono>> mono = deleteWithResponseAsync(resourceGroupName, dedicatedCapacityName);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String dedicatedCapacityName,
+ DedicatedCapacityUpdateParameters capacityUpdateParameters, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dedicatedCapacityName, contentType, accept,
+ capacityUpdateParameters, context);
}
/**
- * Deletes the specified Dedicated capacity.
+ * Updates the current state of the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
+ * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
+ * @return the {@link PollerFlux} for polling of represents an instance of a Dedicated Capacity resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String dedicatedCapacityName,
- Context context) {
- context = this.client.mergeContext(context);
+ private PollerFlux, DedicatedCapacityInner> beginUpdateAsync(
+ String resourceGroupName, String dedicatedCapacityName,
+ DedicatedCapacityUpdateParameters capacityUpdateParameters) {
Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, dedicatedCapacityName, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- context);
+ = updateWithResponseAsync(resourceGroupName, dedicatedCapacityName, capacityUpdateParameters);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), DedicatedCapacityInner.class, DedicatedCapacityInner.class,
+ this.client.getContext());
}
/**
- * Deletes the specified Dedicated capacity.
+ * Updates the current state of the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
+ * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of represents an instance of a Dedicated Capacity resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String dedicatedCapacityName) {
- return this.beginDeleteAsync(resourceGroupName, dedicatedCapacityName).getSyncPoller();
+ public SyncPoller, DedicatedCapacityInner> beginUpdate(String resourceGroupName,
+ String dedicatedCapacityName, DedicatedCapacityUpdateParameters capacityUpdateParameters) {
+ Response response
+ = updateWithResponse(resourceGroupName, dedicatedCapacityName, capacityUpdateParameters);
+ return this.client.getLroResult(response,
+ DedicatedCapacityInner.class, DedicatedCapacityInner.class, Context.NONE);
}
/**
- * Deletes the specified Dedicated capacity.
+ * Updates the current state of the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
+ * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of represents an instance of a Dedicated Capacity resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String dedicatedCapacityName,
- Context context) {
- return this.beginDeleteAsync(resourceGroupName, dedicatedCapacityName, context).getSyncPoller();
+ public SyncPoller, DedicatedCapacityInner> beginUpdate(String resourceGroupName,
+ String dedicatedCapacityName, DedicatedCapacityUpdateParameters capacityUpdateParameters, Context context) {
+ Response response
+ = updateWithResponse(resourceGroupName, dedicatedCapacityName, capacityUpdateParameters, context);
+ return this.client.getLroResult(response,
+ DedicatedCapacityInner.class, DedicatedCapacityInner.class, context);
}
/**
- * Deletes the specified Dedicated capacity.
+ * Updates the current state of the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
+ * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
+ * @return represents an instance of a Dedicated Capacity resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String dedicatedCapacityName) {
- return beginDeleteAsync(resourceGroupName, dedicatedCapacityName).last()
+ private Mono updateAsync(String resourceGroupName, String dedicatedCapacityName,
+ DedicatedCapacityUpdateParameters capacityUpdateParameters) {
+ return beginUpdateAsync(resourceGroupName, dedicatedCapacityName, capacityUpdateParameters).last()
.flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Deletes the specified Dedicated capacity.
+ * Updates the current state of the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
+ * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
+ * @return represents an instance of a Dedicated Capacity resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String dedicatedCapacityName, Context context) {
- return beginDeleteAsync(resourceGroupName, dedicatedCapacityName, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
+ public DedicatedCapacityInner update(String resourceGroupName, String dedicatedCapacityName,
+ DedicatedCapacityUpdateParameters capacityUpdateParameters) {
+ return beginUpdate(resourceGroupName, dedicatedCapacityName, capacityUpdateParameters).getFinalResult();
}
/**
- * Deletes the specified Dedicated capacity.
+ * Updates the current state of the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
+ * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
+ * @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 represents an instance of a Dedicated Capacity resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String dedicatedCapacityName) {
- deleteAsync(resourceGroupName, dedicatedCapacityName).block();
+ public DedicatedCapacityInner update(String resourceGroupName, String dedicatedCapacityName,
+ DedicatedCapacityUpdateParameters capacityUpdateParameters, Context context) {
+ return beginUpdate(resourceGroupName, dedicatedCapacityName, capacityUpdateParameters, context)
+ .getFinalResult();
}
/**
* Deletes the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String dedicatedCapacityName, Context context) {
- deleteAsync(resourceGroupName, dedicatedCapacityName, context).block();
+ private Mono>> deleteWithResponseAsync(String resourceGroupName,
+ String dedicatedCapacityName) {
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dedicatedCapacityName, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Updates the current state of the specified Dedicated capacity.
+ * Deletes the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
- * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @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 represents an instance of a Dedicated Capacity resource along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName,
- String dedicatedCapacityName, DedicatedCapacityUpdateParameters capacityUpdateParameters) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dedicatedCapacityName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter dedicatedCapacityName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (capacityUpdateParameters == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter capacityUpdateParameters is required and cannot be null."));
- } else {
- capacityUpdateParameters.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.update(this.client.getEndpoint(), resourceGroupName, dedicatedCapacityName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), capacityUpdateParameters, accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ private Response deleteWithResponse(String resourceGroupName, String dedicatedCapacityName) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dedicatedCapacityName, Context.NONE);
}
/**
- * Updates the current state of the specified Dedicated capacity.
+ * Deletes the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
- * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @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 represents an instance of a Dedicated Capacity resource along with {@link Response} on successful
- * completion of {@link Mono}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName,
- String dedicatedCapacityName, DedicatedCapacityUpdateParameters capacityUpdateParameters, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (dedicatedCapacityName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter dedicatedCapacityName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (capacityUpdateParameters == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter capacityUpdateParameters is required and cannot be null."));
- } else {
- capacityUpdateParameters.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), resourceGroupName, dedicatedCapacityName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), capacityUpdateParameters, accept, context);
+ private Response deleteWithResponse(String resourceGroupName, String dedicatedCapacityName,
+ Context context) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, dedicatedCapacityName, context);
}
/**
- * Updates the current state of the specified Dedicated capacity.
+ * Deletes the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
- * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of represents an instance of a Dedicated Capacity resource.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, DedicatedCapacityInner> beginUpdateAsync(
- String resourceGroupName, String dedicatedCapacityName,
- DedicatedCapacityUpdateParameters capacityUpdateParameters) {
- Mono>> mono
- = updateWithResponseAsync(resourceGroupName, dedicatedCapacityName, capacityUpdateParameters);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), DedicatedCapacityInner.class, DedicatedCapacityInner.class,
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
+ String dedicatedCapacityName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, dedicatedCapacityName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
this.client.getContext());
}
/**
- * Updates the current state of the specified Dedicated capacity.
+ * Deletes the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
- * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of represents an instance of a Dedicated Capacity resource.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, DedicatedCapacityInner> beginUpdateAsync(
- String resourceGroupName, String dedicatedCapacityName,
- DedicatedCapacityUpdateParameters capacityUpdateParameters, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = updateWithResponseAsync(resourceGroupName, dedicatedCapacityName, capacityUpdateParameters, context);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), DedicatedCapacityInner.class, DedicatedCapacityInner.class, context);
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String dedicatedCapacityName) {
+ Response response = deleteWithResponse(resourceGroupName, dedicatedCapacityName);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
}
/**
- * Updates the current state of the specified Dedicated capacity.
+ * Deletes the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
- * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of represents an instance of a Dedicated Capacity resource.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, DedicatedCapacityInner> beginUpdate(String resourceGroupName,
- String dedicatedCapacityName, DedicatedCapacityUpdateParameters capacityUpdateParameters) {
- return this.beginUpdateAsync(resourceGroupName, dedicatedCapacityName, capacityUpdateParameters)
- .getSyncPoller();
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String dedicatedCapacityName,
+ Context context) {
+ Response response = deleteWithResponse(resourceGroupName, dedicatedCapacityName, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
}
/**
- * Updates the current state of the specified Dedicated capacity.
+ * Deletes the specified Dedicated capacity.
*
- * @param resourceGroupName The name of the Azure Resource group of which a given PowerBIDedicated capacity is part.
- * This name must be at least 1 character in length, and no more than 90.
- * @param dedicatedCapacityName The name of the Dedicated capacity. It must be at least 3 characters in length, and
- * no more than 63.
- * @param capacityUpdateParameters Request object that contains the updated information for the capacity.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dedicatedCapacityName The name of the dedicated capacity. It must be a minimum of 3 characters, and a
+ * maximum of 63.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of represents an instance of a Dedicated Capacity resource.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller