From ed77d0f3ce442775288ba8c38627d247b0c36dd1 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 17 Apr 2019 16:34:42 -0700 Subject: [PATCH] [AutoPR] policyinsights/resource-manager (#4578) * Generated from f10ea592929dbbb5b3467a1b01fdff7ff86f1f70 (#4576) Fix PolicyInsights code generation issue * Generated from 65d16945f6922fec1bae78d37367e36a793e657b (#4594) Fix incorrect types * Packaging update of azure-mgmt-policyinsights * Update version.py * Generated from d7beca2c3fdece232d869cbb2168b240af187df2 (#4879) Use object type * Update HISTORY.rst * Update version.py --- azure-mgmt-policyinsights/HISTORY.rst | 7 +++++++ .../models/expression_evaluation_details.py | 8 ++++---- .../models/expression_evaluation_details_py3.py | 10 +++++----- .../azure/mgmt/policyinsights/operations/operations.py | 2 +- .../operations/policy_states_operations.py | 2 +- .../azure/mgmt/policyinsights/version.py | 3 ++- azure-mgmt-policyinsights/setup.py | 1 + 7 files changed, 21 insertions(+), 12 deletions(-) diff --git a/azure-mgmt-policyinsights/HISTORY.rst b/azure-mgmt-policyinsights/HISTORY.rst index 4d32b251c913..d1dc7b0a78b9 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 b2f42eed168d..6f1cffe56072 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 49accec7dde6..bf873d0c9289 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 bae440b8c3ac..05e3abb4bdde 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 3573f1dc52e7..8784b249626d 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 fcb88654af0a..54fdd938c10a 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 f8a123157ec8..7f916556d5fc 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',