'List secrets in a specified key vault.
The LIST operation is applicable to the entire vault, however only the
base secret identifier and attributes are provided in the response.
Individual secret versions are not listed in the response.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param maxresults: Maximum number of results to return in a page. If
not specified the service will return up to 25 results.
:type maxresults: int
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`SecretItemPaged
<azure.keyvault.models.SecretItemPaged>`
:raises:
:class:`KeyVaultErrorException<azure.keyvault.models.KeyVaultErrorException>`'

def get_secrets(self, vault_base_url, maxresults=None, custom_headers=None, raw=False, **operation_config):

    def internal_paging(next_link=None, raw=False):
        if (not next_link):
            url = '/secrets'
            path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True)}
            url = self._client.format_url(url, **path_format_arguments)
            query_parameters = {}
            if (maxresults is not None):
                query_parameters['maxresults'] = self._serialize.query('maxresults', maxresults, 'int', maximum=25, minimum=1)
            query_parameters['api-version'] = self._serialize.query('self.api_version', self.api_version, 'str')
        else:
            url = next_link
            query_parameters = {}
        header_parameters = {}
        header_parameters['Content-Type'] = 'application/json;    charset=utf-8'
        if self.config.generate_client_request_id:
            header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
        if custom_headers:
            header_parameters.update(custom_headers)
        if (self.config.accept_language is not None):
            header_parameters['accept-language'] = self._serialize.header('self.config.accept_language', self.config.accept_language, 'str')
        request = self._client.get(url, query_parameters)
        response = self._client.send(request, header_parameters, **operation_config)
        if (response.status_code not in [200]):
            raise models.KeyVaultErrorException(self._deserialize, response)
        return response
    deserialized = models.SecretItemPaged(internal_paging, self._deserialize.dependencies)
    if raw:
        header_dict = {}
        client_raw_response = models.SecretItemPaged(internal_paging, self._deserialize.dependencies, header_dict)
        return client_raw_response
    return deserialized
