/*
* Copyright 2012 Splunk, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"): you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
namespace Splunk
{
///
/// Represents the collection of EventTypes.
///
public class LicensePoolCollection : EntityCollection
{
///
/// Initializes a new instance of the
/// class.
///
/// The connected service
public LicensePoolCollection(Service service)
: base(service, "licenser/pools", typeof(LicensePool))
{
}
///
/// Initializes a new instance of the
/// class.
///
/// The connected service
/// The arguments
public LicensePoolCollection(Service service, Args args)
: base(service, "licenser/pools", args, typeof(LicensePool))
{
}
///
/// Creates a license pool.
///
/// The name of the event
/// The quota. This is an integer followed by
/// MB or GB.
/// The stack ID corresponding to this license
/// pool.
/// The License Pool.
public LicensePool Create(string name, string quota, string stackId)
{
return this.Create(name, quota, stackId, null);
}
///
/// Creates an license pool.
///
/// The name of the event
/// The quota. This is an integer followed by
/// MB or GB.
/// The stack ID corresponding to this license
/// pool.
/// Optional arguments.
/// The License Pool.
public LicensePool
Create(string name, string quota, string stackId, Args args)
{
args = Args.Create(args);
args.Add("quota", quota);
args.Add("stack_id", stackId);
return base.Create(name, args);
}
}
}