diff --git a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/TriggerRolloverRequest.java b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/TriggerRolloverRequest.java index 6e5372620c24..27ebe00b666b 100644 --- a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/TriggerRolloverRequest.java +++ b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/TriggerRolloverRequest.java @@ -17,26 +17,26 @@ public class TriggerRolloverRequest { /** * Certificate Data. */ - @JsonProperty(value = "certificateData") - private String certificateData; + @JsonProperty(value = "serverCertificate") + private String serverCertificate; /** * Get certificate Data. * - * @return the certificateData value + * @return the serverCertificate value */ - public String certificateData() { - return this.certificateData; + public String serverCertificate() { + return this.serverCertificate; } /** * Set certificate Data. * - * @param certificateData the certificateData value to set + * @param serverCertificate the serverCertificate value to set * @return the TriggerRolloverRequest object itself. */ - public TriggerRolloverRequest withCertificateData(String certificateData) { - this.certificateData = certificateData; + public TriggerRolloverRequest withServerCertificate(String serverCertificate) { + this.serverCertificate = serverCertificate; return this; } diff --git a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/RegisteredServersInner.java b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/RegisteredServersInner.java index 293c2f107907..50fda81391eb 100644 --- a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/RegisteredServersInner.java +++ b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/RegisteredServersInner.java @@ -708,9 +708,9 @@ public Observable> observable = service.triggerRollover(this.client.subscriptionId(), resourceGroupName, storageSyncServiceName, serverId, this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultWithHeadersAsync(observable, new TypeToken() { }.getType(), RegisteredServersTriggerRolloverHeaders.class); } @@ -720,13 +720,13 @@ public Observable triggerRolloverAsync(String resourceGroupName, String storageSyncServiceName, String serverId, String certificateData, final ServiceCallback serviceCallback) { - return ServiceFuture.fromHeaderResponse(triggerRolloverWithServiceResponseAsync(resourceGroupName, storageSyncServiceName, serverId, certificateData), serviceCallback); + public ServiceFuture triggerRolloverAsync(String resourceGroupName, String storageSyncServiceName, String serverId, String serverCertificate, final ServiceCallback serviceCallback) { + return ServiceFuture.fromHeaderResponse(triggerRolloverWithServiceResponseAsync(resourceGroupName, storageSyncServiceName, serverId, serverCertificate), serviceCallback); } /** @@ -750,12 +750,12 @@ public ServiceFuture triggerRolloverAsync(String resourceGroupName, String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageSyncServiceName Name of Storage Sync Service resource. * @param serverId Server Id - * @param certificateData Certificate Data + * @param serverCertificate Certificate Data * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable triggerRolloverAsync(String resourceGroupName, String storageSyncServiceName, String serverId, String certificateData) { - return triggerRolloverWithServiceResponseAsync(resourceGroupName, storageSyncServiceName, serverId, certificateData).map(new Func1, Void>() { + public Observable triggerRolloverAsync(String resourceGroupName, String storageSyncServiceName, String serverId, String serverCertificate) { + return triggerRolloverWithServiceResponseAsync(resourceGroupName, storageSyncServiceName, serverId, serverCertificate).map(new Func1, Void>() { @Override public Void call(ServiceResponseWithHeaders response) { return response.body(); @@ -769,11 +769,11 @@ public Void call(ServiceResponseWithHeaders> triggerRolloverWithServiceResponseAsync(String resourceGroupName, String storageSyncServiceName, String serverId, String certificateData) { + public Observable> triggerRolloverWithServiceResponseAsync(String resourceGroupName, String storageSyncServiceName, String serverId, String serverCertificate) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -790,7 +790,7 @@ public Observable> observable = service.triggerRollover(this.client.subscriptionId(), resourceGroupName, storageSyncServiceName, serverId, this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultWithHeadersAsync(observable, new TypeToken() { }.getType(), RegisteredServersTriggerRolloverHeaders.class); } @@ -866,9 +866,9 @@ public Observable, Observable>>() { @Override @@ -889,13 +889,13 @@ public Observable beginTriggerRolloverAsync(String resourceGroupName, String storageSyncServiceName, String serverId, String certificateData, final ServiceCallback serviceCallback) { - return ServiceFuture.fromHeaderResponse(beginTriggerRolloverWithServiceResponseAsync(resourceGroupName, storageSyncServiceName, serverId, certificateData), serviceCallback); + public ServiceFuture beginTriggerRolloverAsync(String resourceGroupName, String storageSyncServiceName, String serverId, String serverCertificate, final ServiceCallback serviceCallback) { + return ServiceFuture.fromHeaderResponse(beginTriggerRolloverWithServiceResponseAsync(resourceGroupName, storageSyncServiceName, serverId, serverCertificate), serviceCallback); } /** @@ -919,12 +919,12 @@ public ServiceFuture beginTriggerRolloverAsync(String resourceGroupName, S * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageSyncServiceName Name of Storage Sync Service resource. * @param serverId Server Id - * @param certificateData Certificate Data + * @param serverCertificate Certificate Data * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponseWithHeaders} object if successful. */ - public Observable beginTriggerRolloverAsync(String resourceGroupName, String storageSyncServiceName, String serverId, String certificateData) { - return beginTriggerRolloverWithServiceResponseAsync(resourceGroupName, storageSyncServiceName, serverId, certificateData).map(new Func1, Void>() { + public Observable beginTriggerRolloverAsync(String resourceGroupName, String storageSyncServiceName, String serverId, String serverCertificate) { + return beginTriggerRolloverWithServiceResponseAsync(resourceGroupName, storageSyncServiceName, serverId, serverCertificate).map(new Func1, Void>() { @Override public Void call(ServiceResponseWithHeaders response) { return response.body(); @@ -938,11 +938,11 @@ public Void call(ServiceResponseWithHeaders> beginTriggerRolloverWithServiceResponseAsync(String resourceGroupName, String storageSyncServiceName, String serverId, String certificateData) { + public Observable> beginTriggerRolloverWithServiceResponseAsync(String resourceGroupName, String storageSyncServiceName, String serverId, String serverCertificate) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -959,7 +959,7 @@ public Observable, Observable>>() { @Override diff --git a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/StorageSyncManagementClientImpl.java b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/StorageSyncManagementClientImpl.java index 0bec5b4aaeb9..20d2671940b4 100644 --- a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/StorageSyncManagementClientImpl.java +++ b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/StorageSyncManagementClientImpl.java @@ -229,7 +229,7 @@ public WorkflowsInner workflows() { * @param credentials the management credentials for Azure */ public StorageSyncManagementClientImpl(ServiceClientCredentials credentials) { - this("https://azure.microsoft.com", credentials); + this("https://management.azure.com", credentials); } /**