Skip to content

Commit

Permalink
converting language annotations to the latest @fluent and removing re…
Browse files Browse the repository at this point in the history
…dundant ones from nested interfaces
  • Loading branch information
unknown authored and unknown committed Sep 21, 2016
1 parent 585139d commit c4ae77e
Show file tree
Hide file tree
Showing 24 changed files with 48 additions and 79 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

package com.microsoft.azure.management.resources;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.apigeneration.LangMethodDefinition;
import com.microsoft.azure.management.apigeneration.LangMethodDefinition.LangMethodType;
import com.microsoft.azure.management.resources.fluentcore.arm.Region;
Expand All @@ -25,7 +25,7 @@
/**
* An immutable client-side representation of an Azure deployment.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface Deployment extends
Refreshable<Deployment>,
Updatable<Deployment.Update>,
Expand Down Expand Up @@ -118,7 +118,6 @@ public interface Deployment extends
/**
* Container interface for all the deployment definitions.
*/
@LangDefinition(ContainerName = "~/Deployment.Definition")
interface Definition extends
DefinitionStages.Blank,
DefinitionStages.WithGroup,
Expand All @@ -131,7 +130,6 @@ interface Definition extends
/**
* Grouping of all the deployment definition stages.
*/
@LangDefinition(ContainerName = "~/Deployment.Definition", ContainerFileName = "IDefinition", IsContainerOnly = true)
interface DefinitionStages {
/**
* The first stage of deployment definition.
Expand Down Expand Up @@ -245,7 +243,6 @@ interface WithCreate extends Creatable<Deployment> {
/**
* Grouping of all the deployment updates stages.
*/
@LangDefinition(ContainerName = "~/Deployment.Update", ContainerFileName = "IUpdate", IsContainerOnly = true)
interface UpdateStages {
/**
* A deployment update allowing to change the deployment mode.
Expand Down Expand Up @@ -329,7 +326,6 @@ interface WithParameters {
* <p>
* Call {@link Update#apply()} to apply the changes to the deployment in Azure.
*/
@LangDefinition(ContainerName = "~/Deployment.Update")
interface Update extends
Appliable<Deployment>,
UpdateStages.WithTemplate,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

package com.microsoft.azure.management.resources;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.model.Wrapper;
import com.microsoft.azure.management.resources.implementation.DeploymentExportResultInner;

/**
* An immutable client-side representation of an Azure deployment template export result.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface DeploymentExportResult extends
Wrapper<DeploymentExportResultInner> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

package com.microsoft.azure.management.resources;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.model.Indexable;
import com.microsoft.azure.management.resources.fluentcore.model.Refreshable;
import com.microsoft.azure.management.resources.fluentcore.model.Wrapper;
Expand All @@ -16,7 +16,7 @@
/**
* An immutable client-side representation of a deployment operation.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface DeploymentOperation extends
Indexable,
Refreshable<DeploymentOperation>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

package com.microsoft.azure.management.resources;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingById;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing;

/**
* Entry point to deployment operation management API.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface DeploymentOperations extends
SupportsListing<DeploymentOperation>,
SupportsGettingById<DeploymentOperation> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

package com.microsoft.azure.management.resources;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
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 @@ -19,7 +19,7 @@
/**
* Entry point to template deployment in Azure.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface Deployments extends
SupportsCreating<Deployment.DefinitionStages.Blank>,
SupportsListing<Deployment>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

package com.microsoft.azure.management.resources;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.model.Indexable;
import com.microsoft.azure.management.resources.fluentcore.model.Wrapper;
import com.microsoft.azure.management.resources.implementation.FeatureResultInner;

/**
* An immutable client-side representation of an Azure feature.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface Feature extends
Indexable,
Wrapper<FeatureResultInner> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@

package com.microsoft.azure.management.resources;

import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByName;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing;

/**
* Entry point to features management API.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface Features extends
SupportsListing<Feature> {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

package com.microsoft.azure.management.resources;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.arm.models.GroupableResource;
import com.microsoft.azure.management.resources.fluentcore.arm.models.Resource;
import com.microsoft.azure.management.resources.fluentcore.model.Appliable;
Expand All @@ -19,7 +19,7 @@
/**
* An immutable client-side representation of an Azure generic resource.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface GenericResource extends
GroupableResource,
Refreshable<GenericResource>,
Expand Down Expand Up @@ -58,7 +58,6 @@ public interface GenericResource extends
/**
* The entirety of the generic resource definition.
*/
@LangDefinition(ContainerName = "~/GenericResource.Definition", ContainerFileName = "IDefinition")
interface Definition extends
DefinitionStages.Blank,
DefinitionStages.WithGroup,
Expand All @@ -73,7 +72,6 @@ interface Definition extends
/**
* Grouping of generic resource definition stages.
*/
@LangDefinition(ContainerName = "~/GenericResource.Definition", ContainerFileName = "IDefinition", IsContainerOnly = true)
interface DefinitionStages {
/**
* A generic resource definition allowing region to be specified.
Expand Down Expand Up @@ -184,7 +182,6 @@ interface WithCreate extends
/**
* Grouping of generic resource update stages.
*/
@LangDefinition(ContainerName = "~/GenericResource.Update", ContainerFileName = "IUpdate", IsContainerOnly = true)
interface UpdateStages {
/**
* A generic resource update allowing to change the resource properties.
Expand Down Expand Up @@ -252,7 +249,6 @@ interface WithApiVersion {
/**
* The template for a generic resource update operation, containing all the settings that can be modified.
*/
@LangDefinition(ContainerName = "~/GenericResource.Update")
interface Update extends
Appliable<GenericResource>,
UpdateStages.WithPlan,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

package com.microsoft.azure.management.resources;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingById;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsListingByGroup;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating;
Expand All @@ -16,7 +16,7 @@
/**
* Entry point to generic resources management API.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface GenericResources extends
SupportsListingByGroup<GenericResource>,
SupportsGettingById<GenericResource>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

package com.microsoft.azure.management.resources;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.model.Indexable;
import com.microsoft.azure.management.resources.fluentcore.model.Wrapper;
import com.microsoft.azure.management.resources.implementation.LocationInner;

/**
* An immutable client-side representation of an Azure location.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface Location extends
Indexable,
Wrapper<LocationInner> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

package com.microsoft.azure.management.resources;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.model.Indexable;
import com.microsoft.azure.management.resources.fluentcore.model.Wrapper;
import com.microsoft.azure.management.resources.implementation.ProviderInner;
Expand All @@ -16,7 +16,7 @@
/**
* An immutable client-side representation of an Azure resource provider.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface Provider extends
Indexable,
Wrapper<ProviderInner> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

package com.microsoft.azure.management.resources;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByName;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing;
import com.microsoft.rest.ServiceResponse;

/**
* Entry point to providers management API.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface Providers extends
SupportsListing<Provider>,
SupportsGettingByName<Provider> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
package com.microsoft.azure.management.resources;

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

/**
* Defines a connector that connects other resources to a resource group.
* Implementations of this class can let users browse resources inside a
* specific resource group.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface ResourceConnector {
/**
* Implementations of this interface defines how to create a connector.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

package com.microsoft.azure.management.resources;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.arm.models.GroupableResource;
import com.microsoft.azure.management.resources.fluentcore.arm.models.Resource;
import com.microsoft.azure.management.resources.fluentcore.model.Appliable;
Expand All @@ -20,7 +20,7 @@
/**
* An immutable client-side representation of an Azure resource group.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface ResourceGroup extends
Indexable,
Resource,
Expand Down Expand Up @@ -52,7 +52,6 @@ public interface ResourceGroup extends
/**
* Container interface for all the definitions that need to be implemented.
*/
@LangDefinition(ContainerName = "~/ResourceGroup.Definition", ContainerFileName = "IDefinition")
interface Definition extends
DefinitionStages.Blank,
DefinitionStages.WithCreate {
Expand All @@ -61,7 +60,6 @@ interface Definition extends
/**
* Grouping of all the resource group definition stages.
*/
@LangDefinition(ContainerName = "~/ResourceGroup.Definition", ContainerFileName = "IDefinition", IsContainerOnly = true)
interface DefinitionStages {
/**
* A resource group definition allowing location to be set.
Expand All @@ -83,7 +81,6 @@ interface WithCreate extends
/**
* Grouping of all the resource group update stages.
*/
@LangDefinition(ContainerName = "~/ResourceGroup.Update", ContainerFileName = "IUpdate")
interface UpdateStages {
}

Expand All @@ -92,7 +89,6 @@ interface UpdateStages {
* <p>
* Call {@link Update#apply()} to apply the changes to the resource group in Azure.
*/
@LangDefinition(ContainerName = "~/ResourceGroup.Update", ContainerFileName = "IUpdate")
interface Update extends
Appliable<ResourceGroup>,
Resource.UpdateWithTags<Update> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

package com.microsoft.azure.management.resources;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.model.Wrapper;
import com.microsoft.azure.management.resources.implementation.ResourceGroupExportResultInner;

/**
* An immutable client-side representation of an Azure deployment template export result.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface ResourceGroupExportResult extends
Wrapper<ResourceGroupExportResultInner> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

package com.microsoft.azure.management.resources;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByName;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsBatchCreation;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating;
Expand All @@ -16,7 +16,7 @@
/**
* Entry point to resource group management API.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface ResourceGroups extends
SupportsListing<ResourceGroup>,
SupportsGettingByName<ResourceGroup>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
package com.microsoft.azure.management.resources;

import com.microsoft.azure.PagedList;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.model.Indexable;
import com.microsoft.azure.management.resources.fluentcore.model.Wrapper;
import com.microsoft.azure.management.resources.implementation.SubscriptionInner;

/**
* An immutable client-side representation of an Azure subscription.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface Subscription extends
Indexable,
Wrapper<SubscriptionInner> {
Expand Down
Loading

0 comments on commit c4ae77e

Please sign in to comment.