original_docstring: Executes a Vulnerability Assessment database scan.
  
          :param resource_group_name: The name of the resource group that contains the resource. You can
           obtain this value from the Azure Resource Manager API or the portal.
          :type resource_group_name: str
          :param server_name: The name of the server.
          :type server_name: str
          :param database_name: The name of the database.
          :type database_name: str
          :param vulnerability_assessment_name: The name of the vulnerability assessment.
          :type vulnerability_assessment_name: str or ~azure.mgmt.sql.models.VulnerabilityAssessmentName
          :param scan_id: The vulnerability assessment scan Id of the scan to retrieve.
          :type scan_id: str
          :keyword callable cls: A custom type or function that will be passed the direct response
          :keyword str continuation_token: A continuation token to restart a poller from a saved state.
          :keyword polling: True for ARMPolling, False for no polling, or a
           polling object for personal polling strategy
          :paramtype polling: bool or ~azure.core.polling.PollingMethod
          :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
          :return: An instance of LROPoller that returns either None or the result of cls(response)
          :rtype: ~azure.core.polling.LROPoller[None]
          :raises ~azure.core.exceptions.HttpResponseError:
          
docstring: Executes a Vulnerability Assessment database scan.
docstring_tokens: Executes a Vulnerability Assessment database scan .
code: def begin_initiate_scan(
          self,
          resource_group_name,  # type: str
          server_name,  # type: str
          database_name,  # type: str
          vulnerability_assessment_name,  # type: Union[str, "models.VulnerabilityAssessmentName"]
          scan_id,  # type: str
          **kwargs  # type: Any
      ):
          # type: (...) -> LROPoller[None]
          """Executes a Vulnerability Assessment database scan.
  
          :param resource_group_name: The name of the resource group that contains the resource. You can
           obtain this value from the Azure Resource Manager API or the portal.
          :type resource_group_name: str
          :param server_name: The name of the server.
          :type server_name: str
          :param database_name: The name of the database.
          :type database_name: str
          :param vulnerability_assessment_name: The name of the vulnerability assessment.
          :type vulnerability_assessment_name: str or ~azure.mgmt.sql.models.VulnerabilityAssessmentName
          :param scan_id: The vulnerability assessment scan Id of the scan to retrieve.
          :type scan_id: str
          :keyword callable cls: A custom type or function that will be passed the direct response
          :keyword str continuation_token: A continuation token to restart a poller from a saved state.
          :keyword polling: True for ARMPolling, False for no polling, or a
           polling object for personal polling strategy
          :paramtype polling: bool or ~azure.core.polling.PollingMethod
          :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
          :return: An instance of LROPoller that returns either None or the result of cls(response)
          :rtype: ~azure.core.polling.LROPoller[None]
          :raises ~azure.core.exceptions.HttpResponseError:
          """
          polling = kwargs.pop('polling', True)  # type: Union[bool, PollingMethod]
          cls = kwargs.pop('cls', None)  # type: ClsType[None]
          lro_delay = kwargs.pop(
              'polling_interval',
              self._config.polling_interval
          )
          cont_token = kwargs.pop('continuation_token', None)  # type: Optional[str]
          if cont_token is None:
              raw_result = self._initiate_scan_initial(
                  resource_group_name=resource_group_name,
                  server_name=server_name,
                  database_name=database_name,
                  vulnerability_assessment_name=vulnerability_assessment_name,
                  scan_id=scan_id,
                  cls=lambda x,y,z: x,
                  **kwargs
              )
  
          kwargs.pop('error_map', None)
          kwargs.pop('content_type', None)
  
          def get_long_running_output(pipeline_response):
              if cls:
                  return cls(pipeline_response, None, {})
  
          if polling is True: polling_method = ARMPolling(lro_delay,  **kwargs)
          elif polling is False: polling_method = NoPolling()
          else: polling_method = polling
          if cont_token:
              return LROPoller.from_continuation_token(
                  polling_method=polling_method,
                  continuation_token=cont_token,
                  client=self._client,
                  deserialization_callback=get_long_running_output
              )
          else:
              return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
code_tokens: def begin_initiate_scan ( self , resource_group_name , server_name , database_name , vulnerability_assessment_name , scan_id , ** kwargs ) : polling = kwargs . pop ( 'polling' , True ) cls = kwargs . pop ( 'cls' , None ) lro_delay = kwargs . pop ( 'polling_interval' , self . _config . polling_interval ) cont_token = kwargs . pop ( 'continuation_token' , None ) if cont_token is None : raw_result = self . _initiate_scan_initial ( resource_group_name = resource_group_name , server_name = server_name , database_name = database_name , vulnerability_assessment_name = vulnerability_assessment_name , scan_id = scan_id , cls = lambda x , y , z : x , ** kwargs ) kwargs . pop ( 'error_map' , None ) kwargs . pop ( 'content_type' , None ) def get_long_running_output ( pipeline_response ) : if cls : return cls ( pipeline_response , None , { } ) if polling is True : polling_method = ARMPolling ( lro_delay , ** kwargs ) elif polling is False : polling_method = NoPolling ( ) else : polling_method = polling if cont_token : return LROPoller . from_continuation_token ( polling_method = polling_method , continuation_token = cont_token , client = self . _client , deserialization_callback = get_long_running_output ) else : return LROPoller ( self . _client , raw_result , get_long_running_output , polling_method )
short_docstring: Executes a Vulnerability Assessment database scan.
short_docstring_tokens: Executes a Vulnerability Assessment database scan .
comment: # type: str$SEP$# type: str$SEP$# type: str$SEP$# type: Union[str, "models.VulnerabilityAssessmentName"]$SEP$# type: str$SEP$# type: Any$SEP$# type: (...) -> LROPoller[None]$SEP$"""Executes a Vulnerability Assessment database scan.
  
          :param resource_group_name: The name of the resource group that contains the resource. You can
           obtain this value from the Azure Resource Manager API or the portal.
          :type resource_group_name: str
          :param server_name: The name of the server.
          :type server_name: str
          :param database_name: The name of the database.
          :type database_name: str
          :param vulnerability_assessment_name: The name of the vulnerability assessment.
          :type vulnerability_assessment_name: str or ~azure.mgmt.sql.models.VulnerabilityAssessmentName
          :param scan_id: The vulnerability assessment scan Id of the scan to retrieve.
          :type scan_id: str
          :keyword callable cls: A custom type or function that will be passed the direct response
          :keyword str continuation_token: A continuation token to restart a poller from a saved state.
          :keyword polling: True for ARMPolling, False for no polling, or a
           polling object for personal polling strategy
          :paramtype polling: bool or ~azure.core.polling.PollingMethod
          :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
          :return: An instance of LROPoller that returns either None or the result of cls(response)
          :rtype: ~azure.core.polling.LROPoller[None]
          :raises ~azure.core.exceptions.HttpResponseError:
          """$SEP$# type: Union[bool, PollingMethod]$SEP$# type: ClsType[None]$SEP$# type: Optional[str]