def begin_create_or_update(resource_group_name, gallery_name, gallery_image_name, gallery_image, custom_headers:nil)
      response = begin_create_or_update_async(resource_group_name, gallery_name, gallery_image_name, gallery_image, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def begin_create_or_update(resource_group_name, gallery_name, gallery_image_name, gallery_image, custom_headers:nil)
      response = begin_create_or_update_async(resource_group_name, gallery_name, gallery_image_name, gallery_image, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Create or update a gallery Image Definition.

 @param resource_group_name [String] The name of the resource group.
 @param gallery_name [String] The name of the Shared Image Gallery in which
 the Image Definition is to be created.
 @param gallery_image_name [String] The name of the gallery Image Definition
 to be created or updated. The allowed characters are alphabets and numbers
 with dots, dashes, and periods allowed in the middle. The maximum length is
 80 characters.
 @param gallery_image [GalleryImage] Parameters supplied to the create or
 update gallery image operation.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [GalleryImage] operation results.