def regenerate(resource_group_name, search_service_name, key_kind, search_management_request_options:nil, custom_headers:nil)
      response = regenerate_async(resource_group_name, search_service_name, key_kind, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def regenerate(resource_group_name, search_service_name, key_kind, search_management_request_options:nil, custom_headers:nil)
      response = regenerate_async(resource_group_name, search_service_name, key_kind, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Regenerates either the primary or secondary admin API key. You can only
 regenerate one key at a time.

 @param resource_group_name [String] The name of the resource group within the
 current subscription. You can obtain this value from the Azure Resource
 Manager API or the portal.
 @param search_service_name [String] The name of the Azure Search service
 associated with the specified resource group.
 @param key_kind [AdminKeyKind] Specifies which key to regenerate. Valid
 values include 'primary' and 'secondary'. Possible values include: 'primary',
 'secondary'
 @param search_management_request_options [SearchManagementRequestOptions]
 Additional parameters for the operation
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [AdminKeyResult] operation results.