Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
import com.microsoft.azure.arm.model.Refreshable;
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.hanaonazure.v2017_11_03_preview.implementation.HanaOnAzureManager;
import java.util.Map;
import com.microsoft.azure.management.hanaonazure.v2017_11_03_preview.implementation.HanaInstanceInner;

/**
Expand Down Expand Up @@ -49,11 +49,21 @@ public interface HanaInstance extends HasInner<HanaInstanceInner>, Resource, Gro
*/
OSProfile osProfile();

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

/**
* @return the powerState value.
*/
HanaInstancePowerStateEnum powerState();

/**
* @return the provisioningState value.
*/
HanaProvisioningStatesEnum provisioningState();

/**
* @return the proximityPlacementGroup value.
*/
Expand All @@ -64,26 +74,140 @@ public interface HanaInstance extends HasInner<HanaInstanceInner>, Resource, Gro
*/
StorageProfile storageProfile();

/**
* The entirety of the HanaInstance definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCreate {
}

/**
* Grouping of HanaInstance definition stages.
*/
interface DefinitionStages {
/**
* The first stage of a HanaInstance definition.
*/
interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {
}

/**
* The stage of the HanaInstance definition allowing to specify the resource group.
*/
interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCreate> {
}

/**
* The stage of the hanainstance definition allowing to specify HardwareProfile.
*/
interface WithHardwareProfile {
/**
* Specifies hardwareProfile.
* @param hardwareProfile Specifies the hardware settings for the HANA instance
* @return the next definition stage
*/
WithCreate withHardwareProfile(HardwareProfile hardwareProfile);
}

/**
* The stage of the hanainstance definition allowing to specify NetworkProfile.
*/
interface WithNetworkProfile {
/**
* Specifies networkProfile.
* @param networkProfile Specifies the network settings for the HANA instance
* @return the next definition stage
*/
WithCreate withNetworkProfile(NetworkProfile networkProfile);
}

/**
* The stage of the hanainstance definition allowing to specify OsProfile.
*/
interface WithOsProfile {
/**
* Specifies osProfile.
* @param osProfile Specifies the operating system settings for the HANA instance
* @return the next definition stage
*/
WithCreate withOsProfile(OSProfile osProfile);
}

/**
* The stage of the hanainstance definition allowing to specify StorageProfile.
*/
interface WithStorageProfile {
/**
* Specifies storageProfile.
* @param storageProfile Specifies the storage settings for the HANA instance disks
* @return the next definition stage
*/
WithCreate withStorageProfile(StorageProfile storageProfile);
}

/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<HanaInstance>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithHardwareProfile, DefinitionStages.WithNetworkProfile, DefinitionStages.WithOsProfile, DefinitionStages.WithStorageProfile {
}
}
/**
* The template for a HanaInstance update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<HanaInstance>, Resource.UpdateWithTags<Update>, UpdateStages.WithTags {
interface Update extends Appliable<HanaInstance>, Resource.UpdateWithTags<Update>, UpdateStages.WithHardwareProfile, UpdateStages.WithNetworkProfile, UpdateStages.WithOsProfile, UpdateStages.WithStorageProfile {
}

/**
* Grouping of HanaInstance update stages.
*/
interface UpdateStages {
/**
* The stage of the hanainstance update allowing to specify Tags.
* The stage of the hanainstance update allowing to specify HardwareProfile.
*/
interface WithHardwareProfile {
/**
* Specifies hardwareProfile.
* @param hardwareProfile Specifies the hardware settings for the HANA instance
* @return the next update stage
*/
Update withHardwareProfile(HardwareProfile hardwareProfile);
}

/**
* The stage of the hanainstance update allowing to specify NetworkProfile.
*/
interface WithNetworkProfile {
/**
* Specifies networkProfile.
* @param networkProfile Specifies the network settings for the HANA instance
* @return the next update stage
*/
Update withNetworkProfile(NetworkProfile networkProfile);
}

/**
* The stage of the hanainstance update allowing to specify OsProfile.
*/
interface WithOsProfile {
/**
* Specifies osProfile.
* @param osProfile Specifies the operating system settings for the HANA instance
* @return the next update stage
*/
Update withOsProfile(OSProfile osProfile);
}

/**
* The stage of the hanainstance update allowing to specify StorageProfile.
*/
interface WithTags {
interface WithStorageProfile {
/**
* Specifies tags.
* @param tags Tags field of the HANA instance
* Specifies storageProfile.
* @param storageProfile Specifies the storage settings for the HANA instance disks
* @return the next update stage
*/
Update withTags(Map<String, String> tags);
Update withStorageProfile(StorageProfile storageProfile);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,21 @@ public final class HanaInstanceSizeNamesEnum extends ExpandableStringEnum<HanaIn
/** Static value S960m for HanaInstanceSizeNamesEnum. */
public static final HanaInstanceSizeNamesEnum S960M = fromString("S960m");

/** Static value S224o for HanaInstanceSizeNamesEnum. */
public static final HanaInstanceSizeNamesEnum S224O = fromString("S224o");

/** Static value S224m for HanaInstanceSizeNamesEnum. */
public static final HanaInstanceSizeNamesEnum S224M = fromString("S224m");

/** Static value S224om for HanaInstanceSizeNamesEnum. */
public static final HanaInstanceSizeNamesEnum S224OM = fromString("S224om");

/** Static value S224oxm for HanaInstanceSizeNamesEnum. */
public static final HanaInstanceSizeNamesEnum S224OXM = fromString("S224oxm");

/** Static value S224oxxm for HanaInstanceSizeNamesEnum. */
public static final HanaInstanceSizeNamesEnum S224OXXM = fromString("S224oxxm");

/**
* Creates or finds a HanaInstanceSizeNamesEnum 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 @@ -8,6 +8,7 @@

package com.microsoft.azure.management.hanaonazure.v2017_11_03_preview;

import com.microsoft.azure.arm.collection.SupportsCreating;
import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup;
import rx.Observable;
import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup;
Expand All @@ -19,7 +20,7 @@
/**
* Type representing HanaInstances.
*/
public interface HanaInstances extends SupportsGettingByResourceGroup<HanaInstance>, SupportsListingByResourceGroup<HanaInstance>, SupportsListing<HanaInstance>, HasInner<HanaInstancesInner> {
public interface HanaInstances extends SupportsCreating<HanaInstance.DefinitionStages.Blank>, SupportsGettingByResourceGroup<HanaInstance>, SupportsListingByResourceGroup<HanaInstance>, SupportsListing<HanaInstance>, HasInner<HanaInstancesInner> {
/**
* The operation to restart a SAP HANA instance.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* 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.hanaonazure.v2017_11_03_preview;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for HanaProvisioningStatesEnum.
*/
public final class HanaProvisioningStatesEnum extends ExpandableStringEnum<HanaProvisioningStatesEnum> {
/** Static value Accepted for HanaProvisioningStatesEnum. */
public static final HanaProvisioningStatesEnum ACCEPTED = fromString("Accepted");

/** Static value Creating for HanaProvisioningStatesEnum. */
public static final HanaProvisioningStatesEnum CREATING = fromString("Creating");

/** Static value Updating for HanaProvisioningStatesEnum. */
public static final HanaProvisioningStatesEnum UPDATING = fromString("Updating");

/** Static value Failed for HanaProvisioningStatesEnum. */
public static final HanaProvisioningStatesEnum FAILED = fromString("Failed");

/** Static value Succeeded for HanaProvisioningStatesEnum. */
public static final HanaProvisioningStatesEnum SUCCEEDED = fromString("Succeeded");

/** Static value Deleting for HanaProvisioningStatesEnum. */
public static final HanaProvisioningStatesEnum DELETING = fromString("Deleting");

/** Static value Migrating for HanaProvisioningStatesEnum. */
public static final HanaProvisioningStatesEnum MIGRATING = fromString("Migrating");

/**
* Creates or finds a HanaProvisioningStatesEnum from its string representation.
* @param name a name to look for
* @return the corresponding HanaProvisioningStatesEnum
*/
@JsonCreator
public static HanaProvisioningStatesEnum fromString(String name) {
return fromString(name, HanaProvisioningStatesEnum.class);
}

/**
* @return known HanaProvisioningStatesEnum values
*/
public static Collection<HanaProvisioningStatesEnum> values() {
return values(HanaProvisioningStatesEnum.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class HardwareProfile {
* Specifies the HANA instance SKU. Possible values include: 'S72m',
* 'S144m', 'S72', 'S144', 'S192', 'S192m', 'S192xm', 'S96', 'S384',
* 'S384m', 'S384xm', 'S384xxm', 'S576m', 'S576xm', 'S768', 'S768m',
* 'S768xm', 'S960m'.
* 'S768xm', 'S960m', 'S224o', 'S224m', 'S224om', 'S224oxm', 'S224oxxm'.
*/
@JsonProperty(value = "hanaInstanceSize", access = JsonProperty.Access.WRITE_ONLY)
private HanaInstanceSizeNamesEnum hanaInstanceSize;
Expand All @@ -40,7 +40,7 @@ public HanaHardwareTypeNamesEnum hardwareType() {
}

/**
* Get specifies the HANA instance SKU. Possible values include: 'S72m', 'S144m', 'S72', 'S144', 'S192', 'S192m', 'S192xm', 'S96', 'S384', 'S384m', 'S384xm', 'S384xxm', 'S576m', 'S576xm', 'S768', 'S768m', 'S768xm', 'S960m'.
* Get specifies the HANA instance SKU. Possible values include: 'S72m', 'S144m', 'S72', 'S144', 'S192', 'S192m', 'S192xm', 'S96', 'S384', 'S384m', 'S384xm', 'S384xxm', 'S576m', 'S576xm', 'S768', 'S768m', 'S768xm', 'S960m', 'S224o', 'S224m', 'S224om', 'S224oxm', 'S224oxxm'.
*
* @return the hanaInstanceSize value
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ public class OSProfile {
@JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY)
private String version;

/**
* Specifies the SSH public key used to access the operating system.
*/
@JsonProperty(value = "sshPublicKey", access = JsonProperty.Access.WRITE_ONLY)
private String sshPublicKey;

/**
* Get specifies the host OS name of the HANA instance.
*
Expand Down Expand Up @@ -59,4 +65,13 @@ public String version() {
return this.version;
}

/**
* Get specifies the SSH public key used to access the operating system.
*
* @return the sshPublicKey value
*/
public String sshPublicKey() {
return this.sshPublicKey;
}

}
Loading