/// <summary> /// Asynchronously retrieves a collection of storage passwords. /// </summary> /// <returns> /// An object representing the collection of storage passwords retrieved. /// </returns> /// <remarks> /// This method uses the <a href="http://goo.gl/XhebMI">GET /// storage/passwords</a> endpoint to construct the <see cref= /// "StoragePasswordCollection"/> it returns. /// </remarks> public async Task<StoragePasswordCollection> GetStoragePasswordsAsync(StoragePasswordCollectionArgs args = null) { var resource = new StoragePasswordCollection(this.Context, this.Namespace, args); await resource.GetAsync(); return resource; }
/// <summary> /// Intializes an new instance of the <see cref="StoragePasswordCollection"/> /// class. /// </summary> /// <param name="context"> /// An object representing a Splunk server session. /// </param> /// <param name="namespace"> /// An object identifying a Splunk service namespace. /// </param> /// <param name="args"> /// </param> internal StoragePasswordCollection(Context context, Namespace @namespace, StoragePasswordCollectionArgs args = null) : base(context, @namespace, ClassResourceName, args) { }