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 storagesync/resource-manager] Add new version 2018-04-02 for Microsoft.StorageSync Resource Provider #256

Open
wants to merge 1 commit into
base: restapi_auto_storagesync/resource-manager
Choose a base branch
from
Open
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,78 @@
/**
* 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.storagesync;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Parameters for a check name availability request.
*/
public class CheckNameAvailabilityParameters {
/**
* The name to check for availability.
*/
@JsonProperty(value = "name", required = true)
private String name;

/**
* The resource type. Must be set to
* Microsoft.StorageSync/storageSyncServices.
*/
@JsonProperty(value = "type", required = true)
private String type;

/**
* Creates an instance of CheckNameAvailabilityParameters class.
* @param name the name to check for availability.
*/
public CheckNameAvailabilityParameters() {
type = "Microsoft.StorageSync/storageSyncServices";
}

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

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

/**
* Get the resource type. Must be set to Microsoft.StorageSync/storageSyncServices.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Set the resource type. Must be set to Microsoft.StorageSync/storageSyncServices.
*
* @param type the type value to set
* @return the CheckNameAvailabilityParameters object itself.
*/
public CheckNameAvailabilityParameters withType(String type) {
this.type = type;
return this;
}

}
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.storagesync;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Defines headers for restoreheartbeat operation.
*/
public class CloudEndpointsRestoreheartbeatHeaders {
/**
* request id.
*/
@JsonProperty(value = "x-ms-request-id")
private String xMsRequestId;

/**
* correlation request id.
*/
@JsonProperty(value = "x-ms-correlation-request-id")
private String xMsCorrelationRequestId;

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

/**
* Set request id.
*
* @param xMsRequestId the xMsRequestId value to set
* @return the CloudEndpointsRestoreheartbeatHeaders object itself.
*/
public CloudEndpointsRestoreheartbeatHeaders withXMsRequestId(String xMsRequestId) {
this.xMsRequestId = xMsRequestId;
return this;
}

/**
* Get correlation request id.
*
* @return the xMsCorrelationRequestId value
*/
public String xMsCorrelationRequestId() {
return this.xMsCorrelationRequestId;
}

/**
* Set correlation request id.
*
* @param xMsCorrelationRequestId the xMsCorrelationRequestId value to set
* @return the CloudEndpointsRestoreheartbeatHeaders object itself.
*/
public CloudEndpointsRestoreheartbeatHeaders withXMsCorrelationRequestId(String xMsCorrelationRequestId) {
this.xMsCorrelationRequestId = xMsCorrelationRequestId;
return this;
}

}
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.storagesync;

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

/**
* Defines values for NameAvailabilityReason.
*/
public enum NameAvailabilityReason {
/** Enum value Invalid. */
INVALID("Invalid"),

/** Enum value AlreadyExists. */
ALREADY_EXISTS("AlreadyExists");

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

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

/**
* Parses a serialized value to a NameAvailabilityReason instance.
*
* @param value the serialized value to parse.
* @return the parsed NameAvailabilityReason object, or null if unable to parse.
*/
@JsonCreator
public static NameAvailabilityReason fromString(String value) {
NameAvailabilityReason[] items = NameAvailabilityReason.values();
for (NameAvailabilityReason 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,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.storagesync;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Defines headers for recallAction operation.
*/
public class ServerEndpointsRecallActionHeaders {
/**
* request id.
*/
@JsonProperty(value = "x-ms-request-id")
private String xMsRequestId;

/**
* correlation request id.
*/
@JsonProperty(value = "x-ms-correlation-request-id")
private String xMsCorrelationRequestId;

/**
* Operation Status Location URI.
*/
@JsonProperty(value = "Location")
private String location;

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

/**
* Set request id.
*
* @param xMsRequestId the xMsRequestId value to set
* @return the ServerEndpointsRecallActionHeaders object itself.
*/
public ServerEndpointsRecallActionHeaders withXMsRequestId(String xMsRequestId) {
this.xMsRequestId = xMsRequestId;
return this;
}

/**
* Get correlation request id.
*
* @return the xMsCorrelationRequestId value
*/
public String xMsCorrelationRequestId() {
return this.xMsCorrelationRequestId;
}

/**
* Set correlation request id.
*
* @param xMsCorrelationRequestId the xMsCorrelationRequestId value to set
* @return the ServerEndpointsRecallActionHeaders object itself.
*/
public ServerEndpointsRecallActionHeaders withXMsCorrelationRequestId(String xMsCorrelationRequestId) {
this.xMsCorrelationRequestId = xMsCorrelationRequestId;
return this;
}

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

/**
* Set operation Status Location URI.
*
* @param location the location value to set
* @return the ServerEndpointsRecallActionHeaders object itself.
*/
public ServerEndpointsRecallActionHeaders withLocation(String location) {
this.location = location;
return this;
}

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

import com.microsoft.azure.management.storagesync.NameAvailabilityReason;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The CheckNameAvailability operation response.
*/
public class CheckNameAvailabilityResultInner {
/**
* Gets a boolean value that indicates whether the name is available for
* you to use. If true, the name is available. If false, the name has
* already been taken or invalid and cannot be used.
*/
@JsonProperty(value = "nameAvailable", access = JsonProperty.Access.WRITE_ONLY)
private Boolean nameAvailable;

/**
* Gets the reason that a Storage Sync Service name could not be used. The
* Reason element is only returned if NameAvailable is false. Possible
* values include: 'Invalid', 'AlreadyExists'.
*/
@JsonProperty(value = "reason", access = JsonProperty.Access.WRITE_ONLY)
private NameAvailabilityReason reason;

/**
* Gets an error message explaining the Reason value in more detail.
*/
@JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
private String message;

/**
* Get gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used.
*
* @return the nameAvailable value
*/
public Boolean nameAvailable() {
return this.nameAvailable;
}

/**
* Get gets the reason that a Storage Sync Service name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: 'Invalid', 'AlreadyExists'.
*
* @return the reason value
*/
public NameAvailabilityReason reason() {
return this.reason;
}

/**
* Get gets an error message explaining the Reason value in more detail.
*
* @return the message value
*/
public String message() {
return this.message;
}

}
Loading