Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def models(cls, api_version=DEFAULT_API_VERSION):
"""Module depends on the API version:
* 2017-07-01: :mod:`v2017_07_01.models`
* 2018-03-31: :mod:`v2018_03_31.models`
* 2018-08-01-preview: :mod:`v2018_08_01_preview.models`
* 2018-09-30-preview: :mod:`v2018_09_30_preview.models`
* 2019-02-01: :mod:`v2019_02_01.models`
* 2019-04-30: :mod:`v2019_04_30.models`
"""
if api_version == '2017-07-01':
from .v2017_07_01 import models
return models
elif api_version == '2018-03-31':
from .v2018_03_31 import models
return models
elif api_version == '2018-08-01-preview':
from .v2018_08_01_preview import models
return models
elif api_version == '2018-09-30-preview':
from .v2018_09_30_preview import models
return models
elif api_version == '2019-02-01':
from .v2019_02_01 import models
return models
elif api_version == '2019-04-30':
from .v2019_04_30 import models
return models
raise NotImplementedError("APIVersion {} is not available".format(api_version))
def models(cls, api_version=DEFAULT_API_VERSION):
"""Module depends on the API version:
* 2017-07-01: :mod:`v2017_07_01.models`
* 2018-03-31: :mod:`v2018_03_31.models`
* 2018-08-01-preview: :mod:`v2018_08_01_preview.models`
* 2018-09-30-preview: :mod:`v2018_09_30_preview.models`
* 2019-02-01: :mod:`v2019_02_01.models`
* 2019-04-30: :mod:`v2019_04_30.models`
"""
if api_version == '2017-07-01':
from .v2017_07_01 import models
return models
elif api_version == '2018-03-31':
from .v2018_03_31 import models
return models
elif api_version == '2018-08-01-preview':
from .v2018_08_01_preview import models
return models
elif api_version == '2018-09-30-preview':
from .v2018_09_30_preview import models
return models
elif api_version == '2019-02-01':
from .v2019_02_01 import models
return models
elif api_version == '2019-04-30':
from .v2019_04_30 import models
return models
raise NotImplementedError("APIVersion {} is not available".format(api_version))