'List the versions of the specified secret.
The LIST VERSIONS operation can be applied to all versions having the
same secret name in the same key vault. The full secret identifier and
attributes are provided in the response. No values are returned for the
secrets and only current versions of a secret are listed.
:param vault_base_url: The vault name, for example
https://myvault.vault.azure.net.
:type vault_base_url: str
:param secret_name: The name of the secret.
:type secret_name: 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_secret_versions(self, vault_base_url, secret_name, maxresults=None, custom_headers=None, raw=False, **operation_config):

    def internal_paging(next_link=None, raw=False):
        if (not next_link):
            url = '/secrets/{secret-name}/versions'
            path_format_arguments = {'vaultBaseUrl': self._serialize.url('vault_base_url', vault_base_url, 'str', skip_quote=True), 'secret-name': self._serialize.url('secret_name', secret_name, 'str')}
            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
