diff --git a/lib/services/storagesyncManagement/LICENSE.txt b/lib/services/storagesyncManagement/LICENSE.txt index 5431ba98b9..8f3d856145 100644 --- a/lib/services/storagesyncManagement/LICENSE.txt +++ b/lib/services/storagesyncManagement/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/lib/services/storagesyncManagement/lib/models/cloudEndpoint.js b/lib/services/storagesyncManagement/lib/models/cloudEndpoint.js index 3159ec6339..6065752869 100644 --- a/lib/services/storagesyncManagement/lib/models/cloudEndpoint.js +++ b/lib/services/storagesyncManagement/lib/models/cloudEndpoint.js @@ -25,7 +25,7 @@ class CloudEndpoint extends models['ProxyResource'] { * @property {string} [storageAccountTenantId] Storage Account Tenant Id * @property {string} [partnershipId] Partnership Id * @property {string} [friendlyName] Friendly Name - * @property {boolean} [backupEnabled] Backup Enabled + * @property {string} [backupEnabled] Backup Enabled * @property {string} [provisioningState] CloudEndpoint Provisioning State * @property {string} [lastWorkflowId] CloudEndpoint lastWorkflowId * @property {string} [lastOperationName] Resource Last Operation Name @@ -112,7 +112,7 @@ class CloudEndpoint extends models['ProxyResource'] { readOnly: true, serializedName: 'properties.backupEnabled', type: { - name: 'Boolean' + name: 'String' } }, provisioningState: { diff --git a/lib/services/storagesyncManagement/lib/models/index.d.ts b/lib/services/storagesyncManagement/lib/models/index.d.ts index a837844aca..4f950db8d4 100644 --- a/lib/services/storagesyncManagement/lib/models/index.d.ts +++ b/lib/services/storagesyncManagement/lib/models/index.d.ts @@ -181,7 +181,7 @@ export interface CloudEndpoint extends ProxyResource { /** * Backup Enabled */ - readonly backupEnabled?: boolean; + readonly backupEnabled?: string; /** * CloudEndpoint Provisioning State */ @@ -287,6 +287,14 @@ export interface ServerEndpointCreateParameters extends ProxyResource { * Server Resource Id. */ serverResourceId?: string; + /** + * Offline data transfer. Possible values include: 'on', 'off' + */ + offlineDataTransfer?: string; + /** + * Offline data transfer share name + */ + offlineDataTransferShareName?: string; } /** @@ -357,6 +365,112 @@ export interface ServerEndpointUpdateParameters { * Tier files older than days. */ tierFilesOlderThanDays?: number; + /** + * Offline data transfer. Possible values include: 'on', 'off' + */ + offlineDataTransfer?: string; + /** + * Offline data transfer share name + */ + offlineDataTransferShareName?: string; +} + +/** + * Sync Session status object. +*/ +export interface SyncSessionStatus { + /** + * Last sync status + */ + lastSyncResult?: number; + /** + * Last sync timestamp + */ + lastSyncTimestamp?: Date; + /** + * Last sync success timestamp + */ + lastSyncSuccessTimestamp?: Date; + /** + * Last sync per item error count. + */ + lastSyncPerItemErrorCount?: number; +} + +/** + * Sync Session status object. +*/ +export interface SyncProgressStatus { + /** + * Progress timestamp + */ + progressTimestamp?: Date; + /** + * Sync direction. Possible values include: 'none', 'initialize', 'download', 'upload', 'recall' + */ + syncDirection?: string; + /** + * Per item error count + */ + perItemErrorCount?: number; + /** + * Applied item count. + */ + appliedItemCount?: number; + /** + * Total item count + */ + totalItemCount?: number; + /** + * Applied bytes + */ + appliedBytes?: number; + /** + * Total bytes + */ + totalBytes?: number; +} + +/** + * ServerEndpoint Health object. +*/ +export interface ServerEndpointHealth { + /** + * Download Health Status. Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', + * 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + */ + downloadHealth?: string; + /** + * Upload Health Status. Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', + * 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + */ + uploadHealth?: string; + /** + * Combined Health Status. Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', + * 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + */ + combinedHealth?: string; + /** + * Last Updated Timestamp + */ + lastUpdatedTimestamp?: Date; + /** + * Upload Status + */ + uploadStatus?: SyncSessionStatus; + /** + * Download Status + */ + downloadStatus?: SyncSessionStatus; + /** + * Current progress + */ + currentProgress?: SyncProgressStatus; + /** + * Offline Data Transfer State. Possible values include: 'InProgress', 'Stopping', 'NotRunning', + * 'Complete' + */ + offlineDataTransferStatus?: string; } /** @@ -400,9 +514,25 @@ export interface ServerEndpoint extends ProxyResource { */ lastOperationName?: string; /** - * Sync Health Status + * Server Endpoint properties. + */ + syncStatus?: ServerEndpointHealth; + /** + * Offline data transfer. Possible values include: 'on', 'off' + */ + offlineDataTransfer?: string; + /** + * Offline data transfer storage account resource ID + */ + readonly offlineDataTransferStorageAccountResourceId?: string; + /** + * Offline data transfer storage account tenant ID + */ + readonly offlineDataTransferStorageAccountTenantId?: string; + /** + * Offline data transfer share name */ - syncStatus?: any; + offlineDataTransferShareName?: string; } /** @@ -424,7 +554,7 @@ export interface RegisteredServer extends ProxyResource { /** * Registered Server Management Error Code */ - serverManagementtErrorCode?: number; + serverManagementErrorCode?: number; /** * Registered Server last heart beat */ diff --git a/lib/services/storagesyncManagement/lib/models/index.js b/lib/services/storagesyncManagement/lib/models/index.js index 0f5b9cbd94..41d3816218 100644 --- a/lib/services/storagesyncManagement/lib/models/index.js +++ b/lib/services/storagesyncManagement/lib/models/index.js @@ -36,6 +36,9 @@ exports.ServerEndpointCreateParameters = require('./serverEndpointCreateParamete exports.TriggerRolloverRequest = require('./triggerRolloverRequest'); exports.RegisteredServerCreateParameters = require('./registeredServerCreateParameters'); exports.ServerEndpointUpdateParameters = require('./serverEndpointUpdateParameters'); +exports.SyncSessionStatus = require('./syncSessionStatus'); +exports.SyncProgressStatus = require('./syncProgressStatus'); +exports.ServerEndpointHealth = require('./serverEndpointHealth'); exports.ServerEndpoint = require('./serverEndpoint'); exports.RegisteredServer = require('./registeredServer'); exports.ResourcesMoveInfo = require('./resourcesMoveInfo'); diff --git a/lib/services/storagesyncManagement/lib/models/registeredServer.js b/lib/services/storagesyncManagement/lib/models/registeredServer.js index 039c879025..1d1c0f1ded 100644 --- a/lib/services/storagesyncManagement/lib/models/registeredServer.js +++ b/lib/services/storagesyncManagement/lib/models/registeredServer.js @@ -23,7 +23,7 @@ class RegisteredServer extends models['ProxyResource'] { * @property {string} [serverCertificate] Registered Server Certificate * @property {string} [agentVersion] Registered Server Agent Version * @property {string} [serverOSVersion] Registered Server OS Version - * @property {number} [serverManagementtErrorCode] Registered Server + * @property {number} [serverManagementErrorCode] Registered Server * Management Error Code * @property {string} [lastHeartBeat] Registered Server last heart beat * @property {string} [provisioningState] Registered Server Provisioning @@ -106,9 +106,9 @@ class RegisteredServer extends models['ProxyResource'] { name: 'String' } }, - serverManagementtErrorCode: { + serverManagementErrorCode: { required: false, - serializedName: 'properties.serverManagementtErrorCode', + serializedName: 'properties.serverManagementErrorCode', type: { name: 'Number' } diff --git a/lib/services/storagesyncManagement/lib/models/serverEndpoint.js b/lib/services/storagesyncManagement/lib/models/serverEndpoint.js index 63ac7be0c9..da89947c59 100644 --- a/lib/services/storagesyncManagement/lib/models/serverEndpoint.js +++ b/lib/services/storagesyncManagement/lib/models/serverEndpoint.js @@ -31,7 +31,60 @@ class ServerEndpoint extends models['ProxyResource'] { * @property {string} [provisioningState] ServerEndpoint Provisioning State * @property {string} [lastWorkflowId] ServerEndpoint lastWorkflowId * @property {string} [lastOperationName] Resource Last Operation Name - * @property {object} [syncStatus] Sync Health Status + * @property {object} [syncStatus] Server Endpoint properties. + * @property {string} [syncStatus.downloadHealth] Download Health Status. + * Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', + * 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + * @property {string} [syncStatus.uploadHealth] Upload Health Status. + * Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', + * 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + * @property {string} [syncStatus.combinedHealth] Combined Health Status. + * Possible values include: 'Healthy', 'Error', 'SyncBlockedForRestore', + * 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + * @property {date} [syncStatus.lastUpdatedTimestamp] Last Updated Timestamp + * @property {object} [syncStatus.uploadStatus] Upload Status + * @property {number} [syncStatus.uploadStatus.lastSyncResult] Last sync + * status + * @property {date} [syncStatus.uploadStatus.lastSyncTimestamp] Last sync + * timestamp + * @property {date} [syncStatus.uploadStatus.lastSyncSuccessTimestamp] Last + * sync success timestamp + * @property {number} [syncStatus.uploadStatus.lastSyncPerItemErrorCount] + * Last sync per item error count. + * @property {object} [syncStatus.downloadStatus] Download Status + * @property {number} [syncStatus.downloadStatus.lastSyncResult] Last sync + * status + * @property {date} [syncStatus.downloadStatus.lastSyncTimestamp] Last sync + * timestamp + * @property {date} [syncStatus.downloadStatus.lastSyncSuccessTimestamp] Last + * sync success timestamp + * @property {number} [syncStatus.downloadStatus.lastSyncPerItemErrorCount] + * Last sync per item error count. + * @property {object} [syncStatus.currentProgress] Current progress + * @property {date} [syncStatus.currentProgress.progressTimestamp] Progress + * timestamp + * @property {string} [syncStatus.currentProgress.syncDirection] Sync + * direction. Possible values include: 'none', 'initialize', 'download', + * 'upload', 'recall' + * @property {number} [syncStatus.currentProgress.perItemErrorCount] Per item + * error count + * @property {number} [syncStatus.currentProgress.appliedItemCount] Applied + * item count. + * @property {number} [syncStatus.currentProgress.totalItemCount] Total item + * count + * @property {number} [syncStatus.currentProgress.appliedBytes] Applied bytes + * @property {number} [syncStatus.currentProgress.totalBytes] Total bytes + * @property {string} [syncStatus.offlineDataTransferStatus] Offline Data + * Transfer State. Possible values include: 'InProgress', 'Stopping', + * 'NotRunning', 'Complete' + * @property {string} [offlineDataTransfer] Offline data transfer. Possible + * values include: 'on', 'off' + * @property {string} [offlineDataTransferStorageAccountResourceId] Offline + * data transfer storage account resource ID + * @property {string} [offlineDataTransferStorageAccountTenantId] Offline + * data transfer storage account tenant ID + * @property {string} [offlineDataTransferShareName] Offline data transfer + * share name */ constructor() { super(); @@ -150,7 +203,38 @@ class ServerEndpoint extends models['ProxyResource'] { required: false, serializedName: 'properties.syncStatus', type: { - name: 'Object' + name: 'Composite', + className: 'ServerEndpointHealth' + } + }, + offlineDataTransfer: { + required: false, + serializedName: 'properties.offlineDataTransfer', + type: { + name: 'String' + } + }, + offlineDataTransferStorageAccountResourceId: { + required: false, + readOnly: true, + serializedName: 'properties.offlineDataTransferStorageAccountResourceId', + type: { + name: 'String' + } + }, + offlineDataTransferStorageAccountTenantId: { + required: false, + readOnly: true, + serializedName: 'properties.offlineDataTransferStorageAccountTenantId', + type: { + name: 'String' + } + }, + offlineDataTransferShareName: { + required: false, + serializedName: 'properties.offlineDataTransferShareName', + type: { + name: 'String' } } } diff --git a/lib/services/storagesyncManagement/lib/models/serverEndpointCreateParameters.js b/lib/services/storagesyncManagement/lib/models/serverEndpointCreateParameters.js index 4c3405dd21..609c5f2131 100644 --- a/lib/services/storagesyncManagement/lib/models/serverEndpointCreateParameters.js +++ b/lib/services/storagesyncManagement/lib/models/serverEndpointCreateParameters.js @@ -28,6 +28,10 @@ class ServerEndpointCreateParameters extends models['ProxyResource'] { * @property {number} [tierFilesOlderThanDays] Tier files older than days. * @property {string} [friendlyName] Friendly Name * @property {string} [serverResourceId] Server Resource Id. + * @property {string} [offlineDataTransfer] Offline data transfer. Possible + * values include: 'on', 'off' + * @property {string} [offlineDataTransferShareName] Offline data transfer + * share name */ constructor() { super(); @@ -120,6 +124,20 @@ class ServerEndpointCreateParameters extends models['ProxyResource'] { type: { name: 'String' } + }, + offlineDataTransfer: { + required: false, + serializedName: 'properties.offlineDataTransfer', + type: { + name: 'String' + } + }, + offlineDataTransferShareName: { + required: false, + serializedName: 'properties.offlineDataTransferShareName', + type: { + name: 'String' + } } } } diff --git a/lib/services/storagesyncManagement/lib/models/serverEndpointHealth.js b/lib/services/storagesyncManagement/lib/models/serverEndpointHealth.js new file mode 100644 index 0000000000..7243b8a66d --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/serverEndpointHealth.js @@ -0,0 +1,141 @@ +/* + * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * ServerEndpoint Health object. + * + */ +class ServerEndpointHealth { + /** + * Create a ServerEndpointHealth. + * @property {string} [downloadHealth] Download Health Status. Possible + * values include: 'Healthy', 'Error', 'SyncBlockedForRestore', + * 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + * @property {string} [uploadHealth] Upload Health Status. Possible values + * include: 'Healthy', 'Error', 'SyncBlockedForRestore', + * 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + * @property {string} [combinedHealth] Combined Health Status. Possible + * values include: 'Healthy', 'Error', 'SyncBlockedForRestore', + * 'SyncBlockedForChangeDetectionPostRestore', 'NoActivity' + * @property {date} [lastUpdatedTimestamp] Last Updated Timestamp + * @property {object} [uploadStatus] Upload Status + * @property {number} [uploadStatus.lastSyncResult] Last sync status + * @property {date} [uploadStatus.lastSyncTimestamp] Last sync timestamp + * @property {date} [uploadStatus.lastSyncSuccessTimestamp] Last sync success + * timestamp + * @property {number} [uploadStatus.lastSyncPerItemErrorCount] Last sync per + * item error count. + * @property {object} [downloadStatus] Download Status + * @property {number} [downloadStatus.lastSyncResult] Last sync status + * @property {date} [downloadStatus.lastSyncTimestamp] Last sync timestamp + * @property {date} [downloadStatus.lastSyncSuccessTimestamp] Last sync + * success timestamp + * @property {number} [downloadStatus.lastSyncPerItemErrorCount] Last sync + * per item error count. + * @property {object} [currentProgress] Current progress + * @property {date} [currentProgress.progressTimestamp] Progress timestamp + * @property {string} [currentProgress.syncDirection] Sync direction. + * Possible values include: 'none', 'initialize', 'download', 'upload', + * 'recall' + * @property {number} [currentProgress.perItemErrorCount] Per item error + * count + * @property {number} [currentProgress.appliedItemCount] Applied item count. + * @property {number} [currentProgress.totalItemCount] Total item count + * @property {number} [currentProgress.appliedBytes] Applied bytes + * @property {number} [currentProgress.totalBytes] Total bytes + * @property {string} [offlineDataTransferStatus] Offline Data Transfer + * State. Possible values include: 'InProgress', 'Stopping', 'NotRunning', + * 'Complete' + */ + constructor() { + } + + /** + * Defines the metadata of ServerEndpointHealth + * + * @returns {object} metadata of ServerEndpointHealth + * + */ + mapper() { + return { + required: false, + serializedName: 'ServerEndpointHealth', + type: { + name: 'Composite', + className: 'ServerEndpointHealth', + modelProperties: { + downloadHealth: { + required: false, + serializedName: 'downloadHealth', + type: { + name: 'String' + } + }, + uploadHealth: { + required: false, + serializedName: 'uploadHealth', + type: { + name: 'String' + } + }, + combinedHealth: { + required: false, + serializedName: 'combinedHealth', + type: { + name: 'String' + } + }, + lastUpdatedTimestamp: { + required: false, + serializedName: 'lastUpdatedTimestamp', + type: { + name: 'DateTime' + } + }, + uploadStatus: { + required: false, + serializedName: 'uploadStatus', + type: { + name: 'Composite', + className: 'SyncSessionStatus' + } + }, + downloadStatus: { + required: false, + serializedName: 'downloadStatus', + type: { + name: 'Composite', + className: 'SyncSessionStatus' + } + }, + currentProgress: { + required: false, + serializedName: 'currentProgress', + type: { + name: 'Composite', + className: 'SyncProgressStatus' + } + }, + offlineDataTransferStatus: { + required: false, + serializedName: 'offlineDataTransferStatus', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ServerEndpointHealth; diff --git a/lib/services/storagesyncManagement/lib/models/serverEndpointUpdateParameters.js b/lib/services/storagesyncManagement/lib/models/serverEndpointUpdateParameters.js index de8a2d4259..b53680fa4d 100644 --- a/lib/services/storagesyncManagement/lib/models/serverEndpointUpdateParameters.js +++ b/lib/services/storagesyncManagement/lib/models/serverEndpointUpdateParameters.js @@ -22,6 +22,10 @@ class ServerEndpointUpdateParameters { * @property {number} [volumeFreeSpacePercent] Level of free space to be * maintained by Cloud Tiering if it is enabled. * @property {number} [tierFilesOlderThanDays] Tier files older than days. + * @property {string} [offlineDataTransfer] Offline data transfer. Possible + * values include: 'on', 'off' + * @property {string} [offlineDataTransferShareName] Offline data transfer + * share name */ constructor() { } @@ -68,6 +72,20 @@ class ServerEndpointUpdateParameters { type: { name: 'Number' } + }, + offlineDataTransfer: { + required: false, + serializedName: 'properties.offlineDataTransfer', + type: { + name: 'String' + } + }, + offlineDataTransferShareName: { + required: false, + serializedName: 'properties.offlineDataTransferShareName', + type: { + name: 'String' + } } } } diff --git a/lib/services/storagesyncManagement/lib/models/syncProgressStatus.js b/lib/services/storagesyncManagement/lib/models/syncProgressStatus.js new file mode 100644 index 0000000000..8cc546d409 --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/syncProgressStatus.js @@ -0,0 +1,121 @@ +/* + * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Sync Session status object. + * + */ +class SyncProgressStatus { + /** + * Create a SyncProgressStatus. + * @property {date} [progressTimestamp] Progress timestamp + * @property {string} [syncDirection] Sync direction. Possible values + * include: 'none', 'initialize', 'download', 'upload', 'recall' + * @property {number} [perItemErrorCount] Per item error count + * @property {number} [appliedItemCount] Applied item count. + * @property {number} [totalItemCount] Total item count + * @property {number} [appliedBytes] Applied bytes + * @property {number} [totalBytes] Total bytes + */ + constructor() { + } + + /** + * Defines the metadata of SyncProgressStatus + * + * @returns {object} metadata of SyncProgressStatus + * + */ + mapper() { + return { + required: false, + serializedName: 'SyncProgressStatus', + type: { + name: 'Composite', + className: 'SyncProgressStatus', + modelProperties: { + progressTimestamp: { + required: false, + serializedName: 'progressTimestamp', + type: { + name: 'DateTime' + } + }, + syncDirection: { + required: false, + serializedName: 'syncDirection', + type: { + name: 'String' + } + }, + perItemErrorCount: { + required: false, + serializedName: 'perItemErrorCount', + constraints: { + InclusiveMaximum: 2147483647, + InclusiveMinimum: 0 + }, + type: { + name: 'Number' + } + }, + appliedItemCount: { + required: false, + serializedName: 'appliedItemCount', + constraints: { + InclusiveMaximum: 2147483647, + InclusiveMinimum: 0 + }, + type: { + name: 'Number' + } + }, + totalItemCount: { + required: false, + serializedName: 'totalItemCount', + constraints: { + InclusiveMaximum: 2147483647, + InclusiveMinimum: 0 + }, + type: { + name: 'Number' + } + }, + appliedBytes: { + required: false, + serializedName: 'appliedBytes', + constraints: { + InclusiveMaximum: 2147483647, + InclusiveMinimum: 0 + }, + type: { + name: 'Number' + } + }, + totalBytes: { + required: false, + serializedName: 'totalBytes', + constraints: { + InclusiveMaximum: 2147483647, + InclusiveMinimum: 0 + }, + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = SyncProgressStatus; diff --git a/lib/services/storagesyncManagement/lib/models/syncSessionStatus.js b/lib/services/storagesyncManagement/lib/models/syncSessionStatus.js new file mode 100644 index 0000000000..57f4fb27e8 --- /dev/null +++ b/lib/services/storagesyncManagement/lib/models/syncSessionStatus.js @@ -0,0 +1,81 @@ +/* + * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Sync Session status object. + * + */ +class SyncSessionStatus { + /** + * Create a SyncSessionStatus. + * @property {number} [lastSyncResult] Last sync status + * @property {date} [lastSyncTimestamp] Last sync timestamp + * @property {date} [lastSyncSuccessTimestamp] Last sync success timestamp + * @property {number} [lastSyncPerItemErrorCount] Last sync per item error + * count. + */ + constructor() { + } + + /** + * Defines the metadata of SyncSessionStatus + * + * @returns {object} metadata of SyncSessionStatus + * + */ + mapper() { + return { + required: false, + serializedName: 'SyncSessionStatus', + type: { + name: 'Composite', + className: 'SyncSessionStatus', + modelProperties: { + lastSyncResult: { + required: false, + serializedName: 'lastSyncResult', + type: { + name: 'Number' + } + }, + lastSyncTimestamp: { + required: false, + serializedName: 'lastSyncTimestamp', + type: { + name: 'DateTime' + } + }, + lastSyncSuccessTimestamp: { + required: false, + serializedName: 'lastSyncSuccessTimestamp', + type: { + name: 'DateTime' + } + }, + lastSyncPerItemErrorCount: { + required: false, + serializedName: 'lastSyncPerItemErrorCount', + constraints: { + InclusiveMaximum: 2147483647, + InclusiveMinimum: 0 + }, + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = SyncSessionStatus; diff --git a/lib/services/storagesyncManagement/lib/operations/index.d.ts b/lib/services/storagesyncManagement/lib/operations/index.d.ts index 5b84e00ca8..d7f49448d4 100644 --- a/lib/services/storagesyncManagement/lib/operations/index.d.ts +++ b/lib/services/storagesyncManagement/lib/operations/index.d.ts @@ -2261,6 +2261,12 @@ export interface ServerEndpoints { * * @param {string} [parameters.serverResourceId] Server Resource Id. * + * @param {string} [parameters.offlineDataTransfer] Offline data transfer. + * Possible values include: 'on', 'off' + * + * @param {string} [parameters.offlineDataTransferShareName] Offline data + * transfer share name + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2304,6 +2310,12 @@ export interface ServerEndpoints { * * @param {string} [parameters.serverResourceId] Server Resource Id. * + * @param {string} [parameters.offlineDataTransfer] Offline data transfer. + * Possible values include: 'on', 'off' + * + * @param {string} [parameters.offlineDataTransferShareName] Offline data + * transfer share name + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2363,6 +2375,12 @@ export interface ServerEndpoints { * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older * than days. * + * @param {string} [options.parameters.offlineDataTransfer] Offline data + * transfer. Possible values include: 'on', 'off' + * + * @param {string} [options.parameters.offlineDataTransferShareName] Offline + * data transfer share name + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2401,6 +2419,12 @@ export interface ServerEndpoints { * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older * than days. * + * @param {string} [options.parameters.offlineDataTransfer] Offline data + * transfer. Possible values include: 'on', 'off' + * + * @param {string} [options.parameters.offlineDataTransferShareName] Offline + * data transfer share name + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2751,6 +2775,12 @@ export interface ServerEndpoints { * * @param {string} [parameters.serverResourceId] Server Resource Id. * + * @param {string} [parameters.offlineDataTransfer] Offline data transfer. + * Possible values include: 'on', 'off' + * + * @param {string} [parameters.offlineDataTransferShareName] Offline data + * transfer share name + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2794,6 +2824,12 @@ export interface ServerEndpoints { * * @param {string} [parameters.serverResourceId] Server Resource Id. * + * @param {string} [parameters.offlineDataTransfer] Offline data transfer. + * Possible values include: 'on', 'off' + * + * @param {string} [parameters.offlineDataTransferShareName] Offline data + * transfer share name + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2853,6 +2889,12 @@ export interface ServerEndpoints { * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older * than days. * + * @param {string} [options.parameters.offlineDataTransfer] Offline data + * transfer. Possible values include: 'on', 'off' + * + * @param {string} [options.parameters.offlineDataTransferShareName] Offline + * data transfer share name + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2891,6 +2933,12 @@ export interface ServerEndpoints { * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older * than days. * + * @param {string} [options.parameters.offlineDataTransfer] Offline data + * transfer. Possible values include: 'on', 'off' + * + * @param {string} [options.parameters.offlineDataTransferShareName] Offline + * data transfer share name + * * @param {object} [options.customHeaders] Headers that will be added to the * request * diff --git a/lib/services/storagesyncManagement/lib/operations/serverEndpoints.js b/lib/services/storagesyncManagement/lib/operations/serverEndpoints.js index 5594baf60f..8c1eb2be71 100644 --- a/lib/services/storagesyncManagement/lib/operations/serverEndpoints.js +++ b/lib/services/storagesyncManagement/lib/operations/serverEndpoints.js @@ -45,6 +45,12 @@ const WebResource = msRest.WebResource; * * @param {string} [parameters.serverResourceId] Server Resource Id. * + * @param {string} [parameters.offlineDataTransfer] Offline data transfer. + * Possible values include: 'on', 'off' + * + * @param {string} [parameters.offlineDataTransferShareName] Offline data + * transfer share name + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -143,6 +149,12 @@ function _create(resourceGroupName, storageSyncServiceName, syncGroupName, serve * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older * than days. * + * @param {string} [options.parameters.offlineDataTransfer] Offline data + * transfer. Possible values include: 'on', 'off' + * + * @param {string} [options.parameters.offlineDataTransferShareName] Offline + * data transfer share name + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -751,6 +763,12 @@ function _recallAction(resourceGroupName, storageSyncServiceName, syncGroupName, * * @param {string} [parameters.serverResourceId] Server Resource Id. * + * @param {string} [parameters.offlineDataTransfer] Offline data transfer. + * Possible values include: 'on', 'off' + * + * @param {string} [parameters.offlineDataTransferShareName] Offline data + * transfer share name + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -968,6 +986,12 @@ function _beginCreate(resourceGroupName, storageSyncServiceName, syncGroupName, * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older * than days. * + * @param {string} [options.parameters.offlineDataTransfer] Offline data + * transfer. Possible values include: 'on', 'off' + * + * @param {string} [options.parameters.offlineDataTransferShareName] Offline + * data transfer share name + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1563,6 +1587,12 @@ class ServerEndpoints { * * @param {string} [parameters.serverResourceId] Server Resource Id. * + * @param {string} [parameters.offlineDataTransfer] Offline data transfer. + * Possible values include: 'on', 'off' + * + * @param {string} [parameters.offlineDataTransferShareName] Offline data + * transfer share name + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1618,6 +1648,12 @@ class ServerEndpoints { * * @param {string} [parameters.serverResourceId] Server Resource Id. * + * @param {string} [parameters.offlineDataTransfer] Offline data transfer. + * Possible values include: 'on', 'off' + * + * @param {string} [parameters.offlineDataTransferShareName] Offline data + * transfer share name + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1692,6 +1728,12 @@ class ServerEndpoints { * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older * than days. * + * @param {string} [options.parameters.offlineDataTransfer] Offline data + * transfer. Possible values include: 'on', 'off' + * + * @param {string} [options.parameters.offlineDataTransferShareName] Offline + * data transfer share name + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1742,6 +1784,12 @@ class ServerEndpoints { * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older * than days. * + * @param {string} [options.parameters.offlineDataTransfer] Offline data + * transfer. Possible values include: 'on', 'off' + * + * @param {string} [options.parameters.offlineDataTransferShareName] Offline + * data transfer share name + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2215,6 +2263,12 @@ class ServerEndpoints { * * @param {string} [parameters.serverResourceId] Server Resource Id. * + * @param {string} [parameters.offlineDataTransfer] Offline data transfer. + * Possible values include: 'on', 'off' + * + * @param {string} [parameters.offlineDataTransferShareName] Offline data + * transfer share name + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2270,6 +2324,12 @@ class ServerEndpoints { * * @param {string} [parameters.serverResourceId] Server Resource Id. * + * @param {string} [parameters.offlineDataTransfer] Offline data transfer. + * Possible values include: 'on', 'off' + * + * @param {string} [parameters.offlineDataTransferShareName] Offline data + * transfer share name + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -2344,6 +2404,12 @@ class ServerEndpoints { * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older * than days. * + * @param {string} [options.parameters.offlineDataTransfer] Offline data + * transfer. Possible values include: 'on', 'off' + * + * @param {string} [options.parameters.offlineDataTransferShareName] Offline + * data transfer share name + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2394,6 +2460,12 @@ class ServerEndpoints { * @param {number} [options.parameters.tierFilesOlderThanDays] Tier files older * than days. * + * @param {string} [options.parameters.offlineDataTransfer] Offline data + * transfer. Possible values include: 'on', 'off' + * + * @param {string} [options.parameters.offlineDataTransferShareName] Offline + * data transfer share name + * * @param {object} [options.customHeaders] Headers that will be added to the * request * diff --git a/lib/services/storagesyncManagement/lib/storageSyncManagementClient.js b/lib/services/storagesyncManagement/lib/storageSyncManagementClient.js index 092c1b3228..c2d19694f9 100644 --- a/lib/services/storagesyncManagement/lib/storageSyncManagementClient.js +++ b/lib/services/storagesyncManagement/lib/storageSyncManagementClient.js @@ -50,7 +50,7 @@ class StorageSyncManagementClient extends ServiceClient { super(credentials, options); - this.apiVersion = '2018-07-01'; + this.apiVersion = '2018-10-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true;