original_docstring: 
      .. versionadded:: 4.0.0
  
      Lists all of the SSH public keys in the subscription.
  
      :param resource_group: The name of the resource group to limit the results.
  
      CLI Example:
  
      .. code-block:: bash
  
          azurerm.compute.ssh_public_key.list
  
      
docstring: : 4.0.0
  Lists all of the SSH public keys in the subscription.
docstring_tokens: : 4 . 0 . 0 Lists all of the SSH public keys in the subscription .
code: async def list_(hub, ctx, resource_group=None, **kwargs):
      """
      .. versionadded:: 4.0.0
  
      Lists all of the SSH public keys in the subscription.
  
      :param resource_group: The name of the resource group to limit the results.
  
      CLI Example:
  
      .. code-block:: bash
  
          azurerm.compute.ssh_public_key.list
  
      """
      result = {}
      compconn = await hub.exec.azurerm.utils.get_client(ctx, "compute", **kwargs)
  
      try:
          if resource_group:
              keys = await hub.exec.azurerm.utils.paged_object_to_list(
                  compconn.ssh_public_keys.list_by_resource_group(
                      resource_group_name=resource_group
                  )
              )
          else:
              keys = await hub.exec.azurerm.utils.paged_object_to_list(
                  compconn.ssh_public_keys.list_by_subscription()
              )
  
          for key in keys:
              result[key["name"]] = key
      except CloudError as exc:
          await hub.exec.azurerm.utils.log_cloud_error("compute", str(exc), **kwargs)
          result = {"error": str(exc)}
  
      return result
code_tokens: async def list_ ( hub , ctx , resource_group = None , ** kwargs ) : result = { } compconn = await hub . exec . azurerm . utils . get_client ( ctx , "compute" , ** kwargs ) try : if resource_group : keys = await hub . exec . azurerm . utils . paged_object_to_list ( compconn . ssh_public_keys . list_by_resource_group ( resource_group_name = resource_group ) ) else : keys = await hub . exec . azurerm . utils . paged_object_to_list ( compconn . ssh_public_keys . list_by_subscription ( ) ) for key in keys : result [ key [ "name" ] ] = key except CloudError as exc : await hub . exec . azurerm . utils . log_cloud_error ( "compute" , str ( exc ) , ** kwargs ) result = { "error" : str ( exc ) } return result
short_docstring: .. versionadded:: 4.0.0
  Lists all of the SSH public keys in the subscription.
short_docstring_tokens: .. versionadded :: 4 . 0 . 0 Lists all of the SSH public keys in the subscription .
comment: """
      .. versionadded:: 4.0.0
  
      Lists all of the SSH public keys in the subscription.
  
      :param resource_group: The name of the resource group to limit the results.
  
      CLI Example:
  
      .. code-block:: bash
  
          azurerm.compute.ssh_public_key.list
  
      """