Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ready for Review] Added annotations for Batch #1082

Merged
merged 1 commit into from
Sep 17, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions azure-mgmt-batch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@
<artifactId>azure-mgmt-storage</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>api-annotations</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down Expand Up @@ -116,6 +121,24 @@
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<annotationProcessors>
<annotationProcessor>
com.microsoft.azure.management.apigeneration.LangDefinitionProcessor</annotationProcessor>
</annotationProcessors>
<debug>true</debug>
<optimize>true</optimize>
<compilerArguments>
<AaddGeneratedAnnotation>true</AaddGeneratedAnnotation>
<Adebug>true</Adebug>
</compilerArguments>
</configuration>
</plugin>

</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

package com.microsoft.azure.management.batch;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.LangMethodDefinition;
import com.microsoft.azure.management.apigeneration.LangMethodDefinition.LangMethodType;
import com.microsoft.azure.management.batch.implementation.AccountResourceInner;
import com.microsoft.azure.management.resources.fluentcore.arm.models.GroupableResource;
import com.microsoft.azure.management.resources.fluentcore.arm.models.Resource;
Expand All @@ -19,6 +22,7 @@
/**
* An immutable client-side representation of an Azure batch account.
*/
@LangDefinition(ContainerName = "~/")
public interface BatchAccount extends
GroupableResource,
Refreshable<BatchAccount>,
Expand Down Expand Up @@ -60,11 +64,13 @@ public interface BatchAccount extends
/**
* @return the access keys for this batch account
*/
@LangMethodDefinition(AsType = LangMethodType.Method)
BatchAccountKeys keys();

/**
* @return the access keys for this batch account
*/
@LangMethodDefinition(AsType = LangMethodType.Method)
BatchAccountKeys refreshKeys();

/**
Expand All @@ -73,6 +79,7 @@ public interface BatchAccount extends
* @param keyType either primary or secondary key to be regenerated
* @return the access keys for this batch account
*/
@LangMethodDefinition(AsType = LangMethodType.Method)
BatchAccountKeys regenerateKeys(AccountKeyType keyType);

/**
Expand All @@ -87,6 +94,7 @@ public interface BatchAccount extends
/**
* Container interface for all the definitions that need to be implemented.
*/
@LangDefinition(ContainerName = "~/BatchAccount.Definition")
interface Definition extends
DefinitionStages.Blank,
DefinitionStages.WithGroup,
Expand All @@ -96,6 +104,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.
Expand Down Expand Up @@ -147,6 +156,7 @@ interface WithCreate extends
/**
* The template for a storage account update operation, containing all the settings that can be modified.
*/
@LangDefinition(ContainerName = "~/BatchAccount.Update")
interface Update extends
Appliable<BatchAccount>,
Resource.UpdateWithTags<Update>,
Expand All @@ -156,6 +166,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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
package com.microsoft.azure.management.batch;

import com.microsoft.azure.management.apigeneration.LangDefinition;

/**
* Created by ans on 9/13/2016.
* This class represents the access keys for the batch account.
*/
@LangDefinition
public class BatchAccountKeys {
/**
* The primary key associated with the account.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.microsoft.azure.management.batch;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsDeletingByGroup;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByGroup;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingById;
Expand All @@ -12,6 +13,7 @@
/**
* Entry point to batch account management API.
*/
@LangDefinition(ContainerName = "~/")
public interface BatchAccounts extends
SupportsCreating<BatchAccount.DefinitionStages.Blank>,
SupportsListing<BatchAccount>,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.microsoft.azure.management.batch.implementation;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.batch.AccountKeyType;
import com.microsoft.azure.management.batch.AccountProvisioningState;
import com.microsoft.azure.management.batch.AutoStorageBaseProperties;
Expand All @@ -16,6 +17,7 @@
/**
* Implementation for BatchAccount and its parent interfaces.
*/
@LangDefinition
public class BatchAccountImpl
extends
GroupableResourceImpl<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.microsoft.azure.management.batch.implementation;

import com.microsoft.azure.PagedList;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.batch.BatchAccount;
import com.microsoft.azure.management.batch.BatchAccounts;
import com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils;
Expand All @@ -10,6 +11,7 @@
/**
* Implementation for BatchAccounts and its parent interfaces.
*/
@LangDefinition
public class BatchAccountsImpl
extends GroupableResourcesImpl<BatchAccount, BatchAccountImpl, AccountResourceInner, AccountsInner, BatchManager>
implements BatchAccounts {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import com.microsoft.rest.credentials.ServiceClientCredentials;

/**
* Entry point to Azure batch account resource management.
* Entry point to Azure Batch Account resource management.
*/
public class BatchManager extends Manager<BatchManager, BatchManagementClientImpl> {

Expand Down