Add Policy 2015-10_01-preview to mapping
@@ -55,11 +55,6 @@ class PolicyClient(object):
:ivar config: Configuration for client.
:vartype config: PolicyClientConfiguration
- :ivar policy_assignments: PolicyAssignments operations
- :vartype policy_assignments: .operations.PolicyAssignmentsOperations
- :ivar policy_definitions: PolicyDefinitions operations
- :vartype policy_definitions: .operations.PolicyDefinitionsOperations
-
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
@@ -81,31 +76,37 @@ class PolicyClient(object):
@classmethod
def models(cls, api_version='2016-12-01'):
- if api_version =='2016-12-01':
- from .v2016_12_01 import models
+ if api_version == '2015-10-01-preview':
+ from .v2015_10_01_preview import models
return models
elif api_version == '2016-04-01':
from .v2016_04_01 import models
return models
- else:
+ elif api_version == '2016-12-01':
+ from .v2016_12_01 import models
+ return models
raise NotImplementedError("APIVersion {} is not available".format(api_version))
@property
def policy_assignments(self):
- if self.api_version =='2016-12-01':
- from .v2016_12_01.operations.policy_assignments_operations import PolicyAssignmentsOperations as OperationClass
+ if self.api_version == '2015-10-01-preview':
+ from .v2015_10_01_preview.operations import PolicyAssignmentsOperations as OperationClass
elif self.api_version == '2016-04-01':
- from .v2016_04_01.operations.policy_assignments_operations import PolicyAssignmentsOperations as OperationClass
+ from .v2016_04_01.operations import PolicyAssignmentsOperations as OperationClass
+ elif self.api_version == '2016-12-01':
+ from .v2016_12_01.operations import PolicyAssignmentsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(self.api_version))
return OperationClass(self._client, self.config, self._serialize, self._deserialize)
@property
def policy_definitions(self):
- if self.api_version =='2016-12-01':
- from .v2016_12_01.operations.policy_definitions_operations import PolicyDefinitionsOperations as OperationClass
+ if self.api_version == '2015-10-01-preview':
+ from .v2015_10_01_preview.operations import PolicyDefinitionsOperations as OperationClass
elif self.api_version == '2016-04-01':
- from .v2016_04_01.operations.policy_definitions_operations import PolicyDefinitionsOperations as OperationClass
+ from .v2016_04_01.operations import PolicyDefinitionsOperations as OperationClass
+ elif self.api_version == '2016-12-01':
+ from .v2016_12_01.operations import PolicyDefinitionsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(self.api_version))
return OperationClass(self._client, self.config, self._serialize, self._deserialize)
\ No newline at end of file
