def begin_create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
      response = begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def begin_create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil)
      response = begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Creates a new CDN origin within an endpoint.

 @param origin_name [String] Name of the origin, an arbitrary value but it
 needs to be unique under endpoint
 @param origin_properties [OriginParameters] Origin properties
 @param endpoint_name [String] Name of the endpoint within the CDN profile.
 @param profile_name [String] Name of the CDN profile within the resource
 group.
 @param resource_group_name [String] Name of the resource group within the
 Azure subscription.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [Origin] operation results.