Skip to content
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
2 changes: 1 addition & 1 deletion sdk/sqlvirtualmachine/mgmt-v2017_03_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-sqlvirtualmachine</artifactId>
<version>1.0.0-beta</version>
<version>1.0.0-beta-1</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for SqlVirtualMachine Management</name>
<description>This package contains Microsoft SqlVirtualMachine Management SDK.</description>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.sqlvirtualmachine.v2017_03_01_preview;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Set disk storage settings for SQL Server.
*/
public class SQLStorageSettings {
/**
* Logical Unit Numbers for the disks.
*/
@JsonProperty(value = "luns")
private List<Integer> luns;

/**
* SQL Server default file path.
*/
@JsonProperty(value = "defaultFilePath")
private String defaultFilePath;

/**
* Get logical Unit Numbers for the disks.
*
* @return the luns value
*/
public List<Integer> luns() {
return this.luns;
}

/**
* Set logical Unit Numbers for the disks.
*
* @param luns the luns value to set
* @return the SQLStorageSettings object itself.
*/
public SQLStorageSettings withLuns(List<Integer> luns) {
this.luns = luns;
return this;
}

/**
* Get sQL Server default file path.
*
* @return the defaultFilePath value
*/
public String defaultFilePath() {
return this.defaultFilePath;
}

/**
* Set sQL Server default file path.
*
* @param defaultFilePath the defaultFilePath value to set
* @return the SQLStorageSettings object itself.
*/
public SQLStorageSettings withDefaultFilePath(String defaultFilePath) {
this.defaultFilePath = defaultFilePath;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public final class SqlServerLicenseType extends ExpandableStringEnum<SqlServerLi
/** Static value AHUB for SqlServerLicenseType. */
public static final SqlServerLicenseType AHUB = fromString("AHUB");

/** Static value DR for SqlServerLicenseType. */
public static final SqlServerLicenseType DR = fromString("DR");

/**
* Creates or finds a SqlServerLicenseType from its string representation.
* @param name a name to look for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,19 @@
package com.microsoft.azure.management.sqlvirtualmachine.v2017_03_01_preview;

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.sqlvirtualmachine.v2017_03_01_preview.implementation.SqlVirtualMachineInner;
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.sqlvirtualmachine.v2017_03_01_preview.implementation.SqlVirtualMachineManager;
import com.microsoft.azure.management.sqlvirtualmachine.v2017_03_01_preview.implementation.SqlVirtualMachineInner;
import java.util.Map;

/**
* Type representing SqlVirtualMachine.
*/
public interface SqlVirtualMachine extends HasInner<SqlVirtualMachineInner>, Resource, GroupableResourceCore<SqlVirtualMachineManager, SqlVirtualMachineInner>, HasResourceGroup, Refreshable<SqlVirtualMachine>, Updatable<SqlVirtualMachine.Update>, HasManager<SqlVirtualMachineManager> {
public interface SqlVirtualMachine extends HasInner<SqlVirtualMachineInner>, Indexable, Updatable<SqlVirtualMachine.Update>, HasManager<SqlVirtualMachineManager> {
/**
* @return the autoBackupSettings value.
*/
Expand All @@ -34,6 +32,11 @@ public interface SqlVirtualMachine extends HasInner<SqlVirtualMachineInner>, Res
*/
AutoPatchingSettings autoPatchingSettings();

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

/**
* @return the identity value.
*/
Expand All @@ -44,6 +47,16 @@ public interface SqlVirtualMachine extends HasInner<SqlVirtualMachineInner>, Res
*/
KeyVaultCredentialSettings keyVaultCredentialSettings();

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

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

/**
* @return the provisioningState value.
*/
Expand Down Expand Up @@ -79,6 +92,21 @@ public interface SqlVirtualMachine extends HasInner<SqlVirtualMachineInner>, Res
*/
String sqlVirtualMachineGroupResourceId();

/**
* @return the storageConfigurationSettings value.
*/
StorageConfigurationSettings storageConfigurationSettings();

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

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

/**
* @return the virtualMachineResourceId value.
*/
Expand All @@ -92,7 +120,7 @@ public interface SqlVirtualMachine extends HasInner<SqlVirtualMachineInner>, Res
/**
* The entirety of the SqlVirtualMachine definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCreate {
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithSqlVirtualMachineGroup, DefinitionStages.WithLocation, DefinitionStages.WithCreate {
}

/**
Expand All @@ -102,13 +130,31 @@ interface DefinitionStages {
/**
* The first stage of a SqlVirtualMachine definition.
*/
interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {
interface Blank extends WithSqlVirtualMachineGroup {
}

/**
* The stage of the SqlVirtualMachine definition allowing to specify the resource group.
* The stage of the sqlvirtualmachine definition allowing to specify SqlVirtualMachineGroup.
*/
interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCreate> {
interface WithSqlVirtualMachineGroup {
/**
* Specifies resourceGroupName.
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal
* @return the next definition stage
*/
WithLocation withExistingSqlVirtualMachineGroup(String resourceGroupName);
}

/**
* The stage of the sqlvirtualmachine 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 @@ -213,7 +259,7 @@ interface WithSqlManagement {
interface WithSqlServerLicenseType {
/**
* Specifies sqlServerLicenseType.
* @param sqlServerLicenseType SQL Server license type. Possible values include: 'PAYG', 'AHUB'
* @param sqlServerLicenseType SQL Server license type. Possible values include: 'PAYG', 'AHUB', 'DR'
* @return the next definition stage
*/
WithCreate withSqlServerLicenseType(SqlServerLicenseType sqlServerLicenseType);
Expand All @@ -231,6 +277,30 @@ interface WithSqlVirtualMachineGroupResourceId {
WithCreate withSqlVirtualMachineGroupResourceId(String sqlVirtualMachineGroupResourceId);
}

/**
* The stage of the sqlvirtualmachine definition allowing to specify StorageConfigurationSettings.
*/
interface WithStorageConfigurationSettings {
/**
* Specifies storageConfigurationSettings.
* @param storageConfigurationSettings Storage Configuration Settings
* @return the next definition stage
*/
WithCreate withStorageConfigurationSettings(StorageConfigurationSettings storageConfigurationSettings);
}

/**
* The stage of the sqlvirtualmachine 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 sqlvirtualmachine definition allowing to specify VirtualMachineResourceId.
*/
Expand Down Expand Up @@ -260,13 +330,13 @@ interface WithWsfcDomainCredentials {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<SqlVirtualMachine>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithAutoBackupSettings, DefinitionStages.WithAutoPatchingSettings, DefinitionStages.WithIdentity, DefinitionStages.WithKeyVaultCredentialSettings, DefinitionStages.WithServerConfigurationsManagementSettings, DefinitionStages.WithSqlImageOffer, DefinitionStages.WithSqlImageSku, DefinitionStages.WithSqlManagement, DefinitionStages.WithSqlServerLicenseType, DefinitionStages.WithSqlVirtualMachineGroupResourceId, DefinitionStages.WithVirtualMachineResourceId, DefinitionStages.WithWsfcDomainCredentials {
interface WithCreate extends Creatable<SqlVirtualMachine>, DefinitionStages.WithAutoBackupSettings, DefinitionStages.WithAutoPatchingSettings, DefinitionStages.WithIdentity, DefinitionStages.WithKeyVaultCredentialSettings, DefinitionStages.WithServerConfigurationsManagementSettings, DefinitionStages.WithSqlImageOffer, DefinitionStages.WithSqlImageSku, DefinitionStages.WithSqlManagement, DefinitionStages.WithSqlServerLicenseType, DefinitionStages.WithSqlVirtualMachineGroupResourceId, DefinitionStages.WithStorageConfigurationSettings, DefinitionStages.WithTags, DefinitionStages.WithVirtualMachineResourceId, DefinitionStages.WithWsfcDomainCredentials {
}
}
/**
* The template for a SqlVirtualMachine update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<SqlVirtualMachine>, Resource.UpdateWithTags<Update>, UpdateStages.WithAutoBackupSettings, UpdateStages.WithAutoPatchingSettings, UpdateStages.WithIdentity, UpdateStages.WithKeyVaultCredentialSettings, UpdateStages.WithServerConfigurationsManagementSettings, UpdateStages.WithSqlImageOffer, UpdateStages.WithSqlImageSku, UpdateStages.WithSqlManagement, UpdateStages.WithSqlServerLicenseType, UpdateStages.WithSqlVirtualMachineGroupResourceId, UpdateStages.WithVirtualMachineResourceId, UpdateStages.WithWsfcDomainCredentials {
interface Update extends Appliable<SqlVirtualMachine>, UpdateStages.WithAutoBackupSettings, UpdateStages.WithAutoPatchingSettings, UpdateStages.WithIdentity, UpdateStages.WithKeyVaultCredentialSettings, UpdateStages.WithServerConfigurationsManagementSettings, UpdateStages.WithSqlImageOffer, UpdateStages.WithSqlImageSku, UpdateStages.WithSqlManagement, UpdateStages.WithSqlServerLicenseType, UpdateStages.WithSqlVirtualMachineGroupResourceId, UpdateStages.WithStorageConfigurationSettings, UpdateStages.WithTags, UpdateStages.WithVirtualMachineResourceId, UpdateStages.WithWsfcDomainCredentials {
}

/**
Expand Down Expand Up @@ -375,7 +445,7 @@ interface WithSqlManagement {
interface WithSqlServerLicenseType {
/**
* Specifies sqlServerLicenseType.
* @param sqlServerLicenseType SQL Server license type. Possible values include: 'PAYG', 'AHUB'
* @param sqlServerLicenseType SQL Server license type. Possible values include: 'PAYG', 'AHUB', 'DR'
* @return the next update stage
*/
Update withSqlServerLicenseType(SqlServerLicenseType sqlServerLicenseType);
Expand All @@ -393,6 +463,30 @@ interface WithSqlVirtualMachineGroupResourceId {
Update withSqlVirtualMachineGroupResourceId(String sqlVirtualMachineGroupResourceId);
}

/**
* The stage of the sqlvirtualmachine update allowing to specify StorageConfigurationSettings.
*/
interface WithStorageConfigurationSettings {
/**
* Specifies storageConfigurationSettings.
* @param storageConfigurationSettings Storage Configuration Settings
* @return the next update stage
*/
Update withStorageConfigurationSettings(StorageConfigurationSettings storageConfigurationSettings);
}

/**
* The stage of the sqlvirtualmachine 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 sqlvirtualmachine update allowing to specify VirtualMachineResourceId.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,60 @@
package com.microsoft.azure.management.sqlvirtualmachine.v2017_03_01_preview;

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 com.microsoft.azure.management.sqlvirtualmachine.v2017_03_01_preview.implementation.SqlVirtualMachinesInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing SqlVirtualMachines.
*/
public interface SqlVirtualMachines extends SupportsCreating<SqlVirtualMachine.DefinitionStages.Blank>, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup<SqlVirtualMachine>, SupportsListingByResourceGroup<SqlVirtualMachine>, SupportsListing<SqlVirtualMachine>, HasInner<SqlVirtualMachinesInner> {
public interface SqlVirtualMachines extends SupportsCreating<SqlVirtualMachine.DefinitionStages.Blank>, HasInner<SqlVirtualMachinesInner> {
/**
* Gets a SQL virtual machine.
*
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param sqlVirtualMachineName Name of the SQL virtual machine.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<SqlVirtualMachine> getByResourceGroupAsync(String resourceGroupName, String sqlVirtualMachineName);

/**
* Deletes a SQL virtual machine.
*
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param sqlVirtualMachineName Name of the SQL virtual machine.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable deleteAsync(String resourceGroupName, String sqlVirtualMachineName);

/**
* Gets all SQL virtual machines in a subscription.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<SqlVirtualMachine> listAsync();

/**
* Gets all SQL virtual machines in a resource group.
*
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<SqlVirtualMachine> listByResourceGroupAsync(final String resourceGroupName);

/**
* Gets the list of sql virtual machines in a SQL virtual machine group.
*
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @param sqlVirtualMachineGroupName Name of the SQL virtual machine group.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<SqlVirtualMachine> listBySqlVmGroupAsync(final String resourceGroupName, final String sqlVirtualMachineGroupName);

}
Loading