Microsoft.Azure.Commands.Batch.Models.BatchClient.UpdatePool C# (CSharp) Method

UpdatePool() public method

Commits changes to a PSCloudPool object to the Batch Service.
public UpdatePool ( BatchAccountContext context, PSCloudPool pool, IEnumerable additionBehaviors = null ) : void
context BatchAccountContext The account to use.
pool PSCloudPool The PSCloudPool object representing the pool to update.
additionBehaviors IEnumerable Additional client behaviors to perform.
return void
        public void UpdatePool(BatchAccountContext context, PSCloudPool pool, IEnumerable<BatchClientBehavior> additionBehaviors = null)
        {
            if (pool == null)
            {
                throw new ArgumentNullException("pool");
            }

            WriteVerbose(string.Format(Resources.UpdatingPool, pool.Id));

            Utils.Utils.BoundPoolSyncCollections(pool);
            pool.omObject.Commit(additionBehaviors);
        }
BatchClient