diff --git a/recoveryservices/resource-manager/v2016_06_01/pom.xml b/recoveryservices/resource-manager/v2016_06_01/pom.xml
index 9124d2b0066d..38afdaac16b4 100644
--- a/recoveryservices/resource-manager/v2016_06_01/pom.xml
+++ b/recoveryservices/resource-manager/v2016_06_01/pom.xml
@@ -11,7 +11,7 @@
com.microsoft.azure
azure-arm-parent
- 1.0.0
+ 0.0.3-beta
../../../pom.xml
azure-mgmt-recoveryservices
@@ -19,7 +19,7 @@
jar
Microsoft Azure SDK for RecoveryServices Management
This package contains Microsoft RecoveryServices Management SDK.
- https://github.com/Azure/azure-libraries-for-java
+ https://github.com/Azure/azure-sdk-for-java
The MIT License (MIT)
@@ -28,8 +28,8 @@
- scm:git:https://github.com/Azure/azure-libraries-for-java
- scm:git:git@github.com:Azure/azure-libraries-for-java.git
+ scm:git:https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
HEAD
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/CheckNameAvailabilityParameters.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/CheckNameAvailabilityParameters.java
new file mode 100644
index 000000000000..1bba7381b9af
--- /dev/null
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/CheckNameAvailabilityParameters.java
@@ -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;
+ }
+
+}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/CheckNameAvailabilityResult.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/CheckNameAvailabilityResult.java
new file mode 100644
index 000000000000..ee088035095c
--- /dev/null
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/CheckNameAvailabilityResult.java
@@ -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;
+ }
+
+}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/CheckNameAvailabilityResultResource.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/CheckNameAvailabilityResultResource.java
new file mode 100644
index 000000000000..3e9d9c3991bf
--- /dev/null
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/CheckNameAvailabilityResultResource.java
@@ -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, HasManager {
+ /**
+ * @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();
+
+}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/RecoveryServices.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/RecoveryServices.java
new file mode 100644
index 000000000000..181660cd6fbf
--- /dev/null
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/RecoveryServices.java
@@ -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 {
+ /**
+ * 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 checkNameAvailabilityAsync(String resourceGroupName, String location, CheckNameAvailabilityParameters input);
+
+}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceCertificateDetails.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceCertificateDetails.java
index d7976adb96e3..cd1dc90ef85c 100644
--- a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceCertificateDetails.java
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceCertificateDetails.java
@@ -31,7 +31,7 @@ public class ResourceCertificateDetails {
private byte[] certificate;
/**
- * Certificate friendlyname.
+ * Certificate friendly name.
*/
@JsonProperty(value = "friendlyName")
private String friendlyName;
@@ -93,7 +93,7 @@ public ResourceCertificateDetails withCertificate(byte[] certificate) {
}
/**
- * Get certificate friendlyname.
+ * Get certificate friendly name.
*
* @return the friendlyName value
*/
@@ -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.
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceNameAvailabilityParameters.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceNameAvailabilityParameters.java
new file mode 100644
index 000000000000..ee6a9c10691d
--- /dev/null
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceNameAvailabilityParameters.java
@@ -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;
+ }
+
+}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceNameAvailabilityResponse.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceNameAvailabilityResponse.java
new file mode 100644
index 000000000000..a5e2731cae36
--- /dev/null
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceNameAvailabilityResponse.java
@@ -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 ResourceNameAvailabilityResponse {
+ /**
+ * 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 ResourceNameAvailabilityResponse object itself.
+ */
+ public ResourceNameAvailabilityResponse 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 ResourceNameAvailabilityResponse object itself.
+ */
+ public ResourceNameAvailabilityResponse 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 ResourceNameAvailabilityResponse object itself.
+ */
+ public ResourceNameAvailabilityResponse withMessage(String message) {
+ this.message = message;
+ return this;
+ }
+
+}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceNameAvailabilityResponseResource.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceNameAvailabilityResponseResource.java
new file mode 100644
index 000000000000..02f6c08f6452
--- /dev/null
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceNameAvailabilityResponseResource.java
@@ -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.ResourceNameAvailabilityResponseResourceInner;
+
+/**
+ * Type representing ResourceNameAvailabilityResponseResource.
+ */
+public interface ResourceNameAvailabilityResponseResource extends HasInner, HasManager {
+ /**
+ * @return the eTag value.
+ */
+ String eTag();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the properties value.
+ */
+ ResourceNameAvailabilityResponse properties();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceNameAvailabilityResult.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceNameAvailabilityResult.java
new file mode 100644
index 000000000000..dbecd9819374
--- /dev/null
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceNameAvailabilityResult.java
@@ -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 ResourceNameAvailabilityResult {
+ /**
+ * 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 ResourceNameAvailabilityResult object itself.
+ */
+ public ResourceNameAvailabilityResult 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 ResourceNameAvailabilityResult object itself.
+ */
+ public ResourceNameAvailabilityResult 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 ResourceNameAvailabilityResult object itself.
+ */
+ public ResourceNameAvailabilityResult withMessage(String message) {
+ this.message = message;
+ return this;
+ }
+
+}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceNameAvailabilityResultResource.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceNameAvailabilityResultResource.java
new file mode 100644
index 000000000000..049529eb6300
--- /dev/null
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/ResourceNameAvailabilityResultResource.java
@@ -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.ResourceNameAvailabilityResultResourceInner;
+
+/**
+ * Type representing ResourceNameAvailabilityResultResource.
+ */
+public interface ResourceNameAvailabilityResultResource extends HasInner, HasManager {
+ /**
+ * @return the eTag value.
+ */
+ String eTag();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the properties value.
+ */
+ ResourceNameAvailabilityResult properties();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/UpgradeDetails.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/UpgradeDetails.java
index d65626f6252d..7fd2ed9c8cef 100644
--- a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/UpgradeDetails.java
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/UpgradeDetails.java
@@ -53,7 +53,7 @@ public class UpgradeDetails {
private String message;
/**
- * The way the vault upgradation was triggered. Possible values include:
+ * The way the vault upgrade was triggered. Possible values include:
* 'UserTriggered', 'ForcedUpgrade'.
*/
@JsonProperty(value = "triggerType", access = JsonProperty.Access.WRITE_ONLY)
@@ -126,7 +126,7 @@ public String message() {
}
/**
- * Get the way the vault upgradation was triggered. Possible values include: 'UserTriggered', 'ForcedUpgrade'.
+ * Get the way the vault upgrade was triggered. Possible values include: 'UserTriggered', 'ForcedUpgrade'.
*
* @return the triggerType value
*/
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/Vault.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/Vault.java
index 114d51e27347..053efdcd466b 100644
--- a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/Vault.java
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/Vault.java
@@ -62,31 +62,37 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup, Resource.UpdateWithTags, Upda
*/
interface UpdateStages {
/**
- * The stage of the vault {0} allowing to specify ETag.
+ * The stage of the vault update allowing to specify ETag.
*/
interface WithETag {
/**
* Specifies eTag.
+ * @param eTag Optional ETag
+ * @return the next update stage
*/
Update withETag(String eTag);
}
/**
- * The stage of the vault {0} allowing to specify Properties.
+ * The stage of the vault update allowing to specify Properties.
*/
interface WithProperties {
/**
* Specifies properties.
+ * @param properties the properties parameter value
+ * @return the next update stage
*/
Update withProperties(VaultProperties properties);
}
/**
- * The stage of the vault {0} allowing to specify Sku.
+ * The stage of the vault update allowing to specify Sku.
*/
interface WithSku {
/**
* Specifies sku.
+ * @param sku the sku parameter value
+ * @return the next update stage
*/
Update withSku(Sku sku);
}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/VaultCertificateResponse.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/VaultCertificateResponse.java
index 61973435f2e0..fb4b71876b93 100644
--- a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/VaultCertificateResponse.java
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/VaultCertificateResponse.java
@@ -44,7 +44,7 @@ public interface VaultCertificateResponse extends HasInner {
/**
* The template for a VaultCertificateResponse update operation, containing all the settings that can be modified.
*/
- interface Update extends Appliable {
+ interface Update extends Appliable, UpdateStages.WithProperties {
}
/**
* Grouping of VaultCertificateResponse update stages.
*/
interface UpdateStages {
+ /**
+ * The stage of the vaultcertificateresponse update allowing to specify Properties.
+ */
+ interface WithProperties {
+ /**
+ * Specifies properties.
+ * @param properties the properties parameter value
+ * @return the next update stage
+ */
+ Update withProperties(RawCertificateData properties);
+ }
+
}
}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/CheckNameAvailabilityResultResourceImpl.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/CheckNameAvailabilityResultResourceImpl.java
new file mode 100644
index 000000000000..e35739b42000
--- /dev/null
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/CheckNameAvailabilityResultResourceImpl.java
@@ -0,0 +1,52 @@
+/**
+ * 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.implementation;
+
+import com.microsoft.azure.management.recoveryservices.v2016_06_01.CheckNameAvailabilityResultResource;
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.recoveryservices.v2016_06_01.CheckNameAvailabilityResult;
+
+class CheckNameAvailabilityResultResourceImpl extends WrapperImpl implements CheckNameAvailabilityResultResource {
+ private final RecoveryServicesManager manager;
+ CheckNameAvailabilityResultResourceImpl(CheckNameAvailabilityResultResourceInner inner, RecoveryServicesManager manager) {
+ super(inner);
+ this.manager = manager;
+ }
+
+ @Override
+ public RecoveryServicesManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public String eTag() {
+ return this.inner().eTag();
+ }
+
+ @Override
+ public String id() {
+ return this.inner().id();
+ }
+
+ @Override
+ public String name() {
+ return this.inner().name();
+ }
+
+ @Override
+ public CheckNameAvailabilityResult properties() {
+ return this.inner().properties();
+ }
+
+ @Override
+ public String type() {
+ return this.inner().type();
+ }
+
+}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/CheckNameAvailabilityResultResourceInner.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/CheckNameAvailabilityResultResourceInner.java
new file mode 100644
index 000000000000..b87c91b8b807
--- /dev/null
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/CheckNameAvailabilityResultResourceInner.java
@@ -0,0 +1,72 @@
+/**
+ * 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.implementation;
+
+import com.microsoft.azure.management.recoveryservices.v2016_06_01.CheckNameAvailabilityResult;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * Response for check name availability API. Resource provider will set
+ * availability as true | false.
+ */
+public class CheckNameAvailabilityResultResourceInner extends ProxyResource {
+ /**
+ * CheckNameAvailabilityResultResource properties.
+ */
+ @JsonProperty(value = "properties")
+ private CheckNameAvailabilityResult properties;
+
+ /**
+ * Optional ETag.
+ */
+ @JsonProperty(value = "eTag")
+ private String eTag;
+
+ /**
+ * Get checkNameAvailabilityResultResource properties.
+ *
+ * @return the properties value
+ */
+ public CheckNameAvailabilityResult properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set checkNameAvailabilityResultResource properties.
+ *
+ * @param properties the properties value to set
+ * @return the CheckNameAvailabilityResultResourceInner object itself.
+ */
+ public CheckNameAvailabilityResultResourceInner withProperties(CheckNameAvailabilityResult properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get optional ETag.
+ *
+ * @return the eTag value
+ */
+ public String eTag() {
+ return this.eTag;
+ }
+
+ /**
+ * Set optional ETag.
+ *
+ * @param eTag the eTag value to set
+ * @return the CheckNameAvailabilityResultResourceInner object itself.
+ */
+ public CheckNameAvailabilityResultResourceInner withETag(String eTag) {
+ this.eTag = eTag;
+ return this;
+ }
+
+}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/RecoveryServicesClientImpl.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/RecoveryServicesClientImpl.java
index c7f90b674e0a..8133e05062b3 100644
--- a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/RecoveryServicesClientImpl.java
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/RecoveryServicesClientImpl.java
@@ -171,6 +171,19 @@ public ReplicationUsagesInner replicationUsages() {
return this.replicationUsages;
}
+ /**
+ * The RecoveryServicesInner object to access its operations.
+ */
+ private RecoveryServicesInner recoveryServices;
+
+ /**
+ * Gets the RecoveryServicesInner object to access its operations.
+ * @return the RecoveryServicesInner object.
+ */
+ public RecoveryServicesInner recoveryServices() {
+ return this.recoveryServices;
+ }
+
/**
* The VaultsInner object to access its operations.
*/
@@ -261,6 +274,7 @@ protected void initialize() {
this.vaultCertificates = new VaultCertificatesInner(restClient().retrofit(), this);
this.registeredIdentities = new RegisteredIdentitiesInner(restClient().retrofit(), this);
this.replicationUsages = new ReplicationUsagesInner(restClient().retrofit(), this);
+ this.recoveryServices = new RecoveryServicesInner(restClient().retrofit(), this);
this.vaults = new VaultsInner(restClient().retrofit(), this);
this.operations = new OperationsInner(restClient().retrofit(), this);
this.vaultExtendedInfos = new VaultExtendedInfosInner(restClient().retrofit(), this);
@@ -275,6 +289,6 @@ protected void initialize() {
*/
@Override
public String userAgent() {
- return String.format("%s (%s, %s)", super.userAgent(), "RecoveryServicesClient", "2016-06-01");
+ return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "RecoveryServicesClient", "2016-06-01");
}
}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/RecoveryServicesImpl.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/RecoveryServicesImpl.java
new file mode 100644
index 000000000000..6941fa459a2a
--- /dev/null
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/RecoveryServicesImpl.java
@@ -0,0 +1,43 @@
+/**
+ * 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.
+ * abc
+ */
+
+package com.microsoft.azure.management.recoveryservices.v2016_06_01.implementation;
+
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.recoveryservices.v2016_06_01.RecoveryServices;
+import rx.functions.Func1;
+import rx.Observable;
+import com.microsoft.azure.management.recoveryservices.v2016_06_01.CheckNameAvailabilityResultResource;
+import com.microsoft.azure.management.recoveryservices.v2016_06_01.CheckNameAvailabilityParameters;
+
+class RecoveryServicesImpl extends WrapperImpl implements RecoveryServices {
+ private final RecoveryServicesManager manager;
+
+ RecoveryServicesImpl(RecoveryServicesManager manager) {
+ super(manager.inner().recoveryServices());
+ this.manager = manager;
+ }
+
+ public RecoveryServicesManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public Observable checkNameAvailabilityAsync(String resourceGroupName, String location, CheckNameAvailabilityParameters input) {
+ RecoveryServicesInner client = this.inner();
+ return client.checkNameAvailabilityAsync(resourceGroupName, location, input)
+ .map(new Func1() {
+ @Override
+ public CheckNameAvailabilityResultResource call(CheckNameAvailabilityResultResourceInner inner) {
+ return new CheckNameAvailabilityResultResourceImpl(inner, manager());
+ }
+ });
+ }
+
+}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/RecoveryServicesInner.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/RecoveryServicesInner.java
new file mode 100644
index 000000000000..9fad0648f3a2
--- /dev/null
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/RecoveryServicesInner.java
@@ -0,0 +1,165 @@
+/**
+ * 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.implementation;
+
+import retrofit2.Retrofit;
+import com.google.common.reflect.TypeToken;
+import com.microsoft.azure.CloudException;
+import com.microsoft.azure.management.recoveryservices.v2016_06_01.CheckNameAvailabilityParameters;
+import com.microsoft.rest.ServiceCallback;
+import com.microsoft.rest.ServiceFuture;
+import com.microsoft.rest.ServiceResponse;
+import com.microsoft.rest.Validator;
+import java.io.IOException;
+import okhttp3.ResponseBody;
+import retrofit2.http.Body;
+import retrofit2.http.Header;
+import retrofit2.http.Headers;
+import retrofit2.http.Path;
+import retrofit2.http.POST;
+import retrofit2.http.Query;
+import retrofit2.Response;
+import rx.functions.Func1;
+import rx.Observable;
+
+/**
+ * An instance of this class provides access to all the operations defined
+ * in RecoveryServices.
+ */
+public class RecoveryServicesInner {
+ /** The Retrofit service to perform REST calls. */
+ private RecoveryServicesService service;
+ /** The service client containing this operation class. */
+ private RecoveryServicesClientImpl client;
+
+ /**
+ * Initializes an instance of RecoveryServicesInner.
+ *
+ * @param retrofit the Retrofit instance built from a Retrofit Builder.
+ * @param client the instance of the service client containing this operation class.
+ */
+ public RecoveryServicesInner(Retrofit retrofit, RecoveryServicesClientImpl client) {
+ this.service = retrofit.create(RecoveryServicesService.class);
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for RecoveryServices to be
+ * used by Retrofit to perform actually REST calls.
+ */
+ interface RecoveryServicesService {
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.recoveryservices.v2016_06_01.RecoveryServices checkNameAvailability" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/locations/{location}/checkNameAvailability")
+ Observable> checkNameAvailability(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("location") String location, @Query("api-version") String apiVersion, @Body CheckNameAvailabilityParameters input, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ }
+
+ /**
+ * 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
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the CheckNameAvailabilityResultResourceInner object if successful.
+ */
+ public CheckNameAvailabilityResultResourceInner checkNameAvailability(String resourceGroupName, String location, CheckNameAvailabilityParameters input) {
+ return checkNameAvailabilityWithServiceResponseAsync(resourceGroupName, location, input).toBlocking().single().body();
+ }
+
+ /**
+ * 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
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture checkNameAvailabilityAsync(String resourceGroupName, String location, CheckNameAvailabilityParameters input, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(checkNameAvailabilityWithServiceResponseAsync(resourceGroupName, location, input), serviceCallback);
+ }
+
+ /**
+ * 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 to the CheckNameAvailabilityResultResourceInner object
+ */
+ public Observable checkNameAvailabilityAsync(String resourceGroupName, String location, CheckNameAvailabilityParameters input) {
+ return checkNameAvailabilityWithServiceResponseAsync(resourceGroupName, location, input).map(new Func1, CheckNameAvailabilityResultResourceInner>() {
+ @Override
+ public CheckNameAvailabilityResultResourceInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * 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 to the CheckNameAvailabilityResultResourceInner object
+ */
+ public Observable> checkNameAvailabilityWithServiceResponseAsync(String resourceGroupName, String location, CheckNameAvailabilityParameters input) {
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (location == null) {
+ throw new IllegalArgumentException("Parameter location is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ if (input == null) {
+ throw new IllegalArgumentException("Parameter input is required and cannot be null.");
+ }
+ Validator.validate(input);
+ return service.checkNameAvailability(this.client.subscriptionId(), resourceGroupName, location, this.client.apiVersion(), input, this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = checkNameAvailabilityDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse checkNameAvailabilityDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
+}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/RecoveryServicesManager.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/RecoveryServicesManager.java
index 121becfa28db..bb1a9dd2f538 100644
--- a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/RecoveryServicesManager.java
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/RecoveryServicesManager.java
@@ -19,6 +19,7 @@
import com.microsoft.azure.management.recoveryservices.v2016_06_01.VaultCertificates;
import com.microsoft.azure.management.recoveryservices.v2016_06_01.RegisteredIdentities;
import com.microsoft.azure.management.recoveryservices.v2016_06_01.ReplicationUsages;
+import com.microsoft.azure.management.recoveryservices.v2016_06_01.RecoveryServices;
import com.microsoft.azure.management.recoveryservices.v2016_06_01.Vaults;
import com.microsoft.azure.management.recoveryservices.v2016_06_01.Operations;
import com.microsoft.azure.management.recoveryservices.v2016_06_01.VaultExtendedInfos;
@@ -33,6 +34,7 @@ public final class RecoveryServicesManager extends ManagerCore implements RegisteredIdentities {
private final RecoveryServicesManager manager;
@@ -25,8 +24,4 @@ public RecoveryServicesManager manager() {
return this.manager;
}
- @Override
- public Completable deleteAsync(String resourceGroupName, String vaultName, String identityName) {
- return this.inner().deleteAsync(resourceGroupName, vaultName, identityName).toCompletable();
- }
}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/ResourceNameAvailabilityResponseResourceImpl.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/ResourceNameAvailabilityResponseResourceImpl.java
new file mode 100644
index 000000000000..a17bde045022
--- /dev/null
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/ResourceNameAvailabilityResponseResourceImpl.java
@@ -0,0 +1,52 @@
+/**
+ * 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.implementation;
+
+import com.microsoft.azure.management.recoveryservices.v2016_06_01.ResourceNameAvailabilityResponseResource;
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.recoveryservices.v2016_06_01.ResourceNameAvailabilityResponse;
+
+class ResourceNameAvailabilityResponseResourceImpl extends WrapperImpl implements ResourceNameAvailabilityResponseResource {
+ private final RecoveryServicesManager manager;
+ ResourceNameAvailabilityResponseResourceImpl(ResourceNameAvailabilityResponseResourceInner inner, RecoveryServicesManager manager) {
+ super(inner);
+ this.manager = manager;
+ }
+
+ @Override
+ public RecoveryServicesManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public String eTag() {
+ return this.inner().eTag();
+ }
+
+ @Override
+ public String id() {
+ return this.inner().id();
+ }
+
+ @Override
+ public String name() {
+ return this.inner().name();
+ }
+
+ @Override
+ public ResourceNameAvailabilityResponse properties() {
+ return this.inner().properties();
+ }
+
+ @Override
+ public String type() {
+ return this.inner().type();
+ }
+
+}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/ResourceNameAvailabilityResponseResourceInner.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/ResourceNameAvailabilityResponseResourceInner.java
new file mode 100644
index 000000000000..032ebbc67cf9
--- /dev/null
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/ResourceNameAvailabilityResponseResourceInner.java
@@ -0,0 +1,72 @@
+/**
+ * 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.implementation;
+
+import com.microsoft.azure.management.recoveryservices.v2016_06_01.ResourceNameAvailabilityResponse;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * Response for check name availability API. Resource provider will set
+ * availability as true | false.
+ */
+public class ResourceNameAvailabilityResponseResourceInner extends ProxyResource {
+ /**
+ * ResourceNameAvailabilityResponseResource properties.
+ */
+ @JsonProperty(value = "properties")
+ private ResourceNameAvailabilityResponse properties;
+
+ /**
+ * Optional ETag.
+ */
+ @JsonProperty(value = "eTag")
+ private String eTag;
+
+ /**
+ * Get resourceNameAvailabilityResponseResource properties.
+ *
+ * @return the properties value
+ */
+ public ResourceNameAvailabilityResponse properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set resourceNameAvailabilityResponseResource properties.
+ *
+ * @param properties the properties value to set
+ * @return the ResourceNameAvailabilityResponseResourceInner object itself.
+ */
+ public ResourceNameAvailabilityResponseResourceInner withProperties(ResourceNameAvailabilityResponse properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get optional ETag.
+ *
+ * @return the eTag value
+ */
+ public String eTag() {
+ return this.eTag;
+ }
+
+ /**
+ * Set optional ETag.
+ *
+ * @param eTag the eTag value to set
+ * @return the ResourceNameAvailabilityResponseResourceInner object itself.
+ */
+ public ResourceNameAvailabilityResponseResourceInner withETag(String eTag) {
+ this.eTag = eTag;
+ return this;
+ }
+
+}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/ResourceNameAvailabilityResultResourceImpl.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/ResourceNameAvailabilityResultResourceImpl.java
new file mode 100644
index 000000000000..df659eff7646
--- /dev/null
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/ResourceNameAvailabilityResultResourceImpl.java
@@ -0,0 +1,52 @@
+/**
+ * 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.implementation;
+
+import com.microsoft.azure.management.recoveryservices.v2016_06_01.ResourceNameAvailabilityResultResource;
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.recoveryservices.v2016_06_01.ResourceNameAvailabilityResult;
+
+class ResourceNameAvailabilityResultResourceImpl extends WrapperImpl implements ResourceNameAvailabilityResultResource {
+ private final RecoveryServicesManager manager;
+ ResourceNameAvailabilityResultResourceImpl(ResourceNameAvailabilityResultResourceInner inner, RecoveryServicesManager manager) {
+ super(inner);
+ this.manager = manager;
+ }
+
+ @Override
+ public RecoveryServicesManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public String eTag() {
+ return this.inner().eTag();
+ }
+
+ @Override
+ public String id() {
+ return this.inner().id();
+ }
+
+ @Override
+ public String name() {
+ return this.inner().name();
+ }
+
+ @Override
+ public ResourceNameAvailabilityResult properties() {
+ return this.inner().properties();
+ }
+
+ @Override
+ public String type() {
+ return this.inner().type();
+ }
+
+}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/ResourceNameAvailabilityResultResourceInner.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/ResourceNameAvailabilityResultResourceInner.java
new file mode 100644
index 000000000000..9dca5318bbe8
--- /dev/null
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/ResourceNameAvailabilityResultResourceInner.java
@@ -0,0 +1,72 @@
+/**
+ * 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.implementation;
+
+import com.microsoft.azure.management.recoveryservices.v2016_06_01.ResourceNameAvailabilityResult;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * Response for check name availability API. Resource provider will set
+ * availability as true | false.
+ */
+public class ResourceNameAvailabilityResultResourceInner extends ProxyResource {
+ /**
+ * ResourceNameAvailabilityResultResource properties.
+ */
+ @JsonProperty(value = "properties")
+ private ResourceNameAvailabilityResult properties;
+
+ /**
+ * Optional ETag.
+ */
+ @JsonProperty(value = "eTag")
+ private String eTag;
+
+ /**
+ * Get resourceNameAvailabilityResultResource properties.
+ *
+ * @return the properties value
+ */
+ public ResourceNameAvailabilityResult properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set resourceNameAvailabilityResultResource properties.
+ *
+ * @param properties the properties value to set
+ * @return the ResourceNameAvailabilityResultResourceInner object itself.
+ */
+ public ResourceNameAvailabilityResultResourceInner withProperties(ResourceNameAvailabilityResult properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get optional ETag.
+ *
+ * @return the eTag value
+ */
+ public String eTag() {
+ return this.eTag;
+ }
+
+ /**
+ * Set optional ETag.
+ *
+ * @param eTag the eTag value to set
+ * @return the ResourceNameAvailabilityResultResourceInner object itself.
+ */
+ public ResourceNameAvailabilityResultResourceInner withETag(String eTag) {
+ this.eTag = eTag;
+ return this;
+ }
+
+}
diff --git a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/VaultCertificateResponseImpl.java b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/VaultCertificateResponseImpl.java
index 3ddab86fb080..37ff8f3b21d1 100644
--- a/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/VaultCertificateResponseImpl.java
+++ b/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/VaultCertificateResponseImpl.java
@@ -11,13 +11,17 @@
import com.microsoft.azure.management.recoveryservices.v2016_06_01.VaultCertificateResponse;
import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl;
import rx.Observable;
+import com.microsoft.azure.management.recoveryservices.v2016_06_01.RawCertificateData;
import com.microsoft.azure.management.recoveryservices.v2016_06_01.ResourceCertificateDetails;
+import rx.functions.Func1;
class VaultCertificateResponseImpl extends CreatableUpdatableImpl implements VaultCertificateResponse, VaultCertificateResponse.Definition, VaultCertificateResponse.Update {
private final RecoveryServicesManager manager;
private String resourceGroupName;
private String vaultName;
private String certificateName;
+ private RawCertificateData cproperties;
+ private RawCertificateData uproperties;
VaultCertificateResponseImpl(String name, RecoveryServicesManager manager) {
super(name, new VaultCertificateResponseInner());
@@ -25,6 +29,8 @@ class VaultCertificateResponseImpl extends CreatableUpdatableImpl createResourceAsync() {
VaultCertificatesInner client = this.manager().inner().vaultCertificates();
- return client.createAsync(this.resourceGroupName, this.vaultName, this.certificateName)
+ return client.createAsync(this.resourceGroupName, this.vaultName, this.certificateName, this.cproperties)
+ .map(new Func1() {
+ @Override
+ public VaultCertificateResponseInner call(VaultCertificateResponseInner resource) {
+ resetCreateUpdateParameters();
+ return resource;
+ }
+ })
.map(innerToFluentMap(this));
}
@Override
public Observable updateResourceAsync() {
VaultCertificatesInner client = this.manager().inner().vaultCertificates();
- return client.createAsync(this.resourceGroupName, this.vaultName, this.certificateName)
+ return client.createAsync(this.resourceGroupName, this.vaultName, this.certificateName, this.uproperties)
+ .map(new Func1() {
+ @Override
+ public VaultCertificateResponseInner call(VaultCertificateResponseInner resource) {
+ resetCreateUpdateParameters();
+ return resource;
+ }
+ })
.map(innerToFluentMap(this));
}
@@ -69,6 +91,10 @@ public boolean isInCreateMode() {
return this.inner().id() == null;
}
+ private void resetCreateUpdateParameters() {
+ this.cproperties = new RawCertificateData();
+ this.uproperties = new RawCertificateData();
+ }
@Override
public String id() {
@@ -97,4 +123,14 @@ public VaultCertificateResponseImpl withExistingVault(String resourceGroupName,
return this;
}
+ @Override
+ public VaultCertificateResponseImpl withProperties(RawCertificateData properties) {
+ if (isInCreateMode()) {
+ this.cproperties = properties;
+ } else {
+ this.uproperties = properties;
+ }
+ return this;
+ }
+
}