def update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil)
      response = update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil)
      response = update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Updates an existing CDN endpoint with the specified endpoint name under the
 specified subscription, resource group and profile. Only tags and Origin
 HostHeader can be updated after creating an endpoint. To update origins, use
 the Update Origin operation. To update custom domains, use the Update Custom
 Domain operation.

 @param resource_group_name [String] Name of the Resource group within the
 Azure subscription.
 @param profile_name [String] Name of the CDN profile which is unique within
 the resource group.
 @param endpoint_name [String] Name of the endpoint under the profile which is
 unique globally.
 @param endpoint_update_properties [EndpointUpdateParameters] Endpoint update
 properties
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [Endpoint] operation results.