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

Merge upstream/master into jianghaolu/javadocs #1

Closed
wants to merge 43 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
6d87a60
Merge branch 'master' of github.com:Azure/azure-sdk-for-java
anuchandy May 17, 2016
76f9a8c
Merge branch 'master' of github.com:Azure/azure-sdk-for-java
anuchandy May 18, 2016
eca38a2
Defining fluent flow for attaching multiple data disks
anuchandy May 18, 2016
faba238
generating names for os, data disks and it's vhds
anuchandy May 18, 2016
0e68a27
remainder of the PublicIPAddress model
May 19, 2016
8f6efef
Adding some javadocs and rename location to region
anuchandy May 19, 2016
f38ad56
reverting some changes
anuchandy May 19, 2016
562dd51
Merge remote-tracking branch 'upstream/master'
May 19, 2016
874bf4e
minor test correction
May 19, 2016
e2726f8
Merge remote-tracking branch 'upstream/master'
May 19, 2016
0cf43cf
PublicIPAddress and related javadocs
May 19, 2016
05cffdc
addressing spacing feedback
May 19, 2016
b5541db
cleaning up redundant public keywords
May 19, 2016
ea7a477
refining the consistency in Update/Updatable naming.
May 19, 2016
f357496
refining the PublicIPAddress test
May 19, 2016
8d1c294
Merge remote-tracking branch 'upstream/master'
anuchandy May 19, 2016
b36afa8
enabling .withDefaultSubscription() to use the first subscription fro…
May 20, 2016
8ee11ab
Merge pull request #722 from martinsawicki/master
anuchandy May 20, 2016
c3d5070
Addressing checkstyle errors in VirtualMachine.java
anuchandy May 20, 2016
63688ad
Merge remote-tracking branch 'upstream/master'
anuchandy May 20, 2016
bebdec5
Squashed 'runtimes/' changes from 6cdb496..0bcf347
jianghaolu May 20, 2016
0dc91c9
Merge commit 'bebdec5b1bbf8d0d2b6be78eb00cd2fc85646763' into checkstyle
jianghaolu May 20, 2016
4056423
Addressing more checkstyle errors
anuchandy May 20, 2016
7ed9047
AvailabilitySet refinements, javadocs, bug fixes
May 20, 2016
6a67c08
Merge remote-tracking branch 'upstream/master'
May 20, 2016
f35826e
Addressing more stylecheck errors
anuchandy May 20, 2016
acf16ff
Merge pull request #719 from anuchandy/master
jianghaolu May 20, 2016
63aa47f
Optional suppression file for maven scenario
jianghaolu May 21, 2016
3fe9441
Merge remote-tracking branch 'upstream/master'
May 21, 2016
f0fac10
PublicIPAddress refinements, bug fixes, javadoc clean up
May 21, 2016
6aaadad
refactoring PublicIPAddress tests using an abstract TestTemplate class
May 21, 2016
22454c0
fixing tagging support (.tags()/.withTag())
May 21, 2016
732953c
adding .update()/.apply() support to AvailabilitySet
May 21, 2016
8471d7f
minor corrections in public IP address support
May 22, 2016
1e7a6b6
minor fixes to public IP adress
May 22, 2016
6911ed7
minor corrections to availability set support
May 22, 2016
1270642
minor simplification to the Update interfaces on PublicIpAddress
May 23, 2016
5d628e8
Merge pull request #725 from martinsawicki/master
jianghaolu May 23, 2016
24306d9
Add checkstyle to travis build
jianghaolu May 23, 2016
e557491
Move checkstyle to build-tools
jianghaolu May 23, 2016
caa713b
Update travis to install build tools
jianghaolu May 23, 2016
0074034
Making corresponding changes to gradle
jianghaolu May 23, 2016
e0d20b2
Merge pull request #723 from jianghaolu/checkstyle
jianghaolu May 23, 2016
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
2 changes: 0 additions & 2 deletions azure-batch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<checkstyle.config.location>${project.basedir}/../tools/checkstyle.xml</checkstyle.config.location>
<checkstyle.suppressions.location>${project.basedir}/../tools/suppressions.xml</checkstyle.suppressions.location>
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
</properties>

Expand Down
2 changes: 0 additions & 2 deletions azure-mgmt-compute/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<checkstyle.config.location>${project.basedir}/../tools/checkstyle.xml</checkstyle.config.location>
<checkstyle.suppressions.location>${project.basedir}/../tools/suppressions.xml</checkstyle.suppressions.location>
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,66 +3,113 @@
import com.microsoft.azure.management.compute.implementation.api.AvailabilitySetInner;
import com.microsoft.azure.management.compute.implementation.api.InstanceViewStatus;
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;
import com.microsoft.azure.management.resources.fluentcore.model.Creatable;
import com.microsoft.azure.management.resources.fluentcore.model.Refreshable;
import com.microsoft.azure.management.resources.fluentcore.model.Updatable;
import com.microsoft.azure.management.resources.fluentcore.model.Wrapper;

import java.util.List;

/**
* An immutable client-side representation of an Azure availability set.
*/
public interface AvailabilitySet extends
GroupableResource,
Refreshable<AvailabilitySet>,
Wrapper<AvailabilitySetInner> {
Wrapper<AvailabilitySetInner>,
Updatable<AvailabilitySet.Update> {

/**
* Get the update domain count of availability set, an update domain represents the group of virtual
* Returns the update domain count of an availability set.
* <p>
* An update domain represents the group of virtual
* machines and underlying physical hardware that can be rebooted at the same time.
*
* @return the platformUpdateDomainCount value
* @return the update domain count
*/
Integer updateDomainCount();
int updateDomainCount();

/**
* Get the fault domain count of availability set., a fault domain represents the group of virtual
* Returns the fault domain count of availability set.
* <p>
* A fault domain represents the group of virtual
* machines that shares common power source and network switch.
*
* @return the platformUpdateDomainCount value
* @return the fault domain count
*/
Integer FaultDomainCount();
int faultDomainCount();

/**
* Get the list of ids of virtual machines in the availability set.
* Lists the resource IDs of the virtual machines in the availability set.
*
* @return the virtualMachineIds value
* @return list of resource ID strings
*/
List<String> virtualMachineIds();

/**
* Get the list of virtual machines in the availability set.
* Lists the virtual machines in the availability set.
*
* @return the virtualMachineIds value
* @return list of virtual machines
*/
List<VirtualMachine> virtualMachines() throws Exception;

/**
* Get the statuses value.
* Lists the statuses of the existing virtual machines in the availability set.
*
* @return the statuses value
* @return list of virtual machine statuses
*/
List<InstanceViewStatus> statuses();


/**************************************************************
* Fluent interfaces to provision an AvailabilitySet
**************************************************************/

/**
* The first stage of an availability set definition
*/
interface DefinitionBlank extends GroupableResource.DefinitionWithRegion<DefinitionWithGroup> {
}

/**
* The stage of the availability set definition allowing to specify the resource group
*/
interface DefinitionWithGroup extends GroupableResource.DefinitionWithGroup<DefinitionCreatable> {
}

interface DefinitionCreatable extends Creatable<AvailabilitySet> {
DefinitionCreatable withUpdateDomainCount(Integer updateDomainCount);
DefinitionCreatable withFaultDomainCount(Integer faultDomainCount);
/**
* The stage of an availability set definition which contains all the minimum required inputs for
* the resource to be created (via {@link DefinitionCreatable#create()}), but also allows
* for any other optional settings to be specified.
*/
interface DefinitionCreatable extends
Creatable<AvailabilitySet>,
Resource.DefinitionWithTags<DefinitionCreatable> {
/**
* Specifies the update domain count for the availability set.
* @param updateDomainCount update domain count
* @return the next stage of the resource definition
*/
DefinitionCreatable withUpdateDomainCount(int updateDomainCount);

/**
* Specifies the fault domain count for the availability set.
* @param faultDomainCount fault domain count
* @return the next stage of the resource definition
*/
DefinitionCreatable withFaultDomainCount(int faultDomainCount);
}

/**
* The template for an availability set update operation, containing all the settings that
* can be modified.
* <p>
* Call {@link Update#apply()} to apply the changes to the resource in Azure.
*/
interface Update extends
Appliable<AvailabilitySet>,
Resource.UpdateWithTags<Update> {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsDeleting;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing;

/**
* Entry point to availability set management API.
*/
public interface AvailabilitySets extends
SupportsListing<AvailabilitySet>,
SupportsListingByGroup<AvailabilitySet>,
SupportsGettingByGroup<AvailabilitySet>,
SupportsCreating<AvailabilitySet.DefinitionBlank>,
SupportsDeleting,
SupportsDeletingByGroup {
/**
* Entry point to availability set management API within a specific resource group.
*/
interface InGroup extends
SupportsListing<AvailabilitySet>,
SupportsCreating<AvailabilitySet.DefinitionCreatable>,
Expand Down
Loading