Beispiel #1
0
        ///GENMHASH:15C6DE336A70D5E1EDFAC74C3066EED7:9C29DD32907A6122759FBE531E3E19EA
        public SqlServerImpl WithNewElasticPool(string elasticPoolName, ElasticPoolEdition elasticPoolEdition)
        {
            var elasticPoolItem = new SqlElasticPoolImpl(elasticPoolName, this, new ElasticPoolInner(), this.Manager);

            elasticPoolItem.WithEdition(elasticPoolEdition);
            this.sqlElasticPoolsToCreateOrUpdate.Add(elasticPoolItem);
            return(this);
        }
Beispiel #2
0
 ///GENMHASH:7D636B43F636D47A310AB1AF99E3C582:AE9A1BF8CECF2027ED24BE1BBDE1CD93
 public SqlServerImpl WithNewElasticPool(string elasticPoolName, ElasticPoolEdition elasticPoolEdition, params string[] databaseNames)
 {
     this.WithNewElasticPool(elasticPoolName, elasticPoolEdition);
     foreach (var dbName in databaseNames)
     {
         var dbItem = new SqlDatabaseImpl(dbName, this, new DatabaseInner(), this.Manager);
         dbItem.WithExistingElasticPool(elasticPoolName);
         this.sqlDatabasesWithElasticPoolToCreateOrUpdate.Add(dbItem);
     }
     return(this);
 }
Beispiel #3
0
 /// <summary>
 /// Sets the edition for the SQL Elastic Pool.
 /// </summary>
 /// <param name="edition">Edition to be set for elastic pool.</param>
 /// <return>The next stage of the definition.</return>
 SqlElasticPool.Definition.IWithAttach <SqlServer.Definition.IWithCreate> SqlElasticPool.Definition.IWithEditionBeta <SqlServer.Definition.IWithCreate> .WithEdition(ElasticPoolEdition edition)
 {
     return(this.WithEdition(edition));
 }
Beispiel #4
0
 /// <summary>
 /// Sets the edition for the SQL Elastic Pool.
 /// </summary>
 /// <param name="edition">Edition to be set for Elastic Pool.</param>
 /// <return>The next stage of the definition.</return>
 SqlElasticPoolOperations.Definition.IWithCreate SqlElasticPoolOperations.Definition.IWithEditionBeta.WithEdition(ElasticPoolEdition edition)
 {
     return(this.WithEdition(edition));
 }
Beispiel #5
0
 /// <summary>
 /// Create new elastic pool in the SQL Server.
 /// </summary>
 /// <param name="elasticPoolName">Name of the elastic pool to be created.</param>
 /// <param name="elasticPoolEdition">Edition of the elastic pool.</param>
 /// <return>Next stage of the SQL Server update.</return>
 SqlServer.Update.IUpdate SqlServer.Update.IWithElasticPoolBeta.WithNewElasticPool(string elasticPoolName, ElasticPoolEdition elasticPoolEdition)
 {
     return(this.WithNewElasticPool(elasticPoolName, elasticPoolEdition));
 }
Beispiel #6
0
 /// <summary>
 /// Create new elastic pool in the SQL Server.
 /// </summary>
 /// <param name="elasticPoolName">Name of the elastic pool to be created.</param>
 /// <param name="elasticPoolEdition">Edition of the elastic pool.</param>
 /// <param name="databaseNames">Names of the database to be included in the elastic pool.</param>
 /// <return>Next stage of the SQL Server update.</return>
 SqlServer.Update.IUpdate SqlServer.Update.IWithElasticPoolBeta.WithNewElasticPool(string elasticPoolName, ElasticPoolEdition elasticPoolEdition, params string[] databaseNames)
 {
     return(this.WithNewElasticPool(elasticPoolName, elasticPoolEdition, databaseNames));
 }
Beispiel #7
0
 /// <summary>
 /// Creates new elastic pool in the SQL Server.
 /// </summary>
 /// <param name="elasticPoolName">Name of the elastic pool to be created.</param>
 /// <param name="elasticPoolEdition">Edition of the elastic pool.</param>
 /// <param name="databaseNames">Names of the database to be included in the elastic pool.</param>
 /// <return>Next stage of the SQL Server definition.</return>
 SqlServer.Definition.IWithCreate SqlServer.Definition.IWithElasticPool.WithNewElasticPool(string elasticPoolName, ElasticPoolEdition elasticPoolEdition, params string[] databaseNames)
 {
     return(this.WithNewElasticPool(elasticPoolName, elasticPoolEdition, databaseNames));
 }
Beispiel #8
0
 /// <summary>
 /// Creates new elastic pool in the SQL Server.
 /// </summary>
 /// <param name="elasticPoolName">Name of the elastic pool to be created.</param>
 /// <param name="elasticPoolEdition">Edition of the elastic pool.</param>
 /// <return>Next stage of the SQL Server definition.</return>
 SqlServer.Definition.IWithCreate SqlServer.Definition.IWithElasticPool.WithNewElasticPool(string elasticPoolName, ElasticPoolEdition elasticPoolEdition)
 {
     return(this.WithNewElasticPool(elasticPoolName, elasticPoolEdition));
 }
 ///GENMHASH:CE6E5E981686AB8CE8A830CF9AB6387F:D3C554B6F628CA009F2AB5D1A90A12F8
 public SqlElasticPoolImpl WithEdition(ElasticPoolEdition edition)
 {
     this.Inner.Edition = edition;
     return(this);
 }
 ///GENMHASH:CE6E5E981686AB8CE8A830CF9AB6387F:77BD6CF7DC386B312A0C3A51EDE36A6B
 public SqlElasticPoolForDatabaseImpl WithEdition(ElasticPoolEdition edition)
 {
     this.sqlElasticPool.WithEdition(edition);
     return(this);
 }
Beispiel #11
0
 /// <summary>
 /// Sets the edition for the SQL Elastic Pool.
 /// </summary>
 /// <param name="edition">Edition to be set for elastic pool.</param>
 /// <return>The next stage of the definition.</return>
 SqlElasticPool.Definition.IWithAttach <SqlDatabaseOperations.Definition.IWithExistingDatabaseAfterElasticPool> SqlElasticPool.Definition.IWithEditionBeta <SqlDatabaseOperations.Definition.IWithExistingDatabaseAfterElasticPool> .WithEdition(ElasticPoolEdition edition)
 {
     return(this.WithEdition(edition));
 }