diff --git a/azure-mgmt-policyinsights/HISTORY.rst b/azure-mgmt-policyinsights/HISTORY.rst index 4d32b251c9138..d1dc7b0a78b9b 100644 --- a/azure-mgmt-policyinsights/HISTORY.rst +++ b/azure-mgmt-policyinsights/HISTORY.rst @@ -3,6 +3,13 @@ Release History =============== +0.3.1 (2019-04-16) +++++++++++++++++++ + +**Bugfixes** + +- Fix expressionValues and targetValues type + 0.3.0 (2019-03-12) ++++++++++++++++++ diff --git a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/expression_evaluation_details.py b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/expression_evaluation_details.py index b2f42eed168dc..6f1cffe560721 100644 --- a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/expression_evaluation_details.py +++ b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/expression_evaluation_details.py @@ -22,10 +22,10 @@ class ExpressionEvaluationDetails(Model): :param path: Property path if the expression is a field or an alias. :type path: str :param expression_value: Value of the expression. - :type expression_value: str + :type expression_value: object :param target_value: Target value to be compared with the expression value. - :type target_value: str + :type target_value: object :param operator: Operator to compare the expression value and the target value. :type operator: str @@ -35,8 +35,8 @@ class ExpressionEvaluationDetails(Model): 'result': {'key': 'result', 'type': 'str'}, 'expression': {'key': 'expression', 'type': 'str'}, 'path': {'key': 'path', 'type': 'str'}, - 'expression_value': {'key': 'expressionValue', 'type': 'str'}, - 'target_value': {'key': 'targetValue', 'type': 'str'}, + 'expression_value': {'key': 'expressionValue', 'type': 'object'}, + 'target_value': {'key': 'targetValue', 'type': 'object'}, 'operator': {'key': 'operator', 'type': 'str'}, } diff --git a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/expression_evaluation_details_py3.py b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/expression_evaluation_details_py3.py index 49accec7dde66..bf873d0c92890 100644 --- a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/expression_evaluation_details_py3.py +++ b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/expression_evaluation_details_py3.py @@ -22,10 +22,10 @@ class ExpressionEvaluationDetails(Model): :param path: Property path if the expression is a field or an alias. :type path: str :param expression_value: Value of the expression. - :type expression_value: str + :type expression_value: object :param target_value: Target value to be compared with the expression value. - :type target_value: str + :type target_value: object :param operator: Operator to compare the expression value and the target value. :type operator: str @@ -35,12 +35,12 @@ class ExpressionEvaluationDetails(Model): 'result': {'key': 'result', 'type': 'str'}, 'expression': {'key': 'expression', 'type': 'str'}, 'path': {'key': 'path', 'type': 'str'}, - 'expression_value': {'key': 'expressionValue', 'type': 'str'}, - 'target_value': {'key': 'targetValue', 'type': 'str'}, + 'expression_value': {'key': 'expressionValue', 'type': 'object'}, + 'target_value': {'key': 'targetValue', 'type': 'object'}, 'operator': {'key': 'operator', 'type': 'str'}, } - def __init__(self, *, result: str=None, expression: str=None, path: str=None, expression_value: str=None, target_value: str=None, operator: str=None, **kwargs) -> None: + def __init__(self, *, result: str=None, expression: str=None, path: str=None, expression_value=None, target_value=None, operator: str=None, **kwargs) -> None: super(ExpressionEvaluationDetails, self).__init__(**kwargs) self.result = result self.expression = expression diff --git a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/operations/operations.py b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/operations/operations.py index bae440b8c3ac6..05e3abb4bdde8 100644 --- a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/operations/operations.py +++ b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/operations/operations.py @@ -22,7 +22,7 @@ class Operations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: API version to use with the client requests. Constant value: "2018-07-01-preview". + :ivar api_version: Client Api Version. Constant value: "2018-07-01-preview". """ models = models diff --git a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/operations/policy_states_operations.py b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/operations/policy_states_operations.py index 3573f1dc52e79..8784b249626dd 100644 --- a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/operations/policy_states_operations.py +++ b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/operations/policy_states_operations.py @@ -23,7 +23,7 @@ class PolicyStatesOperations(object): :param serializer: An object model serializer. :param deserializer: An object model deserializer. :ivar management_groups_namespace: The namespace for Microsoft Management RP; only "Microsoft.Management" is allowed. Constant value: "Microsoft.Management". - :ivar api_version: API version to use with the client requests. Constant value: "2018-07-01-preview". + :ivar api_version: Client Api Version. Constant value: "2018-07-01-preview". :ivar policy_states_summary_resource: The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value. Constant value: "latest". :ivar authorization_namespace: The namespace for Microsoft Authorization resource provider; only "Microsoft.Authorization" is allowed. Constant value: "Microsoft.Authorization". """ diff --git a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/version.py b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/version.py index fcb88654af0a5..54fdd938c10a6 100644 --- a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/version.py +++ b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/version.py @@ -9,4 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.3.0" +VERSION = "0.3.1" + diff --git a/azure-mgmt-policyinsights/setup.py b/azure-mgmt-policyinsights/setup.py index f8a123157ec80..7f916556d5fc7 100644 --- a/azure-mgmt-policyinsights/setup.py +++ b/azure-mgmt-policyinsights/setup.py @@ -53,6 +53,7 @@ version=version, description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), long_description=readme + '\n\n' + history, + long_description_content_type='text/x-rst', license='MIT License', author='Microsoft Corporation', author_email='azpysdkhelp@microsoft.com',