diff --git a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/ServerEndpointCreateParameters.java b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/ServerEndpointCreateParameters.java index e911320fa69d..72a60c1b03a5 100644 --- a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/ServerEndpointCreateParameters.java +++ b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/ServerEndpointCreateParameters.java @@ -53,6 +53,18 @@ public class ServerEndpointCreateParameters extends ProxyResource { @JsonProperty(value = "properties.serverResourceId") private String serverResourceId; + /** + * Offline data transfer. Possible values include: 'on', 'off'. + */ + @JsonProperty(value = "properties.offlineDataTransfer") + private String offlineDataTransfer; + + /** + * Offline data transfer share name. + */ + @JsonProperty(value = "properties.offlineDataTransferShareName") + private String offlineDataTransferShareName; + /** * Get server Local path. * @@ -173,4 +185,44 @@ public ServerEndpointCreateParameters withServerResourceId(String serverResource return this; } + /** + * Get offline data transfer. Possible values include: 'on', 'off'. + * + * @return the offlineDataTransfer value + */ + public String offlineDataTransfer() { + return this.offlineDataTransfer; + } + + /** + * Set offline data transfer. Possible values include: 'on', 'off'. + * + * @param offlineDataTransfer the offlineDataTransfer value to set + * @return the ServerEndpointCreateParameters object itself. + */ + public ServerEndpointCreateParameters withOfflineDataTransfer(String offlineDataTransfer) { + this.offlineDataTransfer = offlineDataTransfer; + return this; + } + + /** + * Get offline data transfer share name. + * + * @return the offlineDataTransferShareName value + */ + public String offlineDataTransferShareName() { + return this.offlineDataTransferShareName; + } + + /** + * Set offline data transfer share name. + * + * @param offlineDataTransferShareName the offlineDataTransferShareName value to set + * @return the ServerEndpointCreateParameters object itself. + */ + public ServerEndpointCreateParameters withOfflineDataTransferShareName(String offlineDataTransferShareName) { + this.offlineDataTransferShareName = offlineDataTransferShareName; + return this; + } + } diff --git a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/ServerEndpointHealth.java b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/ServerEndpointHealth.java new file mode 100644 index 000000000000..d802db9522ee --- /dev/null +++ b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/ServerEndpointHealth.java @@ -0,0 +1,233 @@ +/** + * 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 org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * ServerEndpoint Health object. + */ +public class ServerEndpointHealth { + /** + * Download Health Status. Possible values include: 'Healthy', 'Error', + * 'SyncBlockedForRestore', 'SyncBlockedForChangeDetectionPostRestore', + * 'NoActivity'. + */ + @JsonProperty(value = "downloadHealth") + private String downloadHealth; + + /** + * Upload Health Status. Possible values include: 'Healthy', 'Error', + * 'SyncBlockedForRestore', 'SyncBlockedForChangeDetectionPostRestore', + * 'NoActivity'. + */ + @JsonProperty(value = "uploadHealth") + private String uploadHealth; + + /** + * Combined Health Status. Possible values include: 'Healthy', 'Error', + * 'SyncBlockedForRestore', 'SyncBlockedForChangeDetectionPostRestore', + * 'NoActivity'. + */ + @JsonProperty(value = "combinedHealth") + private String combinedHealth; + + /** + * Last Updated Timestamp. + */ + @JsonProperty(value = "lastUpdatedTimestamp") + private DateTime lastUpdatedTimestamp; + + /** + * Upload Status. + */ + @JsonProperty(value = "uploadStatus") + private SyncSessionStatus uploadStatus; + + /** + * Download Status. + */ + @JsonProperty(value = "downloadStatus") + private SyncSessionStatus downloadStatus; + + /** + * Current progress. + */ + @JsonProperty(value = "currentProgress") + private SyncProgressStatus currentProgress; + + /** + * Offline Data Transfer State. Possible values include: 'InProgress', + * 'Stopping', 'NotRunning', 'Complete'. + */ + @JsonProperty(value = "offlineDataTransferStatus") + private String offlineDataTransferStatus; + + /** + * Get download Health Status. Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity'. + * + * @return the downloadHealth value + */ + public String downloadHealth() { + return this.downloadHealth; + } + + /** + * Set download Health Status. Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity'. + * + * @param downloadHealth the downloadHealth value to set + * @return the ServerEndpointHealth object itself. + */ + public ServerEndpointHealth withDownloadHealth(String downloadHealth) { + this.downloadHealth = downloadHealth; + return this; + } + + /** + * Get upload Health Status. Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity'. + * + * @return the uploadHealth value + */ + public String uploadHealth() { + return this.uploadHealth; + } + + /** + * Set upload Health Status. Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity'. + * + * @param uploadHealth the uploadHealth value to set + * @return the ServerEndpointHealth object itself. + */ + public ServerEndpointHealth withUploadHealth(String uploadHealth) { + this.uploadHealth = uploadHealth; + return this; + } + + /** + * Get combined Health Status. Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity'. + * + * @return the combinedHealth value + */ + public String combinedHealth() { + return this.combinedHealth; + } + + /** + * Set combined Health Status. Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity'. + * + * @param combinedHealth the combinedHealth value to set + * @return the ServerEndpointHealth object itself. + */ + public ServerEndpointHealth withCombinedHealth(String combinedHealth) { + this.combinedHealth = combinedHealth; + return this; + } + + /** + * Get last Updated Timestamp. + * + * @return the lastUpdatedTimestamp value + */ + public DateTime lastUpdatedTimestamp() { + return this.lastUpdatedTimestamp; + } + + /** + * Set last Updated Timestamp. + * + * @param lastUpdatedTimestamp the lastUpdatedTimestamp value to set + * @return the ServerEndpointHealth object itself. + */ + public ServerEndpointHealth withLastUpdatedTimestamp(DateTime lastUpdatedTimestamp) { + this.lastUpdatedTimestamp = lastUpdatedTimestamp; + return this; + } + + /** + * Get upload Status. + * + * @return the uploadStatus value + */ + public SyncSessionStatus uploadStatus() { + return this.uploadStatus; + } + + /** + * Set upload Status. + * + * @param uploadStatus the uploadStatus value to set + * @return the ServerEndpointHealth object itself. + */ + public ServerEndpointHealth withUploadStatus(SyncSessionStatus uploadStatus) { + this.uploadStatus = uploadStatus; + return this; + } + + /** + * Get download Status. + * + * @return the downloadStatus value + */ + public SyncSessionStatus downloadStatus() { + return this.downloadStatus; + } + + /** + * Set download Status. + * + * @param downloadStatus the downloadStatus value to set + * @return the ServerEndpointHealth object itself. + */ + public ServerEndpointHealth withDownloadStatus(SyncSessionStatus downloadStatus) { + this.downloadStatus = downloadStatus; + return this; + } + + /** + * Get current progress. + * + * @return the currentProgress value + */ + public SyncProgressStatus currentProgress() { + return this.currentProgress; + } + + /** + * Set current progress. + * + * @param currentProgress the currentProgress value to set + * @return the ServerEndpointHealth object itself. + */ + public ServerEndpointHealth withCurrentProgress(SyncProgressStatus currentProgress) { + this.currentProgress = currentProgress; + return this; + } + + /** + * Get offline Data Transfer State. Possible values include: 'InProgress', 'Stopping', 'NotRunning', 'Complete'. + * + * @return the offlineDataTransferStatus value + */ + public String offlineDataTransferStatus() { + return this.offlineDataTransferStatus; + } + + /** + * Set offline Data Transfer State. Possible values include: 'InProgress', 'Stopping', 'NotRunning', 'Complete'. + * + * @param offlineDataTransferStatus the offlineDataTransferStatus value to set + * @return the ServerEndpointHealth object itself. + */ + public ServerEndpointHealth withOfflineDataTransferStatus(String offlineDataTransferStatus) { + this.offlineDataTransferStatus = offlineDataTransferStatus; + return this; + } + +} diff --git a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/ServerEndpointUpdateParameters.java b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/ServerEndpointUpdateParameters.java index b6d5a4477486..aaf8484662a2 100644 --- a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/ServerEndpointUpdateParameters.java +++ b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/ServerEndpointUpdateParameters.java @@ -34,6 +34,18 @@ public class ServerEndpointUpdateParameters { @JsonProperty(value = "properties.tierFilesOlderThanDays") private Integer tierFilesOlderThanDays; + /** + * Offline data transfer. Possible values include: 'on', 'off'. + */ + @JsonProperty(value = "properties.offlineDataTransfer") + private String offlineDataTransfer; + + /** + * Offline data transfer share name. + */ + @JsonProperty(value = "properties.offlineDataTransferShareName") + private String offlineDataTransferShareName; + /** * Get cloud Tiering. Possible values include: 'on', 'off'. * @@ -94,4 +106,44 @@ public ServerEndpointUpdateParameters withTierFilesOlderThanDays(Integer tierFil return this; } + /** + * Get offline data transfer. Possible values include: 'on', 'off'. + * + * @return the offlineDataTransfer value + */ + public String offlineDataTransfer() { + return this.offlineDataTransfer; + } + + /** + * Set offline data transfer. Possible values include: 'on', 'off'. + * + * @param offlineDataTransfer the offlineDataTransfer value to set + * @return the ServerEndpointUpdateParameters object itself. + */ + public ServerEndpointUpdateParameters withOfflineDataTransfer(String offlineDataTransfer) { + this.offlineDataTransfer = offlineDataTransfer; + return this; + } + + /** + * Get offline data transfer share name. + * + * @return the offlineDataTransferShareName value + */ + public String offlineDataTransferShareName() { + return this.offlineDataTransferShareName; + } + + /** + * Set offline data transfer share name. + * + * @param offlineDataTransferShareName the offlineDataTransferShareName value to set + * @return the ServerEndpointUpdateParameters object itself. + */ + public ServerEndpointUpdateParameters withOfflineDataTransferShareName(String offlineDataTransferShareName) { + this.offlineDataTransferShareName = offlineDataTransferShareName; + return this; + } + } diff --git a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/SyncProgressStatus.java b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/SyncProgressStatus.java new file mode 100644 index 000000000000..97c17c7e2587 --- /dev/null +++ b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/SyncProgressStatus.java @@ -0,0 +1,201 @@ +/** + * 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 org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Sync Session status object. + */ +public class SyncProgressStatus { + /** + * Progress timestamp. + */ + @JsonProperty(value = "progressTimestamp") + private DateTime progressTimestamp; + + /** + * Sync direction. Possible values include: 'none', 'initialize', + * 'download', 'upload', 'recall'. + */ + @JsonProperty(value = "syncDirection") + private String syncDirection; + + /** + * Per item error count. + */ + @JsonProperty(value = "perItemErrorCount") + private Integer perItemErrorCount; + + /** + * Applied item count. + */ + @JsonProperty(value = "appliedItemCount") + private Integer appliedItemCount; + + /** + * Total item count. + */ + @JsonProperty(value = "totalItemCount") + private Integer totalItemCount; + + /** + * Applied bytes. + */ + @JsonProperty(value = "appliedBytes") + private Integer appliedBytes; + + /** + * Total bytes. + */ + @JsonProperty(value = "totalBytes") + private Integer totalBytes; + + /** + * Get progress timestamp. + * + * @return the progressTimestamp value + */ + public DateTime progressTimestamp() { + return this.progressTimestamp; + } + + /** + * Set progress timestamp. + * + * @param progressTimestamp the progressTimestamp value to set + * @return the SyncProgressStatus object itself. + */ + public SyncProgressStatus withProgressTimestamp(DateTime progressTimestamp) { + this.progressTimestamp = progressTimestamp; + return this; + } + + /** + * Get sync direction. Possible values include: 'none', 'initialize', 'download', 'upload', 'recall'. + * + * @return the syncDirection value + */ + public String syncDirection() { + return this.syncDirection; + } + + /** + * Set sync direction. Possible values include: 'none', 'initialize', 'download', 'upload', 'recall'. + * + * @param syncDirection the syncDirection value to set + * @return the SyncProgressStatus object itself. + */ + public SyncProgressStatus withSyncDirection(String syncDirection) { + this.syncDirection = syncDirection; + return this; + } + + /** + * Get per item error count. + * + * @return the perItemErrorCount value + */ + public Integer perItemErrorCount() { + return this.perItemErrorCount; + } + + /** + * Set per item error count. + * + * @param perItemErrorCount the perItemErrorCount value to set + * @return the SyncProgressStatus object itself. + */ + public SyncProgressStatus withPerItemErrorCount(Integer perItemErrorCount) { + this.perItemErrorCount = perItemErrorCount; + return this; + } + + /** + * Get applied item count. + * + * @return the appliedItemCount value + */ + public Integer appliedItemCount() { + return this.appliedItemCount; + } + + /** + * Set applied item count. + * + * @param appliedItemCount the appliedItemCount value to set + * @return the SyncProgressStatus object itself. + */ + public SyncProgressStatus withAppliedItemCount(Integer appliedItemCount) { + this.appliedItemCount = appliedItemCount; + return this; + } + + /** + * Get total item count. + * + * @return the totalItemCount value + */ + public Integer totalItemCount() { + return this.totalItemCount; + } + + /** + * Set total item count. + * + * @param totalItemCount the totalItemCount value to set + * @return the SyncProgressStatus object itself. + */ + public SyncProgressStatus withTotalItemCount(Integer totalItemCount) { + this.totalItemCount = totalItemCount; + return this; + } + + /** + * Get applied bytes. + * + * @return the appliedBytes value + */ + public Integer appliedBytes() { + return this.appliedBytes; + } + + /** + * Set applied bytes. + * + * @param appliedBytes the appliedBytes value to set + * @return the SyncProgressStatus object itself. + */ + public SyncProgressStatus withAppliedBytes(Integer appliedBytes) { + this.appliedBytes = appliedBytes; + return this; + } + + /** + * Get total bytes. + * + * @return the totalBytes value + */ + public Integer totalBytes() { + return this.totalBytes; + } + + /** + * Set total bytes. + * + * @param totalBytes the totalBytes value to set + * @return the SyncProgressStatus object itself. + */ + public SyncProgressStatus withTotalBytes(Integer totalBytes) { + this.totalBytes = totalBytes; + return this; + } + +} diff --git a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/SyncSessionStatus.java b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/SyncSessionStatus.java new file mode 100644 index 000000000000..c55c1aa17af4 --- /dev/null +++ b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/SyncSessionStatus.java @@ -0,0 +1,122 @@ +/** + * 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 org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Sync Session status object. + */ +public class SyncSessionStatus { + /** + * Last sync status. + */ + @JsonProperty(value = "lastSyncResult") + private Integer lastSyncResult; + + /** + * Last sync timestamp. + */ + @JsonProperty(value = "lastSyncTimestamp") + private DateTime lastSyncTimestamp; + + /** + * Last sync success timestamp. + */ + @JsonProperty(value = "lastSyncSuccessTimestamp") + private DateTime lastSyncSuccessTimestamp; + + /** + * Last sync per item error count. + */ + @JsonProperty(value = "lastSyncPerItemErrorCount") + private Integer lastSyncPerItemErrorCount; + + /** + * Get last sync status. + * + * @return the lastSyncResult value + */ + public Integer lastSyncResult() { + return this.lastSyncResult; + } + + /** + * Set last sync status. + * + * @param lastSyncResult the lastSyncResult value to set + * @return the SyncSessionStatus object itself. + */ + public SyncSessionStatus withLastSyncResult(Integer lastSyncResult) { + this.lastSyncResult = lastSyncResult; + return this; + } + + /** + * Get last sync timestamp. + * + * @return the lastSyncTimestamp value + */ + public DateTime lastSyncTimestamp() { + return this.lastSyncTimestamp; + } + + /** + * Set last sync timestamp. + * + * @param lastSyncTimestamp the lastSyncTimestamp value to set + * @return the SyncSessionStatus object itself. + */ + public SyncSessionStatus withLastSyncTimestamp(DateTime lastSyncTimestamp) { + this.lastSyncTimestamp = lastSyncTimestamp; + return this; + } + + /** + * Get last sync success timestamp. + * + * @return the lastSyncSuccessTimestamp value + */ + public DateTime lastSyncSuccessTimestamp() { + return this.lastSyncSuccessTimestamp; + } + + /** + * Set last sync success timestamp. + * + * @param lastSyncSuccessTimestamp the lastSyncSuccessTimestamp value to set + * @return the SyncSessionStatus object itself. + */ + public SyncSessionStatus withLastSyncSuccessTimestamp(DateTime lastSyncSuccessTimestamp) { + this.lastSyncSuccessTimestamp = lastSyncSuccessTimestamp; + return this; + } + + /** + * Get last sync per item error count. + * + * @return the lastSyncPerItemErrorCount value + */ + public Integer lastSyncPerItemErrorCount() { + return this.lastSyncPerItemErrorCount; + } + + /** + * Set last sync per item error count. + * + * @param lastSyncPerItemErrorCount the lastSyncPerItemErrorCount value to set + * @return the SyncSessionStatus object itself. + */ + public SyncSessionStatus withLastSyncPerItemErrorCount(Integer lastSyncPerItemErrorCount) { + this.lastSyncPerItemErrorCount = lastSyncPerItemErrorCount; + return this; + } + +} diff --git a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/CloudEndpointInner.java b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/CloudEndpointInner.java index dc6c704ced6c..9077c0db2059 100644 --- a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/CloudEndpointInner.java +++ b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/CloudEndpointInner.java @@ -51,7 +51,7 @@ public class CloudEndpointInner extends ProxyResource { * Backup Enabled. */ @JsonProperty(value = "properties.backupEnabled", access = JsonProperty.Access.WRITE_ONLY) - private Boolean backupEnabled; + private String backupEnabled; /** * CloudEndpoint Provisioning State. @@ -176,7 +176,7 @@ public CloudEndpointInner withFriendlyName(String friendlyName) { * * @return the backupEnabled value */ - public Boolean backupEnabled() { + public String backupEnabled() { return this.backupEnabled; } diff --git a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/RegisteredServerInner.java b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/RegisteredServerInner.java index 75da94b2382c..3111998eb9e0 100644 --- a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/RegisteredServerInner.java +++ b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/RegisteredServerInner.java @@ -38,8 +38,8 @@ public class RegisteredServerInner extends ProxyResource { /** * Registered Server Management Error Code. */ - @JsonProperty(value = "properties.serverManagementtErrorCode") - private Integer serverManagementtErrorCode; + @JsonProperty(value = "properties.serverManagementErrorCode") + private Integer serverManagementErrorCode; /** * Registered Server last heart beat. @@ -194,20 +194,20 @@ public RegisteredServerInner withServerOSVersion(String serverOSVersion) { /** * Get registered Server Management Error Code. * - * @return the serverManagementtErrorCode value + * @return the serverManagementErrorCode value */ - public Integer serverManagementtErrorCode() { - return this.serverManagementtErrorCode; + public Integer serverManagementErrorCode() { + return this.serverManagementErrorCode; } /** * Set registered Server Management Error Code. * - * @param serverManagementtErrorCode the serverManagementtErrorCode value to set + * @param serverManagementErrorCode the serverManagementErrorCode value to set * @return the RegisteredServerInner object itself. */ - public RegisteredServerInner withServerManagementtErrorCode(Integer serverManagementtErrorCode) { - this.serverManagementtErrorCode = serverManagementtErrorCode; + public RegisteredServerInner withServerManagementErrorCode(Integer serverManagementErrorCode) { + this.serverManagementErrorCode = serverManagementErrorCode; return this; } diff --git a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/ServerEndpointInner.java b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/ServerEndpointInner.java index 6d16ee8ba1b3..f49a7b882984 100644 --- a/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/ServerEndpointInner.java +++ b/azure-mgmt-storagesync/src/main/java/com/microsoft/azure/management/storagesync/implementation/ServerEndpointInner.java @@ -8,6 +8,7 @@ package com.microsoft.azure.management.storagesync.implementation; +import com.microsoft.azure.management.storagesync.ServerEndpointHealth; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.ProxyResource; @@ -72,10 +73,34 @@ public class ServerEndpointInner extends ProxyResource { private String lastOperationName; /** - * Sync Health Status. + * Server Endpoint properties. */ @JsonProperty(value = "properties.syncStatus") - private Object syncStatus; + private ServerEndpointHealth syncStatus; + + /** + * Offline data transfer. Possible values include: 'on', 'off'. + */ + @JsonProperty(value = "properties.offlineDataTransfer") + private String offlineDataTransfer; + + /** + * Offline data transfer storage account resource ID. + */ + @JsonProperty(value = "properties.offlineDataTransferStorageAccountResourceId", access = JsonProperty.Access.WRITE_ONLY) + private String offlineDataTransferStorageAccountResourceId; + + /** + * Offline data transfer storage account tenant ID. + */ + @JsonProperty(value = "properties.offlineDataTransferStorageAccountTenantId", access = JsonProperty.Access.WRITE_ONLY) + private String offlineDataTransferStorageAccountTenantId; + + /** + * Offline data transfer share name. + */ + @JsonProperty(value = "properties.offlineDataTransferShareName") + private String offlineDataTransferShareName; /** * Get server Local path. @@ -258,23 +283,81 @@ public ServerEndpointInner withLastOperationName(String lastOperationName) { } /** - * Get sync Health Status. + * Get server Endpoint properties. * * @return the syncStatus value */ - public Object syncStatus() { + public ServerEndpointHealth syncStatus() { return this.syncStatus; } /** - * Set sync Health Status. + * Set server Endpoint properties. * * @param syncStatus the syncStatus value to set * @return the ServerEndpointInner object itself. */ - public ServerEndpointInner withSyncStatus(Object syncStatus) { + public ServerEndpointInner withSyncStatus(ServerEndpointHealth syncStatus) { this.syncStatus = syncStatus; return this; } + /** + * Get offline data transfer. Possible values include: 'on', 'off'. + * + * @return the offlineDataTransfer value + */ + public String offlineDataTransfer() { + return this.offlineDataTransfer; + } + + /** + * Set offline data transfer. Possible values include: 'on', 'off'. + * + * @param offlineDataTransfer the offlineDataTransfer value to set + * @return the ServerEndpointInner object itself. + */ + public ServerEndpointInner withOfflineDataTransfer(String offlineDataTransfer) { + this.offlineDataTransfer = offlineDataTransfer; + return this; + } + + /** + * Get offline data transfer storage account resource ID. + * + * @return the offlineDataTransferStorageAccountResourceId value + */ + public String offlineDataTransferStorageAccountResourceId() { + return this.offlineDataTransferStorageAccountResourceId; + } + + /** + * Get offline data transfer storage account tenant ID. + * + * @return the offlineDataTransferStorageAccountTenantId value + */ + public String offlineDataTransferStorageAccountTenantId() { + return this.offlineDataTransferStorageAccountTenantId; + } + + /** + * Get offline data transfer share name. + * + * @return the offlineDataTransferShareName value + */ + public String offlineDataTransferShareName() { + return this.offlineDataTransferShareName; + } + + /** + * Set offline data transfer share name. + * + * @param offlineDataTransferShareName the offlineDataTransferShareName value to set + * @return the ServerEndpointInner object itself. + */ + public ServerEndpointInner withOfflineDataTransferShareName(String offlineDataTransferShareName) { + this.offlineDataTransferShareName = offlineDataTransferShareName; + return this; + } + } 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 20d2671940b4..73f3e0482415 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 @@ -254,7 +254,7 @@ public StorageSyncManagementClientImpl(RestClient restClient) { } protected void initialize() { - this.apiVersion = "2018-07-01"; + this.apiVersion = "2018-10-01"; this.acceptLanguage = "en-US"; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; @@ -275,6 +275,6 @@ protected void initialize() { */ @Override public String userAgent() { - return String.format("%s (%s, %s)", super.userAgent(), "StorageSyncManagementClient", "2018-07-01"); + return String.format("%s (%s, %s)", super.userAgent(), "StorageSyncManagementClient", "2018-10-01"); } }