Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the RestoreTargetInfo class.
 /// </summary>
 /// <param name="datasourceInfo">Information of target DS</param>
 /// <param name="restoreLocation">Target Restore region</param>
 /// <param name="datasourceSetInfo">Information of target DS
 /// Set</param>
 public RestoreTargetInfo(Datasource datasourceInfo, string restoreLocation = default(string), DatasourceSet datasourceSetInfo = default(DatasourceSet))
     : base(restoreLocation)
 {
     DatasourceInfo    = datasourceInfo;
     DatasourceSetInfo = datasourceSetInfo;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the ItemLevelRestoreTargetInfo class.
 /// </summary>
 /// <param name="restoreCriteria">Restore Criteria</param>
 /// <param name="datasourceInfo">Information of target DS</param>
 /// <param name="restoreLocation">Target Restore region</param>
 /// <param name="datasourceSetInfo">Information of target DS
 /// Set</param>
 public ItemLevelRestoreTargetInfo(IList <ItemLevelRestoreCriteria> restoreCriteria, Datasource datasourceInfo, string restoreLocation = default(string), DatasourceSet datasourceSetInfo = default(DatasourceSet))
     : base(restoreLocation)
 {
     RestoreCriteria   = restoreCriteria;
     DatasourceInfo    = datasourceInfo;
     DatasourceSetInfo = datasourceSetInfo;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the RestoreTargetInfo class.
 /// </summary>
 /// <param name="datasourceInfo">Information of target DS</param>
 /// <param name="restoreLocation">Target Restore region</param>
 /// <param name="datasourceSetInfo">Information of target DS
 /// Set</param>
 /// <param name="datasourceAuthCredentials">Credentials to use to
 /// authenticate with data source provider.</param>
 public RestoreTargetInfo(Datasource datasourceInfo, string restoreLocation = default(string), DatasourceSet datasourceSetInfo = default(DatasourceSet), AuthCredentials datasourceAuthCredentials = default(AuthCredentials))
     : base(restoreLocation)
 {
     DatasourceInfo            = datasourceInfo;
     DatasourceSetInfo         = datasourceSetInfo;
     DatasourceAuthCredentials = datasourceAuthCredentials;
     CustomInit();
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the BackupInstance class.
 /// </summary>
 /// <param name="dataSourceInfo">Gets or sets the data source
 /// information.</param>
 /// <param name="policyInfo">Gets or sets the policy
 /// information.</param>
 /// <param name="friendlyName">Gets or sets the Backup Instance
 /// friendly name.</param>
 /// <param name="dataSourceSetInfo">Gets or sets the data source set
 /// information.</param>
 /// <param name="protectionStatus">Specifies the protection status of
 /// the resource</param>
 /// <param name="currentProtectionState">Specifies the current
 /// protection state of the resource. Possible values include:
 /// 'Invalid', 'NotProtected', 'ConfiguringProtection',
 /// 'ProtectionConfigured', 'BackupSchedulesSuspended',
 /// 'RetentionSchedulesSuspended', 'ProtectionStopped',
 /// 'ProtectionError', 'ConfiguringProtectionFailed', 'SoftDeleting',
 /// 'SoftDeleted', 'UpdatingProtection'</param>
 /// <param name="protectionErrorDetails">Specifies the protection error
 /// of the resource</param>
 /// <param name="provisioningState">Specifies the provisioning state of
 /// the resource i.e. provisioning/updating/Succeeded/Failed</param>
 public BackupInstance(Datasource dataSourceInfo, PolicyInfo policyInfo, string objectType, string friendlyName = default(string), DatasourceSet dataSourceSetInfo = default(DatasourceSet), ProtectionStatusDetails protectionStatus = default(ProtectionStatusDetails), string currentProtectionState = default(string), UserFacingError protectionErrorDetails = default(UserFacingError), string provisioningState = default(string))
 {
     FriendlyName           = friendlyName;
     DataSourceInfo         = dataSourceInfo;
     DataSourceSetInfo      = dataSourceSetInfo;
     PolicyInfo             = policyInfo;
     ProtectionStatus       = protectionStatus;
     CurrentProtectionState = currentProtectionState;
     ProtectionErrorDetails = protectionErrorDetails;
     ProvisioningState      = provisioningState;
     ObjectType             = objectType;
     CustomInit();
 }