diff --git a/azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/Application.java b/azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/Application.java index 2e48955457f1a..76f53760d5295 100644 --- a/azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/Application.java +++ b/azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/Application.java @@ -6,7 +6,7 @@ package com.microsoft.azure.management.batch; -import com.microsoft.azure.management.apigeneration.Fluent; +import com.microsoft.azure.management.apigeneration.LangDefinition; import com.microsoft.azure.management.batch.implementation.ApplicationInner; import com.microsoft.azure.management.resources.fluentcore.arm.models.ExternalChildResource; import com.microsoft.azure.management.resources.fluentcore.model.Attachable; @@ -18,7 +18,7 @@ /** * An immutable client-side representation of an Azure batch account application. */ -@Fluent +@LangDefinition() public interface Application extends ExternalChildResource, Wrapper { @@ -52,6 +52,7 @@ public interface Application extends * * @param the return type of the final {@link Attachable#attach()} */ + @LangDefinition(ContainerName = "~/Application.Definition", ContainerFileName = "IDefinition") interface Definition extends DefinitionStages.Blank, DefinitionStages.WithAttach { @@ -60,6 +61,7 @@ interface Definition extends /** * Grouping of all the storage account definition stages. */ + @LangDefinition(ContainerName = "~/Application.Definition", ContainerFileName = "IDefinition", IsContainerOnly = true) interface DefinitionStages { /** * The first stage of a batch account application definition. @@ -116,6 +118,7 @@ interface WithAttach extends * The entirety of a application definition as a part of parent update. * @param the return type of the final {@link Attachable#attach()} */ + @LangDefinition(ContainerName = "~/Application.UpdateDefinition", ContainerFileName = "IUpdateDefinition") interface UpdateDefinition extends UpdateDefinitionStages.Blank, UpdateDefinitionStages.WithAttach { @@ -124,6 +127,7 @@ interface UpdateDefinition extends /** * Grouping of application definition stages as part of parent batch account update. */ + @LangDefinition(ContainerName = "~/Application.UpdateDefinition", ContainerFileName = "IUpdateDefinition", IsContainerOnly = true) interface UpdateDefinitionStages { /** * The first stage of a application definition. @@ -180,6 +184,7 @@ interface WithAttach extends /** * Grouping of application update stages. */ + @LangDefinition(ContainerName = "~/Application.Update", ContainerFileName = "IUpdate", IsContainerOnly = true) interface UpdateStages { /** @@ -228,6 +233,7 @@ interface WithOptionalProperties { /** * The entirety of application update as a part of parent batch account update. */ + @LangDefinition(ContainerName = "~/Application.Update", ContainerFileName = "IUpdate") interface Update extends Settable, UpdateStages.WithOptionalProperties, diff --git a/azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/BatchAccount.java b/azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/BatchAccount.java index 019fb02919241..c32b9077acedf 100644 --- a/azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/BatchAccount.java +++ b/azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/BatchAccount.java @@ -6,8 +6,7 @@ package com.microsoft.azure.management.batch; -import com.microsoft.azure.management.apigeneration.Fluent; -import com.microsoft.azure.management.apigeneration.Method; +import com.microsoft.azure.management.apigeneration.LangDefinition; import com.microsoft.azure.management.batch.implementation.BatchAccountInner; import com.microsoft.azure.management.resources.fluentcore.arm.models.GroupableResource; import com.microsoft.azure.management.resources.fluentcore.arm.models.Resource; @@ -23,7 +22,7 @@ /** * An immutable client-side representation of an Azure batch account. */ -@Fluent +@LangDefinition() public interface BatchAccount extends GroupableResource, Refreshable, @@ -70,7 +69,6 @@ public interface BatchAccount extends /** * @return the access keys for this batch account */ - @Method BatchAccountKeys refreshKeys(); /** @@ -79,13 +77,11 @@ public interface BatchAccount extends * @param keyType either primary or secondary key to be regenerated * @return the access keys for this batch account */ - @Method BatchAccountKeys regenerateKeys(AccountKeyType keyType); /** * Synchronize the storage account keys for batch account. */ - @Method void synchronizeAutoStorageKeys(); /** @@ -100,6 +96,7 @@ public interface BatchAccount extends /** * Container interface for all the definitions that need to be implemented. */ + @LangDefinition(ContainerName = "~/BatchAccount.Definition", ContainerFileName = "IDefinition") interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, @@ -113,6 +110,7 @@ interface Definition extends /** * Grouping of all the storage account definition stages. */ + @LangDefinition(ContainerName = "~/BatchAccount.Definition", ContainerFileName = "IDefinition", IsContainerOnly = true) interface DefinitionStages { /** * The first stage of the batch account definition. @@ -195,6 +193,7 @@ interface WithCreate extends /** * The template for a storage account update operation, containing all the settings that can be modified. */ + @LangDefinition(ContainerName = "~/BatchAccount.Update", ContainerFileName = "IUpdate") interface Update extends Appliable, Resource.UpdateWithTags, @@ -205,6 +204,7 @@ interface Update extends /** * Grouping of all the storage account update stages. */ + @LangDefinition(ContainerName = "~/BatchAccount.Update", ContainerFileName = "IUpdate", IsContainerOnly = true) interface UpdateStages { /** * The stage of the batch account update definition allowing to specify storage account. diff --git a/azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/implementation/ApplicationImpl.java b/azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/implementation/ApplicationImpl.java index 2ffac29995161..937757a397d6d 100644 --- a/azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/implementation/ApplicationImpl.java +++ b/azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/implementation/ApplicationImpl.java @@ -10,7 +10,6 @@ import com.microsoft.azure.management.batch.Application; import com.microsoft.azure.management.batch.ApplicationPackage; import com.microsoft.azure.management.batch.BatchAccount; -import com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils; import com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.ExternalChildResourceImpl; import rx.Observable; import rx.functions.Func1; @@ -106,13 +105,12 @@ public Application call(List applications) { public Observable updateAsync() { final ApplicationImpl self = this; - String applicationId = ResourceUtils.nameFromResourceId(this.inner().id()); UpdateApplicationParametersInner updateParameter = new UpdateApplicationParametersInner(); updateParameter.withDisplayName(this.inner().displayName()); updateParameter.withAllowUpdates(this.inner().allowUpdates()); return this.client.updateAsync(this.parent().resourceGroupName(), - this.parent().name(), applicationId, updateParameter) + this.parent().name(), this.name(), updateParameter) .map(new Func1() { @Override public Application call(Void result) { diff --git a/azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/implementation/ApplicationPackagesImpl.java b/azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/implementation/ApplicationPackagesImpl.java index 543e2db2a247a..9c8edd4b6d22b 100644 --- a/azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/implementation/ApplicationPackagesImpl.java +++ b/azure-mgmt-batch/src/main/java/com/microsoft/azure/management/batch/implementation/ApplicationPackagesImpl.java @@ -6,6 +6,7 @@ package com.microsoft.azure.management.batch.implementation; +import com.microsoft.azure.management.apigeneration.LangDefinition; import com.microsoft.azure.management.batch.Application; import com.microsoft.azure.management.batch.ApplicationPackage; import com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.ExternalChildResourcesImpl; @@ -17,8 +18,9 @@ import java.util.Collections; /** - * Represents a applicationPackage collection associated with a virtual machine. + * Represents a applicationPackage collection associated with an application. */ +@LangDefinition class ApplicationPackagesImpl extends ExternalChildResourcesImpl