def begin_create_or_update(resource_group_name, managed_cluster_name, agent_pool_name, parameters, custom_headers:nil)
      response = begin_create_or_update_async(resource_group_name, managed_cluster_name, agent_pool_name, parameters, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def begin_create_or_update(resource_group_name, managed_cluster_name, agent_pool_name, parameters, custom_headers:nil)
      response = begin_create_or_update_async(resource_group_name, managed_cluster_name, agent_pool_name, parameters, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Creates or updates an agent pool.

 Creates or updates an agent pool in the specified managed cluster.

 @param resource_group_name [String] The name of the resource group.
 @param managed_cluster_name [String] The name of the managed cluster
 resource.
 @param agent_pool_name [String] The name of the agent pool.
 @param parameters [AgentPool] Parameters supplied to the Create or Update an
 agent pool operation.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [AgentPool] operation results.