public ICommand <ApiResponseWithMessage> CreateSetMembership(GroupFirewallObject groupFirewallObject) =>
 new Command <ApiResponseWithMessage>(
     apiUriFactory.Create(),
     apiPostKeyValuePairFactory.CreateSetMembership(groupFirewallObject));
Exemplo n.º 2
0
 public ICommand <ApiEnqueuedResponse> CreateRequestForTrafficLog(string query, uint nlogs, uint skip)
 {
     return(new Command <ApiEnqueuedResponse>(
                apiUriFactory.Create(),
                logApiPostKeyValuePairFactory.CreateRequestForTrafficLog(query, nlogs, skip)));
 }
 public ICommand <TApiResponse> CreateGetAll <TApiResponse>(
     string schemaName,
     ConfigTypes configType = ConfigTypes.Running) where TApiResponse : ApiResponse =>
 new Command <TApiResponse>(apiUriFactory.Create(), apiPostKeyValuePairFactory.CreateGetAll(schemaName, configType));
Exemplo n.º 4
0
 public ICommand <ApiEnqueuedJobRequestStatusResponse> CreateGetJobStatus(uint jobId)
 {
     return(new Command <ApiEnqueuedJobRequestStatusResponse>(apiUriFactory.Create(), jobApiPostKeyValuePairFactory.CreateGetJobStatus(jobId)));
 }
 public ICommand <ApiEnqueuedResponse> CreateCommit(bool force) =>
 new Command <ApiEnqueuedResponse>(apiUriFactory.Create(), apiPostKeyValuePairFactory.CreateCommit(true));