updateIPAccessControlList method

Future<ClientResponse<IPAccessControlListResponse, Errors>> updateIPAccessControlList(
  1. String accessControlListId,
  2. IPAccessControlListRequest request
)

Updates the IP Access Control List with the given Id.

@param {String} accessControlListId The Id of the IP Access Control List to update. @param {IPAccessControlListRequest} request The request that contains all the new IP Access Control List information. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<IPAccessControlListResponse, Errors>>
    updateIPAccessControlList(
        String accessControlListId, IPAccessControlListRequest request) {
  return _start<IPAccessControlListResponse, Errors>()
      .withUri('/api/ip-acl')
      .withUriSegment(accessControlListId)
      .withJSONBody(request)
      .withMethod('PUT')
      .withResponseHandler(defaultResponseHandlerBuilder(
          (d) => IPAccessControlListResponse.fromJson(d)))
      .go();
}