@@ -69,18 +69,6 @@
1.11.4
test
-
- com.azure.resourcemanager
- azure-resourcemanager-resources
- 2.36.0
- test
-
-
- com.azure.resourcemanager
- azure-resourcemanager-keyvault
- 2.36.0
- test
-
org.junit.jupiter
junit-jupiter-api
@@ -99,8 +87,6 @@
4.11.0
test
-
-
net.bytebuddy
byte-buddy
@@ -119,5 +105,17 @@
1.7.36
test
+
+ com.azure.resourcemanager
+ azure-resourcemanager-resources
+ 2.36.0
+ test
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-keyvault
+ 2.36.0
+ test
+
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/ChaosManager.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/ChaosManager.java
index 753d6894f87d..07250547306c 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/ChaosManager.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/ChaosManager.java
@@ -46,7 +46,10 @@
import java.util.Objects;
import java.util.stream.Collectors;
-/** Entry point to ChaosManager. Chaos Management Client. */
+/**
+ * Entry point to ChaosManager.
+ * Chaos Management Client.
+ */
public final class ChaosManager {
private Capabilities capabilities;
@@ -67,18 +70,14 @@ public final class ChaosManager {
private ChaosManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject =
- new ChaosManagementClientBuilder()
- .pipeline(httpPipeline)
- .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
- .subscriptionId(profile.getSubscriptionId())
- .defaultPollInterval(defaultPollInterval)
- .buildClient();
+ this.clientObject = new ChaosManagementClientBuilder().pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint()).subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval).buildClient();
}
/**
* Creates an instance of Chaos service API entry point.
- *
+ *
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the Chaos service API instance.
@@ -91,7 +90,7 @@ public static ChaosManager authenticate(TokenCredential credential, AzureProfile
/**
* Creates an instance of Chaos service API entry point.
- *
+ *
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the Chaos service API instance.
@@ -104,14 +103,16 @@ public static ChaosManager authenticate(HttpPipeline httpPipeline, AzureProfile
/**
* Gets a Configurable instance that can be used to create ChaosManager with optional configuration.
- *
+ *
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
return new ChaosManager.Configurable();
}
- /** The Configurable allowing configurations to be set. */
+ /**
+ * The Configurable allowing configurations to be set.
+ */
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
@@ -183,8 +184,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
/**
* Sets the retry options for the HTTP pipeline retry policy.
- *
- * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
*
* @param retryOptions the retry options for the HTTP pipeline retry policy.
* @return the configurable object itself.
@@ -201,8 +202,8 @@ public Configurable withRetryOptions(RetryOptions retryOptions) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval =
- Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ this.defaultPollInterval
+ = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
throw LOGGER
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
@@ -222,21 +223,12 @@ public ChaosManager authenticate(TokenCredential credential, AzureProfile profil
Objects.requireNonNull(profile, "'profile' cannot be null.");
StringBuilder userAgentBuilder = new StringBuilder();
- userAgentBuilder
- .append("azsdk-java")
- .append("-")
- .append("com.azure.resourcemanager.chaos")
- .append("/")
- .append("1.0.0");
+ userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.chaos").append("/")
+ .append("1.1.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
- userAgentBuilder
- .append(" (")
- .append(Configuration.getGlobalConfiguration().get("java.version"))
- .append("; ")
- .append(Configuration.getGlobalConfiguration().get("os.name"))
- .append("; ")
- .append(Configuration.getGlobalConfiguration().get("os.version"))
- .append("; auto-generated)");
+ userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version")).append("; auto-generated)");
} else {
userAgentBuilder.append(" (auto-generated)");
}
@@ -255,38 +247,25 @@ public ChaosManager authenticate(TokenCredential credential, AzureProfile profil
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
- policies
- .addAll(
- this
- .policies
- .stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
- .collect(Collectors.toList()));
+ policies.addAll(this.policies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
- policies
- .addAll(
- this
- .policies
- .stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
- .collect(Collectors.toList()));
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY).collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
- HttpPipeline httpPipeline =
- new HttpPipelineBuilder()
- .httpClient(httpClient)
- .policies(policies.toArray(new HttpPipelinePolicy[0]))
- .build();
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0])).build();
return new ChaosManager(httpPipeline, profile, defaultPollInterval);
}
}
/**
* Gets the resource collection API of Capabilities.
- *
+ *
* @return Resource collection API of Capabilities.
*/
public Capabilities capabilities() {
@@ -298,7 +277,7 @@ public Capabilities capabilities() {
/**
* Gets the resource collection API of CapabilityTypes.
- *
+ *
* @return Resource collection API of CapabilityTypes.
*/
public CapabilityTypes capabilityTypes() {
@@ -310,7 +289,7 @@ public CapabilityTypes capabilityTypes() {
/**
* Gets the resource collection API of Experiments. It manages Experiment.
- *
+ *
* @return Resource collection API of Experiments.
*/
public Experiments experiments() {
@@ -322,7 +301,7 @@ public Experiments experiments() {
/**
* Gets the resource collection API of OperationStatuses.
- *
+ *
* @return Resource collection API of OperationStatuses.
*/
public OperationStatuses operationStatuses() {
@@ -334,7 +313,7 @@ public OperationStatuses operationStatuses() {
/**
* Gets the resource collection API of Operations.
- *
+ *
* @return Resource collection API of Operations.
*/
public Operations operations() {
@@ -346,7 +325,7 @@ public Operations operations() {
/**
* Gets the resource collection API of TargetTypes.
- *
+ *
* @return Resource collection API of TargetTypes.
*/
public TargetTypes targetTypes() {
@@ -358,7 +337,7 @@ public TargetTypes targetTypes() {
/**
* Gets the resource collection API of Targets.
- *
+ *
* @return Resource collection API of Targets.
*/
public Targets targets() {
@@ -371,7 +350,7 @@ public Targets targets() {
/**
* Gets wrapped service client ChaosManagementClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
- *
+ *
* @return Wrapped service client ChaosManagementClient.
*/
public ChaosManagementClient serviceClient() {
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/CapabilitiesClient.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/CapabilitiesClient.java
index 9de7900898ee..711876aab678 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/CapabilitiesClient.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/CapabilitiesClient.java
@@ -11,11 +11,13 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.chaos.fluent.models.CapabilityInner;
-/** An instance of this class provides access to all the operations defined in CapabilitiesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in CapabilitiesClient.
+ */
public interface CapabilitiesClient {
/**
* Get a list of Capability resources that extend a Target resource..
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -24,20 +26,16 @@ public interface CapabilitiesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Capability resources that extend a Target resource. as paginated response with {@link
- * PagedIterable}.
+ * @return a list of Capability resources that extend a Target resource. as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName);
+ PagedIterable list(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName);
/**
* Get a list of Capability resources that extend a Target resource..
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -48,22 +46,17 @@ PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Capability resources that extend a Target resource. as paginated response with {@link
- * PagedIterable}.
+ * @return a list of Capability resources that extend a Target resource. as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String continuationToken,
+ PagedIterable list(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String continuationToken,
Context context);
/**
* Get a Capability resource that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -77,18 +70,13 @@ PagedIterable list(
* @return a Capability resource that extends a Target resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName,
+ Response getWithResponse(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String capabilityName,
Context context);
/**
* Get a Capability resource that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -101,17 +89,12 @@ Response getWithResponse(
* @return a Capability resource that extends a Target resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CapabilityInner get(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName);
+ CapabilityInner get(String resourceGroupName, String parentProviderNamespace, String parentResourceType,
+ String parentResourceName, String targetName, String capabilityName);
/**
* Delete a Capability that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -125,18 +108,13 @@ CapabilityInner get(
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName,
+ Response deleteWithResponse(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String capabilityName,
Context context);
/**
* Delete a Capability that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -148,17 +126,12 @@ Response deleteWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName);
+ void delete(String resourceGroupName, String parentProviderNamespace, String parentResourceType,
+ String parentResourceName, String targetName, String capabilityName);
/**
* Create or update a Capability resource that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -173,19 +146,13 @@ void delete(
* @return model that represents a Capability resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName,
- CapabilityInner capability,
- Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String capabilityName,
+ CapabilityInner capability, Context context);
/**
* Create or update a Capability resource that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -199,12 +166,6 @@ Response createOrUpdateWithResponse(
* @return model that represents a Capability resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CapabilityInner createOrUpdate(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName,
- CapabilityInner capability);
+ CapabilityInner createOrUpdate(String resourceGroupName, String parentProviderNamespace, String parentResourceType,
+ String parentResourceName, String targetName, String capabilityName, CapabilityInner capability);
}
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/CapabilityTypesClient.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/CapabilityTypesClient.java
index 1bf7ffdeaf69..723d735439ac 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/CapabilityTypesClient.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/CapabilityTypesClient.java
@@ -11,25 +11,27 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.chaos.fluent.models.CapabilityTypeInner;
-/** An instance of this class provides access to all the operations defined in CapabilityTypesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in CapabilityTypesClient.
+ */
public interface CapabilityTypesClient {
/**
* Get a list of Capability Type resources for given Target Type and location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Capability Type resources for given Target Type and location as paginated response with {@link
- * PagedIterable}.
+ * @return a list of Capability Type resources for given Target Type and location as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String locationName, String targetTypeName);
/**
* Get a list of Capability Type resources for given Target Type and location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @param continuationToken String that sets the continuation token.
@@ -37,16 +39,16 @@ public interface CapabilityTypesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Capability Type resources for given Target Type and location as paginated response with {@link
- * PagedIterable}.
+ * @return a list of Capability Type resources for given Target Type and location as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String locationName, String targetTypeName, String continuationToken, Context context);
+ PagedIterable list(String locationName, String targetTypeName, String continuationToken,
+ Context context);
/**
* Get a Capability Type resource for given Target Type and location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @param capabilityTypeName String that represents a Capability Type resource name.
@@ -57,12 +59,12 @@ PagedIterable list(
* @return a Capability Type resource for given Target Type and location along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String locationName, String targetTypeName, String capabilityTypeName, Context context);
+ Response getWithResponse(String locationName, String targetTypeName, String capabilityTypeName,
+ Context context);
/**
* Get a Capability Type resource for given Target Type and location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @param capabilityTypeName String that represents a Capability Type resource name.
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/ChaosManagementClient.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/ChaosManagementClient.java
index 2aaac5167d49..0957af884ce8 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/ChaosManagementClient.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/ChaosManagementClient.java
@@ -7,88 +7,90 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for ChaosManagementClient class. */
+/**
+ * The interface for ChaosManagementClient class.
+ */
public interface ChaosManagementClient {
/**
* Gets GUID that represents an Azure subscription ID.
- *
+ *
* @return the subscriptionId value.
*/
String getSubscriptionId();
/**
* Gets server parameter.
- *
+ *
* @return the endpoint value.
*/
String getEndpoint();
/**
* Gets Api Version.
- *
+ *
* @return the apiVersion value.
*/
String getApiVersion();
/**
* Gets The HTTP pipeline to send requests through.
- *
+ *
* @return the httpPipeline value.
*/
HttpPipeline getHttpPipeline();
/**
* Gets The default poll interval for long-running operation.
- *
+ *
* @return the defaultPollInterval value.
*/
Duration getDefaultPollInterval();
/**
* Gets the CapabilitiesClient object to access its operations.
- *
+ *
* @return the CapabilitiesClient object.
*/
CapabilitiesClient getCapabilities();
/**
* Gets the CapabilityTypesClient object to access its operations.
- *
+ *
* @return the CapabilityTypesClient object.
*/
CapabilityTypesClient getCapabilityTypes();
/**
* Gets the ExperimentsClient object to access its operations.
- *
+ *
* @return the ExperimentsClient object.
*/
ExperimentsClient getExperiments();
/**
* Gets the OperationStatusesClient object to access its operations.
- *
+ *
* @return the OperationStatusesClient object.
*/
OperationStatusesClient getOperationStatuses();
/**
* Gets the OperationsClient object to access its operations.
- *
+ *
* @return the OperationsClient object.
*/
OperationsClient getOperations();
/**
* Gets the TargetTypesClient object to access its operations.
- *
+ *
* @return the TargetTypesClient object.
*/
TargetTypesClient getTargetTypes();
/**
* Gets the TargetsClient object to access its operations.
- *
+ *
* @return the TargetsClient object.
*/
TargetsClient getTargets();
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/ExperimentsClient.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/ExperimentsClient.java
index ba81f716b078..266e6c4ba7ea 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/ExperimentsClient.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/ExperimentsClient.java
@@ -16,11 +16,13 @@
import com.azure.resourcemanager.chaos.fluent.models.ExperimentInner;
import com.azure.resourcemanager.chaos.models.ExperimentUpdate;
-/** An instance of this class provides access to all the operations defined in ExperimentsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ExperimentsClient.
+ */
public interface ExperimentsClient {
/**
* Get a list of Experiment resources in a subscription.
- *
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of Experiment resources in a subscription as paginated response with {@link PagedIterable}.
@@ -30,9 +32,9 @@ public interface ExperimentsClient {
/**
* Get a list of Experiment resources in a subscription.
- *
+ *
* @param running Optional value that indicates whether to filter results based on if the Experiment is currently
- * running. If null, then the results will not be filtered.
+ * running. If null, then the results will not be filtered.
* @param continuationToken String that sets the continuation token.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -45,7 +47,7 @@ public interface ExperimentsClient {
/**
* Get a list of Experiment resources in a resource group.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -57,10 +59,10 @@ public interface ExperimentsClient {
/**
* Get a list of Experiment resources in a resource group.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param running Optional value that indicates whether to filter results based on if the Experiment is currently
- * running. If null, then the results will not be filtered.
+ * running. If null, then the results will not be filtered.
* @param continuationToken String that sets the continuation token.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -69,12 +71,12 @@ public interface ExperimentsClient {
* @return a list of Experiment resources in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(
- String resourceGroupName, Boolean running, String continuationToken, Context context);
+ PagedIterable listByResourceGroup(String resourceGroupName, Boolean running,
+ String continuationToken, Context context);
/**
* Delete a Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -87,7 +89,7 @@ PagedIterable listByResourceGroup(
/**
* Delete a Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param context The context to associate with this operation.
@@ -101,7 +103,7 @@ PagedIterable listByResourceGroup(
/**
* Delete a Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -113,7 +115,7 @@ PagedIterable listByResourceGroup(
/**
* Delete a Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param context The context to associate with this operation.
@@ -126,7 +128,7 @@ PagedIterable listByResourceGroup(
/**
* Get a Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param context The context to associate with this operation.
@@ -136,12 +138,12 @@ PagedIterable listByResourceGroup(
* @return a Experiment resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String experimentName, Context context);
+ Response getByResourceGroupWithResponse(String resourceGroupName, String experimentName,
+ Context context);
/**
* Get a Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -154,7 +156,7 @@ Response getByResourceGroupWithResponse(
/**
* Create or update a Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param experiment Experiment resource to be created or updated.
@@ -164,12 +166,12 @@ Response getByResourceGroupWithResponse(
* @return the {@link SyncPoller} for polling of model that represents a Experiment resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ExperimentInner> beginCreateOrUpdate(
- String resourceGroupName, String experimentName, ExperimentInner experiment);
+ SyncPoller, ExperimentInner> beginCreateOrUpdate(String resourceGroupName,
+ String experimentName, ExperimentInner experiment);
/**
* Create or update a Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param experiment Experiment resource to be created or updated.
@@ -180,12 +182,12 @@ SyncPoller, ExperimentInner> beginCreateOrUpdate(
* @return the {@link SyncPoller} for polling of model that represents a Experiment resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ExperimentInner> beginCreateOrUpdate(
- String resourceGroupName, String experimentName, ExperimentInner experiment, Context context);
+ SyncPoller, ExperimentInner> beginCreateOrUpdate(String resourceGroupName,
+ String experimentName, ExperimentInner experiment, Context context);
/**
* Create or update a Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param experiment Experiment resource to be created or updated.
@@ -199,7 +201,7 @@ SyncPoller, ExperimentInner> beginCreateOrUpdate(
/**
* Create or update a Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param experiment Experiment resource to be created or updated.
@@ -210,12 +212,12 @@ SyncPoller, ExperimentInner> beginCreateOrUpdate(
* @return model that represents a Experiment resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ExperimentInner createOrUpdate(
- String resourceGroupName, String experimentName, ExperimentInner experiment, Context context);
+ ExperimentInner createOrUpdate(String resourceGroupName, String experimentName, ExperimentInner experiment,
+ Context context);
/**
* The operation to update an experiment.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param experiment Parameters supplied to the Update experiment operation.
@@ -225,12 +227,12 @@ ExperimentInner createOrUpdate(
* @return the {@link SyncPoller} for polling of model that represents a Experiment resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ExperimentInner> beginUpdate(
- String resourceGroupName, String experimentName, ExperimentUpdate experiment);
+ SyncPoller, ExperimentInner> beginUpdate(String resourceGroupName,
+ String experimentName, ExperimentUpdate experiment);
/**
* The operation to update an experiment.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param experiment Parameters supplied to the Update experiment operation.
@@ -241,12 +243,12 @@ SyncPoller, ExperimentInner> beginUpdate(
* @return the {@link SyncPoller} for polling of model that represents a Experiment resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ExperimentInner> beginUpdate(
- String resourceGroupName, String experimentName, ExperimentUpdate experiment, Context context);
+ SyncPoller, ExperimentInner> beginUpdate(String resourceGroupName,
+ String experimentName, ExperimentUpdate experiment, Context context);
/**
* The operation to update an experiment.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param experiment Parameters supplied to the Update experiment operation.
@@ -260,7 +262,7 @@ SyncPoller, ExperimentInner> beginUpdate(
/**
* The operation to update an experiment.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param experiment Parameters supplied to the Update experiment operation.
@@ -271,12 +273,12 @@ SyncPoller, ExperimentInner> beginUpdate(
* @return model that represents a Experiment resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ExperimentInner update(
- String resourceGroupName, String experimentName, ExperimentUpdate experiment, Context context);
+ ExperimentInner update(String resourceGroupName, String experimentName, ExperimentUpdate experiment,
+ Context context);
/**
* Cancel a running Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -289,7 +291,7 @@ ExperimentInner update(
/**
* Cancel a running Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param context The context to associate with this operation.
@@ -303,7 +305,7 @@ ExperimentInner update(
/**
* Cancel a running Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -315,7 +317,7 @@ ExperimentInner update(
/**
* Cancel a running Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param context The context to associate with this operation.
@@ -328,7 +330,7 @@ ExperimentInner update(
/**
* Start a Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -341,7 +343,7 @@ ExperimentInner update(
/**
* Start a Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param context The context to associate with this operation.
@@ -355,7 +357,7 @@ ExperimentInner update(
/**
* Start a Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -367,7 +369,7 @@ ExperimentInner update(
/**
* Start a Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param context The context to associate with this operation.
@@ -380,7 +382,7 @@ ExperimentInner update(
/**
* Get a list of executions of an Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -393,7 +395,7 @@ ExperimentInner update(
/**
* Get a list of executions of an Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param context The context to associate with this operation.
@@ -403,12 +405,12 @@ ExperimentInner update(
* @return a list of executions of an Experiment resource as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listAllExecutions(
- String resourceGroupName, String experimentName, Context context);
+ PagedIterable listAllExecutions(String resourceGroupName, String experimentName,
+ Context context);
/**
* Get an execution of an Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param executionId GUID that represents a Experiment execution detail.
@@ -419,12 +421,12 @@ PagedIterable listAllExecutions(
* @return an execution of an Experiment resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getExecutionWithResponse(
- String resourceGroupName, String experimentName, String executionId, Context context);
+ Response getExecutionWithResponse(String resourceGroupName, String experimentName,
+ String executionId, Context context);
/**
* Get an execution of an Experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param executionId GUID that represents a Experiment execution detail.
@@ -438,7 +440,7 @@ Response getExecutionWithResponse(
/**
* Execution details of an experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param executionId GUID that represents a Experiment execution detail.
@@ -449,12 +451,12 @@ Response getExecutionWithResponse(
* @return model that represents the execution details of an Experiment along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response executionDetailsWithResponse(
- String resourceGroupName, String experimentName, String executionId, Context context);
+ Response executionDetailsWithResponse(String resourceGroupName,
+ String experimentName, String executionId, Context context);
/**
* Execution details of an experiment resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param experimentName String that represents a Experiment resource name.
* @param executionId GUID that represents a Experiment execution detail.
@@ -464,6 +466,6 @@ Response executionDetailsWithResponse(
* @return model that represents the execution details of an Experiment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ExperimentExecutionDetailsInner executionDetails(
- String resourceGroupName, String experimentName, String executionId);
+ ExperimentExecutionDetailsInner executionDetails(String resourceGroupName, String experimentName,
+ String executionId);
}
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/OperationStatusesClient.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/OperationStatusesClient.java
index b50d0814f55f..87083b88e1ee 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/OperationStatusesClient.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/OperationStatusesClient.java
@@ -10,12 +10,14 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.chaos.fluent.models.OperationStatusInner;
-/** An instance of this class provides access to all the operations defined in OperationStatusesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in OperationStatusesClient.
+ */
public interface OperationStatusesClient {
/**
* Get the status of a long running azure asynchronous operation.
- *
- * @param location The region name of operation.
+ *
+ * @param location The name of the Azure region.
* @param asyncOperationId The operation Id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -28,8 +30,8 @@ public interface OperationStatusesClient {
/**
* Get the status of a long running azure asynchronous operation.
- *
- * @param location The region name of operation.
+ *
+ * @param location The name of the Azure region.
* @param asyncOperationId The operation Id.
* @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/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/OperationsClient.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/OperationsClient.java
index fdd25c05ff15..6be2ec3d60b2 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/OperationsClient.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/OperationsClient.java
@@ -10,11 +10,13 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.chaos.fluent.models.OperationInner;
-/** An instance of this class provides access to all the operations defined in OperationsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
public interface OperationsClient {
/**
* Get a list all available Operations.
- *
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list all available Operations as paginated response with {@link PagedIterable}.
@@ -24,7 +26,7 @@ public interface OperationsClient {
/**
* Get a list all available Operations.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/TargetTypesClient.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/TargetTypesClient.java
index 46f1a4177d1f..92e8fb223c8f 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/TargetTypesClient.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/TargetTypesClient.java
@@ -11,11 +11,13 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.chaos.fluent.models.TargetTypeInner;
-/** An instance of this class provides access to all the operations defined in TargetTypesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in TargetTypesClient.
+ */
public interface TargetTypesClient {
/**
* Get a list of Target Type resources for given location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -27,7 +29,7 @@ public interface TargetTypesClient {
/**
* Get a list of Target Type resources for given location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param continuationToken String that sets the continuation token.
* @param context The context to associate with this operation.
@@ -41,7 +43,7 @@ public interface TargetTypesClient {
/**
* Get a Target Type resources for given location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @param context The context to associate with this operation.
@@ -55,7 +57,7 @@ public interface TargetTypesClient {
/**
* Get a Target Type resources for given location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/TargetsClient.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/TargetsClient.java
index a3ec48e28f4b..0caf92afda5d 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/TargetsClient.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/TargetsClient.java
@@ -11,11 +11,13 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.chaos.fluent.models.TargetInner;
-/** An instance of this class provides access to all the operations defined in TargetsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in TargetsClient.
+ */
public interface TargetsClient {
/**
* Get a list of Target resources that extend a tracked regional resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -23,16 +25,16 @@ public interface TargetsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Target resources that extend a tracked regional resource as paginated response with {@link
- * PagedIterable}.
+ * @return a list of Target resources that extend a tracked regional resource as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String resourceGroupName, String parentProviderNamespace, String parentResourceType, String parentResourceName);
+ PagedIterable list(String resourceGroupName, String parentProviderNamespace, String parentResourceType,
+ String parentResourceName);
/**
* Get a list of Target resources that extend a tracked regional resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -42,21 +44,16 @@ PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Target resources that extend a tracked regional resource as paginated response with {@link
- * PagedIterable}.
+ * @return a list of Target resources that extend a tracked regional resource as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String continuationToken,
- Context context);
+ PagedIterable list(String resourceGroupName, String parentProviderNamespace, String parentResourceType,
+ String parentResourceName, String continuationToken, Context context);
/**
* Get a Target resource that extends a tracked regional resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -69,17 +66,12 @@ PagedIterable list(
* @return a Target resource that extends a tracked regional resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- Context context);
+ Response getWithResponse(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, Context context);
/**
* Get a Target resource that extends a tracked regional resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -91,16 +83,12 @@ Response getWithResponse(
* @return a Target resource that extends a tracked regional resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- TargetInner get(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName);
+ TargetInner get(String resourceGroupName, String parentProviderNamespace, String parentResourceType,
+ String parentResourceName, String targetName);
/**
* Delete a Target resource that extends a tracked regional resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -113,17 +101,12 @@ TargetInner get(
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- Context context);
+ Response deleteWithResponse(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, Context context);
/**
* Delete a Target resource that extends a tracked regional resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -134,16 +117,12 @@ Response deleteWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName);
+ void delete(String resourceGroupName, String parentProviderNamespace, String parentResourceType,
+ String parentResourceName, String targetName);
/**
* Create or update a Target resource that extends a tracked regional resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -157,18 +136,12 @@ void delete(
* @return model that represents a Target resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- TargetInner target,
- Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, TargetInner target, Context context);
/**
* Create or update a Target resource that extends a tracked regional resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -181,11 +154,6 @@ Response createOrUpdateWithResponse(
* @return model that represents a Target resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- TargetInner createOrUpdate(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- TargetInner target);
+ TargetInner createOrUpdate(String resourceGroupName, String parentProviderNamespace, String parentResourceType,
+ String parentResourceName, String targetName, TargetInner target);
}
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/CapabilityInner.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/CapabilityInner.java
index 32126fd4a072..77d0fabdd71f 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/CapabilityInner.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/CapabilityInner.java
@@ -9,7 +9,9 @@
import com.azure.core.management.SystemData;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Model that represents a Capability resource. */
+/**
+ * Model that represents a Capability resource.
+ */
@Immutable
public final class CapabilityInner extends ProxyResource {
/*
@@ -24,13 +26,15 @@ public final class CapabilityInner extends ProxyResource {
@JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
private CapabilityProperties innerProperties;
- /** Creates an instance of CapabilityInner class. */
+ /**
+ * Creates an instance of CapabilityInner class.
+ */
public CapabilityInner() {
}
/**
* Get the systemData property: The standard system metadata of a resource type.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -39,7 +43,7 @@ public SystemData systemData() {
/**
* Get the innerProperties property: The properties of a capability resource.
- *
+ *
* @return the innerProperties value.
*/
private CapabilityProperties innerProperties() {
@@ -48,7 +52,7 @@ private CapabilityProperties innerProperties() {
/**
* Get the publisher property: String of the Publisher that this Capability extends.
- *
+ *
* @return the publisher value.
*/
public String publisher() {
@@ -57,7 +61,7 @@ public String publisher() {
/**
* Get the targetType property: String of the Target Type that this Capability extends.
- *
+ *
* @return the targetType value.
*/
public String targetType() {
@@ -66,7 +70,7 @@ public String targetType() {
/**
* Get the description property: Localized string of the description.
- *
+ *
* @return the description value.
*/
public String description() {
@@ -75,7 +79,7 @@ public String description() {
/**
* Get the parametersSchema property: URL to retrieve JSON schema of the Capability parameters.
- *
+ *
* @return the parametersSchema value.
*/
public String parametersSchema() {
@@ -84,7 +88,7 @@ public String parametersSchema() {
/**
* Get the urn property: String of the URN for this Capability Type.
- *
+ *
* @return the urn value.
*/
public String urn() {
@@ -93,7 +97,7 @@ public String urn() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/CapabilityProperties.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/CapabilityProperties.java
index 4970fe21a6ca..2380ddf8be90 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/CapabilityProperties.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/CapabilityProperties.java
@@ -7,7 +7,9 @@
import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Model that represents the Capability properties model. */
+/**
+ * Model that represents the Capability properties model.
+ */
@Immutable
public final class CapabilityProperties {
/*
@@ -40,13 +42,15 @@ public final class CapabilityProperties {
@JsonProperty(value = "urn", access = JsonProperty.Access.WRITE_ONLY)
private String urn;
- /** Creates an instance of CapabilityProperties class. */
+ /**
+ * Creates an instance of CapabilityProperties class.
+ */
public CapabilityProperties() {
}
/**
* Get the publisher property: String of the Publisher that this Capability extends.
- *
+ *
* @return the publisher value.
*/
public String publisher() {
@@ -55,7 +59,7 @@ public String publisher() {
/**
* Get the targetType property: String of the Target Type that this Capability extends.
- *
+ *
* @return the targetType value.
*/
public String targetType() {
@@ -64,7 +68,7 @@ public String targetType() {
/**
* Get the description property: Localized string of the description.
- *
+ *
* @return the description value.
*/
public String description() {
@@ -73,7 +77,7 @@ public String description() {
/**
* Get the parametersSchema property: URL to retrieve JSON schema of the Capability parameters.
- *
+ *
* @return the parametersSchema value.
*/
public String parametersSchema() {
@@ -82,7 +86,7 @@ public String parametersSchema() {
/**
* Get the urn property: String of the URN for this Capability Type.
- *
+ *
* @return the urn value.
*/
public String urn() {
@@ -91,7 +95,7 @@ public String urn() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/CapabilityTypeInner.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/CapabilityTypeInner.java
index 5fa57575bc57..ffea085d3935 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/CapabilityTypeInner.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/CapabilityTypeInner.java
@@ -11,7 +11,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Model that represents a Capability Type resource. */
+/**
+ * Model that represents a Capability Type resource.
+ */
@Fluent
public final class CapabilityTypeInner extends ProxyResource {
/*
@@ -32,13 +34,15 @@ public final class CapabilityTypeInner extends ProxyResource {
@JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
private CapabilityTypeProperties innerProperties;
- /** Creates an instance of CapabilityTypeInner class. */
+ /**
+ * Creates an instance of CapabilityTypeInner class.
+ */
public CapabilityTypeInner() {
}
/**
* Get the systemData property: The system metadata properties of the capability type resource.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -47,7 +51,7 @@ public SystemData systemData() {
/**
* Get the location property: Location of the Capability Type resource.
- *
+ *
* @return the location value.
*/
public String location() {
@@ -56,7 +60,7 @@ public String location() {
/**
* Set the location property: Location of the Capability Type resource.
- *
+ *
* @param location the location value to set.
* @return the CapabilityTypeInner object itself.
*/
@@ -67,7 +71,7 @@ public CapabilityTypeInner withLocation(String location) {
/**
* Get the innerProperties property: The properties of the capability type resource.
- *
+ *
* @return the innerProperties value.
*/
private CapabilityTypeProperties innerProperties() {
@@ -76,7 +80,7 @@ private CapabilityTypeProperties innerProperties() {
/**
* Get the publisher property: String of the Publisher that this Capability Type extends.
- *
+ *
* @return the publisher value.
*/
public String publisher() {
@@ -85,7 +89,7 @@ public String publisher() {
/**
* Get the targetType property: String of the Target Type that this Capability Type extends.
- *
+ *
* @return the targetType value.
*/
public String targetType() {
@@ -94,7 +98,7 @@ public String targetType() {
/**
* Get the displayName property: Localized string of the display name.
- *
+ *
* @return the displayName value.
*/
public String displayName() {
@@ -103,7 +107,7 @@ public String displayName() {
/**
* Get the description property: Localized string of the description.
- *
+ *
* @return the description value.
*/
public String description() {
@@ -112,7 +116,7 @@ public String description() {
/**
* Get the parametersSchema property: URL to retrieve JSON schema of the Capability Type parameters.
- *
+ *
* @return the parametersSchema value.
*/
public String parametersSchema() {
@@ -121,7 +125,7 @@ public String parametersSchema() {
/**
* Get the urn property: String of the URN for this Capability Type.
- *
+ *
* @return the urn value.
*/
public String urn() {
@@ -130,7 +134,7 @@ public String urn() {
/**
* Get the kind property: String of the kind of this Capability Type.
- *
+ *
* @return the kind value.
*/
public String kind() {
@@ -139,7 +143,7 @@ public String kind() {
/**
* Get the azureRbacActions property: Control plane actions necessary to execute capability type.
- *
+ *
* @return the azureRbacActions value.
*/
public List azureRbacActions() {
@@ -148,7 +152,7 @@ public List azureRbacActions() {
/**
* Set the azureRbacActions property: Control plane actions necessary to execute capability type.
- *
+ *
* @param azureRbacActions the azureRbacActions value to set.
* @return the CapabilityTypeInner object itself.
*/
@@ -162,7 +166,7 @@ public CapabilityTypeInner withAzureRbacActions(List azureRbacActions) {
/**
* Get the azureRbacDataActions property: Data plane actions necessary to execute capability type.
- *
+ *
* @return the azureRbacDataActions value.
*/
public List azureRbacDataActions() {
@@ -171,7 +175,7 @@ public List azureRbacDataActions() {
/**
* Set the azureRbacDataActions property: Data plane actions necessary to execute capability type.
- *
+ *
* @param azureRbacDataActions the azureRbacDataActions value to set.
* @return the CapabilityTypeInner object itself.
*/
@@ -185,7 +189,7 @@ public CapabilityTypeInner withAzureRbacDataActions(List azureRbacDataAc
/**
* Get the runtimeProperties property: Runtime properties of this Capability Type.
- *
+ *
* @return the runtimeProperties value.
*/
public CapabilityTypePropertiesRuntimeProperties runtimeProperties() {
@@ -194,7 +198,7 @@ public CapabilityTypePropertiesRuntimeProperties runtimeProperties() {
/**
* Set the runtimeProperties property: Runtime properties of this Capability Type.
- *
+ *
* @param runtimeProperties the runtimeProperties value to set.
* @return the CapabilityTypeInner object itself.
*/
@@ -208,7 +212,7 @@ public CapabilityTypeInner withRuntimeProperties(CapabilityTypePropertiesRuntime
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/CapabilityTypeProperties.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/CapabilityTypeProperties.java
index 5767a0f53322..823c0f6fffdc 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/CapabilityTypeProperties.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/CapabilityTypeProperties.java
@@ -9,7 +9,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Model that represents the Capability Type properties model. */
+/**
+ * Model that represents the Capability Type properties model.
+ */
@Fluent
public final class CapabilityTypeProperties {
/*
@@ -72,13 +74,15 @@ public final class CapabilityTypeProperties {
@JsonProperty(value = "runtimeProperties")
private CapabilityTypePropertiesRuntimeProperties runtimeProperties;
- /** Creates an instance of CapabilityTypeProperties class. */
+ /**
+ * Creates an instance of CapabilityTypeProperties class.
+ */
public CapabilityTypeProperties() {
}
/**
* Get the publisher property: String of the Publisher that this Capability Type extends.
- *
+ *
* @return the publisher value.
*/
public String publisher() {
@@ -87,7 +91,7 @@ public String publisher() {
/**
* Get the targetType property: String of the Target Type that this Capability Type extends.
- *
+ *
* @return the targetType value.
*/
public String targetType() {
@@ -96,7 +100,7 @@ public String targetType() {
/**
* Get the displayName property: Localized string of the display name.
- *
+ *
* @return the displayName value.
*/
public String displayName() {
@@ -105,7 +109,7 @@ public String displayName() {
/**
* Get the description property: Localized string of the description.
- *
+ *
* @return the description value.
*/
public String description() {
@@ -114,7 +118,7 @@ public String description() {
/**
* Get the parametersSchema property: URL to retrieve JSON schema of the Capability Type parameters.
- *
+ *
* @return the parametersSchema value.
*/
public String parametersSchema() {
@@ -123,7 +127,7 @@ public String parametersSchema() {
/**
* Get the urn property: String of the URN for this Capability Type.
- *
+ *
* @return the urn value.
*/
public String urn() {
@@ -132,7 +136,7 @@ public String urn() {
/**
* Get the kind property: String of the kind of this Capability Type.
- *
+ *
* @return the kind value.
*/
public String kind() {
@@ -141,7 +145,7 @@ public String kind() {
/**
* Get the azureRbacActions property: Control plane actions necessary to execute capability type.
- *
+ *
* @return the azureRbacActions value.
*/
public List azureRbacActions() {
@@ -150,7 +154,7 @@ public List azureRbacActions() {
/**
* Set the azureRbacActions property: Control plane actions necessary to execute capability type.
- *
+ *
* @param azureRbacActions the azureRbacActions value to set.
* @return the CapabilityTypeProperties object itself.
*/
@@ -161,7 +165,7 @@ public CapabilityTypeProperties withAzureRbacActions(List azureRbacActio
/**
* Get the azureRbacDataActions property: Data plane actions necessary to execute capability type.
- *
+ *
* @return the azureRbacDataActions value.
*/
public List azureRbacDataActions() {
@@ -170,7 +174,7 @@ public List azureRbacDataActions() {
/**
* Set the azureRbacDataActions property: Data plane actions necessary to execute capability type.
- *
+ *
* @param azureRbacDataActions the azureRbacDataActions value to set.
* @return the CapabilityTypeProperties object itself.
*/
@@ -181,7 +185,7 @@ public CapabilityTypeProperties withAzureRbacDataActions(List azureRbacD
/**
* Get the runtimeProperties property: Runtime properties of this Capability Type.
- *
+ *
* @return the runtimeProperties value.
*/
public CapabilityTypePropertiesRuntimeProperties runtimeProperties() {
@@ -190,7 +194,7 @@ public CapabilityTypePropertiesRuntimeProperties runtimeProperties() {
/**
* Set the runtimeProperties property: Runtime properties of this Capability Type.
- *
+ *
* @param runtimeProperties the runtimeProperties value to set.
* @return the CapabilityTypeProperties object itself.
*/
@@ -201,7 +205,7 @@ public CapabilityTypeProperties withRuntimeProperties(CapabilityTypePropertiesRu
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentExecutionDetailsInner.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentExecutionDetailsInner.java
index c8b4c2738e16..a9206b47ee9e 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentExecutionDetailsInner.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentExecutionDetailsInner.java
@@ -9,7 +9,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
-/** Model that represents the execution details of an Experiment. */
+/**
+ * Model that represents the execution details of an Experiment.
+ */
@Immutable
public final class ExperimentExecutionDetailsInner {
/*
@@ -36,13 +38,15 @@ public final class ExperimentExecutionDetailsInner {
@JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
private ExperimentExecutionDetailsProperties innerProperties;
- /** Creates an instance of ExperimentExecutionDetailsInner class. */
+ /**
+ * Creates an instance of ExperimentExecutionDetailsInner class.
+ */
public ExperimentExecutionDetailsInner() {
}
/**
* Get the type property: String of the resource type.
- *
+ *
* @return the type value.
*/
public String type() {
@@ -51,7 +55,7 @@ public String type() {
/**
* Get the id property: String of the fully qualified resource ID.
- *
+ *
* @return the id value.
*/
public String id() {
@@ -60,7 +64,7 @@ public String id() {
/**
* Get the name property: String of the resource name.
- *
+ *
* @return the name value.
*/
public String name() {
@@ -69,7 +73,7 @@ public String name() {
/**
* Get the innerProperties property: The properties of the experiment execution details.
- *
+ *
* @return the innerProperties value.
*/
private ExperimentExecutionDetailsProperties innerProperties() {
@@ -78,7 +82,7 @@ private ExperimentExecutionDetailsProperties innerProperties() {
/**
* Get the failureReason property: The reason why the execution failed.
- *
+ *
* @return the failureReason value.
*/
public String failureReason() {
@@ -87,7 +91,7 @@ public String failureReason() {
/**
* Get the lastActionAt property: String that represents the last action date time.
- *
+ *
* @return the lastActionAt value.
*/
public OffsetDateTime lastActionAt() {
@@ -96,7 +100,7 @@ public OffsetDateTime lastActionAt() {
/**
* Get the runInformation property: The information of the experiment run.
- *
+ *
* @return the runInformation value.
*/
public ExperimentExecutionDetailsPropertiesRunInformation runInformation() {
@@ -105,7 +109,7 @@ public ExperimentExecutionDetailsPropertiesRunInformation runInformation() {
/**
* Get the status property: The status of the execution.
- *
+ *
* @return the status value.
*/
public String status() {
@@ -114,7 +118,7 @@ public String status() {
/**
* Get the startedAt property: String that represents the start date time.
- *
+ *
* @return the startedAt value.
*/
public OffsetDateTime startedAt() {
@@ -123,7 +127,7 @@ public OffsetDateTime startedAt() {
/**
* Get the stoppedAt property: String that represents the stop date time.
- *
+ *
* @return the stoppedAt value.
*/
public OffsetDateTime stoppedAt() {
@@ -132,7 +136,7 @@ public OffsetDateTime stoppedAt() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentExecutionDetailsProperties.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentExecutionDetailsProperties.java
index 785f78ecb743..d8094e07050f 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentExecutionDetailsProperties.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentExecutionDetailsProperties.java
@@ -9,7 +9,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
-/** Model that represents the extended properties of an experiment execution. */
+/**
+ * Model that represents the extended properties of an experiment execution.
+ */
@Immutable
public final class ExperimentExecutionDetailsProperties extends ExperimentExecutionProperties {
/*
@@ -30,13 +32,15 @@ public final class ExperimentExecutionDetailsProperties extends ExperimentExecut
@JsonProperty(value = "runInformation", access = JsonProperty.Access.WRITE_ONLY)
private ExperimentExecutionDetailsPropertiesRunInformation runInformation;
- /** Creates an instance of ExperimentExecutionDetailsProperties class. */
+ /**
+ * Creates an instance of ExperimentExecutionDetailsProperties class.
+ */
public ExperimentExecutionDetailsProperties() {
}
/**
* Get the failureReason property: The reason why the execution failed.
- *
+ *
* @return the failureReason value.
*/
public String failureReason() {
@@ -45,7 +49,7 @@ public String failureReason() {
/**
* Get the lastActionAt property: String that represents the last action date time.
- *
+ *
* @return the lastActionAt value.
*/
public OffsetDateTime lastActionAt() {
@@ -54,7 +58,7 @@ public OffsetDateTime lastActionAt() {
/**
* Get the runInformation property: The information of the experiment run.
- *
+ *
* @return the runInformation value.
*/
public ExperimentExecutionDetailsPropertiesRunInformation runInformation() {
@@ -63,7 +67,7 @@ public ExperimentExecutionDetailsPropertiesRunInformation runInformation() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentExecutionInner.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentExecutionInner.java
index 59ad9f95d129..420ffd70a2df 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentExecutionInner.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentExecutionInner.java
@@ -8,7 +8,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
-/** Model that represents the execution of a Experiment. */
+/**
+ * Model that represents the execution of a Experiment.
+ */
@Immutable
public final class ExperimentExecutionInner {
/*
@@ -35,13 +37,15 @@ public final class ExperimentExecutionInner {
@JsonProperty(value = "properties")
private ExperimentExecutionProperties innerProperties;
- /** Creates an instance of ExperimentExecutionInner class. */
+ /**
+ * Creates an instance of ExperimentExecutionInner class.
+ */
public ExperimentExecutionInner() {
}
/**
* Get the type property: String of the resource type.
- *
+ *
* @return the type value.
*/
public String type() {
@@ -50,7 +54,7 @@ public String type() {
/**
* Get the id property: String of the fully qualified resource ID.
- *
+ *
* @return the id value.
*/
public String id() {
@@ -59,7 +63,7 @@ public String id() {
/**
* Get the name property: String of the resource name.
- *
+ *
* @return the name value.
*/
public String name() {
@@ -68,7 +72,7 @@ public String name() {
/**
* Get the innerProperties property: The properties of experiment execution status.
- *
+ *
* @return the innerProperties value.
*/
private ExperimentExecutionProperties innerProperties() {
@@ -77,7 +81,7 @@ private ExperimentExecutionProperties innerProperties() {
/**
* Get the status property: The status of the execution.
- *
+ *
* @return the status value.
*/
public String status() {
@@ -86,7 +90,7 @@ public String status() {
/**
* Get the startedAt property: String that represents the start date time.
- *
+ *
* @return the startedAt value.
*/
public OffsetDateTime startedAt() {
@@ -95,7 +99,7 @@ public OffsetDateTime startedAt() {
/**
* Get the stoppedAt property: String that represents the stop date time.
- *
+ *
* @return the stoppedAt value.
*/
public OffsetDateTime stoppedAt() {
@@ -104,7 +108,7 @@ public OffsetDateTime stoppedAt() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentExecutionProperties.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentExecutionProperties.java
index 2a71fd31e341..0338e23a53bb 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentExecutionProperties.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentExecutionProperties.java
@@ -8,7 +8,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
-/** Model that represents the execution properties of an Experiment. */
+/**
+ * Model that represents the execution properties of an Experiment.
+ */
@Immutable
public class ExperimentExecutionProperties {
/*
@@ -29,13 +31,15 @@ public class ExperimentExecutionProperties {
@JsonProperty(value = "stoppedAt", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime stoppedAt;
- /** Creates an instance of ExperimentExecutionProperties class. */
+ /**
+ * Creates an instance of ExperimentExecutionProperties class.
+ */
public ExperimentExecutionProperties() {
}
/**
* Get the status property: The status of the execution.
- *
+ *
* @return the status value.
*/
public String status() {
@@ -44,7 +48,7 @@ public String status() {
/**
* Get the startedAt property: String that represents the start date time.
- *
+ *
* @return the startedAt value.
*/
public OffsetDateTime startedAt() {
@@ -53,7 +57,7 @@ public OffsetDateTime startedAt() {
/**
* Get the stoppedAt property: String that represents the stop date time.
- *
+ *
* @return the stoppedAt value.
*/
public OffsetDateTime stoppedAt() {
@@ -62,7 +66,7 @@ public OffsetDateTime stoppedAt() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentInner.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentInner.java
index e2fc79886449..70656ef6bef3 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentInner.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentInner.java
@@ -16,7 +16,9 @@
import java.util.List;
import java.util.Map;
-/** Model that represents a Experiment resource. */
+/**
+ * Model that represents a Experiment resource.
+ */
@Fluent
public final class ExperimentInner extends Resource {
/*
@@ -37,13 +39,15 @@ public final class ExperimentInner extends Resource {
@JsonProperty(value = "properties", required = true)
private ExperimentProperties innerProperties = new ExperimentProperties();
- /** Creates an instance of ExperimentInner class. */
+ /**
+ * Creates an instance of ExperimentInner class.
+ */
public ExperimentInner() {
}
/**
* Get the systemData property: The system metadata of the experiment resource.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -52,7 +56,7 @@ public SystemData systemData() {
/**
* Get the identity property: The identity of the experiment resource.
- *
+ *
* @return the identity value.
*/
public ResourceIdentity identity() {
@@ -61,7 +65,7 @@ public ResourceIdentity identity() {
/**
* Set the identity property: The identity of the experiment resource.
- *
+ *
* @param identity the identity value to set.
* @return the ExperimentInner object itself.
*/
@@ -72,21 +76,25 @@ public ExperimentInner withIdentity(ResourceIdentity identity) {
/**
* Get the innerProperties property: The properties of the experiment resource.
- *
+ *
* @return the innerProperties value.
*/
private ExperimentProperties innerProperties() {
return this.innerProperties;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ExperimentInner withLocation(String location) {
super.withLocation(location);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ExperimentInner withTags(Map tags) {
super.withTags(tags);
@@ -95,7 +103,7 @@ public ExperimentInner withTags(Map tags) {
/**
* Get the provisioningState property: Most recent provisioning state for the given experiment resource.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -104,7 +112,7 @@ public ProvisioningState provisioningState() {
/**
* Get the steps property: List of steps.
- *
+ *
* @return the steps value.
*/
public List steps() {
@@ -113,7 +121,7 @@ public List steps() {
/**
* Set the steps property: List of steps.
- *
+ *
* @param steps the steps value to set.
* @return the ExperimentInner object itself.
*/
@@ -127,7 +135,7 @@ public ExperimentInner withSteps(List steps) {
/**
* Get the selectors property: List of selectors.
- *
+ *
* @return the selectors value.
*/
public List selectors() {
@@ -136,7 +144,7 @@ public List selectors() {
/**
* Set the selectors property: List of selectors.
- *
+ *
* @param selectors the selectors value to set.
* @return the ExperimentInner object itself.
*/
@@ -150,7 +158,7 @@ public ExperimentInner withSelectors(List selectors) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -158,9 +166,8 @@ public void validate() {
identity().validate();
}
if (innerProperties() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property innerProperties in model ExperimentInner"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property innerProperties in model ExperimentInner"));
} else {
innerProperties().validate();
}
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentProperties.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentProperties.java
index ddcd07937796..bb1445fe5dc1 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentProperties.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/ExperimentProperties.java
@@ -12,7 +12,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Model that represents the Experiment properties model. */
+/**
+ * Model that represents the Experiment properties model.
+ */
@Fluent
public final class ExperimentProperties {
/*
@@ -33,13 +35,15 @@ public final class ExperimentProperties {
@JsonProperty(value = "selectors", required = true)
private List selectors;
- /** Creates an instance of ExperimentProperties class. */
+ /**
+ * Creates an instance of ExperimentProperties class.
+ */
public ExperimentProperties() {
}
/**
* Get the provisioningState property: Most recent provisioning state for the given experiment resource.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -48,7 +52,7 @@ public ProvisioningState provisioningState() {
/**
* Get the steps property: List of steps.
- *
+ *
* @return the steps value.
*/
public List steps() {
@@ -57,7 +61,7 @@ public List steps() {
/**
* Set the steps property: List of steps.
- *
+ *
* @param steps the steps value to set.
* @return the ExperimentProperties object itself.
*/
@@ -68,7 +72,7 @@ public ExperimentProperties withSteps(List steps) {
/**
* Get the selectors property: List of selectors.
- *
+ *
* @return the selectors value.
*/
public List selectors() {
@@ -77,7 +81,7 @@ public List selectors() {
/**
* Set the selectors property: List of selectors.
- *
+ *
* @param selectors the selectors value to set.
* @return the ExperimentProperties object itself.
*/
@@ -88,21 +92,19 @@ public ExperimentProperties withSelectors(List selectors) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (steps() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property steps in model ExperimentProperties"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property steps in model ExperimentProperties"));
} else {
steps().forEach(e -> e.validate());
}
if (selectors() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property selectors in model ExperimentProperties"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property selectors in model ExperimentProperties"));
} else {
selectors().forEach(e -> e.validate());
}
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/OperationInner.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/OperationInner.java
index e710daaf81ae..d71cf2dbad10 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/OperationInner.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/OperationInner.java
@@ -12,8 +12,8 @@
/**
* REST API Operation
- *
- * Details of a REST API operation, returned from the Resource Provider Operations API.
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
*/
@Fluent
public final class OperationInner {
@@ -50,14 +50,16 @@ public final class OperationInner {
@JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
private ActionType actionType;
- /** Creates an instance of OperationInner class. */
+ /**
+ * Creates an instance of OperationInner class.
+ */
public OperationInner() {
}
/**
* Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
* "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
- *
+ *
* @return the name value.
*/
public String name() {
@@ -67,7 +69,7 @@ public String name() {
/**
* Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
* operations and "false" for ARM/control-plane operations.
- *
+ *
* @return the isDataAction value.
*/
public Boolean isDataAction() {
@@ -76,7 +78,7 @@ public Boolean isDataAction() {
/**
* Get the display property: Localized display information for this particular operation.
- *
+ *
* @return the display value.
*/
public OperationDisplay display() {
@@ -85,7 +87,7 @@ public OperationDisplay display() {
/**
* Set the display property: Localized display information for this particular operation.
- *
+ *
* @param display the display value to set.
* @return the OperationInner object itself.
*/
@@ -97,7 +99,7 @@ public OperationInner withDisplay(OperationDisplay display) {
/**
* Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
* audit logs UX. Default value is "user,system".
- *
+ *
* @return the origin value.
*/
public Origin origin() {
@@ -107,7 +109,7 @@ public Origin origin() {
/**
* Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
* only APIs.
- *
+ *
* @return the actionType value.
*/
public ActionType actionType() {
@@ -116,7 +118,7 @@ public ActionType actionType() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/OperationStatusInner.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/OperationStatusInner.java
index c6be5e917a60..24456ee1cf19 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/OperationStatusInner.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/OperationStatusInner.java
@@ -8,7 +8,9 @@
import com.azure.core.management.exception.ManagementError;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The status of operation. */
+/**
+ * The status of operation.
+ */
@Fluent
public final class OperationStatusInner {
/*
@@ -47,13 +49,15 @@ public final class OperationStatusInner {
@JsonProperty(value = "error")
private ManagementError error;
- /** Creates an instance of OperationStatusInner class. */
+ /**
+ * Creates an instance of OperationStatusInner class.
+ */
public OperationStatusInner() {
}
/**
* Get the id property: The operation Id.
- *
+ *
* @return the id value.
*/
public String id() {
@@ -62,7 +66,7 @@ public String id() {
/**
* Set the id property: The operation Id.
- *
+ *
* @param id the id value to set.
* @return the OperationStatusInner object itself.
*/
@@ -73,7 +77,7 @@ public OperationStatusInner withId(String id) {
/**
* Get the name property: The operation name.
- *
+ *
* @return the name value.
*/
public String name() {
@@ -82,7 +86,7 @@ public String name() {
/**
* Set the name property: The operation name.
- *
+ *
* @param name the name value to set.
* @return the OperationStatusInner object itself.
*/
@@ -93,7 +97,7 @@ public OperationStatusInner withName(String name) {
/**
* Get the startTime property: The start time of the operation.
- *
+ *
* @return the startTime value.
*/
public String startTime() {
@@ -102,7 +106,7 @@ public String startTime() {
/**
* Set the startTime property: The start time of the operation.
- *
+ *
* @param startTime the startTime value to set.
* @return the OperationStatusInner object itself.
*/
@@ -113,7 +117,7 @@ public OperationStatusInner withStartTime(String startTime) {
/**
* Get the endTime property: The end time of the operation.
- *
+ *
* @return the endTime value.
*/
public String endTime() {
@@ -122,7 +126,7 @@ public String endTime() {
/**
* Set the endTime property: The end time of the operation.
- *
+ *
* @param endTime the endTime value to set.
* @return the OperationStatusInner object itself.
*/
@@ -133,7 +137,7 @@ public OperationStatusInner withEndTime(String endTime) {
/**
* Get the status property: The status of the operation.
- *
+ *
* @return the status value.
*/
public String status() {
@@ -142,7 +146,7 @@ public String status() {
/**
* Set the status property: The status of the operation.
- *
+ *
* @param status the status value to set.
* @return the OperationStatusInner object itself.
*/
@@ -153,7 +157,7 @@ public OperationStatusInner withStatus(String status) {
/**
* Get the error property: The error object.
- *
+ *
* @return the error value.
*/
public ManagementError error() {
@@ -162,7 +166,7 @@ public ManagementError error() {
/**
* Set the error property: The error object.
- *
+ *
* @param error the error value to set.
* @return the OperationStatusInner object itself.
*/
@@ -173,7 +177,7 @@ public OperationStatusInner withError(ManagementError error) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/TargetInner.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/TargetInner.java
index 7145cd04d068..2700e264d225 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/TargetInner.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/TargetInner.java
@@ -12,7 +12,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
-/** Model that represents a Target resource. */
+/**
+ * Model that represents a Target resource.
+ */
@Fluent
public final class TargetInner extends ProxyResource {
/*
@@ -34,13 +36,15 @@ public final class TargetInner extends ProxyResource {
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map properties;
- /** Creates an instance of TargetInner class. */
+ /**
+ * Creates an instance of TargetInner class.
+ */
public TargetInner() {
}
/**
* Get the systemData property: The system metadata of the target resource.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -49,7 +53,7 @@ public SystemData systemData() {
/**
* Get the location property: Location of the target resource.
- *
+ *
* @return the location value.
*/
public String location() {
@@ -58,7 +62,7 @@ public String location() {
/**
* Set the location property: Location of the target resource.
- *
+ *
* @param location the location value to set.
* @return the TargetInner object itself.
*/
@@ -69,7 +73,7 @@ public TargetInner withLocation(String location) {
/**
* Get the properties property: The properties of the target resource.
- *
+ *
* @return the properties value.
*/
public Map properties() {
@@ -78,7 +82,7 @@ public Map properties() {
/**
* Set the properties property: The properties of the target resource.
- *
+ *
* @param properties the properties value to set.
* @return the TargetInner object itself.
*/
@@ -89,14 +93,13 @@ public TargetInner withProperties(Map properties) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (properties() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property properties in model TargetInner"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property properties in model TargetInner"));
}
}
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/TargetTypeInner.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/TargetTypeInner.java
index d96b2afce917..7977d4e0b5d8 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/TargetTypeInner.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/TargetTypeInner.java
@@ -11,7 +11,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Model that represents a Target Type resource. */
+/**
+ * Model that represents a Target Type resource.
+ */
@Fluent
public final class TargetTypeInner extends ProxyResource {
/*
@@ -32,13 +34,15 @@ public final class TargetTypeInner extends ProxyResource {
@JsonProperty(value = "properties", required = true)
private TargetTypeProperties innerProperties = new TargetTypeProperties();
- /** Creates an instance of TargetTypeInner class. */
+ /**
+ * Creates an instance of TargetTypeInner class.
+ */
public TargetTypeInner() {
}
/**
* Get the systemData property: The system metadata properties of the target type resource.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -47,7 +51,7 @@ public SystemData systemData() {
/**
* Get the location property: Location of the Target Type resource.
- *
+ *
* @return the location value.
*/
public String location() {
@@ -56,7 +60,7 @@ public String location() {
/**
* Set the location property: Location of the Target Type resource.
- *
+ *
* @param location the location value to set.
* @return the TargetTypeInner object itself.
*/
@@ -67,7 +71,7 @@ public TargetTypeInner withLocation(String location) {
/**
* Get the innerProperties property: The properties of the target type resource.
- *
+ *
* @return the innerProperties value.
*/
private TargetTypeProperties innerProperties() {
@@ -76,7 +80,7 @@ private TargetTypeProperties innerProperties() {
/**
* Get the displayName property: Localized string of the display name.
- *
+ *
* @return the displayName value.
*/
public String displayName() {
@@ -85,7 +89,7 @@ public String displayName() {
/**
* Get the description property: Localized string of the description.
- *
+ *
* @return the description value.
*/
public String description() {
@@ -94,7 +98,7 @@ public String description() {
/**
* Get the propertiesSchema property: URL to retrieve JSON schema of the Target Type properties.
- *
+ *
* @return the propertiesSchema value.
*/
public String propertiesSchema() {
@@ -103,7 +107,7 @@ public String propertiesSchema() {
/**
* Get the resourceTypes property: List of resource types this Target Type can extend.
- *
+ *
* @return the resourceTypes value.
*/
public List resourceTypes() {
@@ -112,14 +116,13 @@ public List resourceTypes() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property innerProperties in model TargetTypeInner"));
+ throw LOGGER.logExceptionAsError(
+ new IllegalArgumentException("Missing required property innerProperties in model TargetTypeInner"));
} else {
innerProperties().validate();
}
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/TargetTypeProperties.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/TargetTypeProperties.java
index 9bc624dedb5c..56be5f6e6378 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/TargetTypeProperties.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/TargetTypeProperties.java
@@ -8,7 +8,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Model that represents the base Target Type properties model. */
+/**
+ * Model that represents the base Target Type properties model.
+ */
@Immutable
public final class TargetTypeProperties {
/*
@@ -35,13 +37,15 @@ public final class TargetTypeProperties {
@JsonProperty(value = "resourceTypes", access = JsonProperty.Access.WRITE_ONLY)
private List resourceTypes;
- /** Creates an instance of TargetTypeProperties class. */
+ /**
+ * Creates an instance of TargetTypeProperties class.
+ */
public TargetTypeProperties() {
}
/**
* Get the displayName property: Localized string of the display name.
- *
+ *
* @return the displayName value.
*/
public String displayName() {
@@ -50,7 +54,7 @@ public String displayName() {
/**
* Get the description property: Localized string of the description.
- *
+ *
* @return the description value.
*/
public String description() {
@@ -59,7 +63,7 @@ public String description() {
/**
* Get the propertiesSchema property: URL to retrieve JSON schema of the Target Type properties.
- *
+ *
* @return the propertiesSchema value.
*/
public String propertiesSchema() {
@@ -68,7 +72,7 @@ public String propertiesSchema() {
/**
* Get the resourceTypes property: List of resource types this Target Type can extend.
- *
+ *
* @return the resourceTypes value.
*/
public List resourceTypes() {
@@ -77,7 +81,7 @@ public List resourceTypes() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/package-info.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/package-info.java
index 528b3b0bc960..197d8d2de364 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/package-info.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/models/package-info.java
@@ -2,5 +2,8 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the inner data models for ChaosManagementClient. Chaos Management Client. */
+/**
+ * Package containing the inner data models for ChaosManagementClient.
+ * Chaos Management Client.
+ */
package com.azure.resourcemanager.chaos.fluent.models;
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/package-info.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/package-info.java
index 80b2eb1aca61..28b65cdb4482 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/package-info.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/fluent/package-info.java
@@ -2,5 +2,8 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the service clients for ChaosManagementClient. Chaos Management Client. */
+/**
+ * Package containing the service clients for ChaosManagementClient.
+ * Chaos Management Client.
+ */
package com.azure.resourcemanager.chaos.fluent;
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/implementation/CapabilitiesClientImpl.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/implementation/CapabilitiesClientImpl.java
index d9f1e9571315..0c362fb7a885 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/implementation/CapabilitiesClientImpl.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/implementation/CapabilitiesClientImpl.java
@@ -33,22 +33,28 @@
import com.azure.resourcemanager.chaos.models.CapabilityListResult;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in CapabilitiesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in CapabilitiesClient.
+ */
public final class CapabilitiesClientImpl implements CapabilitiesClient {
- /** The proxy service used to perform REST calls. */
+ /**
+ * The proxy service used to perform REST calls.
+ */
private final CapabilitiesService service;
- /** The service client containing this operation class. */
+ /**
+ * The service client containing this operation class.
+ */
private final ChaosManagementClientImpl client;
/**
* Initializes an instance of CapabilitiesClientImpl.
- *
+ *
* @param client the instance of the service client containing this operation class.
*/
CapabilitiesClientImpl(ChaosManagementClientImpl client) {
- this.service =
- RestProxy.create(CapabilitiesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.service
+ = RestProxy.create(CapabilitiesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
@@ -59,93 +65,68 @@ public final class CapabilitiesClientImpl implements CapabilitiesClient {
@Host("{$host}")
@ServiceInterface(name = "ChaosManagementClien")
public interface CapabilitiesService {
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("parentProviderNamespace") String parentProviderNamespace,
@PathParam("parentResourceType") String parentResourceType,
- @PathParam("parentResourceName") String parentResourceName,
- @PathParam("targetName") String targetName,
- @QueryParam("continuationToken") String continuationToken,
- @HeaderParam("Accept") String accept,
+ @PathParam("parentResourceName") String parentResourceName, @PathParam("targetName") String targetName,
+ @QueryParam("continuationToken") String continuationToken, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono> get(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("parentProviderNamespace") String parentProviderNamespace,
@PathParam("parentResourceType") String parentResourceType,
- @PathParam("parentResourceName") String parentResourceName,
- @PathParam("targetName") String targetName,
- @PathParam("capabilityName") String capabilityName,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("parentResourceName") String parentResourceName, @PathParam("targetName") String targetName,
+ @PathParam("capabilityName") String capabilityName, @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
- @Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}")
- @ExpectedResponses({200, 204})
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}")
+ @ExpectedResponses({ 200, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> delete(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
+ Mono> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("parentProviderNamespace") String parentProviderNamespace,
@PathParam("parentResourceType") String parentResourceType,
- @PathParam("parentResourceName") String parentResourceName,
- @PathParam("targetName") String targetName,
- @PathParam("capabilityName") String capabilityName,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("parentResourceName") String parentResourceName, @PathParam("targetName") String targetName,
+ @PathParam("capabilityName") String capabilityName, @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
- @Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> createOrUpdate(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
+ Mono> createOrUpdate(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("parentProviderNamespace") String parentProviderNamespace,
@PathParam("parentResourceType") String parentResourceType,
- @PathParam("parentResourceName") String parentResourceName,
- @PathParam("targetName") String targetName,
+ @PathParam("parentResourceName") String parentResourceName, @PathParam("targetName") String targetName,
@PathParam("capabilityName") String capabilityName,
- @BodyParam("application/json") CapabilityInner capability,
- @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") CapabilityInner capability, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
}
/**
* Get a list of Capability resources that extend a Target resource..
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -156,36 +137,27 @@ Mono> listNext(
* @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 list of Capability resources that extend a Target resource. along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
+ private Mono> listSinglePageAsync(String resourceGroupName,
+ String parentProviderNamespace, String parentResourceType, String parentResourceName, String targetName,
String continuationToken) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
if (parentProviderNamespace == null) {
- return Mono
- .error(
- new IllegalArgumentException("Parameter parentProviderNamespace is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter parentProviderNamespace is required and cannot be null."));
}
if (parentResourceType == null) {
return Mono
@@ -200,36 +172,17 @@ private Mono> listSinglePageAsync(
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .list(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- continuationToken,
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, parentProviderNamespace, parentResourceType,
+ parentResourceName, targetName, continuationToken, 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 a list of Capability resources that extend a Target resource..
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -241,37 +194,27 @@ private Mono> listSinglePageAsync(
* @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 list of Capability resources that extend a Target resource. along with {@link PagedResponse} on
- * successful completion of {@link Mono}.
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String continuationToken,
- Context context) {
+ private Mono> listSinglePageAsync(String resourceGroupName,
+ String parentProviderNamespace, String parentResourceType, String parentResourceName, String targetName,
+ String continuationToken, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
if (parentProviderNamespace == null) {
- return Mono
- .error(
- new IllegalArgumentException("Parameter parentProviderNamespace is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter parentProviderNamespace is required and cannot be null."));
}
if (parentResourceType == null) {
return Mono
@@ -287,32 +230,16 @@ private Mono> listSinglePageAsync(
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- continuationToken,
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, parentProviderNamespace, parentResourceType, parentResourceName, targetName,
+ continuationToken, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
* Get a list of Capability resources that extend a Target resource..
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -322,32 +249,19 @@ private Mono> listSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Capability resources that extend a Target resource. as paginated response with {@link
- * PagedFlux}.
+ * @return a list of Capability resources that extend a Target resource. as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String continuationToken) {
- return new PagedFlux<>(
- () ->
- listSinglePageAsync(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- continuationToken),
- nextLink -> listNextSinglePageAsync(nextLink));
+ private PagedFlux listAsync(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String continuationToken) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, parentProviderNamespace, parentResourceType,
+ parentResourceName, targetName, continuationToken), nextLink -> listNextSinglePageAsync(nextLink));
}
/**
* Get a list of Capability resources that extend a Target resource..
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -356,32 +270,20 @@ 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 a list of Capability resources that extend a Target resource. as paginated response with {@link
- * PagedFlux}.
+ * @return a list of Capability resources that extend a Target resource. as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName) {
+ private PagedFlux listAsync(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName) {
final String continuationToken = null;
- return new PagedFlux<>(
- () ->
- listSinglePageAsync(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- continuationToken),
- nextLink -> listNextSinglePageAsync(nextLink));
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, parentProviderNamespace, parentResourceType,
+ parentResourceName, targetName, continuationToken), nextLink -> listNextSinglePageAsync(nextLink));
}
/**
* Get a list of Capability resources that extend a Target resource..
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -392,34 +294,22 @@ 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 a list of Capability resources that extend a Target resource. as paginated response with {@link
- * PagedFlux}.
+ * @return a list of Capability resources that extend a Target resource. as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String continuationToken,
+ private PagedFlux listAsync(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String continuationToken,
Context context) {
return new PagedFlux<>(
- () ->
- listSinglePageAsync(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- continuationToken,
- context),
+ () -> listSinglePageAsync(resourceGroupName, parentProviderNamespace, parentResourceType,
+ parentResourceName, targetName, continuationToken, context),
nextLink -> listNextSinglePageAsync(nextLink, context));
}
/**
* Get a list of Capability resources that extend a Target resource..
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -428,30 +318,20 @@ 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 a list of Capability resources that extend a Target resource. as paginated response with {@link
- * PagedIterable}.
+ * @return a list of Capability resources that extend a Target resource. as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName) {
+ public PagedIterable list(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName) {
final String continuationToken = null;
- return new PagedIterable<>(
- listAsync(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- continuationToken));
+ return new PagedIterable<>(listAsync(resourceGroupName, parentProviderNamespace, parentResourceType,
+ parentResourceName, targetName, continuationToken));
}
/**
* Get a list of Capability resources that extend a Target resource..
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -462,32 +342,20 @@ public PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Capability resources that extend a Target resource. as paginated response with {@link
- * PagedIterable}.
+ * @return a list of Capability resources that extend a Target resource. as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String continuationToken,
+ public PagedIterable list(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String continuationToken,
Context context) {
- return new PagedIterable<>(
- listAsync(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- continuationToken,
- context));
+ return new PagedIterable<>(listAsync(resourceGroupName, parentProviderNamespace, parentResourceType,
+ parentResourceName, targetName, continuationToken, context));
}
/**
* Get a Capability resource that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -498,36 +366,27 @@ public PagedIterable list(
* @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 Capability resource that extends a Target resource along with {@link Response} on successful completion
- * of {@link Mono}.
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
+ private Mono> getWithResponseAsync(String resourceGroupName,
+ String parentProviderNamespace, String parentResourceType, String parentResourceName, String targetName,
String capabilityName) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
if (parentProviderNamespace == null) {
- return Mono
- .error(
- new IllegalArgumentException("Parameter parentProviderNamespace is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter parentProviderNamespace is required and cannot be null."));
}
if (parentResourceType == null) {
return Mono
@@ -545,27 +404,15 @@ private Mono> getWithResponseAsync(
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .get(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName,
- accept,
- context))
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, parentProviderNamespace, parentResourceType,
+ parentResourceName, targetName, capabilityName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Get a Capability resource that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -577,37 +424,27 @@ private Mono> getWithResponseAsync(
* @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 Capability resource that extends a Target resource along with {@link Response} on successful completion
- * of {@link Mono}.
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName,
- Context context) {
+ private Mono> getWithResponseAsync(String resourceGroupName,
+ String parentProviderNamespace, String parentResourceType, String parentResourceName, String targetName,
+ String capabilityName, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
if (parentProviderNamespace == null) {
- return Mono
- .error(
- new IllegalArgumentException("Parameter parentProviderNamespace is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter parentProviderNamespace is required and cannot be null."));
}
if (parentResourceType == null) {
return Mono
@@ -625,24 +462,14 @@ private Mono> getWithResponseAsync(
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .get(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName,
- accept,
- context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, parentProviderNamespace, parentResourceType, parentResourceName, targetName,
+ capabilityName, accept, context);
}
/**
* Get a Capability resource that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -655,26 +482,15 @@ private Mono> getWithResponseAsync(
* @return a Capability resource that extends a Target resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName) {
- return getWithResponseAsync(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ private Mono getAsync(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String capabilityName) {
+ return getWithResponseAsync(resourceGroupName, parentProviderNamespace, parentResourceType, parentResourceName,
+ targetName, capabilityName).flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Get a Capability resource that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -688,28 +504,16 @@ private Mono getAsync(
* @return a Capability resource that extends a Target resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName,
+ public Response getWithResponse(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String capabilityName,
Context context) {
- return getWithResponseAsync(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName,
- context)
- .block();
+ return getWithResponseAsync(resourceGroupName, parentProviderNamespace, parentResourceType, parentResourceName,
+ targetName, capabilityName, context).block();
}
/**
* Get a Capability resource that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -722,27 +526,15 @@ public Response getWithResponse(
* @return a Capability resource that extends a Target resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public CapabilityInner get(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName) {
- return getWithResponse(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName,
- Context.NONE)
- .getValue();
+ public CapabilityInner get(String resourceGroupName, String parentProviderNamespace, String parentResourceType,
+ String parentResourceName, String targetName, String capabilityName) {
+ return getWithResponse(resourceGroupName, parentProviderNamespace, parentResourceType, parentResourceName,
+ targetName, capabilityName, Context.NONE).getValue();
}
/**
* Delete a Capability that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -755,33 +547,23 @@ public CapabilityInner get(
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName) {
+ private Mono> deleteWithResponseAsync(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String capabilityName) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
if (parentProviderNamespace == null) {
- return Mono
- .error(
- new IllegalArgumentException("Parameter parentProviderNamespace is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter parentProviderNamespace is required and cannot be null."));
}
if (parentResourceType == null) {
return Mono
@@ -799,27 +581,15 @@ private Mono> deleteWithResponseAsync(
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .delete(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName,
- accept,
- context))
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, parentProviderNamespace, parentResourceType,
+ parentResourceName, targetName, capabilityName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Delete a Capability that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -833,34 +603,24 @@ private Mono> deleteWithResponseAsync(
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName,
+ private Mono> deleteWithResponseAsync(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String capabilityName,
Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
if (parentProviderNamespace == null) {
- return Mono
- .error(
- new IllegalArgumentException("Parameter parentProviderNamespace is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter parentProviderNamespace is required and cannot be null."));
}
if (parentResourceType == null) {
return Mono
@@ -878,24 +638,14 @@ private Mono> deleteWithResponseAsync(
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .delete(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName,
- accept,
- context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, parentProviderNamespace, parentResourceType, parentResourceName, targetName,
+ capabilityName, accept, context);
}
/**
* Delete a Capability that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -908,26 +658,15 @@ private Mono> deleteWithResponseAsync(
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName) {
- return deleteWithResponseAsync(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName)
- .flatMap(ignored -> Mono.empty());
+ private Mono deleteAsync(String resourceGroupName, String parentProviderNamespace, String parentResourceType,
+ String parentResourceName, String targetName, String capabilityName) {
+ return deleteWithResponseAsync(resourceGroupName, parentProviderNamespace, parentResourceType,
+ parentResourceName, targetName, capabilityName).flatMap(ignored -> Mono.empty());
}
/**
* Delete a Capability that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -941,28 +680,16 @@ private Mono deleteAsync(
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteWithResponse(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName,
+ public Response deleteWithResponse(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String capabilityName,
Context context) {
- return deleteWithResponseAsync(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName,
- context)
- .block();
+ return deleteWithResponseAsync(resourceGroupName, parentProviderNamespace, parentResourceType,
+ parentResourceName, targetName, capabilityName, context).block();
}
/**
* Delete a Capability that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -974,26 +701,15 @@ public Response deleteWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName) {
- deleteWithResponse(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName,
- Context.NONE);
+ public void delete(String resourceGroupName, String parentProviderNamespace, String parentResourceType,
+ String parentResourceName, String targetName, String capabilityName) {
+ deleteWithResponse(resourceGroupName, parentProviderNamespace, parentResourceType, parentResourceName,
+ targetName, capabilityName, Context.NONE);
}
/**
* Create or update a Capability resource that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -1005,37 +721,27 @@ public void delete(
* @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 model that represents a Capability resource along with {@link Response} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createOrUpdateWithResponseAsync(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName,
- CapabilityInner capability) {
+ private Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String parentProviderNamespace, String parentResourceType, String parentResourceName, String targetName,
+ String capabilityName, CapabilityInner capability) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
if (parentProviderNamespace == null) {
- return Mono
- .error(
- new IllegalArgumentException("Parameter parentProviderNamespace is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter parentProviderNamespace is required and cannot be null."));
}
if (parentResourceType == null) {
return Mono
@@ -1058,28 +764,15 @@ private Mono> createOrUpdateWithResponseAsync(
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .createOrUpdate(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName,
- capability,
- accept,
- context))
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, parentProviderNamespace, parentResourceType,
+ parentResourceName, targetName, capabilityName, capability, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Create or update a Capability resource that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -1092,38 +785,27 @@ private Mono> createOrUpdateWithResponseAsync(
* @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 model that represents a Capability resource along with {@link Response} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createOrUpdateWithResponseAsync(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName,
- CapabilityInner capability,
- Context context) {
+ private Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String parentProviderNamespace, String parentResourceType, String parentResourceName, String targetName,
+ String capabilityName, CapabilityInner capability, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
if (parentProviderNamespace == null) {
- return Mono
- .error(
- new IllegalArgumentException("Parameter parentProviderNamespace is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter parentProviderNamespace is required and cannot be null."));
}
if (parentResourceType == null) {
return Mono
@@ -1146,25 +828,14 @@ private Mono> createOrUpdateWithResponseAsync(
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .createOrUpdate(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName,
- capability,
- accept,
- context);
+ return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, parentProviderNamespace, parentResourceType,
+ parentResourceName, targetName, capabilityName, capability, accept, context);
}
/**
* Create or update a Capability resource that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -1178,28 +849,17 @@ private Mono> createOrUpdateWithResponseAsync(
* @return model that represents a Capability resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName,
+ private Mono createOrUpdateAsync(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String capabilityName,
CapabilityInner capability) {
- return createOrUpdateWithResponseAsync(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName,
- capability)
+ return createOrUpdateWithResponseAsync(resourceGroupName, parentProviderNamespace, parentResourceType,
+ parentResourceName, targetName, capabilityName, capability)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Create or update a Capability resource that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -1214,30 +874,16 @@ private Mono createOrUpdateAsync(
* @return model that represents a Capability resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateWithResponse(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName,
- CapabilityInner capability,
- Context context) {
- return createOrUpdateWithResponseAsync(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName,
- capability,
- context)
- .block();
+ public Response createOrUpdateWithResponse(String resourceGroupName,
+ String parentProviderNamespace, String parentResourceType, String parentResourceName, String targetName,
+ String capabilityName, CapabilityInner capability, Context context) {
+ return createOrUpdateWithResponseAsync(resourceGroupName, parentProviderNamespace, parentResourceType,
+ parentResourceName, targetName, capabilityName, capability, context).block();
}
/**
* Create or update a Capability resource that extends a Target resource.
- *
+ *
* @param resourceGroupName String that represents an Azure resource group.
* @param parentProviderNamespace String that represents a resource provider namespace.
* @param parentResourceType String that represents a resource type.
@@ -1251,36 +897,24 @@ public Response createOrUpdateWithResponse(
* @return model that represents a Capability resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public CapabilityInner createOrUpdate(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName,
+ public CapabilityInner createOrUpdate(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String capabilityName,
CapabilityInner capability) {
- return createOrUpdateWithResponse(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName,
- capability,
- Context.NONE)
- .getValue();
+ return createOrUpdateWithResponse(resourceGroupName, parentProviderNamespace, parentResourceType,
+ parentResourceName, targetName, capabilityName, capability, Context.NONE).getValue();
}
/**
* Get the next page of items.
- *
+ *
* @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return model that represents a list of Capability resources and a link for pagination along with {@link
- * PagedResponse} on successful completion of {@link Mono}.
+ * @return model that represents a list of Capability resources and a link for pagination along with
+ * {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -1288,37 +922,28 @@ private Mono> listNextSinglePageAsync(String next
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ return FluxUtil.withContext(context -> service.listNext(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
- * The nextLink parameter.
+ *
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return model that represents a list of Capability resources and a link for pagination along with {@link
- * PagedResponse} on successful completion of {@link Mono}.
+ * @return model that represents a list of Capability resources and a link for pagination along with
+ * {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink, Context context) {
@@ -1326,23 +951,13 @@ private Mono> listNextSinglePageAsync(String next
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .listNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ return service.listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
}
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/implementation/CapabilitiesImpl.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/implementation/CapabilitiesImpl.java
index 524e853d9a4c..c21aa6590ca6 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/implementation/CapabilitiesImpl.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/implementation/CapabilitiesImpl.java
@@ -21,94 +21,44 @@ public final class CapabilitiesImpl implements Capabilities {
private final com.azure.resourcemanager.chaos.ChaosManager serviceManager;
- public CapabilitiesImpl(
- CapabilitiesClient innerClient, com.azure.resourcemanager.chaos.ChaosManager serviceManager) {
+ public CapabilitiesImpl(CapabilitiesClient innerClient,
+ com.azure.resourcemanager.chaos.ChaosManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
- public PagedIterable list(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName) {
- PagedIterable inner =
- this
- .serviceClient()
- .list(resourceGroupName, parentProviderNamespace, parentResourceType, parentResourceName, targetName);
- return Utils.mapPage(inner, inner1 -> new CapabilityImpl(inner1, this.manager()));
+ public PagedIterable list(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName) {
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, parentProviderNamespace,
+ parentResourceType, parentResourceName, targetName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new CapabilityImpl(inner1, this.manager()));
}
- public PagedIterable list(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String continuationToken,
+ public PagedIterable list(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String continuationToken,
Context context) {
- PagedIterable inner =
- this
- .serviceClient()
- .list(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- continuationToken,
- context);
- return Utils.mapPage(inner, inner1 -> new CapabilityImpl(inner1, this.manager()));
+ PagedIterable inner = this.serviceClient().list(resourceGroupName, parentProviderNamespace,
+ parentResourceType, parentResourceName, targetName, continuationToken, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new CapabilityImpl(inner1, this.manager()));
}
- public Response getWithResponse(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName,
+ public Response getWithResponse(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String capabilityName,
Context context) {
- Response inner =
- this
- .serviceClient()
- .getWithResponse(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName,
- context);
+ Response inner = this.serviceClient().getWithResponse(resourceGroupName,
+ parentProviderNamespace, parentResourceType, parentResourceName, targetName, capabilityName, context);
if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
new CapabilityImpl(inner.getValue(), this.manager()));
} else {
return null;
}
}
- public Capability get(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName) {
- CapabilityInner inner =
- this
- .serviceClient()
- .get(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName);
+ public Capability get(String resourceGroupName, String parentProviderNamespace, String parentResourceType,
+ String parentResourceName, String targetName, String capabilityName) {
+ CapabilityInner inner = this.serviceClient().get(resourceGroupName, parentProviderNamespace, parentResourceType,
+ parentResourceName, targetName, capabilityName);
if (inner != null) {
return new CapabilityImpl(inner, this.manager());
} else {
@@ -116,95 +66,38 @@ public Capability get(
}
}
- public Response deleteWithResponse(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName,
+ public Response deleteWithResponse(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String capabilityName,
Context context) {
- return this
- .serviceClient()
- .deleteWithResponse(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName,
- context);
+ return this.serviceClient().deleteWithResponse(resourceGroupName, parentProviderNamespace, parentResourceType,
+ parentResourceName, targetName, capabilityName, context);
}
- public void delete(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName) {
- this
- .serviceClient()
- .delete(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName);
+ public void delete(String resourceGroupName, String parentProviderNamespace, String parentResourceType,
+ String parentResourceName, String targetName, String capabilityName) {
+ this.serviceClient().delete(resourceGroupName, parentProviderNamespace, parentResourceType, parentResourceName,
+ targetName, capabilityName);
}
- public Response createOrUpdateWithResponse(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName,
- CapabilityInner capability,
- Context context) {
- Response inner =
- this
- .serviceClient()
- .createOrUpdateWithResponse(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName,
- capability,
- context);
+ public Response createOrUpdateWithResponse(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String capabilityName,
+ CapabilityInner capability, Context context) {
+ Response inner
+ = this.serviceClient().createOrUpdateWithResponse(resourceGroupName, parentProviderNamespace,
+ parentResourceType, parentResourceName, targetName, capabilityName, capability, context);
if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
new CapabilityImpl(inner.getValue(), this.manager()));
} else {
return null;
}
}
- public Capability createOrUpdate(
- String resourceGroupName,
- String parentProviderNamespace,
- String parentResourceType,
- String parentResourceName,
- String targetName,
- String capabilityName,
+ public Capability createOrUpdate(String resourceGroupName, String parentProviderNamespace,
+ String parentResourceType, String parentResourceName, String targetName, String capabilityName,
CapabilityInner capability) {
- CapabilityInner inner =
- this
- .serviceClient()
- .createOrUpdate(
- resourceGroupName,
- parentProviderNamespace,
- parentResourceType,
- parentResourceName,
- targetName,
- capabilityName,
- capability);
+ CapabilityInner inner = this.serviceClient().createOrUpdate(resourceGroupName, parentProviderNamespace,
+ parentResourceType, parentResourceName, targetName, capabilityName, capability);
if (inner != null) {
return new CapabilityImpl(inner, this.manager());
} else {
diff --git a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/implementation/CapabilityTypesClientImpl.java b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/implementation/CapabilityTypesClientImpl.java
index fb5359984b2c..b49dfa127deb 100644
--- a/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/implementation/CapabilityTypesClientImpl.java
+++ b/sdk/chaos/azure-resourcemanager-chaos/src/main/java/com/azure/resourcemanager/chaos/implementation/CapabilityTypesClientImpl.java
@@ -30,22 +30,28 @@
import com.azure.resourcemanager.chaos.models.CapabilityTypeListResult;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in CapabilityTypesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in CapabilityTypesClient.
+ */
public final class CapabilityTypesClientImpl implements CapabilityTypesClient {
- /** The proxy service used to perform REST calls. */
+ /**
+ * The proxy service used to perform REST calls.
+ */
private final CapabilityTypesService service;
- /** The service client containing this operation class. */
+ /**
+ * The service client containing this operation class.
+ */
private final ChaosManagementClientImpl client;
/**
* Initializes an instance of CapabilityTypesClientImpl.
- *
+ *
* @param client the instance of the service client containing this operation class.
*/
CapabilityTypesClientImpl(ChaosManagementClientImpl client) {
- this.service =
- RestProxy.create(CapabilityTypesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.service
+ = RestProxy.create(CapabilityTypesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
@@ -56,50 +62,38 @@ public final class CapabilityTypesClientImpl implements CapabilityTypesClient {
@Host("{$host}")
@ServiceInterface(name = "ChaosManagementClien")
public interface CapabilityTypesService {
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{locationName}/targetTypes/{targetTypeName}/capabilityTypes")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{locationName}/targetTypes/{targetTypeName}/capabilityTypes")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("locationName") String locationName,
- @PathParam("targetTypeName") String targetTypeName,
- @QueryParam("continuationToken") String continuationToken,
- @HeaderParam("Accept") String accept,
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("locationName") String locationName, @PathParam("targetTypeName") String targetTypeName,
+ @QueryParam("continuationToken") String continuationToken, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{locationName}/targetTypes/{targetTypeName}/capabilityTypes/{capabilityTypeName}")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{locationName}/targetTypes/{targetTypeName}/capabilityTypes/{capabilityTypeName}")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("locationName") String locationName,
- @PathParam("targetTypeName") String targetTypeName,
- @PathParam("capabilityTypeName") String capabilityTypeName,
- @HeaderParam("Accept") String accept,
+ Mono> get(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("locationName") String locationName, @PathParam("targetTypeName") String targetTypeName,
+ @PathParam("capabilityTypeName") String capabilityTypeName, @HeaderParam("Accept") String accept,
Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
}
/**
* Get a list of Capability Type resources for given Target Type and location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @param continuationToken String that sets the continuation token.
@@ -107,22 +101,18 @@ Mono> listNext(
* @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 list of Capability Type resources for given Target Type and location along with {@link PagedResponse}
- * on successful completion of {@link Mono}.
+ * on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(
- String locationName, String targetTypeName, String continuationToken) {
+ private Mono> listSinglePageAsync(String locationName, String targetTypeName,
+ String continuationToken) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (locationName == null) {
return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null."));
@@ -132,33 +122,16 @@ private Mono> listSinglePageAsync(
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .list(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- locationName,
- targetTypeName,
- continuationToken,
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), locationName, targetTypeName, continuationToken, 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 a list of Capability Type resources for given Target Type and location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @param continuationToken String that sets the continuation token.
@@ -167,22 +140,18 @@ private Mono> listSinglePageAsync(
* @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 list of Capability Type resources for given Target Type and location along with {@link PagedResponse}
- * on successful completion of {@link Mono}.
+ * on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(
- String locationName, String targetTypeName, String continuationToken, Context context) {
+ private Mono> listSinglePageAsync(String locationName, String targetTypeName,
+ String continuationToken, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (locationName == null) {
return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null."));
@@ -193,68 +162,52 @@ private Mono> listSinglePageAsync(
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- locationName,
- targetTypeName,
- continuationToken,
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), locationName,
+ targetTypeName, continuationToken, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
* Get a list of Capability Type resources for given Target Type and location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @param continuationToken String that sets the continuation token.
* @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 list of Capability Type resources for given Target Type and location as paginated response with {@link
- * PagedFlux}.
+ * @return a list of Capability Type resources for given Target Type and location as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(
- String locationName, String targetTypeName, String continuationToken) {
- return new PagedFlux<>(
- () -> listSinglePageAsync(locationName, targetTypeName, continuationToken),
+ private PagedFlux listAsync(String locationName, String targetTypeName,
+ String continuationToken) {
+ return new PagedFlux<>(() -> listSinglePageAsync(locationName, targetTypeName, continuationToken),
nextLink -> listNextSinglePageAsync(nextLink));
}
/**
* Get a list of Capability Type resources for given Target Type and location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @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 list of Capability Type resources for given Target Type and location as paginated response with {@link
- * PagedFlux}.
+ * @return a list of Capability Type resources for given Target Type and location as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String locationName, String targetTypeName) {
final String continuationToken = null;
- return new PagedFlux<>(
- () -> listSinglePageAsync(locationName, targetTypeName, continuationToken),
+ return new PagedFlux<>(() -> listSinglePageAsync(locationName, targetTypeName, continuationToken),
nextLink -> listNextSinglePageAsync(nextLink));
}
/**
* Get a list of Capability Type resources for given Target Type and location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @param continuationToken String that sets the continuation token.
@@ -262,27 +215,26 @@ private PagedFlux listAsync(String locationName, String tar
* @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 list of Capability Type resources for given Target Type and location as paginated response with {@link
- * PagedFlux}.
+ * @return a list of Capability Type resources for given Target Type and location as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(
- String locationName, String targetTypeName, String continuationToken, Context context) {
- return new PagedFlux<>(
- () -> listSinglePageAsync(locationName, targetTypeName, continuationToken, context),
+ private PagedFlux listAsync(String locationName, String targetTypeName,
+ String continuationToken, Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(locationName, targetTypeName, continuationToken, context),
nextLink -> listNextSinglePageAsync(nextLink, context));
}
/**
* Get a list of Capability Type resources for given Target Type and location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @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 list of Capability Type resources for given Target Type and location as paginated response with {@link
- * PagedIterable}.
+ * @return a list of Capability Type resources for given Target Type and location as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String locationName, String targetTypeName) {
@@ -292,7 +244,7 @@ public PagedIterable list(String locationName, String targe
/**
* Get a list of Capability Type resources for given Target Type and location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @param continuationToken String that sets the continuation token.
@@ -300,18 +252,18 @@ public PagedIterable list(String locationName, String targe
* @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 list of Capability Type resources for given Target Type and location as paginated response with {@link
- * PagedIterable}.
+ * @return a list of Capability Type resources for given Target Type and location as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(
- String locationName, String targetTypeName, String continuationToken, Context context) {
+ public PagedIterable list(String locationName, String targetTypeName, String continuationToken,
+ Context context) {
return new PagedIterable<>(listAsync(locationName, targetTypeName, continuationToken, context));
}
/**
* Get a Capability Type resource for given Target Type and location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @param capabilityTypeName String that represents a Capability Type resource name.
@@ -319,22 +271,18 @@ public PagedIterable list(
* @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 Capability Type resource for given Target Type and location along with {@link Response} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(
- String locationName, String targetTypeName, String capabilityTypeName) {
+ private Mono> getWithResponseAsync(String locationName, String targetTypeName,
+ String capabilityTypeName) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (locationName == null) {
return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null."));
@@ -348,24 +296,14 @@ private Mono> getWithResponseAsync(
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .get(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- locationName,
- targetTypeName,
- capabilityTypeName,
- accept,
- context))
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), locationName, targetTypeName, capabilityTypeName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Get a Capability Type resource for given Target Type and location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @param capabilityTypeName String that represents a Capability Type resource name.
@@ -374,22 +312,18 @@ private Mono> getWithResponseAsync(
* @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 Capability Type resource for given Target Type and location along with {@link Response} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(
- String locationName, String targetTypeName, String capabilityTypeName, Context context) {
+ private Mono> getWithResponseAsync(String locationName, String targetTypeName,
+ String capabilityTypeName, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (locationName == null) {
return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null."));
@@ -403,21 +337,13 @@ private Mono> getWithResponseAsync(
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .get(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- locationName,
- targetTypeName,
- capabilityTypeName,
- accept,
- context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ locationName, targetTypeName, capabilityTypeName, accept, context);
}
/**
* Get a Capability Type resource for given Target Type and location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @param capabilityTypeName String that represents a Capability Type resource name.
@@ -434,7 +360,7 @@ private Mono getAsync(String locationName, String targetTyp
/**
* Get a Capability Type resource for given Target Type and location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @param capabilityTypeName String that represents a Capability Type resource name.
@@ -445,14 +371,14 @@ private Mono getAsync(String locationName, String targetTyp
* @return a Capability Type resource for given Target Type and location along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String locationName, String targetTypeName, String capabilityTypeName, Context context) {
+ public Response getWithResponse(String locationName, String targetTypeName,
+ String capabilityTypeName, Context context) {
return getWithResponseAsync(locationName, targetTypeName, capabilityTypeName, context).block();
}
/**
* Get a Capability Type resource for given Target Type and location.
- *
+ *
* @param locationName String that represents a Location resource name.
* @param targetTypeName String that represents a Target Type resource name.
* @param capabilityTypeName String that represents a Capability Type resource name.
@@ -468,14 +394,15 @@ public CapabilityTypeInner get(String locationName, String targetTypeName, Strin
/**
* Get the next page of items.
- *
+ *
* @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return model that represents a list of Capability Type resources and a link for pagination along with {@link
- * PagedResponse} on successful completion of {@link Mono}.
+ * @return model that represents a list of Capability Type resources and a link for pagination along with
+ * {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -483,37 +410,28 @@ private Mono