Skip to content

Commit

Permalink
Generated from afa8ccf350ace9279c30bc5f7df053fa3f65a476
Browse files Browse the repository at this point in the history
fix modal
  • Loading branch information
SDK Automation committed Sep 26, 2019
1 parent 4373d02 commit 1ec3594
Show file tree
Hide file tree
Showing 11 changed files with 825 additions and 104 deletions.
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.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
<version>0.0.3-beta</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-sqlvirtualmachine</artifactId>
<version>1.0.0-beta</version>
Expand Down Expand Up @@ -71,8 +71,6 @@
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
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 @@ -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 @@ -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 @@ -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

0 comments on commit 1ec3594

Please sign in to comment.