Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR servermanagement/resource-manager/storagesync/resource-manager] Add new version 2018-04-02 for Microsoft.StorageSync Resource Provider #253

Closed
wants to merge 1 commit into from
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
@@ -0,0 +1,50 @@
/**
* 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.servermanagement;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for CredentialDataFormat.
*/
public enum CredentialDataFormat {
/** Enum value RsaEncrypted. */
RSA_ENCRYPTED("RsaEncrypted");

/** The actual serialized value for a CredentialDataFormat instance. */
private String value;

CredentialDataFormat(String value) {
this.value = value;
}

/**
* Parses a serialized value to a CredentialDataFormat instance.
*
* @param value the serialized value to parse.
* @return the parsed CredentialDataFormat object, or null if unable to parse.
*/
@JsonCreator
public static CredentialDataFormat fromString(String value) {
CredentialDataFormat[] items = CredentialDataFormat.values();
for (CredentialDataFormat item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

@JsonValue
@Override
public String toString() {
return this.value;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/**
* 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.servermanagement;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The public key of the gateway.
*/
public class EncryptionJwkResource {
/**
* The kty property.
*/
@JsonProperty(value = "kty")
private String kty;

/**
* The alg property.
*/
@JsonProperty(value = "alg")
private String alg;

/**
* The e property.
*/
@JsonProperty(value = "e")
private String e;

/**
* The n property.
*/
@JsonProperty(value = "n")
private String n;

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

/**
* Set the kty value.
*
* @param kty the kty value to set
* @return the EncryptionJwkResource object itself.
*/
public EncryptionJwkResource withKty(String kty) {
this.kty = kty;
return this;
}

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

/**
* Set the alg value.
*
* @param alg the alg value to set
* @return the EncryptionJwkResource object itself.
*/
public EncryptionJwkResource withAlg(String alg) {
this.alg = alg;
return this;
}

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

/**
* Set the e value.
*
* @param e the e value to set
* @return the EncryptionJwkResource object itself.
*/
public EncryptionJwkResource withE(String e) {
this.e = e;
return this;
}

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

/**
* Set the n value.
*
* @param n the n value to set
* @return the EncryptionJwkResource object itself.
*/
public EncryptionJwkResource withN(String n) {
this.n = n;
return this;
}

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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Error message.
*/
public class Error {
/**
* The code property.
*/
@JsonProperty(value = "code")
private Integer code;

/**
* The message property.
*/
@JsonProperty(value = "message")
private String message;

/**
* The fields property.
*/
@JsonProperty(value = "fields")
private String fields;

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

/**
* Set the code value.
*
* @param code the code value to set
* @return the Error object itself.
*/
public Error withCode(Integer 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 Error object itself.
*/
public Error withMessage(String message) {
this.message = message;
return this;
}

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

/**
* Set the fields value.
*
* @param fields the fields value to set
* @return the Error object itself.
*/
public Error withFields(String fields) {
this.fields = fields;
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.servermanagement;

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

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

/**
* Initializes a new instance of the ErrorException 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 ErrorException(final String message, final Response<ResponseBody> response, final Error body) {
super(message, response, body);
}

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

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for GatewayExpandOption.
*/
public enum GatewayExpandOption {
/** Enum value status. */
STATUS("status"),

/** Enum value download. */
DOWNLOAD("download");

/** The actual serialized value for a GatewayExpandOption instance. */
private String value;

GatewayExpandOption(String value) {
this.value = value;
}

/**
* Parses a serialized value to a GatewayExpandOption instance.
*
* @param value the serialized value to parse.
* @return the parsed GatewayExpandOption object, or null if unable to parse.
*/
@JsonCreator
public static GatewayExpandOption fromString(String value) {
GatewayExpandOption[] items = GatewayExpandOption.values();
for (GatewayExpandOption item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

@JsonValue
@Override
public String toString() {
return this.value;
}
}
Loading