Skip to content

Commit

Permalink
ensuring the latest @fluent annotations in compute
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Sep 21, 2016
1 parent db49185 commit 585139d
Show file tree
Hide file tree
Showing 27 changed files with 54 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package com.microsoft.azure.management.compute;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.compute.implementation.AvailabilitySetInner;
import com.microsoft.azure.management.resources.fluentcore.arm.models.GroupableResource;
import com.microsoft.azure.management.resources.fluentcore.arm.models.Resource;
Expand All @@ -20,7 +20,7 @@
/**
* An immutable client-side representation of an Azure availability set.
*/
@LangDefinition(ContainerName = "~/")
@Fluent()
public interface AvailabilitySet extends
GroupableResource,
Refreshable<AvailabilitySet>,
Expand Down Expand Up @@ -69,7 +69,6 @@ public interface AvailabilitySet extends
/**
* Container interface for all the definitions.
*/
@LangDefinition(ContainerName = "~/AvailabilitySet.Definition")
interface Definition extends
DefinitionStages.Blank,
DefinitionStages.WithGroup,
Expand All @@ -79,7 +78,6 @@ interface Definition extends
/**
* Grouping of availability set definition stages.
*/
@LangDefinition(ContainerName = "~/AvailabilitySet.Definition", ContainerFileName = "IDefinition", IsContainerOnly = true)
interface DefinitionStages {
/**
* The first stage of an availability set definition.
Expand Down Expand Up @@ -136,7 +134,6 @@ interface WithCreate extends
* <p>
* Call {@link Update#apply()} to apply the changes to the resource in Azure.
*/
@LangDefinition(ContainerName = "~/AvailabilitySet.Update")
interface Update extends
Appliable<AvailabilitySet>,
Resource.UpdateWithTags<Update> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.microsoft.azure.management.compute;

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 @@ -13,7 +13,7 @@
/**
* Entry point to availability set management API.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface AvailabilitySets extends
SupportsListingByGroup<AvailabilitySet>,
SupportsGettingByGroup<AvailabilitySet>,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.microsoft.azure.management.compute;

import com.microsoft.azure.PagedList;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.compute.implementation.VirtualMachineInner;
import com.microsoft.azure.management.network.Network;
import com.microsoft.azure.management.network.NetworkInterface;
Expand All @@ -22,7 +22,7 @@
/**
* An immutable client-side representation of an Azure virtual machine.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface VirtualMachine extends
GroupableResource,
Refreshable<VirtualMachine>,
Expand Down Expand Up @@ -227,7 +227,6 @@ public interface VirtualMachine extends
/**
* The entirety of the virtual machine definition.
*/
@LangDefinition(ContainerName = "~/VirtualMachine.Definition")
interface Definition extends
DefinitionStages.Blank,
DefinitionStages.WithGroup,
Expand All @@ -247,7 +246,6 @@ interface Definition extends
/**
* Grouping of virtual machine definition stages.
*/
@LangDefinition(ContainerName = "~/VirtualMachine.Definition", ContainerFileName = "IDefinition", IsContainerOnly = true)
interface DefinitionStages {
/**
* The first stage of a virtual machine definition.
Expand Down Expand Up @@ -820,7 +818,6 @@ interface WithCreate extends
/**
* Grouping of virtual machine update stages.
*/
@LangDefinition(ContainerName = "~/VirtualMachine.Update", ContainerFileName = "IUpdate", IsContainerOnly = true)
interface UpdateStages {
/**
* The stage of the virtual machine definition allowing to specify data disk configuration.
Expand Down Expand Up @@ -963,7 +960,6 @@ interface WithExtension {
* <p>
* Call {@link Update#apply()} to apply the changes to the resource in Azure.
*/
@LangDefinition(ContainerName = "~/VirtualMachine.Update")
interface Update extends
Appliable<VirtualMachine>,
Resource.UpdateWithTags<Update>,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.microsoft.azure.management.compute;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.arm.models.ChildResource;
import com.microsoft.azure.management.resources.fluentcore.model.Attachable;
import com.microsoft.azure.management.resources.fluentcore.model.Settable;
Expand All @@ -9,7 +9,7 @@
/**
* A data disk of a virtual machine.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface VirtualMachineDataDisk extends
Wrapper<DataDisk>,
ChildResource<VirtualMachine> {
Expand Down Expand Up @@ -68,7 +68,6 @@ public interface VirtualMachineDataDisk extends
/**
* Grouping of data disk definition stages applicable as part of a virtual machine creation.
*/
@LangDefinition(ContainerName = "~/VirtualMachineDataDisk.Definition", ContainerFileName = "IDefinition", IsContainerOnly = true)
interface DefinitionStages {
/**
* The first stage of a data disk definition.
Expand Down Expand Up @@ -165,7 +164,6 @@ interface WithAttach<ParentT> extends Attachable.InUpdate<ParentT> {
* The entirety of a data disk definition.
* @param <ParentT> the return type of the final {@link Attachable#attach()}
*/
@LangDefinition(ContainerName = "~/VirtualMachineDataDisk.Definition")
interface Definition<ParentT> extends
DefinitionStages.Blank<ParentT>,
DefinitionStages.WithAttach<ParentT>,
Expand All @@ -175,7 +173,6 @@ interface Definition<ParentT> extends
/**
* Grouping of data disk definition stages applicable as part of a virtual machine update.
*/
@LangDefinition(ContainerName = "~/VirtualMachineDataDisk.Update", ContainerFileName = "IUpdateDefinition", IsContainerOnly = true)
interface UpdateDefinitionStages {
/**
* The first stage of a data disk definition.
Expand Down Expand Up @@ -271,7 +268,6 @@ interface WithAttach<ParentT> extends Attachable.InDefinition<ParentT> {
/** The entirety of a data disk definition as part of a virtual machine update.
* @param <ParentT> the return type of the final {@link UpdateDefinitionStages.WithAttach#attach()}
*/
@LangDefinition(ContainerName = "~/VirtualMachineDataDisk.Update", ContainerFileName = "IUpdateDefinition")
interface UpdateDefinition<ParentT> extends
UpdateDefinitionStages.Blank<ParentT>,
UpdateDefinitionStages.WithAttach<ParentT>,
Expand All @@ -281,7 +277,6 @@ interface UpdateDefinition<ParentT> extends
/**
* Grouping of data disk update stages.
*/
@LangDefinition(ContainerName = "~/VirtualMachineDataDisk.Update", ContainerFileName = "IUpdate")
interface UpdateStages {
/**
* Specifies the new size in GB for data disk.
Expand Down Expand Up @@ -311,7 +306,6 @@ interface UpdateStages {
/**
* The entirety of a data disk update as part of a virtual machine update.
*/
@LangDefinition(ContainerName = "~/VirtualMachineDataDisk.Update")
interface Update extends
UpdateStages,
Settable<VirtualMachine.Update> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.microsoft.azure.management.compute;

import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.compute.implementation.VirtualMachineExtensionInner;
import com.microsoft.azure.management.resources.fluentcore.arm.models.ExternalChildResource;
import com.microsoft.azure.management.resources.fluentcore.model.Attachable;
Expand All @@ -13,6 +14,7 @@
* An immutable client-side representation of an Azure virtual machine extension.
* An extension associated with a virtual machine will be created from a {@link VirtualMachineExtensionImage }.
*/
@Fluent
public interface VirtualMachineExtension extends
ExternalChildResource<VirtualMachineExtension>,
Wrapper<VirtualMachineExtensionInner> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.microsoft.azure.management.compute;

import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.compute.implementation.VirtualMachineExtensionImageInner;
import com.microsoft.azure.management.resources.fluentcore.model.Wrapper;

Expand All @@ -8,6 +9,7 @@
* <p>
* Note: Azure virtual machine extension image is also referred as virtual machine extension handler.
*/
@Fluent
public interface VirtualMachineExtensionImage extends
Wrapper<VirtualMachineExtensionImageInner> {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package com.microsoft.azure.management.compute;

import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.compute.implementation.VirtualMachineExtensionImageInner;
import com.microsoft.azure.management.resources.fluentcore.model.Wrapper;

/**
* An immutable client-side representation of an Azure virtual machine extension image type.
*/
@Fluent
public interface VirtualMachineExtensionImageType extends
Wrapper<VirtualMachineExtensionImageInner> {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package com.microsoft.azure.management.compute;

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

/**
* Entry point to virtual machine image extension types.
*/
@Fluent
public interface VirtualMachineExtensionImageTypes extends SupportsListing<VirtualMachineExtensionImageType> {
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package com.microsoft.azure.management.compute;

import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.compute.implementation.VirtualMachineExtensionImageInner;
import com.microsoft.azure.management.resources.fluentcore.model.Wrapper;

/**
* An immutable client-side representation of an Azure virtual machine extension image version.
*/
@Fluent
public interface VirtualMachineExtensionImageVersion extends
Wrapper<VirtualMachineExtensionImageInner> {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package com.microsoft.azure.management.compute;

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

/**
* Entry point to virtual machine image extension versions.
*/
@Fluent
public interface VirtualMachineExtensionImageVersions extends SupportsListing<VirtualMachineExtensionImageVersion> {
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package com.microsoft.azure.management.compute;

import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListingByRegion;

/**
* Entry point to virtual machine extension image management API.
*/
@Fluent
public interface VirtualMachineExtensionImages extends SupportsListingByRegion<VirtualMachineExtensionImage> {
/**
* @return entry point to virtual machine extension image publishers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package com.microsoft.azure.management.compute;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.compute.implementation.VirtualMachineImageInner;
import com.microsoft.azure.management.resources.fluentcore.arm.Region;
import com.microsoft.azure.management.resources.fluentcore.model.Wrapper;
Expand All @@ -15,7 +15,7 @@
/**
* An immutable client-side representation of an Azure virtual machine image.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface VirtualMachineImage extends
Wrapper<VirtualMachineImageInner> {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
*/
package com.microsoft.azure.management.compute;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListingByRegion;

/**
* Entry point to virtual machine image management API.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface VirtualMachineImages extends
SupportsListingByRegion<VirtualMachineImage> {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.microsoft.azure.management.compute;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing;

/**
* Entry point to virtual machine sku images.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface VirtualMachineImagesInSku extends SupportsListing<VirtualMachineImage> {
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
*/
package com.microsoft.azure.management.compute;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.arm.Region;

/**
* Represents a virtual machine image offer.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface VirtualMachineOffer {
/**
* @return the region where this virtual machine image offer is available
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
*/
package com.microsoft.azure.management.compute;

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

/**
* Entry point to virtual machine image offers.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface VirtualMachineOffers extends SupportsListing<VirtualMachineOffer> {
}

Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
*/
package com.microsoft.azure.management.compute;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.arm.Region;

/**
* Represents a virtual machine image publisher.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface VirtualMachinePublisher {
/**
* @return the region where virtual machine images from this publisher is available
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
*/
package com.microsoft.azure.management.compute;

import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListingByRegion;

/**
* Entry point to virtual machine image publishers.
*/
@LangDefinition(ContainerName = "~/")
@Fluent
public interface VirtualMachinePublishers extends SupportsListingByRegion<VirtualMachinePublisher> {
}

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

import com.microsoft.azure.CloudException;
import com.microsoft.azure.PagedList;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.compute.implementation.VirtualMachineScaleSetInner;
import com.microsoft.azure.management.network.Backend;
Expand All @@ -24,7 +25,7 @@
/**
* An immutable client-side representation of an Azure virtual machine scale set.
*/
@LangDefinition()
@Fluent
public interface VirtualMachineScaleSet extends
GroupableResource,
Refreshable<VirtualMachineScaleSet>,
Expand Down
Loading

0 comments on commit 585139d

Please sign in to comment.