Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/services/storagesyncManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -112,7 +112,7 @@ class CloudEndpoint extends models['ProxyResource'] {
readOnly: true,
serializedName: 'properties.backupEnabled',
type: {
name: 'Boolean'
name: 'String'
}
},
provisioningState: {
Expand Down
138 changes: 134 additions & 4 deletions lib/services/storagesyncManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export interface CloudEndpoint extends ProxyResource {
/**
* Backup Enabled
*/
readonly backupEnabled?: boolean;
readonly backupEnabled?: string;
/**
* CloudEndpoint Provisioning State
*/
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
}

/**
Expand All @@ -424,7 +554,7 @@ export interface RegisteredServer extends ProxyResource {
/**
* Registered Server Management Error Code
*/
serverManagementtErrorCode?: number;
serverManagementErrorCode?: number;
/**
* Registered Server last heart beat
*/
Expand Down
3 changes: 3 additions & 0 deletions lib/services/storagesyncManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -106,9 +106,9 @@ class RegisteredServer extends models['ProxyResource'] {
name: 'String'
}
},
serverManagementtErrorCode: {
serverManagementErrorCode: {
required: false,
serializedName: 'properties.serverManagementtErrorCode',
serializedName: 'properties.serverManagementErrorCode',
type: {
name: 'Number'
}
Expand Down
88 changes: 86 additions & 2 deletions lib/services/storagesyncManagement/lib/models/serverEndpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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'
}
}
}
}
Expand Down
Loading