public List<AclResource> AclResources(AccountType accountType = AccountType.Any, PageParameters? pageParameters = null) { Action<RestRequest> prepareRequest = (RestRequest request) => { AddPagingParameters (pageParameters, request); if (accountType != AccountType.Any) request.AddParameter ("account_type", accountType.GetName ()); }; return CallEndpoint<List<AclResource>> ("acl-resources", prepareRequest); }
public List <AclResource> AclResources(AccountType accountType = AccountType.Any, PageParameters?pageParameters = null) { Action <RestRequest> prepareRequest = (RestRequest request) => { AddPagingParameters(pageParameters, request); if (accountType != AccountType.Any) { request.AddParameter("account_type", accountType.GetName()); } }; return(CallEndpoint <List <AclResource> > ("acl-resources", prepareRequest)); }