Ejemplo n.º 1
0
 /// <summary>
 /// This endpoint provides a listing of the Consul servers present in a specific network area.
 /// </summary>
 /// <param name="listSpecificNetworkAreaParmeter">List Specific Network Area Parmeter</param>
 /// <returns></returns>
 public async Task <(bool result, ListNetworkAreaMembersResult[] listNetworkAreaMembersResults)> ListNetworkAreaMembers(NetworkAreaParmeter listSpecificNetworkAreaParmeter)
 {
     return(await Put <NetworkAreaParmeter, ListNetworkAreaMembersResult[]>(listSpecificNetworkAreaParmeter, "/operator/area/members"));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// This endpoint deletes a specific network area.
 /// </summary>
 /// <param name="listSpecificNetworkAreaParmeter">Delete Network Area Parmeter</param>
 /// <returns></returns>
 public async Task <(bool result, string backString)> DeleteNetworkArea(NetworkAreaParmeter listSpecificNetworkAreaParmeter)
 {
     return(await Delete <NetworkAreaParmeter, string>(listSpecificNetworkAreaParmeter, "/operator/area"));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// This endpoint attempts to join the given Consul servers into a specific network area.
 /// </summary>
 /// <param name="listSpecificNetworkAreaParmeter">List Specific Network Area Parmeter</param>
 /// <returns></returns>
 public async Task <(bool result, JoinNetworkAreaResult[] joinNetworkAreaResults)> JoinNetworkArea(NetworkAreaParmeter listSpecificNetworkAreaParmeter)
 {
     return(await Put <NetworkAreaParmeter, JoinNetworkAreaResult[]>(listSpecificNetworkAreaParmeter, "	/operator/area/join"));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// This endpoint lists a specific network area.
 /// </summary>
 /// <param name="List Specific Network Area Parmeter">ListSpecificNetworkAreaParmeter</param>
 /// <returns></returns>
 public async Task <ListNetworkAreasResult[]> ListSpecificNetworkArea(NetworkAreaParmeter listSpecificNetworkAreaParmeter)
 {
     return(await Get <ListNetworkAreasResult[], NetworkAreaParmeter>("/operator/area", listSpecificNetworkAreaParmeter));
 }