public PutDataPersistenceRuleSpectraS3Request(string dataPolicyId, DataIsolationLevel isolationLevel, string storageDomainId, DataPersistenceRuleType type)
        {
            this.DataPolicyId = dataPolicyId;
            this.IsolationLevel = isolationLevel;
            this.StorageDomainId = storageDomainId;
            this.Type = type;

            this.QueryParams.Add("data_policy_id", dataPolicyId);

            this.QueryParams.Add("isolation_level", isolationLevel.ToString());

            this.QueryParams.Add("storage_domain_id", storageDomainId);

            this.QueryParams.Add("type", type.ToString());
        }
Exemplo n.º 2
0
 /// <summary>
 /// config db server data isolation level
 /// </summary>
 /// <param name="serverType">db server type</param>
 /// <param name="dataIsolationLevel">data isolation level</param>
 public static void ConfigServerDataIsolationLevel(ServerType serverType, DataIsolationLevel dataIsolationLevel)
 {
     ServerTypeDataIsolationLevelCollection[serverType] = dataIsolationLevel;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Configure data isolation level
 /// </summary>
 /// <param name="serverType">Database server type</param>
 /// <param name="dataIsolationLevel">Data isolation level</param>
 public static void ConfigureDataIsolationLevel(DatabaseServerType serverType, DataIsolationLevel dataIsolationLevel)
 {
     ConfigurationManager.Data.ConfigureDataIsolationLevel(serverType, dataIsolationLevel);
 }
 public ModifyDataPersistenceRuleSpectraS3Request WithIsolationLevel(DataIsolationLevel? isolationLevel)
 {
     this._isolationLevel = isolationLevel;
     if (isolationLevel != null)
     {
         this.QueryParams.Add("isolation_level", isolationLevel.ToString());
     }
     else
     {
         this.QueryParams.Remove("isolation_level");
     }
     return this;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Configure data isolation level
 /// </summary>
 /// <param name="serverType">Database server type</param>
 /// <param name="dataIsolationLevel">Data isolation level</param>
 internal static void ConfigureDataIsolationLevel(DatabaseServerType serverType, DataIsolationLevel dataIsolationLevel)
 {
     DatabaseServerDataIsolationLevels[serverType] = dataIsolationLevel;
 }