Skip to content
Draft
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
4 changes: 2 additions & 2 deletions sdk/compute/mgmt-v2019_07_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.3.2</version>
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-compute</artifactId>
<version>1.0.0-beta</version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public interface VirtualMachine extends HasInner<VirtualMachineInner>, Indexable
/**
* The entirety of the VirtualMachine definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate {
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithLocation, DefinitionStages.WithCreate {
}

/**
Expand All @@ -172,15 +172,15 @@ interface Blank extends WithLocation {
}

/**
* The stage of the virtualmachine definition allowing to specify resource group.
* The stage of the virtualmachine definition allowing to specify Location.
*/
interface WithResourceGroup {
interface WithLocation {
/**
* Specifies resourceGroupName.
* @param resourceGroupName The name of the resource group
* @return the next definition stage
*/
WithLocation withExistingResourceGroup(String resourceGroupName);
WithLocation withExistingLocation(String resourceGroupName);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,21 @@
package com.microsoft.azure.management.compute.v2019_07_01;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.Resource;
import com.microsoft.azure.arm.resources.models.GroupableResourceCore;
import com.microsoft.azure.arm.resources.models.HasResourceGroup;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.management.compute.v2019_07_01.implementation.VirtualMachineScaleSetInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Updatable;
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.compute.v2019_07_01.implementation.ComputeManager;
import java.util.Map;
import com.microsoft.azure.SubResource;
import java.util.List;
import com.microsoft.azure.management.compute.v2019_07_01.implementation.VirtualMachineScaleSetInner;

/**
* Type representing VirtualMachineScaleSet.
*/
public interface VirtualMachineScaleSet extends HasInner<VirtualMachineScaleSetInner>, Resource, GroupableResourceCore<ComputeManager, VirtualMachineScaleSetInner>, HasResourceGroup, Refreshable<VirtualMachineScaleSet>, Updatable<VirtualMachineScaleSet.Update>, HasManager<ComputeManager> {
public interface VirtualMachineScaleSet extends HasInner<VirtualMachineScaleSetInner>, Indexable, Updatable<VirtualMachineScaleSet.Update>, HasManager<ComputeManager> {
/**
* @return the additionalCapabilities value.
*/
Expand All @@ -41,11 +39,26 @@ public interface VirtualMachineScaleSet extends HasInner<VirtualMachineScaleSetI
*/
Boolean doNotRunExtensionsOnOverprovisionedVMs();

/**
* @return the id value.
*/
String id();

/**
* @return the identity value.
*/
VirtualMachineScaleSetIdentity identity();

/**
* @return the location value.
*/
String location();

/**
* @return the name value.
*/
String name();

/**
* @return the overprovision value.
*/
Expand Down Expand Up @@ -86,6 +99,16 @@ public interface VirtualMachineScaleSet extends HasInner<VirtualMachineScaleSetI
*/
Sku sku();

/**
* @return the tags value.
*/
Map<String, String> tags();

/**
* @return the type value.
*/
String type();

/**
* @return the uniqueId value.
*/
Expand Down Expand Up @@ -114,7 +137,7 @@ public interface VirtualMachineScaleSet extends HasInner<VirtualMachineScaleSetI
/**
* The entirety of the VirtualMachineScaleSet definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCreate {
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithLocation, DefinitionStages.WithCreate {
}

/**
Expand All @@ -124,13 +147,31 @@ interface DefinitionStages {
/**
* The first stage of a VirtualMachineScaleSet definition.
*/
interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {
interface Blank extends WithLocation {
}

/**
* The stage of the VirtualMachineScaleSet definition allowing to specify the resource group.
* The stage of the virtualmachinescaleset definition allowing to specify Location.
*/
interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCreate> {
interface WithLocation {
/**
* Specifies resourceGroupName.
* @param resourceGroupName The name of the resource group
* @return the next definition stage
*/
WithLocation withExistingLocation(String resourceGroupName);
}

/**
* The stage of the virtualmachinescaleset definition allowing to specify Location.
*/
interface WithLocation {
/**
* Specifies location.
* @param location Resource location
* @return the next definition stage
*/
WithCreate withLocation(String location);
}

/**
Expand Down Expand Up @@ -265,6 +306,18 @@ interface WithSku {
WithCreate withSku(Sku sku);
}

/**
* The stage of the virtualmachinescaleset definition allowing to specify Tags.
*/
interface WithTags {
/**
* Specifies tags.
* @param tags Resource tags
* @return the next definition stage
*/
WithCreate withTags(Map<String, String> tags);
}

/**
* The stage of the virtualmachinescaleset definition allowing to specify UpgradePolicy.
*/
Expand Down Expand Up @@ -318,13 +371,13 @@ interface WithZones {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<VirtualMachineScaleSet>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithAdditionalCapabilities, DefinitionStages.WithAutomaticRepairsPolicy, DefinitionStages.WithDoNotRunExtensionsOnOverprovisionedVMs, DefinitionStages.WithIdentity, DefinitionStages.WithOverprovision, DefinitionStages.WithPlan, DefinitionStages.WithPlatformFaultDomainCount, DefinitionStages.WithProximityPlacementGroup, DefinitionStages.WithScaleInPolicy, DefinitionStages.WithSinglePlacementGroup, DefinitionStages.WithSku, DefinitionStages.WithUpgradePolicy, DefinitionStages.WithVirtualMachineProfile, DefinitionStages.WithZoneBalance, DefinitionStages.WithZones {
interface WithCreate extends Creatable<VirtualMachineScaleSet>, DefinitionStages.WithAdditionalCapabilities, DefinitionStages.WithAutomaticRepairsPolicy, DefinitionStages.WithDoNotRunExtensionsOnOverprovisionedVMs, DefinitionStages.WithIdentity, DefinitionStages.WithOverprovision, DefinitionStages.WithPlan, DefinitionStages.WithPlatformFaultDomainCount, DefinitionStages.WithProximityPlacementGroup, DefinitionStages.WithScaleInPolicy, DefinitionStages.WithSinglePlacementGroup, DefinitionStages.WithSku, DefinitionStages.WithTags, DefinitionStages.WithUpgradePolicy, DefinitionStages.WithVirtualMachineProfile, DefinitionStages.WithZoneBalance, DefinitionStages.WithZones {
}
}
/**
* The template for a VirtualMachineScaleSet update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<VirtualMachineScaleSet>, Resource.UpdateWithTags<Update>, UpdateStages.WithAdditionalCapabilities, UpdateStages.WithAutomaticRepairsPolicy, UpdateStages.WithDoNotRunExtensionsOnOverprovisionedVMs, UpdateStages.WithIdentity, UpdateStages.WithOverprovision, UpdateStages.WithPlan, UpdateStages.WithProximityPlacementGroup, UpdateStages.WithScaleInPolicy, UpdateStages.WithSinglePlacementGroup, UpdateStages.WithSku, UpdateStages.WithUpgradePolicy, UpdateStages.WithVirtualMachineProfile {
interface Update extends Appliable<VirtualMachineScaleSet>, UpdateStages.WithAdditionalCapabilities, UpdateStages.WithAutomaticRepairsPolicy, UpdateStages.WithDoNotRunExtensionsOnOverprovisionedVMs, UpdateStages.WithIdentity, UpdateStages.WithOverprovision, UpdateStages.WithPlan, UpdateStages.WithProximityPlacementGroup, UpdateStages.WithScaleInPolicy, UpdateStages.WithSinglePlacementGroup, UpdateStages.WithSku, UpdateStages.WithTags, UpdateStages.WithUpgradePolicy, UpdateStages.WithVirtualMachineProfile {
}

/**
Expand Down Expand Up @@ -451,6 +504,18 @@ interface WithSku {
Update withSku(Sku sku);
}

/**
* The stage of the virtualmachinescaleset update allowing to specify Tags.
*/
interface WithTags {
/**
* Specifies tags.
* @param tags Resource tags
* @return the next update stage
*/
Update withTags(Map<String, String> tags);
}

/**
* The stage of the virtualmachinescaleset update allowing to specify UpgradePolicy.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public interface VirtualMachineScaleSetVMs extends HasInner<VirtualMachineScaleS
Completable redeployAsync(String resourceGroupName, String vmScaleSetName, String instanceId);

/**
* Performs maintenance on a virtual machine in a VM scale set.
* Shuts down the virtual machine in a VMScaleSet, moves it to an already updated node, and powers it back on during the self-service phase of planned maintenance.
*
* @param resourceGroupName The name of the resource group.
* @param vmScaleSetName The name of the VM scale set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@
package com.microsoft.azure.management.compute.v2019_07_01;

import com.microsoft.azure.arm.collection.SupportsCreating;
import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup;
import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion;
import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup;
import rx.Observable;
import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup;
import com.microsoft.azure.arm.collection.SupportsListing;
import rx.Completable;
import java.util.List;
import com.microsoft.azure.management.compute.v2019_07_01.implementation.VirtualMachineScaleSetsInner;
Expand All @@ -24,7 +19,27 @@
/**
* Type representing VirtualMachineScaleSets.
*/
public interface VirtualMachineScaleSets extends SupportsCreating<VirtualMachineScaleSet.DefinitionStages.Blank>, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup<VirtualMachineScaleSet>, SupportsListingByResourceGroup<VirtualMachineScaleSet>, SupportsListing<VirtualMachineScaleSet>, HasInner<VirtualMachineScaleSetsInner> {
public interface VirtualMachineScaleSets extends SupportsCreating<VirtualMachineScaleSet.DefinitionStages.Blank>, HasInner<VirtualMachineScaleSetsInner> {
/**
* Deletes a VM scale set.
*
* @param resourceGroupName The name of the resource group.
* @param vmScaleSetName The name of the VM scale set.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable deleteAsync(String resourceGroupName, String vmScaleSetName);

/**
* Display information about a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group.
* @param vmScaleSetName The name of the VM scale set.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<VirtualMachineScaleSet> getByResourceGroupAsync(String resourceGroupName, String vmScaleSetName);

/**
* Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates.
*
Expand Down Expand Up @@ -168,6 +183,32 @@ public interface VirtualMachineScaleSets extends SupportsCreating<VirtualMachine
*/
Completable convertToSinglePlacementGroupAsync(String resourceGroupName, String vmScaleSetName);

/**
* Gets a list of all VM scale sets under a resource group.
*
* @param resourceGroupName The name of the resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<VirtualMachineScaleSet> listByResourceGroupAsync(final String resourceGroupName);

/**
* Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<VirtualMachineScaleSet> listAsync();

/**
* Gets all the VM scale sets under the specified subscription for the specified location.
*
* @param location The location for which VM scale sets under the subscription are queried.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<VirtualMachineScaleSet> listByLocationAsync(final String location);

/**
* Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public interface VirtualMachines {
Observable<VirtualMachineInstanceView> instanceViewAsync(String resourceGroupName, String vmName);

/**
* Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation.
* Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. &lt;br&gt;For Windows, please refer to [Convert a virtual machine from unmanaged disks to managed disks.](https://docs.microsoft.com/en-us/azure/virtual-machines/windows/convert-unmanaged-to-managed-disks).&lt;br&gt;For Linux, please refer to [Convert a virtual machine from unmanaged disks to managed disks.](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/convert-unmanaged-to-managed-disks).
*
* @param resourceGroupName The name of the resource group.
* @param vmName The name of the virtual machine.
Expand Down Expand Up @@ -165,7 +165,7 @@ public interface VirtualMachines {
Completable reimageAsync(String resourceGroupName, String vmName);

/**
* The operation to perform maintenance on a virtual machine.
* Shuts down the virtual machine, moves it to an already updated node, and powers it back on during the self-service phase of planned maintenance.
*
* @param resourceGroupName The name of the resource group.
* @param vmName The name of the virtual machine.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,19 @@ public VirtualMachinesInner virtualMachines() {
return this.virtualMachines;
}

/**
* The VirtualMachineScaleSetsInner object to access its operations.
*/
private VirtualMachineScaleSetsInner virtualMachineScaleSets;

/**
* Gets the VirtualMachineScaleSetsInner object to access its operations.
* @return the VirtualMachineScaleSetsInner object.
*/
public VirtualMachineScaleSetsInner virtualMachineScaleSets() {
return this.virtualMachineScaleSets;
}

/**
* The VirtualMachineSizesInner object to access its operations.
*/
Expand All @@ -278,19 +291,6 @@ public ImagesInner images() {
return this.images;
}

/**
* The VirtualMachineScaleSetsInner object to access its operations.
*/
private VirtualMachineScaleSetsInner virtualMachineScaleSets;

/**
* Gets the VirtualMachineScaleSetsInner object to access its operations.
* @return the VirtualMachineScaleSetsInner object.
*/
public VirtualMachineScaleSetsInner virtualMachineScaleSets() {
return this.virtualMachineScaleSets;
}

/**
* The VirtualMachineScaleSetExtensionsInner object to access its operations.
*/
Expand Down Expand Up @@ -543,9 +543,9 @@ protected void initialize() {
this.virtualMachineImages = new VirtualMachineImagesInner(restClient().retrofit(), this);
this.usages = new UsagesInner(restClient().retrofit(), this);
this.virtualMachines = new VirtualMachinesInner(restClient().retrofit(), this);
this.virtualMachineScaleSets = new VirtualMachineScaleSetsInner(restClient().retrofit(), this);
this.virtualMachineSizes = new VirtualMachineSizesInner(restClient().retrofit(), this);
this.images = new ImagesInner(restClient().retrofit(), this);
this.virtualMachineScaleSets = new VirtualMachineScaleSetsInner(restClient().retrofit(), this);
this.virtualMachineScaleSetExtensions = new VirtualMachineScaleSetExtensionsInner(restClient().retrofit(), this);
this.virtualMachineScaleSetRollingUpgrades = new VirtualMachineScaleSetRollingUpgradesInner(restClient().retrofit(), this);
this.virtualMachineScaleSetVMExtensions = new VirtualMachineScaleSetVMExtensionsInner(restClient().retrofit(), this);
Expand Down
Loading