'Create an API version request object.'

def __init__(self, version_string=None):

    self.ver_major = 0
    self.ver_minor = 0
    if (version_string is not None):
        match = re.match('^([1-9]\\d*)\\.([1-9]\\d*|0)$', version_string)
        if match:
            self.ver_major = int(match.group(1))
            self.ver_minor = int(match.group(2))
        elif (version_string == 'latest'):
            self.ver_major = self.latest_ver_major
            self.ver_minor = self.latest_ver_minor
        else:
            raise exceptions.InvalidAPIVersionString(version=version_string)
