async def get(self, resource_group_name: str, gallery_name: str, gallery_image_name: str, **kwargs) -> '_models.GalleryImage':
    'Retrieves information about a gallery Image Definition.\n\n        :param resource_group_name: The name of the resource group.\n        :type resource_group_name: str\n        :param gallery_name: The name of the Shared Image Gallery from which the Image Definitions are\n         to be retrieved.\n        :type gallery_name: str\n        :param gallery_image_name: The name of the gallery Image Definition to be retrieved.\n        :type gallery_image_name: str\n        :keyword callable cls: A custom type or function that will be passed the direct response\n        :return: GalleryImage, or the result of cls(response)\n        :rtype: ~azure.mgmt.compute.v2019_03_01.models.GalleryImage\n        :raises: ~azure.core.exceptions.HttpResponseError\n        '
    cls = kwargs.pop('cls', None)
    error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
    error_map.update(kwargs.pop('error_map', {}))
    api_version = '2019-03-01'
    accept = 'application/json'
    url = self.get.metadata['url']
    path_format_arguments = {'subscriptionId': self._serialize.url('self._config.subscription_id', self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'galleryName': self._serialize.url('gallery_name', gallery_name, 'str'), 'galleryImageName': self._serialize.url('gallery_image_name', gallery_image_name, 'str')}
    url = self._client.format_url(url, **path_format_arguments)
    query_parameters = {}
    query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str')
    header_parameters = {}
    header_parameters['Accept'] = self._serialize.header('accept', accept, 'str')
    request = self._client.get(url, query_parameters, header_parameters)
    pipeline_response = (await self._client._pipeline.run(request, stream=False, **kwargs))
    response = pipeline_response.http_response
    if (response.status_code not in [200]):
        map_error(status_code=response.status_code, response=response, error_map=error_map)
        raise HttpResponseError(response=response, error_format=ARMErrorFormat)
    deserialized = self._deserialize('GalleryImage', pipeline_response)
    if cls:
        return cls(pipeline_response, deserialized, {})
    return deserialized
Retrieves information about a gallery Image Definition.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param gallery_name: The name of the Shared Image Gallery from which the Image Definitions are
 to be retrieved.
:type gallery_name: str
:param gallery_image_name: The name of the gallery Image Definition to be retrieved.
:type gallery_image_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: GalleryImage, or the result of cls(response)
:rtype: ~azure.mgmt.compute.v2019_03_01.models.GalleryImage
:raises: ~azure.core.exceptions.HttpResponseError
async def get(self, resource_group_name: str, gallery_name: str, gallery_image_name: str, **kwargs) -> '_models.GalleryImage':
    'Retrieves information about a gallery Image Definition.\n\n        :param resource_group_name: The name of the resource group.\n        :type resource_group_name: str\n        :param gallery_name: The name of the Shared Image Gallery from which the Image Definitions are\n         to be retrieved.\n        :type gallery_name: str\n        :param gallery_image_name: The name of the gallery Image Definition to be retrieved.\n        :type gallery_image_name: str\n        :keyword callable cls: A custom type or function that will be passed the direct response\n        :return: GalleryImage, or the result of cls(response)\n        :rtype: ~azure.mgmt.compute.v2019_03_01.models.GalleryImage\n        :raises: ~azure.core.exceptions.HttpResponseError\n        '
    cls = kwargs.pop('cls', None)
    error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
    error_map.update(kwargs.pop('error_map', {}))
    api_version = '2019-03-01'
    accept = 'application/json'
    url = self.get.metadata['url']
    path_format_arguments = {'subscriptionId': self._serialize.url('self._config.subscription_id', self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'galleryName': self._serialize.url('gallery_name', gallery_name, 'str'), 'galleryImageName': self._serialize.url('gallery_image_name', gallery_image_name, 'str')}
    url = self._client.format_url(url, **path_format_arguments)
    query_parameters = {}
    query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str')
    header_parameters = {}
    header_parameters['Accept'] = self._serialize.header('accept', accept, 'str')
    request = self._client.get(url, query_parameters, header_parameters)
    pipeline_response = (await self._client._pipeline.run(request, stream=False, **kwargs))
    response = pipeline_response.http_response
    if (response.status_code not in [200]):
        map_error(status_code=response.status_code, response=response, error_map=error_map)
        raise HttpResponseError(response=response, error_format=ARMErrorFormat)
    deserialized = self._deserialize('GalleryImage', pipeline_response)
    if cls:
        return cls(pipeline_response, deserialized, {})
    return deserialized