@@ -86,6 +86,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
8686 * 2016-10-01: :mod:`v2016_10_01.models<azure.mgmt.keyvault.v2016_10_01.models>`
8787 * 2018-02-14: :mod:`v2018_02_14.models<azure.mgmt.keyvault.v2018_02_14.models>`
8888 * 2019-09-01: :mod:`v2019_09_01.models<azure.mgmt.keyvault.v2019_09_01.models>`
89+ * 2020-04-01-preview: :mod:`v2020_04_01_preview.models<azure.mgmt.keyvault.v2020_04_01_preview.models>`
8990 """
9091 if api_version == '2016-10-01' :
9192 from ..v2016_10_01 import models
@@ -96,15 +97,32 @@ def models(cls, api_version=DEFAULT_API_VERSION):
9697 elif api_version == '2019-09-01' :
9798 from ..v2019_09_01 import models
9899 return models
100+ elif api_version == '2020-04-01-preview' :
101+ from ..v2020_04_01_preview import models
102+ return models
99103 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
100104
105+ @property
106+ def managed_hsms (self ):
107+ """Instance depends on the API version:
108+
109+ * 2020-04-01-preview: :class:`ManagedHsmsOperations<azure.mgmt.keyvault.v2020_04_01_preview.aio.operations_async.ManagedHsmsOperations>`
110+ """
111+ api_version = self ._get_api_version ('managed_hsms' )
112+ if api_version == '2020-04-01-preview' :
113+ from ..v2020_04_01_preview .aio .operations_async import ManagedHsmsOperations as OperationClass
114+ else :
115+ raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
116+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
117+
101118 @property
102119 def operations (self ):
103120 """Instance depends on the API version:
104121
105122 * 2016-10-01: :class:`Operations<azure.mgmt.keyvault.v2016_10_01.aio.operations_async.Operations>`
106123 * 2018-02-14: :class:`Operations<azure.mgmt.keyvault.v2018_02_14.aio.operations_async.Operations>`
107124 * 2019-09-01: :class:`Operations<azure.mgmt.keyvault.v2019_09_01.aio.operations_async.Operations>`
125+ * 2020-04-01-preview: :class:`Operations<azure.mgmt.keyvault.v2020_04_01_preview.aio.operations_async.Operations>`
108126 """
109127 api_version = self ._get_api_version ('operations' )
110128 if api_version == '2016-10-01' :
@@ -113,6 +131,8 @@ def operations(self):
113131 from ..v2018_02_14 .aio .operations_async import Operations as OperationClass
114132 elif api_version == '2019-09-01' :
115133 from ..v2019_09_01 .aio .operations_async import Operations as OperationClass
134+ elif api_version == '2020-04-01-preview' :
135+ from ..v2020_04_01_preview .aio .operations_async import Operations as OperationClass
116136 else :
117137 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
118138 return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -123,12 +143,15 @@ def private_endpoint_connections(self):
123143
124144 * 2018-02-14: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.keyvault.v2018_02_14.aio.operations_async.PrivateEndpointConnectionsOperations>`
125145 * 2019-09-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.keyvault.v2019_09_01.aio.operations_async.PrivateEndpointConnectionsOperations>`
146+ * 2020-04-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.keyvault.v2020_04_01_preview.aio.operations_async.PrivateEndpointConnectionsOperations>`
126147 """
127148 api_version = self ._get_api_version ('private_endpoint_connections' )
128149 if api_version == '2018-02-14' :
129150 from ..v2018_02_14 .aio .operations_async import PrivateEndpointConnectionsOperations as OperationClass
130151 elif api_version == '2019-09-01' :
131152 from ..v2019_09_01 .aio .operations_async import PrivateEndpointConnectionsOperations as OperationClass
153+ elif api_version == '2020-04-01-preview' :
154+ from ..v2020_04_01_preview .aio .operations_async import PrivateEndpointConnectionsOperations as OperationClass
132155 else :
133156 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
134157 return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -139,12 +162,15 @@ def private_link_resources(self):
139162
140163 * 2018-02-14: :class:`PrivateLinkResourcesOperations<azure.mgmt.keyvault.v2018_02_14.aio.operations_async.PrivateLinkResourcesOperations>`
141164 * 2019-09-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.keyvault.v2019_09_01.aio.operations_async.PrivateLinkResourcesOperations>`
165+ * 2020-04-01-preview: :class:`PrivateLinkResourcesOperations<azure.mgmt.keyvault.v2020_04_01_preview.aio.operations_async.PrivateLinkResourcesOperations>`
142166 """
143167 api_version = self ._get_api_version ('private_link_resources' )
144168 if api_version == '2018-02-14' :
145169 from ..v2018_02_14 .aio .operations_async import PrivateLinkResourcesOperations as OperationClass
146170 elif api_version == '2019-09-01' :
147171 from ..v2019_09_01 .aio .operations_async import PrivateLinkResourcesOperations as OperationClass
172+ elif api_version == '2020-04-01-preview' :
173+ from ..v2020_04_01_preview .aio .operations_async import PrivateLinkResourcesOperations as OperationClass
148174 else :
149175 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
150176 return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -156,6 +182,7 @@ def vaults(self):
156182 * 2016-10-01: :class:`VaultsOperations<azure.mgmt.keyvault.v2016_10_01.aio.operations_async.VaultsOperations>`
157183 * 2018-02-14: :class:`VaultsOperations<azure.mgmt.keyvault.v2018_02_14.aio.operations_async.VaultsOperations>`
158184 * 2019-09-01: :class:`VaultsOperations<azure.mgmt.keyvault.v2019_09_01.aio.operations_async.VaultsOperations>`
185+ * 2020-04-01-preview: :class:`VaultsOperations<azure.mgmt.keyvault.v2020_04_01_preview.aio.operations_async.VaultsOperations>`
159186 """
160187 api_version = self ._get_api_version ('vaults' )
161188 if api_version == '2016-10-01' :
@@ -164,6 +191,8 @@ def vaults(self):
164191 from ..v2018_02_14 .aio .operations_async import VaultsOperations as OperationClass
165192 elif api_version == '2019-09-01' :
166193 from ..v2019_09_01 .aio .operations_async import VaultsOperations as OperationClass
194+ elif api_version == '2020-04-01-preview' :
195+ from ..v2020_04_01_preview .aio .operations_async import VaultsOperations as OperationClass
167196 else :
168197 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
169198 return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
0 commit comments