@distributed_trace
def get(self, resource_group_name: str, resource_name: str, **kwargs: Any) -> '_models.ManagedClusterSnapshot':
    'Gets a managed cluster snapshot.\n\n        Gets a managed cluster snapshot.\n\n        :param resource_group_name: The name of the resource group. The name is case insensitive.\n        :type resource_group_name: str\n        :param resource_name: The name of the managed cluster resource.\n        :type resource_name: str\n        :keyword callable cls: A custom type or function that will be passed the direct response\n        :return: ManagedClusterSnapshot, or the result of cls(response)\n        :rtype: ~azure.mgmt.containerservice.v2022_03_02_preview.models.ManagedClusterSnapshot\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', {}))
    request = build_get_request(subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, resource_name=resource_name, template_url=self.get.metadata['url'])
    request = _convert_request(request)
    request.url = self._client.format_url(request.url)
    pipeline_response = 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('ManagedClusterSnapshot', pipeline_response)
    if cls:
        return cls(pipeline_response, deserialized, {})
    return deserialized
Gets a managed cluster snapshot.

Gets a managed cluster snapshot.

:param resource_group_name: The name of the resource group. The name is case insensitive.
:type resource_group_name: str
:param resource_name: The name of the managed cluster resource.
:type resource_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: ManagedClusterSnapshot, or the result of cls(response)
:rtype: ~azure.mgmt.containerservice.v2022_03_02_preview.models.ManagedClusterSnapshot
:raises: ~azure.core.exceptions.HttpResponseError
@distributed_trace
def get(self, resource_group_name: str, resource_name: str, **kwargs: Any) -> '_models.ManagedClusterSnapshot':
    'Gets a managed cluster snapshot.\n\n        Gets a managed cluster snapshot.\n\n        :param resource_group_name: The name of the resource group. The name is case insensitive.\n        :type resource_group_name: str\n        :param resource_name: The name of the managed cluster resource.\n        :type resource_name: str\n        :keyword callable cls: A custom type or function that will be passed the direct response\n        :return: ManagedClusterSnapshot, or the result of cls(response)\n        :rtype: ~azure.mgmt.containerservice.v2022_03_02_preview.models.ManagedClusterSnapshot\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', {}))
    request = build_get_request(subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, resource_name=resource_name, template_url=self.get.metadata['url'])
    request = _convert_request(request)
    request.url = self._client.format_url(request.url)
    pipeline_response = 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('ManagedClusterSnapshot', pipeline_response)
    if cls:
        return cls(pipeline_response, deserialized, {})
    return deserialized