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
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
/**
* 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;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Specifies the disk information fo the HANA instance.
*/
public class Disk {
/**
* The disk name.
*/
@JsonProperty(value = "name")
private String name;

/**
* Specifies the size of an empty data disk in gigabytes.
*/
@JsonProperty(value = "diskSizeGB")
private Integer diskSizeGB;

/**
* Specifies the logical unit number of the data disk. This value is used
* to identify data disks within the VM and therefore must be unique for
* each data disk attached to a VM.
*/
@JsonProperty(value = "lun", access = JsonProperty.Access.WRITE_ONLY)
private Integer lun;

/**
* Get the name value.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set the name value.
*
* @param name the name value to set
* @return the Disk object itself.
*/
public Disk withName(String name) {
this.name = name;
return this;
}

/**
* Get the diskSizeGB value.
*
* @return the diskSizeGB value
*/
public Integer diskSizeGB() {
return this.diskSizeGB;
}

/**
* Set the diskSizeGB value.
*
* @param diskSizeGB the diskSizeGB value to set
* @return the Disk object itself.
*/
public Disk withDiskSizeGB(Integer diskSizeGB) {
this.diskSizeGB = diskSizeGB;
return this;
}

/**
* Get the lun value.
*
* @return the lun value
*/
public Integer lun() {
return this.lun;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
/**
* 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;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Detailed HANA operation information.
*/
public class Display {
/**
* The localized friendly form of the resource provider name. This form is
* also expected to include the publisher/company responsible. Use Title
* Casing. Begin with “Microsoft” for 1st party services.
*/
@JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY)
private String provider;

/**
* The localized friendly form of the resource type related to this
* action/operation. This form should match the public documentation for
* the resource provider. Use Title Casing. For examples, refer to the
* “name” section.
*/
@JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY)
private String resource;

/**
* The localized friendly name for the operation as shown to the user. This
* name should be concise (to fit in drop downs), but clear
* (self-documenting). Use Title Casing and include the entity/resource to
* which it applies.
*/
@JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY)
private String operation;

/**
* The localized friendly description for the operation as shown to the
* user. This description should be thorough, yet concise. It will be used
* in tool-tips and detailed views.
*/
@JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
private String description;

/**
* The intended executor of the operation; governs the display of the
* operation in the RBAC UX and the audit logs UX. Default value is
* 'user,system'.
*/
@JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY)
private String origin;

/**
* Get the provider value.
*
* @return the provider value
*/
public String provider() {
return this.provider;
}

/**
* Get the resource value.
*
* @return the resource value
*/
public String resource() {
return this.resource;
}

/**
* Get the operation value.
*
* @return the operation value
*/
public String operation() {
return this.operation;
}

/**
* Get the description value.
*
* @return the description value
*/
public String description() {
return this.description;
}

/**
* Get the origin value.
*
* @return the origin value
*/
public String origin() {
return this.origin;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/**
* 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;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Describes the format of Error response.
*/
public class ErrorResponse {
/**
* Error code.
*/
@JsonProperty(value = "code")
private String code;

/**
* Error message indicating why the operation failed.
*/
@JsonProperty(value = "message")
private String message;

/**
* Get the code value.
*
* @return the code value
*/
public String code() {
return this.code;
}

/**
* Set the code value.
*
* @param code the code value to set
* @return the ErrorResponse object itself.
*/
public ErrorResponse withCode(String code) {
this.code = code;
return this;
}

/**
* Get the message value.
*
* @return the message value
*/
public String message() {
return this.message;
}

/**
* Set the message value.
*
* @param message the message value to set
* @return the ErrorResponse object itself.
*/
public ErrorResponse withMessage(String message) {
this.message = message;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* 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;

import com.microsoft.rest.RestException;
import okhttp3.ResponseBody;
import retrofit2.Response;

/**
* Exception thrown for an invalid response with ErrorResponse information.
*/
public class ErrorResponseException extends RestException {
/**
* Initializes a new instance of the ErrorResponseException class.
*
* @param message the exception message or the response content if a message is not available
* @param response the HTTP response
*/
public ErrorResponseException(final String message, final Response<ResponseBody> response) {
super(message, response);
}

/**
* Initializes a new instance of the ErrorResponseException class.
*
* @param message the exception message or the response content if a message is not available
* @param response the HTTP response
* @param body the deserialized response body
*/
public ErrorResponseException(final String message, final Response<ResponseBody> response, final ErrorResponse body) {
super(message, response, body);
}

@Override
public ErrorResponse body() {
return (ErrorResponse) super.body();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* 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;

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

/**
* Defines values for HanaHardwareTypeNamesEnum.
*/
public final class HanaHardwareTypeNamesEnum extends ExpandableStringEnum<HanaHardwareTypeNamesEnum> {
/** Static value Cisco_UCS for HanaHardwareTypeNamesEnum. */
public static final HanaHardwareTypeNamesEnum CISCO_UCS = fromString("Cisco_UCS");

/** Static value HPE for HanaHardwareTypeNamesEnum. */
public static final HanaHardwareTypeNamesEnum HPE = fromString("HPE");

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

/**
* @return known HanaHardwareTypeNamesEnum values
*/
public static Collection<HanaHardwareTypeNamesEnum> values() {
return values(HanaHardwareTypeNamesEnum.class);
}
}
Loading