diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/pom.xml b/sdk/resourcemanager/azure-resourcemanager-appplatform/pom.xml
index aacfe53a1be1f..9bb88da3ae438 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/pom.xml
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/pom.xml
@@ -50,6 +50,7 @@
--add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
-
+ false
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManager.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManager.java
index 5ab8910cf5541..d489bcf74ce8e 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManager.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/AppPlatformManager.java
@@ -21,6 +21,7 @@
public final class AppPlatformManager extends Manager {
// Collections
private SpringServices springServices;
+
/**
* Get a Configurable instance that can be used to create AppPlatformManager with optional configuration.
*
@@ -76,11 +77,8 @@ public AppPlatformManager authenticate(TokenCredential credential, AzureProfile
}
private AppPlatformManager(HttpPipeline httpPipeline, AzureProfile profile) {
- super(
- httpPipeline,
- profile,
- new AppPlatformManagementClientBuilder()
- .pipeline(httpPipeline)
+ super(httpPipeline, profile,
+ new AppPlatformManagementClientBuilder().pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
.buildClient());
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/CustomizedAcceleratorsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/CustomizedAcceleratorsClientImpl.java
index 1f4e6dc6744ea..7635ef51cdb99 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/CustomizedAcceleratorsClientImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/CustomizedAcceleratorsClientImpl.java
@@ -690,7 +690,7 @@ public Mono createOrUpdateAsync(String resou
CustomizedAcceleratorResourceInner customizedAcceleratorResource) {
return beginCreateOrUpdateAsync(resourceGroupName, serviceName, applicationAcceleratorName,
customizedAcceleratorName, customizedAcceleratorResource).last()
- .flatMap(this.client::getLroFinalResultOrError);
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
@@ -714,7 +714,7 @@ private Mono createOrUpdateAsync(String reso
CustomizedAcceleratorResourceInner customizedAcceleratorResource, Context context) {
return beginCreateOrUpdateAsync(resourceGroupName, serviceName, applicationAcceleratorName,
customizedAcceleratorName, customizedAcceleratorResource, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppDeploymentImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppDeploymentImpl.java
index 298a07e454a28..e9cae49e60216 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppDeploymentImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppDeploymentImpl.java
@@ -59,9 +59,8 @@
public class SpringAppDeploymentImpl
extends ExternalChildResourceImpl
- implements SpringAppDeployment,
- SpringAppDeployment.Definition,
- SpringAppDeployment.Update {
+ implements SpringAppDeployment, SpringAppDeployment.Definition,
+ SpringAppDeployment.Update {
private static final Duration MAX_BUILD_TIMEOUT = Duration.ofHours(1);
private BuildServiceTask buildServiceTask;
private FunctionalTaskItem setActiveTask = null;
@@ -117,9 +116,9 @@ public void start() {
@Override
public Mono startAsync() {
- return manager().serviceClient().getDeployments().startAsync(
- parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name()
- );
+ return manager().serviceClient()
+ .getDeployments()
+ .startAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name());
}
@Override
@@ -129,9 +128,9 @@ public void stop() {
@Override
public Mono stopAsync() {
- return manager().serviceClient().getDeployments().stopAsync(
- parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name()
- );
+ return manager().serviceClient()
+ .getDeployments()
+ .stopAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name());
}
@Override
@@ -141,9 +140,9 @@ public void restart() {
@Override
public Mono restartAsync() {
- return manager().serviceClient().getDeployments().restartAsync(
- parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name()
- );
+ return manager().serviceClient()
+ .getDeployments()
+ .restartAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name());
}
@Override
@@ -153,15 +152,17 @@ public String getLogFileUrl() {
@Override
public Mono getLogFileUrlAsync() {
- return manager().serviceClient().getDeployments().getLogFileUrlAsync(
- parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name()
- )
+ return manager().serviceClient()
+ .getDeployments()
+ .getLogFileUrlAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(),
+ name())
.map(LogFileUrlResponseInner::url);
}
@Override
public List configFilePatterns() {
- Map> addonConfigs = this.innerModel().properties().deploymentSettings().addonConfigs();
+ Map> addonConfigs
+ = this.innerModel().properties().deploymentSettings().addonConfigs();
if (addonConfigs == null) {
return Collections.emptyList();
}
@@ -293,22 +294,18 @@ public SpringAppDeploymentImpl withJarFile(File jar) {
return withJarFile(jar, null);
} else {
ensureSource(UserSourceType.JAR);
- this.addDependency(
- context -> parent().getResourceUploadUrlAsync()
- .flatMap(option -> {
- UploadedUserSourceInfo uploadedUserSourceInfo = (UploadedUserSourceInfo) innerModel().properties().source();
- uploadedUserSourceInfo.withRelativePath(option.relativePath());
- return uploadToStorageAsync(jar, option)
- .then(context.voidMono());
- })
- );
+ this.addDependency(context -> parent().getResourceUploadUrlAsync().flatMap(option -> {
+ UploadedUserSourceInfo uploadedUserSourceInfo
+ = (UploadedUserSourceInfo) innerModel().properties().source();
+ uploadedUserSourceInfo.withRelativePath(option.relativePath());
+ return uploadToStorageAsync(jar, option).then(context.voidMono());
+ }));
return this;
}
}
private ShareFileAsyncClient createShareFileAsyncClient(ResourceUploadDefinition option) {
- return new ShareFileClientBuilder()
- .endpoint(option.uploadUrl())
+ return new ShareFileClientBuilder().endpoint(option.uploadUrl())
.httpClient(manager().httpPipeline().getHttpClient())
.buildFileAsyncClient();
}
@@ -385,15 +382,12 @@ public SpringAppDeploymentImpl withSourceCodeTarGzFile(File sourceCodeTarGz, Lis
this.buildServiceTask = new BuildServiceTask(sourceCodeTarGz, configFilePatterns, true);
} else {
ensureSource(UserSourceType.SOURCE);
- this.addDependency(
- context -> parent().getResourceUploadUrlAsync()
- .flatMap(option -> {
- UploadedUserSourceInfo uploadedUserSourceInfo = (UploadedUserSourceInfo) innerModel().properties().source();
- uploadedUserSourceInfo.withRelativePath(option.relativePath());
- return uploadToStorageAsync(sourceCodeTarGz, option)
- .then(context.voidMono());
- })
- );
+ this.addDependency(context -> parent().getResourceUploadUrlAsync().flatMap(option -> {
+ UploadedUserSourceInfo uploadedUserSourceInfo
+ = (UploadedUserSourceInfo) innerModel().properties().source();
+ uploadedUserSourceInfo.withRelativePath(option.relativePath());
+ return uploadToStorageAsync(sourceCodeTarGz, option).then(context.voidMono());
+ }));
}
return this;
}
@@ -407,7 +401,8 @@ public SpringAppDeploymentImpl withTargetModule(String moduleName) {
ensureSource(UserSourceType.SOURCE);
UserSourceInfo userSourceInfo = innerModel().properties().source();
if (userSourceInfo instanceof SourceUploadedUserSourceInfo) {
- SourceUploadedUserSourceInfo sourceUploadedUserSourceInfo = (SourceUploadedUserSourceInfo) userSourceInfo;
+ SourceUploadedUserSourceInfo sourceUploadedUserSourceInfo
+ = (SourceUploadedUserSourceInfo) userSourceInfo;
sourceUploadedUserSourceInfo.withArtifactSelector(moduleName);
}
}
@@ -523,14 +518,12 @@ public SpringAppDeploymentImpl withVersionName(String versionName) {
@Override
public SpringAppDeploymentImpl withActivation() {
- this.setActiveTask = context ->
- manager().serviceClient().getApps()
- .setActiveDeploymentsAsync(
- parent().parent().resourceGroupName(),
- parent().parent().name(), // service name
- parent().name(), // app name
- new ActiveDeploymentCollection().withActiveDeploymentNames(Collections.singletonList(name())))
- .then(context.voidMono());
+ this.setActiveTask = context -> manager().serviceClient()
+ .getApps()
+ .setActiveDeploymentsAsync(parent().parent().resourceGroupName(), parent().parent().name(), // service name
+ parent().name(), // app name
+ new ActiveDeploymentCollection().withActiveDeploymentNames(Collections.singletonList(name())))
+ .then(context.voidMono());
return this;
}
@@ -540,8 +533,7 @@ public SpringAppDeploymentImpl withConfigFilePatterns(List configFilePat
Map> addonConfigs = innerModel().properties().deploymentSettings().addonConfigs();
addonConfigs.computeIfAbsent(Constants.APPLICATION_CONFIGURATION_SERVICE_KEY, s -> {
Map config = new HashMap<>();
- config.put(
- Constants.CONFIG_FILE_PATTERNS_KEY,
+ config.put(Constants.CONFIG_FILE_PATTERNS_KEY,
CoreUtils.isNullOrEmpty(configFilePatterns) ? "" : String.join(",", configFilePatterns));
return config;
});
@@ -563,10 +555,10 @@ public void beforeGroupCreateOrUpdate() {
@Override
public Mono createResourceAsync() {
- return manager().serviceClient().getDeployments().createOrUpdateAsync(
- parent().parent().resourceGroupName(), parent().parent().name(),
- parent().name(), name(), innerModel()
- )
+ return manager().serviceClient()
+ .getDeployments()
+ .createOrUpdateAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(),
+ name(), innerModel())
.map(inner -> {
setInner(inner);
return this;
@@ -575,10 +567,10 @@ public Mono createResourceAsync() {
@Override
public Mono updateResourceAsync() {
- return manager().serviceClient().getDeployments().updateAsync(
- parent().parent().resourceGroupName(), parent().parent().name(),
- parent().name(), name(), innerModel()
- )
+ return manager().serviceClient()
+ .getDeployments()
+ .updateAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name(),
+ innerModel())
.map(inner -> {
setInner(inner);
return this;
@@ -587,16 +579,16 @@ public Mono updateResourceAsync() {
@Override
public Mono deleteResourceAsync() {
- return manager().serviceClient().getDeployments().deleteAsync(
- parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name()
- );
+ return manager().serviceClient()
+ .getDeployments()
+ .deleteAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name());
}
@Override
protected Mono getInnerAsync() {
- return manager().serviceClient().getDeployments().getAsync(
- parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name()
- );
+ return manager().serviceClient()
+ .getDeployments()
+ .getAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name());
}
@Override
@@ -646,26 +638,25 @@ private class BuildServiceTask implements FunctionalTaskItem {
@Override
public Mono apply(Context context) {
return app().getResourceUploadUrlAsync()
- .flatMap(option ->
- uploadAndBuildAsync(file, option)
- .flatMap(buildId -> {
- BuildResultUserSourceInfo userSourceInfo = (BuildResultUserSourceInfo) innerModel().properties().source();
- userSourceInfo.withBuildResultId(buildId);
- withConfigFilePatterns(this.configFilePatterns);
- return Mono.empty();
- }).then(context.voidMono()));
+ .flatMap(option -> uploadAndBuildAsync(file, option).flatMap(buildId -> {
+ BuildResultUserSourceInfo userSourceInfo
+ = (BuildResultUserSourceInfo) innerModel().properties().source();
+ userSourceInfo.withBuildResultId(buildId);
+ withConfigFilePatterns(this.configFilePatterns);
+ return Mono.empty();
+ }).then(context.voidMono()));
}
private Mono uploadAndBuildAsync(File source, ResourceUploadDefinition option) {
- return uploadToStorageAsync(source, option)
- .then(enqueueBuildAsync(option))
- .flatMap(waitForBuildAsync());
+ return uploadToStorageAsync(source, option).then(enqueueBuildAsync(option)).flatMap(waitForBuildAsync());
}
private Mono enqueueBuildAsync(ResourceUploadDefinition option) {
BuildProperties buildProperties = new BuildProperties()
- .withBuilder(String.format("%s/buildservices/%s/builders/%s", service().id(), Constants.DEFAULT_TANZU_COMPONENT_NAME, Constants.DEFAULT_TANZU_COMPONENT_NAME))
- .withAgentPool(String.format("%s/buildservices/%s/agentPools/%s", service().id(), Constants.DEFAULT_TANZU_COMPONENT_NAME, Constants.DEFAULT_TANZU_COMPONENT_NAME))
+ .withBuilder(String.format("%s/buildservices/%s/builders/%s", service().id(),
+ Constants.DEFAULT_TANZU_COMPONENT_NAME, Constants.DEFAULT_TANZU_COMPONENT_NAME))
+ .withAgentPool(String.format("%s/buildservices/%s/agentPools/%s", service().id(),
+ Constants.DEFAULT_TANZU_COMPONENT_NAME, Constants.DEFAULT_TANZU_COMPONENT_NAME))
.withRelativePath(option.relativePath());
// source code
if (this.sourceCodeTarGz) {
@@ -676,14 +667,12 @@ private Mono enqueueBuildAsync(ResourceUploadDefinition option) {
buildEnv.put("BP_MAVEN_BUILT_MODULE", module);
}
}
- return manager().serviceClient().getBuildServices()
+ return manager().serviceClient()
+ .getBuildServices()
// This method enqueues the build request, response with provision state "Succeeded" only means the build is enqueued.
// Attempting to continue deploying without waiting for the build to complete will result in failure.
- .createOrUpdateBuildAsync(
- service().resourceGroupName(),
- service().name(),
- Constants.DEFAULT_TANZU_COMPONENT_NAME,
- app().name(),
+ .createOrUpdateBuildAsync(service().resourceGroupName(), service().name(),
+ Constants.DEFAULT_TANZU_COMPONENT_NAME, app().name(),
new BuildInner().withProperties(buildProperties))
.map(inner -> inner.properties().triggeredBuildResult().id());
}
@@ -691,38 +680,34 @@ private Mono enqueueBuildAsync(ResourceUploadDefinition option) {
private Function> waitForBuildAsync() {
AtomicLong pollCount = new AtomicLong();
Duration pollDuration = manager().serviceClient().getDefaultPollInterval();
- return buildId ->
- manager().serviceClient().getBuildServices()
- .getBuildResultWithResponseAsync(
- service().resourceGroupName(),
- service().name(),
- Constants.DEFAULT_TANZU_COMPONENT_NAME,
- parent().name(),
- ResourceUtils.nameFromResourceId(buildId))
- .flatMap(response -> {
- if (pollDuration.multipliedBy(pollCount.get()).compareTo(MAX_BUILD_TIMEOUT) < 0) {
- BuildResultProvisioningState state = response.getValue().properties().provisioningState();
- if (state == BuildResultProvisioningState.SUCCEEDED) {
- return Mono.just(buildId);
- } else if (state == BuildResultProvisioningState.QUEUING || state == BuildResultProvisioningState.BUILDING) {
- return Mono.empty();
- } else {
- AppPlatformManagementClientImpl client = (AppPlatformManagementClientImpl) manager().serviceClient();
- return Mono.error(new ManagementException(String.format("Build failed for file: %s, buildId: %s",
- file.getName(), buildId),
- new HttpResponseImpl<>(response, client.getSerializerAdapter())));
- }
+ return buildId -> manager().serviceClient()
+ .getBuildServices()
+ .getBuildResultWithResponseAsync(service().resourceGroupName(), service().name(),
+ Constants.DEFAULT_TANZU_COMPONENT_NAME, parent().name(), ResourceUtils.nameFromResourceId(buildId))
+ .flatMap(response -> {
+ if (pollDuration.multipliedBy(pollCount.get()).compareTo(MAX_BUILD_TIMEOUT) < 0) {
+ BuildResultProvisioningState state = response.getValue().properties().provisioningState();
+ if (state == BuildResultProvisioningState.SUCCEEDED) {
+ return Mono.just(buildId);
+ } else if (state == BuildResultProvisioningState.QUEUING
+ || state == BuildResultProvisioningState.BUILDING) {
+ return Mono.empty();
} else {
- return Mono.error(new ManagementException(String.format("Build timeout for file: %s, buildId: %s",
- file.getName(), buildId), null));
+ AppPlatformManagementClientImpl client
+ = (AppPlatformManagementClientImpl) manager().serviceClient();
+ return Mono.error(new ManagementException(
+ String.format("Build failed for file: %s, buildId: %s", file.getName(), buildId),
+ new HttpResponseImpl<>(response, client.getSerializerAdapter())));
}
- }).repeatWhenEmpty(longFlux ->
- longFlux
- .flatMap(
- index -> {
- pollCount.set(index);
- return Mono.delay(ResourceManagerUtils.InternalRuntimeContext.getDelayDuration(pollDuration));
- }));
+ } else {
+ return Mono.error(new ManagementException(
+ String.format("Build timeout for file: %s, buildId: %s", file.getName(), buildId), null));
+ }
+ })
+ .repeatWhenEmpty(longFlux -> longFlux.flatMap(index -> {
+ pollCount.set(index);
+ return Mono.delay(ResourceManagerUtils.InternalRuntimeContext.getDelayDuration(pollDuration));
+ }));
}
@SuppressWarnings("BlockingMethodInNonBlockingContext")
@@ -754,7 +739,8 @@ public HttpHeaders getHeaders() {
@Override
public Flux getBody() {
try {
- return Flux.just(ByteBuffer.wrap(serializerAdapter.serializeToBytes(response.getValue(), SerializerEncoding.JSON)));
+ return Flux.just(ByteBuffer
+ .wrap(serializerAdapter.serializeToBytes(response.getValue(), SerializerEncoding.JSON)));
} catch (IOException e) {
return Flux.empty();
}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppDeploymentsImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppDeploymentsImpl.java
index 6eab9c12bfb6c..08c3b739a8f66 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppDeploymentsImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppDeploymentsImpl.java
@@ -16,9 +16,8 @@
import reactor.core.publisher.Mono;
import com.azure.resourcemanager.resources.fluentcore.utils.PagedConverter;
-public class SpringAppDeploymentsImpl
- extends ExternalChildResourcesNonCachedImpl<
- SpringAppDeploymentImpl, SpringAppDeployment, DeploymentResourceInner, SpringAppImpl, SpringApp>
+public class SpringAppDeploymentsImpl extends
+ ExternalChildResourcesNonCachedImpl
implements SpringAppDeployments {
SpringAppDeploymentsImpl(SpringAppImpl parent) {
@@ -78,8 +77,8 @@ public void deleteByName(String name) {
@Override
public Mono deleteByNameAsync(String name) {
- return inner().deleteAsync(
- parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name);
+ return inner().deleteAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(),
+ name);
}
@Override
@@ -89,7 +88,8 @@ public PagedIterable list() {
@Override
public PagedFlux listAsync() {
- return PagedConverter.mapPage(inner().listAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name()),
+ return PagedConverter.mapPage(
+ inner().listAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name()),
this::wrapModel);
}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppDomainImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppDomainImpl.java
index 7ced6ee318704..f225c5141e67d 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppDomainImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppDomainImpl.java
@@ -20,9 +20,10 @@ public class SpringAppDomainImpl
@Override
public Mono createResourceAsync() {
- return manager().serviceClient().getCustomDomains().createOrUpdateAsync(
- parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name(), innerModel()
- )
+ return manager().serviceClient()
+ .getCustomDomains()
+ .createOrUpdateAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(),
+ name(), innerModel())
.map(inner -> {
setInner(inner);
return this;
@@ -36,16 +37,16 @@ public Mono updateResourceAsync() {
@Override
public Mono deleteResourceAsync() {
- return manager().serviceClient().getBindings().deleteAsync(
- parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name()
- );
+ return manager().serviceClient()
+ .getBindings()
+ .deleteAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name());
}
@Override
protected Mono getInnerAsync() {
- return manager().serviceClient().getCustomDomains().getAsync(
- parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name()
- );
+ return manager().serviceClient()
+ .getCustomDomains()
+ .getAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name());
}
@Override
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppDomainsImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppDomainsImpl.java
index 1a77df6e72594..c524b4e389330 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppDomainsImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppDomainsImpl.java
@@ -19,9 +19,8 @@
import reactor.core.publisher.Mono;
import com.azure.resourcemanager.resources.fluentcore.utils.PagedConverter;
-public class SpringAppDomainsImpl
- extends ExternalChildResourcesNonCachedImpl<
- SpringAppDomainImpl, SpringAppDomain, CustomDomainResourceInner, SpringAppImpl, SpringApp>
+public class SpringAppDomainsImpl extends
+ ExternalChildResourcesNonCachedImpl
implements SpringAppDomains {
SpringAppDomainsImpl(SpringAppImpl parent) {
super(parent, parent.taskGroup(), "SpringAppDomain");
@@ -79,8 +78,8 @@ public void deleteByName(String name) {
@Override
public Mono deleteByNameAsync(String name) {
- return inner().deleteAsync(
- parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name);
+ return inner().deleteAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(),
+ name);
}
@Override
@@ -90,7 +89,8 @@ public PagedIterable list() {
@Override
public PagedFlux listAsync() {
- return PagedConverter.mapPage(inner().listAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name()),
+ return PagedConverter.mapPage(
+ inner().listAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name()),
this::wrapModel);
}
@@ -105,8 +105,10 @@ public CustomDomainValidateResult validate(String domain) {
@Override
public Mono validateAsync(String domain) {
- return manager().serviceClient().getApps().validateDomainAsync(
- parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), new CustomDomainValidatePayload().withName(domain));
+ return manager().serviceClient()
+ .getApps()
+ .validateDomainAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(),
+ new CustomDomainValidatePayload().withName(domain));
}
SpringAppDomain prepareCreateOrUpdate(String name, CustomDomainProperties properties) {
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppImpl.java
index 5e756eba9cefc..e3166835e569c 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppImpl.java
@@ -102,7 +102,8 @@ public ManagedIdentityProperties identity() {
@Override
public String activeDeploymentName() {
// get the first active deployment
- Optional deployment = deployments.list().stream().filter(SpringAppDeployment::isActive).findFirst();
+ Optional deployment
+ = deployments.list().stream().filter(SpringAppDeployment::isActive).findFirst();
return deployment.map(SpringAppDeployment::appName).orElse(null);
}
@@ -134,8 +135,9 @@ public SpringAppDomains customDomains() {
@Override
public Mono getResourceUploadUrlAsync() {
- return manager().serviceClient().getApps().getResourceUploadUrlAsync(
- parent().resourceGroupName(), parent().name(), name());
+ return manager().serviceClient()
+ .getApps()
+ .getResourceUploadUrlAsync(parent().resourceGroupName(), parent().name(), name());
}
@Override
@@ -160,7 +162,9 @@ public boolean hasConfigurationServiceBinding() {
return false;
}
return addonConfigs.get(Constants.APPLICATION_CONFIGURATION_SERVICE_KEY) != null
- && configurationService.id().equalsIgnoreCase((String) addonConfigs.get(Constants.APPLICATION_CONFIGURATION_SERVICE_KEY).get(Constants.BINDING_RESOURCE_ID));
+ && configurationService.id()
+ .equalsIgnoreCase((String) addonConfigs.get(Constants.APPLICATION_CONFIGURATION_SERVICE_KEY)
+ .get(Constants.BINDING_RESOURCE_ID));
}
@Override
@@ -174,7 +178,9 @@ public boolean hasServiceRegistryBinding() {
return false;
}
return addonConfigs.get(Constants.SERVICE_REGISTRY_KEY) != null
- && serviceRegistry.id().equalsIgnoreCase((String) addonConfigs.get(Constants.SERVICE_REGISTRY_KEY).get(Constants.BINDING_RESOURCE_ID));
+ && serviceRegistry.id()
+ .equalsIgnoreCase(
+ (String) addonConfigs.get(Constants.SERVICE_REGISTRY_KEY).get(Constants.BINDING_RESOURCE_ID));
}
@Override
@@ -226,16 +232,16 @@ public SpringAppImpl withoutHttpsOnly() {
@Override
public SpringAppImpl withTemporaryDisk(int sizeInGB, String mountPath) {
ensureProperty();
- innerModel().properties().withTemporaryDisk(
- new TemporaryDisk().withSizeInGB(sizeInGB).withMountPath(mountPath));
+ innerModel().properties()
+ .withTemporaryDisk(new TemporaryDisk().withSizeInGB(sizeInGB).withMountPath(mountPath));
return this;
}
@Override
public SpringAppImpl withPersistentDisk(int sizeInGB, String mountPath) {
ensureProperty();
- innerModel().properties().withPersistentDisk(
- new PersistentDisk().withSizeInGB(sizeInGB).withMountPath(mountPath));
+ innerModel().properties()
+ .withPersistentDisk(new PersistentDisk().withSizeInGB(sizeInGB).withMountPath(mountPath));
return this;
}
@@ -244,10 +250,11 @@ public SpringAppImpl withActiveDeployment(String name) {
if (CoreUtils.isNullOrEmpty(name)) {
return this;
}
- this.setActiveDeploymentTask =
- context -> manager().serviceClient().getApps()
- .setActiveDeploymentsAsync(parent().resourceGroupName(), parent().name(), name(), new ActiveDeploymentCollection().withActiveDeploymentNames(Arrays.asList(name)))
- .then(context.voidMono());
+ this.setActiveDeploymentTask = context -> manager().serviceClient()
+ .getApps()
+ .setActiveDeploymentsAsync(parent().resourceGroupName(), parent().name(), name(),
+ new ActiveDeploymentCollection().withActiveDeploymentNames(Arrays.asList(name)))
+ .then(context.voidMono());
return this;
}
@@ -264,8 +271,9 @@ public Mono createResourceAsync() {
if (springAppDeploymentToCreate == null) {
withDefaultActiveDeployment();
}
- return manager().serviceClient().getApps().createOrUpdateAsync(
- parent().resourceGroupName(), parent().name(), name(), innerModel())
+ return manager().serviceClient()
+ .getApps()
+ .createOrUpdateAsync(parent().resourceGroupName(), parent().name(), name(), innerModel())
.map(inner -> {
setInner(inner);
return this;
@@ -276,8 +284,9 @@ public Mono createResourceAsync() {
@Override
public Mono updateResourceAsync() {
- return manager().serviceClient().getApps().updateAsync(
- parent().resourceGroupName(), parent().name(), name(), innerModel())
+ return manager().serviceClient()
+ .getApps()
+ .updateAsync(parent().resourceGroupName(), parent().name(), name(), innerModel())
.map(inner -> {
setInner(inner);
return this;
@@ -332,8 +341,7 @@ public SpringAppImpl withDefaultActiveDeployment() {
@Override
@SuppressWarnings("unchecked")
- public >
+ public >
SpringAppDeployment.DefinitionStages.Blank defineActiveDeployment(String name) {
return (SpringAppDeployment.DefinitionStages.Blank) deployments.define(name).withActivation();
}
@@ -353,7 +361,8 @@ public SpringAppImpl withConfigurationServiceBinding() {
}
SpringConfigurationService configurationService = parent().getDefaultConfigurationService();
if (configurationService != null) {
- Map configurationServiceConfigs = addonConfigs.computeIfAbsent(Constants.APPLICATION_CONFIGURATION_SERVICE_KEY, k -> new HashMap<>());
+ Map configurationServiceConfigs
+ = addonConfigs.computeIfAbsent(Constants.APPLICATION_CONFIGURATION_SERVICE_KEY, k -> new HashMap<>());
configurationServiceConfigs.put(Constants.BINDING_RESOURCE_ID, configurationService.id());
}
return this;
@@ -368,7 +377,8 @@ public SpringAppImpl withoutConfigurationServiceBinding() {
if (addonConfigs == null) {
return this;
}
- Map configurationServiceConfigs = addonConfigs.get(Constants.APPLICATION_CONFIGURATION_SERVICE_KEY);
+ Map configurationServiceConfigs
+ = addonConfigs.get(Constants.APPLICATION_CONFIGURATION_SERVICE_KEY);
if (configurationServiceConfigs == null) {
return this;
}
@@ -386,7 +396,8 @@ public SpringAppImpl withServiceRegistryBinding() {
}
SpringServiceRegistry serviceRegistry = parent().getDefaultServiceRegistry();
if (serviceRegistry != null) {
- Map serviceRegistryConfigs = addonConfigs.computeIfAbsent(Constants.SERVICE_REGISTRY_KEY, k -> new HashMap<>());
+ Map serviceRegistryConfigs
+ = addonConfigs.computeIfAbsent(Constants.SERVICE_REGISTRY_KEY, k -> new HashMap<>());
serviceRegistryConfigs.put(Constants.BINDING_RESOURCE_ID, serviceRegistry.id());
}
return this;
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppServiceBindingImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppServiceBindingImpl.java
index 94f6cd2c438a8..cc37f227b1ee8 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppServiceBindingImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppServiceBindingImpl.java
@@ -20,9 +20,10 @@ public class SpringAppServiceBindingImpl
@Override
public Mono createResourceAsync() {
- return manager().serviceClient().getBindings().createOrUpdateAsync(
- parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name(), innerModel()
- )
+ return manager().serviceClient()
+ .getBindings()
+ .createOrUpdateAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(),
+ name(), innerModel())
.map(inner -> {
setInner(inner);
return this;
@@ -36,16 +37,16 @@ public Mono updateResourceAsync() {
@Override
public Mono deleteResourceAsync() {
- return manager().serviceClient().getBindings().deleteAsync(
- parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name()
- );
+ return manager().serviceClient()
+ .getBindings()
+ .deleteAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name());
}
@Override
protected Mono getInnerAsync() {
- return manager().serviceClient().getBindings().getAsync(
- parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name()
- );
+ return manager().serviceClient()
+ .getBindings()
+ .getAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name());
}
@Override
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppServiceBindingsImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppServiceBindingsImpl.java
index 3b8eaed54c4ae..c6b40edab5ec0 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppServiceBindingsImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppServiceBindingsImpl.java
@@ -17,9 +17,8 @@
import reactor.core.publisher.Mono;
import com.azure.resourcemanager.resources.fluentcore.utils.PagedConverter;
-public class SpringAppServiceBindingsImpl
- extends ExternalChildResourcesNonCachedImpl<
- SpringAppServiceBindingImpl, SpringAppServiceBinding, BindingResourceInner, SpringAppImpl, SpringApp>
+public class SpringAppServiceBindingsImpl extends
+ ExternalChildResourcesNonCachedImpl
implements SpringAppServiceBindings {
SpringAppServiceBindingsImpl(SpringAppImpl parent) {
super(parent, parent.taskGroup(), "SpringAppServiceBinding");
@@ -77,8 +76,8 @@ public void deleteByName(String name) {
@Override
public Mono deleteByNameAsync(String name) {
- return inner().deleteAsync(
- parent().parent().resourceGroupName(), parent().parent().name(), parent().name(), name);
+ return inner().deleteAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name(),
+ name);
}
@Override
@@ -88,7 +87,8 @@ public PagedIterable list() {
@Override
public PagedFlux listAsync() {
- return PagedConverter.mapPage(inner().listAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name()),
+ return PagedConverter.mapPage(
+ inner().listAsync(parent().parent().resourceGroupName(), parent().parent().name(), parent().name()),
this::wrapModel);
}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppsImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppsImpl.java
index 49ecea64c7c3e..18b0f72e201e7 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppsImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringAppsImpl.java
@@ -16,9 +16,8 @@
import reactor.core.publisher.Mono;
import com.azure.resourcemanager.resources.fluentcore.utils.PagedConverter;
-public class SpringAppsImpl
- extends ExternalChildResourcesNonCachedImpl<
- SpringAppImpl, SpringApp, AppResourceInner, SpringServiceImpl, SpringService>
+public class SpringAppsImpl extends
+ ExternalChildResourcesNonCachedImpl
implements SpringApps {
SpringAppsImpl(SpringServiceImpl parent) {
@@ -42,8 +41,7 @@ public SpringApp getByName(String name) {
@Override
public Mono getByNameAsync(String name) {
- return inner().getAsync(parent().resourceGroupName(), parent().name(), name)
- .map(this::wrapModel);
+ return inner().getAsync(parent().resourceGroupName(), parent().name(), name).map(this::wrapModel);
}
@Override
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringConfigurationServiceImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringConfigurationServiceImpl.java
index 29cb60bfe15fb..276ee67a99f29 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringConfigurationServiceImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringConfigurationServiceImpl.java
@@ -18,10 +18,11 @@
import java.util.Optional;
import java.util.stream.Collectors;
-public class SpringConfigurationServiceImpl
- extends ExternalChildResourceImpl
+public class SpringConfigurationServiceImpl extends
+ ExternalChildResourceImpl
implements SpringConfigurationService {
- protected SpringConfigurationServiceImpl(String name, SpringServiceImpl parent, ConfigurationServiceResourceInner innerObject) {
+ protected SpringConfigurationServiceImpl(String name, SpringServiceImpl parent,
+ ConfigurationServiceResourceInner innerObject) {
super(name, parent, innerObject);
}
@@ -37,22 +38,16 @@ public Double memory() {
@Override
public String gitUri() {
- return findDefaultRepository()
- .map(ConfigurationServiceGitRepository::uri)
- .orElse(null);
+ return findDefaultRepository().map(ConfigurationServiceGitRepository::uri).orElse(null);
}
@Override
public List filePatterns() {
- return findDefaultRepository()
- .map(ConfigurationServiceGitRepository::patterns)
- .orElse(Collections.emptyList());
+ return findDefaultRepository().map(ConfigurationServiceGitRepository::patterns).orElse(Collections.emptyList());
}
public String branch() {
- return findDefaultRepository()
- .map(ConfigurationServiceGitRepository::label)
- .orElse(null);
+ return findDefaultRepository().map(ConfigurationServiceGitRepository::label).orElse(null);
}
@Override
@@ -66,7 +61,11 @@ private Optional findDefaultRepository() {
@Override
public List getAppBindings() {
- return parent().apps().list().stream().filter(SpringApp::hasConfigurationServiceBinding).collect(Collectors.toList());
+ return parent().apps()
+ .list()
+ .stream()
+ .filter(SpringApp::hasConfigurationServiceBinding)
+ .collect(Collectors.toList());
}
private Optional findRepository(String name) {
@@ -75,10 +74,7 @@ private Optional findRepository(String name)
}
ConfigurationServiceGitProperty property = innerModel().properties().settings().gitProperty();
if (property != null && property.repositories() != null) {
- return property.repositories()
- .stream()
- .filter(repository -> name.equals(repository.name()))
- .findFirst();
+ return property.repositories().stream().filter(repository -> name.equals(repository.name())).findFirst();
} else {
return Optional.empty();
}
@@ -91,7 +87,8 @@ public String id() {
@Override
public Mono createResourceAsync() {
- return manager().serviceClient().getConfigurationServices()
+ return manager().serviceClient()
+ .getConfigurationServices()
.createOrUpdateAsync(parent().resourceGroupName(), parent().name(), name(), innerModel())
.map(inner -> {
setInner(inner);
@@ -106,12 +103,16 @@ public Mono updateResourceAsync() {
@Override
public Mono deleteResourceAsync() {
- return manager().serviceClient().getConfigurationServices().deleteAsync(parent().resourceGroupName(), parent().name(), name());
+ return manager().serviceClient()
+ .getConfigurationServices()
+ .deleteAsync(parent().resourceGroupName(), parent().name(), name());
}
@Override
protected Mono getInnerAsync() {
- return manager().serviceClient().getConfigurationServices().getAsync(parent().resourceGroupName(), parent().name(), name());
+ return manager().serviceClient()
+ .getConfigurationServices()
+ .getAsync(parent().resourceGroupName(), parent().name(), name());
}
public AppPlatformManager manager() {
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringConfigurationServicesImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringConfigurationServicesImpl.java
index 902c85580a1a0..c36e16421b05d 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringConfigurationServicesImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringConfigurationServicesImpl.java
@@ -13,9 +13,8 @@
import com.azure.resourcemanager.appplatform.models.SpringService;
import com.azure.resourcemanager.resources.fluentcore.arm.collection.implementation.ExternalChildResourcesNonCachedImpl;
-public class SpringConfigurationServicesImpl
- extends ExternalChildResourcesNonCachedImpl
-
+public class SpringConfigurationServicesImpl extends
+ ExternalChildResourcesNonCachedImpl
implements SpringConfigurationServices {
public SpringConfigurationServicesImpl(SpringServiceImpl parentImpl) {
@@ -23,19 +22,9 @@ public SpringConfigurationServicesImpl(SpringServiceImpl parentImpl) {
}
void prepareCreateOrUpdate(ConfigurationServiceGitProperty property) {
- prepareInlineDefine(
- new SpringConfigurationServiceImpl(
- Constants.DEFAULT_TANZU_COMPONENT_NAME,
- parent(),
- new ConfigurationServiceResourceInner()
- .withProperties(
- new ConfigurationServiceProperties()
- .withSettings(
- new ConfigurationServiceSettings()
- .withGitProperty(property))
- )
- )
- );
+ prepareInlineDefine(new SpringConfigurationServiceImpl(Constants.DEFAULT_TANZU_COMPONENT_NAME, parent(),
+ new ConfigurationServiceResourceInner().withProperties(new ConfigurationServiceProperties()
+ .withSettings(new ConfigurationServiceSettings().withGitProperty(property)))));
}
@Override
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceCertificateImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceCertificateImpl.java
index 34f55a063b269..2e283f5a67171 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceCertificateImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceCertificateImpl.java
@@ -11,9 +11,8 @@
import com.azure.resourcemanager.resources.fluentcore.arm.models.implementation.ExternalChildResourceImpl;
import reactor.core.publisher.Mono;
-public class SpringServiceCertificateImpl
- extends ExternalChildResourceImpl<
- SpringServiceCertificate, CertificateResourceInner, SpringServiceImpl, SpringService>
+public class SpringServiceCertificateImpl extends
+ ExternalChildResourceImpl
implements SpringServiceCertificate {
SpringServiceCertificateImpl(String name, SpringServiceImpl parent, CertificateResourceInner innerObject) {
super(name, parent, innerObject);
@@ -21,8 +20,9 @@ public class SpringServiceCertificateImpl
@Override
public Mono createResourceAsync() {
- return manager().serviceClient().getCertificates().createOrUpdateAsync(
- parent().resourceGroupName(), parent().name(), name(), innerModel())
+ return manager().serviceClient()
+ .getCertificates()
+ .createOrUpdateAsync(parent().resourceGroupName(), parent().name(), name(), innerModel())
.map(inner -> {
setInner(inner);
return this;
@@ -36,13 +36,15 @@ public Mono updateResourceAsync() {
@Override
public Mono deleteResourceAsync() {
- return manager().serviceClient().getCertificates()
+ return manager().serviceClient()
+ .getCertificates()
.deleteAsync(parent().resourceGroupName(), parent().name(), name());
}
@Override
protected Mono getInnerAsync() {
- return manager().serviceClient().getCertificates()
+ return manager().serviceClient()
+ .getCertificates()
.getAsync(parent().resourceGroupName(), parent().name(), name());
}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceCertificatesImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceCertificatesImpl.java
index 622170d0d61da..1d42cf0a81e88 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceCertificatesImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceCertificatesImpl.java
@@ -17,9 +17,8 @@
import reactor.core.publisher.Mono;
import com.azure.resourcemanager.resources.fluentcore.utils.PagedConverter;
-public class SpringServiceCertificatesImpl
- extends ExternalChildResourcesNonCachedImpl<
- SpringServiceCertificateImpl, SpringServiceCertificate, CertificateResourceInner, SpringServiceImpl, SpringService>
+public class SpringServiceCertificatesImpl extends
+ ExternalChildResourcesNonCachedImpl
implements SpringServiceCertificates {
SpringServiceCertificatesImpl(SpringServiceImpl parent) {
super(parent, parent.taskGroup(), "SpringServiceCertificate");
@@ -42,8 +41,7 @@ public SpringServiceCertificate getByName(String name) {
@Override
public Mono getByNameAsync(String name) {
- return inner().getAsync(parent().resourceGroupName(), parent().name(), name)
- .map(this::wrapModel);
+ return inner().getAsync(parent().resourceGroupName(), parent().name(), name).map(this::wrapModel);
}
SpringServiceCertificateImpl wrapModel(CertificateResourceInner inner) {
@@ -87,7 +85,8 @@ public PagedIterable list() {
@Override
public PagedFlux listAsync() {
- return PagedConverter.mapPage(inner().listAsync(parent().resourceGroupName(), parent().name()), this::wrapModel);
+ return PagedConverter.mapPage(inner().listAsync(parent().resourceGroupName(), parent().name()),
+ this::wrapModel);
}
public CertificatesClient inner() {
@@ -95,9 +94,8 @@ public CertificatesClient inner() {
}
SpringServiceCertificate prepareCreateOrUpdate(String name, CertificateProperties properties) {
- return prepareInlineDefine(
- new SpringServiceCertificateImpl(
- name, parent(), new CertificateResourceInner().withProperties(properties)));
+ return prepareInlineDefine(new SpringServiceCertificateImpl(name, parent(),
+ new CertificateResourceInner().withProperties(properties)));
}
void prepareDelete(String name) {
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceImpl.java
index c194f97958669..655a6cd528eab 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceImpl.java
@@ -86,7 +86,9 @@ public MonitoringSettingProperties getMonitoringSetting() {
@Override
public Mono getMonitoringSettingAsync() {
- return manager().serviceClient().getMonitoringSettings().getAsync(resourceGroupName(), name())
+ return manager().serviceClient()
+ .getMonitoringSettings()
+ .getAsync(resourceGroupName(), name())
.map(MonitoringSettingResourceInner::properties);
}
@@ -97,7 +99,9 @@ public ConfigServerProperties getServerProperties() {
@Override
public Mono getServerPropertiesAsync() {
- return manager().serviceClient().getConfigServers().getAsync(resourceGroupName(), name())
+ return manager().serviceClient()
+ .getConfigServers()
+ .getAsync(resourceGroupName(), name())
.map(ConfigServerResourceInner::properties);
}
@@ -118,7 +122,10 @@ public TestKeys regenerateTestKeys(TestKeyType keyType) {
@Override
public Mono regenerateTestKeysAsync(TestKeyType keyType) {
- return manager().serviceClient().getServices().regenerateTestKeyAsync(resourceGroupName(), name(), new RegenerateTestKeyRequestPayload().withKeyType(keyType));
+ return manager().serviceClient()
+ .getServices()
+ .regenerateTestKeyAsync(resourceGroupName(), name(),
+ new RegenerateTestKeyRequestPayload().withKeyType(keyType));
}
@Override
@@ -143,7 +150,9 @@ public Mono enableTestEndpointAsync() {
@Override
public SpringConfigurationService getDefaultConfigurationService() {
- return manager().serviceClient().getConfigurationServices().list(resourceGroupName(), name())
+ return manager().serviceClient()
+ .getConfigurationServices()
+ .list(resourceGroupName(), name())
.stream()
.filter(inner -> Objects.equals(inner.name(), Constants.DEFAULT_TANZU_COMPONENT_NAME))
.map(inner -> new SpringConfigurationServiceImpl(inner.name(), this, inner))
@@ -153,7 +162,9 @@ public SpringConfigurationService getDefaultConfigurationService() {
@Override
public SpringServiceRegistry getDefaultServiceRegistry() {
- return manager().serviceClient().getServiceRegistries().list(resourceGroupName(), name())
+ return manager().serviceClient()
+ .getServiceRegistries()
+ .list(resourceGroupName(), name())
.stream()
.filter(inner -> Objects.equals(inner.name(), Constants.DEFAULT_TANZU_COMPONENT_NAME))
.map(inner -> new SpringServiceRegistryImpl(inner.name(), this, inner))
@@ -194,10 +205,11 @@ public SpringServiceImpl withEnterpriseTierSku() {
@Override
public SpringServiceImpl withTracing(String appInsightInstrumentationKey) {
- monitoringSettingTask =
- context -> manager().serviceClient().getMonitoringSettings()
- .updatePatchAsync(resourceGroupName(), name(), new MonitoringSettingResourceInner().withProperties(
- new MonitoringSettingProperties()
+ monitoringSettingTask
+ = context -> manager().serviceClient()
+ .getMonitoringSettings()
+ .updatePatchAsync(resourceGroupName(), name(),
+ new MonitoringSettingResourceInner().withProperties(new MonitoringSettingProperties()
.withAppInsightsInstrumentationKey(appInsightInstrumentationKey)
.withTraceEnabled(true)))
.then(context.voidMono());
@@ -206,56 +218,46 @@ public SpringServiceImpl withTracing(String appInsightInstrumentationKey) {
@Override
public SpringServiceImpl withoutTracing() {
- monitoringSettingTask =
- context -> manager().serviceClient().getMonitoringSettings()
- .updatePatchAsync(
- resourceGroupName(), name(), new MonitoringSettingResourceInner().withProperties(
- new MonitoringSettingProperties().withTraceEnabled(false)
- ))
- .then(context.voidMono());
+ monitoringSettingTask = context -> manager().serviceClient()
+ .getMonitoringSettings()
+ .updatePatchAsync(resourceGroupName(), name(),
+ new MonitoringSettingResourceInner()
+ .withProperties(new MonitoringSettingProperties().withTraceEnabled(false)))
+ .then(context.voidMono());
return this;
}
@Override
public SpringServiceImpl withGitUri(String uri) {
- configServerTask =
- context -> manager().serviceClient().getConfigServers()
- .updatePatchAsync(resourceGroupName(), name(), new ConfigServerResourceInner().withProperties(
- new ConfigServerProperties()
- .withConfigServer(new ConfigServerSettings().withGitProperty(
- new ConfigServerGitProperty().withUri(uri)
- ))
- ))
- .then(context.voidMono());
+ configServerTask = context -> manager().serviceClient()
+ .getConfigServers()
+ .updatePatchAsync(resourceGroupName(), name(),
+ new ConfigServerResourceInner().withProperties(new ConfigServerProperties().withConfigServer(
+ new ConfigServerSettings().withGitProperty(new ConfigServerGitProperty().withUri(uri)))))
+ .then(context.voidMono());
return this;
}
@Override
public SpringServiceImpl withGitUriAndCredential(String uri, String username, String password) {
- configServerTask =
- context -> manager().serviceClient().getConfigServers()
- .updatePatchAsync(resourceGroupName(), name(), new ConfigServerResourceInner().withProperties(
- new ConfigServerProperties()
- .withConfigServer(new ConfigServerSettings().withGitProperty(
- new ConfigServerGitProperty()
- .withUri(uri)
- .withUsername(username)
- .withPassword(password)
- ))
- ))
- .then(context.voidMono());
+ configServerTask = context -> manager().serviceClient()
+ .getConfigServers()
+ .updatePatchAsync(resourceGroupName(), name(),
+ new ConfigServerResourceInner().withProperties(
+ new ConfigServerProperties().withConfigServer(new ConfigServerSettings().withGitProperty(
+ new ConfigServerGitProperty().withUri(uri).withUsername(username).withPassword(password)))))
+ .then(context.voidMono());
return this;
}
@Override
public SpringServiceImpl withGitConfig(ConfigServerGitProperty gitConfig) {
- configServerTask =
- context -> manager().serviceClient().getConfigServers()
- .updatePatchAsync(resourceGroupName(), name(), new ConfigServerResourceInner().withProperties(
- new ConfigServerProperties()
- .withConfigServer(new ConfigServerSettings().withGitProperty(gitConfig))
- ))
- .then(context.voidMono());
+ configServerTask = context -> manager().serviceClient()
+ .getConfigServers()
+ .updatePatchAsync(resourceGroupName(), name(),
+ new ConfigServerResourceInner().withProperties(new ConfigServerProperties()
+ .withConfigServer(new ConfigServerSettings().withGitProperty(gitConfig))))
+ .then(context.voidMono());
return this;
}
@@ -289,55 +291,49 @@ public void beforeGroupCreateOrUpdate() {
public Mono createResourceAsync() {
Mono createOrUpdate;
if (isInCreateMode()) {
- createOrUpdate = manager().serviceClient().getServices()
+ createOrUpdate = manager().serviceClient()
+ .getServices()
.createOrUpdateAsync(resourceGroupName(), name(), innerModel());
if (isEnterpriseTier()) {
createOrUpdate = createOrUpdate
// initialize build service agent pool
- .flatMap(inner ->
- manager().serviceClient().getBuildServiceAgentPools().updatePutAsync(
- resourceGroupName(),
- name(),
- Constants.DEFAULT_TANZU_COMPONENT_NAME,
+ .flatMap(inner -> manager().serviceClient()
+ .getBuildServiceAgentPools()
+ .updatePutAsync(resourceGroupName(), name(), Constants.DEFAULT_TANZU_COMPONENT_NAME,
Constants.DEFAULT_TANZU_COMPONENT_NAME,
new BuildServiceAgentPoolResourceInner()
- .withProperties(
- new BuildServiceAgentPoolProperties()
- .withPoolSize(
- new BuildServiceAgentPoolSizeProperties()
- .withName("S1"))) // S1, S2, S3, S4, S5.
- ).then(Mono.just(inner)));
+ .withProperties(new BuildServiceAgentPoolProperties()
+ .withPoolSize(new BuildServiceAgentPoolSizeProperties().withName("S1"))) // S1, S2, S3, S4, S5.
+ )
+ .then(Mono.just(inner)));
}
} else if (updated) {
- createOrUpdate = manager().serviceClient().getServices().updateAsync(
- resourceGroupName(), name(), patchToUpdate);
+ createOrUpdate
+ = manager().serviceClient().getServices().updateAsync(resourceGroupName(), name(), patchToUpdate);
patchToUpdate = new ServiceResourceInner();
updated = false;
} else {
return Mono.just(this);
}
- return createOrUpdate
- .map(inner -> {
- this.setInner(inner);
- return this;
- });
+ return createOrUpdate.map(inner -> {
+ this.setInner(inner);
+ return this;
+ });
}
@Override
public Mono afterPostRunAsync(boolean isGroupFaulted) {
- return Mono
- .just(true)
- .map(
- ignored -> {
- clearCache();
- return ignored;
- })
- .then();
+ return Mono.just(true).map(ignored -> {
+ clearCache();
+ return ignored;
+ }).then();
}
@Override
protected Mono getInnerAsync() {
- return manager().serviceClient().getServices().getByResourceGroupAsync(resourceGroupName(), name())
+ return manager().serviceClient()
+ .getServices()
+ .getByResourceGroupAsync(resourceGroupName(), name())
.map(inner -> {
clearCache();
return inner;
@@ -346,23 +342,18 @@ protected Mono getInnerAsync() {
@Override
public SpringServiceImpl withCertificate(String name, String keyVaultUri, String certNameInKeyVault) {
- certificates.prepareCreateOrUpdate(
- name,
- new KeyVaultCertificateProperties().withVaultUri(keyVaultUri).withKeyVaultCertName(certNameInKeyVault)
- );
+ certificates.prepareCreateOrUpdate(name,
+ new KeyVaultCertificateProperties().withVaultUri(keyVaultUri).withKeyVaultCertName(certNameInKeyVault));
return this;
}
@Override
- public SpringServiceImpl withCertificate(String name, String keyVaultUri,
- String certNameInKeyVault, String certVersion) {
- certificates.prepareCreateOrUpdate(
- name,
- new KeyVaultCertificateProperties()
- .withVaultUri(keyVaultUri)
+ public SpringServiceImpl withCertificate(String name, String keyVaultUri, String certNameInKeyVault,
+ String certVersion) {
+ certificates.prepareCreateOrUpdate(name,
+ new KeyVaultCertificateProperties().withVaultUri(keyVaultUri)
.withKeyVaultCertName(certNameInKeyVault)
- .withCertVersion(certVersion)
- );
+ .withCertVersion(certVersion));
return this;
}
@@ -382,12 +373,10 @@ public SpringServiceImpl withGitRepository(String name, String uri, String branc
if (CoreUtils.isNullOrEmpty(name)) {
return this;
}
- this.configurationServiceConfig.addRepository(
- new ConfigurationServiceGitRepository()
- .withName(name)
- .withUri(uri)
- .withPatterns(filePatterns)
- .withLabel(branch));
+ this.configurationServiceConfig.addRepository(new ConfigurationServiceGitRepository().withName(name)
+ .withUri(uri)
+ .withPatterns(filePatterns)
+ .withLabel(branch));
return this;
}
@@ -416,7 +405,8 @@ public SpringServiceImpl withoutGitRepositories() {
private void prepareCreateOrUpdateConfigurationService() {
List repositories = this.configurationServiceConfig.mergeRepositories();
- this.configurationServices.prepareCreateOrUpdate(new ConfigurationServiceGitProperty().withRepositories(repositories));
+ this.configurationServices
+ .prepareCreateOrUpdate(new ConfigurationServiceGitProperty().withRepositories(repositories));
}
private void prepareCreateServiceRegistry() {
@@ -485,12 +475,17 @@ public List mergeRepositories() {
// get existing git repositories
SpringConfigurationService configurationService = getDefaultConfigurationService();
if (configurationService != null) {
- List repositoryList =
- configurationService.innerModel().properties().settings() == null
+ List repositoryList
+ = configurationService.innerModel().properties().settings() == null
? Collections.emptyList()
- : configurationService.innerModel().properties().settings().gitProperty().repositories();
+ : configurationService.innerModel()
+ .properties()
+ .settings()
+ .gitProperty()
+ .repositories();
if (repositoryList != null) {
- repositoryList.forEach(repository -> existingGitRepositories.put(repository.name(), repository));
+ repositoryList
+ .forEach(repository -> existingGitRepositories.put(repository.name(), repository));
}
}
}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceRegistriesImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceRegistriesImpl.java
index e6c76809f7a46..924a6e1cf64d7 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceRegistriesImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceRegistriesImpl.java
@@ -8,19 +8,14 @@
import com.azure.resourcemanager.appplatform.models.SpringServiceRegistry;
import com.azure.resourcemanager.resources.fluentcore.arm.collection.implementation.ExternalChildResourcesNonCachedImpl;
-public class SpringServiceRegistriesImpl
- extends ExternalChildResourcesNonCachedImpl<
- SpringServiceRegistryImpl, SpringServiceRegistry, ServiceRegistryResourceInner, SpringServiceImpl, SpringService
- > {
+public class SpringServiceRegistriesImpl extends
+ ExternalChildResourcesNonCachedImpl {
public SpringServiceRegistriesImpl(SpringServiceImpl parentImpl) {
super(parentImpl, parentImpl.taskGroup(), "SpringServiceRegistry");
}
public void prepareCreate() {
- prepareInlineDefine(new SpringServiceRegistryImpl(
- Constants.DEFAULT_TANZU_COMPONENT_NAME,
- getParent(),
- new ServiceRegistryResourceInner()
- ));
+ prepareInlineDefine(new SpringServiceRegistryImpl(Constants.DEFAULT_TANZU_COMPONENT_NAME, getParent(),
+ new ServiceRegistryResourceInner()));
}
}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceRegistryImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceRegistryImpl.java
index 85814d4d59f92..423520c9d0d9d 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceRegistryImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServiceRegistryImpl.java
@@ -14,11 +14,12 @@
import java.util.List;
import java.util.stream.Collectors;
-public class SpringServiceRegistryImpl
- extends ExternalChildResourceImpl
+public class SpringServiceRegistryImpl extends
+ ExternalChildResourceImpl
implements SpringServiceRegistry {
- protected SpringServiceRegistryImpl(String name, SpringServiceImpl parent, ServiceRegistryResourceInner innerObject) {
+ protected SpringServiceRegistryImpl(String name, SpringServiceImpl parent,
+ ServiceRegistryResourceInner innerObject) {
super(name, parent, innerObject);
}
@@ -34,7 +35,8 @@ public Double memory() {
@Override
public List getAppBindings() {
- return parent().apps().list()
+ return parent().apps()
+ .list()
.stream()
.filter(SpringApp::hasServiceRegistryBinding)
.collect(Collectors.toList());
@@ -47,7 +49,8 @@ public String id() {
@Override
public Mono createResourceAsync() {
- return manager().serviceClient().getServiceRegistries()
+ return manager().serviceClient()
+ .getServiceRegistries()
.createOrUpdateAsync(parent().resourceGroupName(), parent().name(), name())
.map(inner -> {
setInner(inner);
@@ -62,12 +65,16 @@ public Mono updateResourceAsync() {
@Override
public Mono deleteResourceAsync() {
- return manager().serviceClient().getServiceRegistries().deleteAsync(parent().resourceGroupName(), parent().name(), name());
+ return manager().serviceClient()
+ .getServiceRegistries()
+ .deleteAsync(parent().resourceGroupName(), parent().name(), name());
}
@Override
protected Mono getInnerAsync() {
- return manager().serviceClient().getServiceRegistries().getAsync(parent().resourceGroupName(), parent().name(), name());
+ return manager().serviceClient()
+ .getServiceRegistries()
+ .getAsync(parent().resourceGroupName(), parent().name(), name());
}
private AppPlatformManager manager() {
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServicesImpl.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServicesImpl.java
index e75ffea61eb42..848cb9981786d 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServicesImpl.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/SpringServicesImpl.java
@@ -19,9 +19,8 @@
import reactor.core.publisher.Mono;
import com.azure.resourcemanager.resources.fluentcore.utils.PagedConverter;
-public class SpringServicesImpl
- extends GroupableResourcesImpl<
- SpringService, SpringServiceImpl, ServiceResourceInner, ServicesClient, AppPlatformManager>
+public class SpringServicesImpl extends
+ GroupableResourcesImpl
implements SpringServices {
private static final String SPRING_TYPE = "Microsoft.AppPlatform/Spring";
@@ -56,8 +55,8 @@ public NameAvailability checkNameAvailability(String name, Region region) {
@Override
public Mono checkNameAvailabilityAsync(String name, Region region) {
- return inner().checkNameAvailabilityAsync(
- region.toString(), new NameAvailabilityParameters().withName(name).withType(SPRING_TYPE));
+ return inner().checkNameAvailabilityAsync(region.toString(),
+ new NameAvailabilityParameters().withName(name).withType(SPRING_TYPE));
}
@Override
@@ -78,8 +77,8 @@ public PagedIterable listByResourceGroup(String resourceGroupName
@Override
public PagedFlux listByResourceGroupAsync(String resourceGroupName) {
if (CoreUtils.isNullOrEmpty(resourceGroupName)) {
- return new PagedFlux<>(() -> Mono.error(
- new IllegalArgumentException("Parameter 'resourceGroupName' is required and cannot be null.")));
+ return new PagedFlux<>(() -> Mono
+ .error(new IllegalArgumentException("Parameter 'resourceGroupName' is required and cannot be null.")));
}
return PagedConverter.mapPage(inner().listByResourceGroupAsync(resourceGroupName), this::wrapModel);
}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/Utils.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/Utils.java
index c2a8328be9a04..3a22b85238bd0 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/Utils.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/implementation/Utils.java
@@ -103,10 +103,8 @@ private static class CpuMatcher {
static CpuMatcher create(String cpu) {
Matcher integerMatcher = CPU_INTEGER.matcher(cpu);
Matcher fractionMatcher = CPU_FRACTION.matcher(cpu);
- return new CpuMatcher(
- integerMatcher.matches() ? integerMatcher : null,
- fractionMatcher.matches() ? fractionMatcher : null
- );
+ return new CpuMatcher(integerMatcher.matches() ? integerMatcher : null,
+ fractionMatcher.matches() ? fractionMatcher : null);
}
boolean noMatch() {
@@ -136,10 +134,7 @@ private static class MemoryMatcher {
static MemoryMatcher create(String memory) {
Matcher gbMatcher = MEMORY_GB.matcher(memory);
Matcher mbMatcher = MEMORY_MB.matcher(memory);
- return new MemoryMatcher(
- gbMatcher.matches() ? gbMatcher : null,
- mbMatcher.matches() ? mbMatcher : null
- );
+ return new MemoryMatcher(gbMatcher.matches() ? gbMatcher : null, mbMatcher.matches() ? mbMatcher : null);
}
boolean noMatch() {
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringApp.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringApp.java
index f3bbb1f2f2ef7..c7537ae98a990 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringApp.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringApp.java
@@ -14,10 +14,8 @@
/** An immutable client-side representation of an Azure Spring App. */
@Fluent
-public interface SpringApp
- extends ExternalChildResource,
- HasInnerModel,
- Updatable {
+public interface SpringApp extends ExternalChildResource, HasInnerModel,
+ Updatable {
/** @return whether the app exposes public endpoint */
boolean isPublic();
@@ -79,14 +77,14 @@ public interface SpringApp
boolean hasServiceRegistryBinding();
/** Container interface for all the definitions that need to be implemented. */
- interface Definition
- extends DefinitionStages.Blank,
- DefinitionStages.WithCreate { }
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithCreate {
+ }
/** Grouping of all the spring app definition stages. */
interface DefinitionStages {
/** The first stage of the spring app definition. */
- interface Blank extends WithDeployment { }
+ interface Blank extends WithDeployment {
+ }
/**
* The stage of a spring app definition allowing to specify an active deployment.
@@ -104,8 +102,7 @@ interface WithDeployment {
* @param derived type of {@link SpringAppDeployment.DefinitionStages.WithAttach}
* @return the first stage of spring app deployment definition
*/
- >
+ >
SpringAppDeployment.DefinitionStages.Blank defineActiveDeployment(String name);
}
@@ -221,25 +218,17 @@ interface WithServiceRegistryBinding {
* The stage of the definition which contains all the minimum required inputs for the resource to be created,
* but also allows for any other optional settings to be specified.
*/
- interface WithCreate
- extends Creatable,
- DefinitionStages.WithEndpoint,
- DefinitionStages.WithDisk,
- DefinitionStages.WithDeployment,
- DefinitionStages.WithServiceBinding,
- DefinitionStages.WithConfigurationServiceBinding,
- DefinitionStages.WithServiceRegistryBinding { }
+ interface WithCreate extends Creatable, DefinitionStages.WithEndpoint, DefinitionStages.WithDisk,
+ DefinitionStages.WithDeployment, DefinitionStages.WithServiceBinding,
+ DefinitionStages.WithConfigurationServiceBinding, DefinitionStages.WithServiceRegistryBinding {
+ }
}
/** The template for an update operation, containing all the settings that can be modified. */
- interface Update
- extends Appliable,
- UpdateStages.WithEndpoint,
- UpdateStages.WithDisk,
- UpdateStages.WithDeployment,
- UpdateStages.WithServiceBinding,
- UpdateStages.WithConfigurationServiceBinding,
- UpdateStages.WithServiceRegistryBinding { }
+ interface Update extends Appliable, UpdateStages.WithEndpoint, UpdateStages.WithDisk,
+ UpdateStages.WithDeployment, UpdateStages.WithServiceBinding, UpdateStages.WithConfigurationServiceBinding,
+ UpdateStages.WithServiceRegistryBinding {
+ }
/** Grouping of spring app update stages. */
interface UpdateStages {
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppDeployment.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppDeployment.java
index fe2315e8621db..f5ae48e015c3c 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppDeployment.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppDeployment.java
@@ -18,10 +18,8 @@
/** An immutable client-side representation of an Azure Spring App Deployment. */
@Fluent
-public interface SpringAppDeployment
- extends ExternalChildResource,
- HasInnerModel,
- Updatable {
+public interface SpringAppDeployment extends ExternalChildResource,
+ HasInnerModel, Updatable {
/** @return the app name of the deployment */
String appName();
@@ -91,17 +89,15 @@ public interface SpringAppDeployment
* @param The return type of final stage,
* usually {@link DefinitionStages.WithCreate} or {@link DefinitionStages.WithAttach}
*/
- interface Definition
- extends DefinitionStages.Blank,
- DefinitionStages.WithSource,
- DefinitionStages.WithModule,
- DefinitionStages.WithCreate,
- DefinitionStages.WithAttach { }
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithSource,
+ DefinitionStages.WithModule, DefinitionStages.WithCreate, DefinitionStages.WithAttach {
+ }
/** Grouping of all the deployment definition stages. */
interface DefinitionStages {
/** The first stage of the deployment definition. */
- interface Blank extends WithSource { }
+ interface Blank extends WithSource {
+ }
/** The stage of a deployment definition allowing to specify the source code or package. */
interface WithSource {
@@ -261,24 +257,22 @@ interface WithSettings {
* The stage of the definition which contains all the minimum required inputs for the resource to be created,
* but also allows for any other optional settings to be specified.
*/
- interface Final
- extends WithSettings { }
+ interface Final extends WithSettings {
+ }
/** The final stage of the definition allowing to create a deployment */
- interface WithCreate
- extends Creatable, Final { }
+ interface WithCreate extends Creatable, Final {
+ }
/** The final stage of the definition allowing to attach a deployment to its parent */
- interface WithAttach
- extends Attachable, Final { }
+ interface WithAttach extends Attachable, Final {
+ }
}
/** The template for an update operation, containing all the settings that can be modified. */
- interface Update
- extends Appliable,
- UpdateStages.WithSource,
- UpdateStages.WithModule,
- UpdateStages.WithSettings { }
+ interface Update extends Appliable, UpdateStages.WithSource, UpdateStages.WithModule,
+ UpdateStages.WithSettings {
+ }
/** Grouping of deployment update stages. */
interface UpdateStages {
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppDeployments.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppDeployments.java
index f4b6289093a17..0a4f1403e3012 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppDeployments.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppDeployments.java
@@ -16,13 +16,8 @@
/** Entry point for Spring App Deployments API. */
@Fluent
-public interface SpringAppDeployments
- extends HasManager,
- HasParent,
- SupportsCreating>,
- SupportsGettingById,
- SupportsGettingByName,
- SupportsListing,
- SupportsDeletingById,
+public interface SpringAppDeployments extends HasManager, HasParent,
+ SupportsCreating>, SupportsGettingById,
+ SupportsGettingByName, SupportsListing, SupportsDeletingById,
SupportsDeletingByName {
}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppDomain.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppDomain.java
index 60305a424a0aa..04f7d4c20fa8b 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppDomain.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppDomain.java
@@ -9,8 +9,7 @@
/** An immutable client-side representation of an Azure Spring App Custom Domain. */
public interface SpringAppDomain
- extends ExternalChildResource,
- HasInnerModel {
+ extends ExternalChildResource, HasInnerModel {
/** @return the properties of the spring app custom domain */
CustomDomainProperties properties();
}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppDomains.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppDomains.java
index 6a10589193e88..53782a2e59c42 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppDomains.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppDomains.java
@@ -16,14 +16,9 @@
/** Entry point for Spring App Custom Domains API. */
@Fluent
-public interface SpringAppDomains
- extends HasManager,
- HasParent,
- SupportsGettingById,
- SupportsGettingByName,
- SupportsListing,
- SupportsDeletingById,
- SupportsDeletingByName {
+public interface SpringAppDomains extends HasManager, HasParent,
+ SupportsGettingById, SupportsGettingByName, SupportsListing,
+ SupportsDeletingById, SupportsDeletingByName {
/**
* Checks the domain is validate for the app or not.
*
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppServiceBinding.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppServiceBinding.java
index 19629236c3cc9..be9e59754c4d1 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppServiceBinding.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppServiceBinding.java
@@ -9,8 +9,7 @@
/** An immutable client-side representation of an Azure Spring App Service Binding. */
public interface SpringAppServiceBinding
- extends ExternalChildResource,
- HasInnerModel {
+ extends ExternalChildResource, HasInnerModel {
/** @return the properties of the service binding */
BindingResourceProperties properties();
}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppServiceBindings.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppServiceBindings.java
index 532f06769b965..5730eb243d4d8 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppServiceBindings.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringAppServiceBindings.java
@@ -15,12 +15,7 @@
/** Entry point for Spring App Service Bindings API. */
@Fluent
-public interface SpringAppServiceBindings
- extends HasManager,
- HasParent,
- SupportsGettingById,
- SupportsGettingByName,
- SupportsListing,
- SupportsDeletingById,
- SupportsDeletingByName {
+public interface SpringAppServiceBindings extends HasManager, HasParent,
+ SupportsGettingById, SupportsGettingByName,
+ SupportsListing, SupportsDeletingById, SupportsDeletingByName {
}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringApps.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringApps.java
index a94fc92ef6c01..174fbb98210fb 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringApps.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringApps.java
@@ -16,13 +16,7 @@
/** Entry point for Spring Apps API. */
@Fluent
-public interface SpringApps
- extends HasManager,
- HasParent,
- SupportsCreating,
- SupportsGettingById,
- SupportsGettingByName,
- SupportsListing,
- SupportsDeletingById,
- SupportsDeletingByName {
+public interface SpringApps extends HasManager, HasParent,
+ SupportsCreating, SupportsGettingById,
+ SupportsGettingByName, SupportsListing, SupportsDeletingById, SupportsDeletingByName {
}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringConfigurationService.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringConfigurationService.java
index b2bfed0f61dd2..74f0a24265153 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringConfigurationService.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringConfigurationService.java
@@ -15,9 +15,8 @@
* An immutable client-side representation of an Azure Spring Cloud Configuration Service.
*/
@Fluent
-public interface SpringConfigurationService
- extends ExternalChildResource,
- HasInnerModel {
+public interface SpringConfigurationService extends ExternalChildResource,
+ HasInnerModel {
/** @return cpu for the Configuration Service */
Double cpu();
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringConfigurationServices.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringConfigurationServices.java
index bc89fdf869f09..0265fb1cdd33d 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringConfigurationServices.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringConfigurationServices.java
@@ -13,7 +13,5 @@
* Entry point for Tanzu Configuration Service API.
*/
@Fluent
-public interface SpringConfigurationServices
- extends HasManager,
- HasParent {
+public interface SpringConfigurationServices extends HasManager, HasParent {
}
diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringService.java b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringService.java
index 24a6143bf66c4..95479bb1a9c4e 100644
--- a/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringService.java
+++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/src/main/java/com/azure/resourcemanager/appplatform/models/SpringService.java
@@ -18,10 +18,8 @@
/** An immutable client-side representation of an Azure Spring Service. */
@Fluent
-public interface SpringService
- extends GroupableResource,
- Refreshable,
- Updatable {
+public interface SpringService extends GroupableResource,
+ Refreshable, Updatable {
/** @return Sku of the service */
Sku sku();
@@ -100,19 +98,19 @@ public interface SpringService
SpringServiceRegistry getDefaultServiceRegistry();
/** Container interface for all the definitions that need to be implemented. */
- interface Definition
- extends DefinitionStages.Blank,
- DefinitionStages.WithGroup,
- DefinitionStages.WithCreate,
- DefinitionStages.WithEnterpriseTierCreate { }
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCreate,
+ DefinitionStages.WithEnterpriseTierCreate {
+ }
/** Grouping of all the spring service definition stages. */
interface DefinitionStages {
/** The first stage of the spring service definition. */
- interface Blank extends GroupableResource.DefinitionWithRegion { }
+ interface Blank extends GroupableResource.DefinitionWithRegion {
+ }
/** The stage of a spring service definition allowing to specify the resource group. */
- interface WithGroup extends GroupableResource.DefinitionStages.WithGroup { }
+ interface WithGroup extends GroupableResource.DefinitionStages.WithGroup {
+ }
/**
* The stage of a spring service definition allowing to specify sku.
@@ -214,7 +212,8 @@ interface WithConfigurationService {
* @param filePatterns patterns for configuration files to be selected from the git repository
* @return the next stage of spring service definition
*/
- WithEnterpriseTierCreate withGitRepository(String name, String uri, String branch, List filePatterns);
+ WithEnterpriseTierCreate withGitRepository(String name, String uri, String branch,
+ List filePatterns);
/**
* Specifies complete git repository configuration for the spring service.
@@ -251,35 +250,23 @@ interface WithCertificate {
* The stage of the definition which contains all the minimum required inputs for the resource of enterprise tier to be created,
* but also allows for any other optional settings to be specified.
*/
- interface WithEnterpriseTierCreate
- extends Creatable,
- Resource.DefinitionWithTags,
- WithSku,
- WithTracing,
- WithConfigurationService,
- WithCertificate { }
+ interface WithEnterpriseTierCreate extends Creatable, Resource.DefinitionWithTags,
+ WithSku, WithTracing, WithConfigurationService, WithCertificate {
+ }
/**
* The stage of the definition which contains all the minimum required inputs for the resource to be created,
* but also allows for any other optional settings to be specified.
*/
- interface WithCreate
- extends Creatable,
- Resource.DefinitionWithTags,
- WithSku,
- WithTracing,
- WithConfiguration,
- WithCertificate { }
+ interface WithCreate extends Creatable