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
8 changes: 4 additions & 4 deletions recoveryservices/resource-manager/v2016_06_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.0.0</version>
<version>0.0.3-beta</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-recoveryservices</artifactId>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for RecoveryServices Management</name>
<description>This package contains Microsoft RecoveryServices Management SDK.</description>
<url>https://github.com/Azure/azure-libraries-for-java</url>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<licenses>
<license>
<name>The MIT License (MIT)</name>
Expand All @@ -28,8 +28,8 @@
</license>
</licenses>
<scm>
<url>scm:git:https://github.com/Azure/azure-libraries-for-java</url>
<connection>scm:git:git@github.com:Azure/azure-libraries-for-java.git</connection>
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</connection>
<tag>HEAD</tag>
</scm>
<properties>
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.recoveryservices.v2016_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Resource Name availability input parameters - Resource type and resource
* name.
*/
public class CheckNameAvailabilityParameters {
/**
* Describes the Resource type: Microsoft.RecoveryServices/Vaults.
*/
@JsonProperty(value = "type")
private String type;

/**
* Resource name for which availability needs to be checked.
*/
@JsonProperty(value = "name")
private String name;

/**
* Get describes the Resource type: Microsoft.RecoveryServices/Vaults.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Set describes the Resource type: Microsoft.RecoveryServices/Vaults.
*
* @param type the type value to set
* @return the CheckNameAvailabilityParameters object itself.
*/
public CheckNameAvailabilityParameters withType(String type) {
this.type = type;
return this;
}

/**
* Get resource name for which availability needs to be checked.
*
* @return the name value
*/
public String name() {
return this.name;
}

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

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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Response for check name availability API. Resource provider will set
* availability as true | false.
*/
public class CheckNameAvailabilityResult {
/**
* The nameAvailable property.
*/
@JsonProperty(value = "nameAvailable")
private Boolean nameAvailable;

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

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

/**
* Get the nameAvailable value.
*
* @return the nameAvailable value
*/
public Boolean nameAvailable() {
return this.nameAvailable;
}

/**
* Set the nameAvailable value.
*
* @param nameAvailable the nameAvailable value to set
* @return the CheckNameAvailabilityResult object itself.
*/
public CheckNameAvailabilityResult withNameAvailable(Boolean nameAvailable) {
this.nameAvailable = nameAvailable;
return this;
}

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

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

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

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.recoveryservices.v2016_06_01.implementation.RecoveryServicesManager;
import com.microsoft.azure.management.recoveryservices.v2016_06_01.implementation.CheckNameAvailabilityResultResourceInner;

/**
* Type representing CheckNameAvailabilityResultResource.
*/
public interface CheckNameAvailabilityResultResource extends HasInner<CheckNameAvailabilityResultResourceInner>, HasManager<RecoveryServicesManager> {
/**
* @return the eTag value.
*/
String eTag();

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

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

/**
* @return the properties value.
*/
CheckNameAvailabilityResult properties();

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

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

import rx.Observable;
import com.microsoft.azure.management.recoveryservices.v2016_06_01.implementation.RecoveryServicesInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing RecoveryServices.
*/
public interface RecoveryServices extends HasInner<RecoveryServicesInner> {
/**
* API to check for resource name availability.
A name is available if no other resource exists that has the same SubscriptionId, Resource Name and Type
or if one or more such resources exist, each of these must be GC'd and their time of deletion be more than 24 Hours Ago.
*
* @param resourceGroupName The name of the resource group where the recovery services vault is present.
* @param location Location of the resource
* @param input Contains information about Resource type and Resource name
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<CheckNameAvailabilityResultResource> checkNameAvailabilityAsync(String resourceGroupName, String location, CheckNameAvailabilityParameters input);

}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class ResourceCertificateDetails {
private byte[] certificate;

/**
* Certificate friendlyname.
* Certificate friendly name.
*/
@JsonProperty(value = "friendlyName")
private String friendlyName;
Expand Down Expand Up @@ -93,7 +93,7 @@ public ResourceCertificateDetails withCertificate(byte[] certificate) {
}

/**
* Get certificate friendlyname.
* Get certificate friendly name.
*
* @return the friendlyName value
*/
Expand All @@ -102,7 +102,7 @@ public String friendlyName() {
}

/**
* Set certificate friendlyname.
* Set certificate friendly name.
*
* @param friendlyName the friendlyName value to set
* @return the ResourceCertificateDetails object itself.
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.recoveryservices.v2016_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Resource Name availability input parameters - Resource type and resource
* name.
*/
public class ResourceNameAvailabilityParameters {
/**
* Describes the Resource type: Microsoft.RecoveryServices/Vaults.
*/
@JsonProperty(value = "type")
private String type;

/**
* Resource name for which availability needs to be checked.
*/
@JsonProperty(value = "name")
private String name;

/**
* Get describes the Resource type: Microsoft.RecoveryServices/Vaults.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Set describes the Resource type: Microsoft.RecoveryServices/Vaults.
*
* @param type the type value to set
* @return the ResourceNameAvailabilityParameters object itself.
*/
public ResourceNameAvailabilityParameters withType(String type) {
this.type = type;
return this;
}

/**
* Get resource name for which availability needs to be checked.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set resource name for which availability needs to be checked.
*
* @param name the name value to set
* @return the ResourceNameAvailabilityParameters object itself.
*/
public ResourceNameAvailabilityParameters withName(String name) {
this.name = name;
return this;
}

}
Loading