diff --git a/azure-mgmt-policyinsights/README.rst b/azure-mgmt-policyinsights/README.rst index 9fbe107ff456..2fac06e69101 100644 --- a/azure-mgmt-policyinsights/README.rst +++ b/azure-mgmt-policyinsights/README.rst @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see For a more complete set of Azure libraries, see the `azure `__ bundle package. -Compatibility -============= - -**IMPORTANT**: If you have an earlier version of the azure package -(version < 1.0), you should uninstall it before installing this package. - -You can check the version using pip: - -.. code:: shell - - pip freeze - -If you see azure==0.11.0 (or any version below 1.0), uninstall it first: - -.. code:: shell - - pip uninstall azure - - Usage ===== diff --git a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/__init__.py b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/__init__.py index e0ffd97a80d7..d1d760d127db 100644 --- a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/__init__.py +++ b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/__init__.py @@ -24,6 +24,9 @@ from .error_response_py3 import ErrorResponse, ErrorResponseException from .policy_event_py3 import PolicyEvent from .policy_events_query_results_py3 import PolicyEventsQueryResults + from .expression_evaluation_details_py3 import ExpressionEvaluationDetails + from .if_not_exists_evaluation_details_py3 import IfNotExistsEvaluationDetails + from .policy_evaluation_details_py3 import PolicyEvaluationDetails from .policy_state_py3 import PolicyState from .policy_states_query_results_py3 import PolicyStatesQueryResults from .summary_results_py3 import SummaryResults @@ -50,6 +53,9 @@ from .error_response import ErrorResponse, ErrorResponseException from .policy_event import PolicyEvent from .policy_events_query_results import PolicyEventsQueryResults + from .expression_evaluation_details import ExpressionEvaluationDetails + from .if_not_exists_evaluation_details import IfNotExistsEvaluationDetails + from .policy_evaluation_details import PolicyEvaluationDetails from .policy_state import PolicyState from .policy_states_query_results import PolicyStatesQueryResults from .summary_results import SummaryResults @@ -83,6 +89,9 @@ 'ErrorResponse', 'ErrorResponseException', 'PolicyEvent', 'PolicyEventsQueryResults', + 'ExpressionEvaluationDetails', + 'IfNotExistsEvaluationDetails', + 'PolicyEvaluationDetails', 'PolicyState', 'PolicyStatesQueryResults', 'SummaryResults', 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 new file mode 100644 index 000000000000..825dd9960218 --- /dev/null +++ b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/expression_evaluation_details.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressionEvaluationDetails(Model): + """Evaluation details of policy language expressions. + + :param result: Evaluation result. + :type result: str + :param expression: Expression evaluated. + :type expression: str + :param path: Property path if the expression is a field or an aliase. + :type path: str + :param expression_value: Value of the expression. + :type expression_value: str + :param target_value: Target value to be compared with the expression + value. + :type target_value: str + :param operator: Operator to compare the expression value and the target + value. + :type operator: str + """ + + _attribute_map = { + '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'}, + 'operator': {'key': 'operator', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressionEvaluationDetails, self).__init__(**kwargs) + self.result = kwargs.get('result', None) + self.expression = kwargs.get('expression', None) + self.path = kwargs.get('path', None) + self.expression_value = kwargs.get('expression_value', None) + self.target_value = kwargs.get('target_value', None) + self.operator = kwargs.get('operator', None) 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 new file mode 100644 index 000000000000..c3f1b41f687b --- /dev/null +++ b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/expression_evaluation_details_py3.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressionEvaluationDetails(Model): + """Evaluation details of policy language expressions. + + :param result: Evaluation result. + :type result: str + :param expression: Expression evaluated. + :type expression: str + :param path: Property path if the expression is a field or an aliase. + :type path: str + :param expression_value: Value of the expression. + :type expression_value: str + :param target_value: Target value to be compared with the expression + value. + :type target_value: str + :param operator: Operator to compare the expression value and the target + value. + :type operator: str + """ + + _attribute_map = { + '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'}, + '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: + super(ExpressionEvaluationDetails, self).__init__(**kwargs) + self.result = result + self.expression = expression + self.path = path + self.expression_value = expression_value + self.target_value = target_value + self.operator = operator diff --git a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/if_not_exists_evaluation_details.py b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/if_not_exists_evaluation_details.py new file mode 100644 index 000000000000..566bf7fbe379 --- /dev/null +++ b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/if_not_exists_evaluation_details.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class IfNotExistsEvaluationDetails(Model): + """Evaluation details of IfNotExists effect. + + :param resource_id: ID of the last evaluated resource for IfNotExists + effect. + :type resource_id: str + :param total_resources: Total number of resources to which the existence + condition is applicable. + :type total_resources: int + """ + + _attribute_map = { + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'total_resources': {'key': 'totalResources', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(IfNotExistsEvaluationDetails, self).__init__(**kwargs) + self.resource_id = kwargs.get('resource_id', None) + self.total_resources = kwargs.get('total_resources', None) diff --git a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/if_not_exists_evaluation_details_py3.py b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/if_not_exists_evaluation_details_py3.py new file mode 100644 index 000000000000..a6f96de944ad --- /dev/null +++ b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/if_not_exists_evaluation_details_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class IfNotExistsEvaluationDetails(Model): + """Evaluation details of IfNotExists effect. + + :param resource_id: ID of the last evaluated resource for IfNotExists + effect. + :type resource_id: str + :param total_resources: Total number of resources to which the existence + condition is applicable. + :type total_resources: int + """ + + _attribute_map = { + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'total_resources': {'key': 'totalResources', 'type': 'int'}, + } + + def __init__(self, *, resource_id: str=None, total_resources: int=None, **kwargs) -> None: + super(IfNotExistsEvaluationDetails, self).__init__(**kwargs) + self.resource_id = resource_id + self.total_resources = total_resources diff --git a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/policy_evaluation_details.py b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/policy_evaluation_details.py new file mode 100644 index 000000000000..e56af91399b0 --- /dev/null +++ b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/policy_evaluation_details.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PolicyEvaluationDetails(Model): + """Policy evaluation details. + + :param evaluated_expressions: Details of the evaluated expressions. + :type evaluated_expressions: + list[~azure.mgmt.policyinsights.models.ExpressionEvaluationDetails] + :param if_not_exists_details: Evaluation details of IfNotExists effect. + :type if_not_exists_details: + ~azure.mgmt.policyinsights.models.IfNotExistsEvaluationDetails + """ + + _attribute_map = { + 'evaluated_expressions': {'key': 'evaluatedExpressions', 'type': '[ExpressionEvaluationDetails]'}, + 'if_not_exists_details': {'key': 'ifNotExistsDetails', 'type': 'IfNotExistsEvaluationDetails'}, + } + + def __init__(self, **kwargs): + super(PolicyEvaluationDetails, self).__init__(**kwargs) + self.evaluated_expressions = kwargs.get('evaluated_expressions', None) + self.if_not_exists_details = kwargs.get('if_not_exists_details', None) diff --git a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/policy_evaluation_details_py3.py b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/policy_evaluation_details_py3.py new file mode 100644 index 000000000000..a5a3e30870d4 --- /dev/null +++ b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/policy_evaluation_details_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PolicyEvaluationDetails(Model): + """Policy evaluation details. + + :param evaluated_expressions: Details of the evaluated expressions. + :type evaluated_expressions: + list[~azure.mgmt.policyinsights.models.ExpressionEvaluationDetails] + :param if_not_exists_details: Evaluation details of IfNotExists effect. + :type if_not_exists_details: + ~azure.mgmt.policyinsights.models.IfNotExistsEvaluationDetails + """ + + _attribute_map = { + 'evaluated_expressions': {'key': 'evaluatedExpressions', 'type': '[ExpressionEvaluationDetails]'}, + 'if_not_exists_details': {'key': 'ifNotExistsDetails', 'type': 'IfNotExistsEvaluationDetails'}, + } + + def __init__(self, *, evaluated_expressions=None, if_not_exists_details=None, **kwargs) -> None: + super(PolicyEvaluationDetails, self).__init__(**kwargs) + self.evaluated_expressions = evaluated_expressions + self.if_not_exists_details = if_not_exists_details diff --git a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/policy_state.py b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/policy_state.py index 7b4a6a0b3215..0241a00e67af 100644 --- a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/policy_state.py +++ b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/policy_state.py @@ -85,6 +85,11 @@ class PolicyState(Model): definition inside the policy set, if the policy assignment is for a policy set. :type policy_definition_reference_id: str + :param compliance_state: Compliance state of the resource. + :type compliance_state: str + :param policy_evaluation_details: Policy evaluation details. + :type policy_evaluation_details: + ~azure.mgmt.policyinsights.models.PolicyEvaluationDetails """ _attribute_map = { @@ -116,6 +121,8 @@ class PolicyState(Model): 'policy_set_definition_parameters': {'key': 'policySetDefinitionParameters', 'type': 'str'}, 'management_group_ids': {'key': 'managementGroupIds', 'type': 'str'}, 'policy_definition_reference_id': {'key': 'policyDefinitionReferenceId', 'type': 'str'}, + 'compliance_state': {'key': 'complianceState', 'type': 'str'}, + 'policy_evaluation_details': {'key': 'policyEvaluationDetails', 'type': 'PolicyEvaluationDetails'}, } def __init__(self, **kwargs): @@ -148,3 +155,5 @@ def __init__(self, **kwargs): self.policy_set_definition_parameters = kwargs.get('policy_set_definition_parameters', None) self.management_group_ids = kwargs.get('management_group_ids', None) self.policy_definition_reference_id = kwargs.get('policy_definition_reference_id', None) + self.compliance_state = kwargs.get('compliance_state', None) + self.policy_evaluation_details = kwargs.get('policy_evaluation_details', None) diff --git a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/policy_state_py3.py b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/policy_state_py3.py index 6c317ac24873..cc4f9494e98f 100644 --- a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/policy_state_py3.py +++ b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/policy_state_py3.py @@ -85,6 +85,11 @@ class PolicyState(Model): definition inside the policy set, if the policy assignment is for a policy set. :type policy_definition_reference_id: str + :param compliance_state: Compliance state of the resource. + :type compliance_state: str + :param policy_evaluation_details: Policy evaluation details. + :type policy_evaluation_details: + ~azure.mgmt.policyinsights.models.PolicyEvaluationDetails """ _attribute_map = { @@ -116,9 +121,11 @@ class PolicyState(Model): 'policy_set_definition_parameters': {'key': 'policySetDefinitionParameters', 'type': 'str'}, 'management_group_ids': {'key': 'managementGroupIds', 'type': 'str'}, 'policy_definition_reference_id': {'key': 'policyDefinitionReferenceId', 'type': 'str'}, + 'compliance_state': {'key': 'complianceState', 'type': 'str'}, + 'policy_evaluation_details': {'key': 'policyEvaluationDetails', 'type': 'PolicyEvaluationDetails'}, } - def __init__(self, *, additional_properties=None, odataid: str=None, odatacontext: str=None, timestamp=None, resource_id: str=None, policy_assignment_id: str=None, policy_definition_id: str=None, effective_parameters: str=None, is_compliant: bool=None, subscription_id: str=None, resource_type: str=None, resource_location: str=None, resource_group: str=None, resource_tags: str=None, policy_assignment_name: str=None, policy_assignment_owner: str=None, policy_assignment_parameters: str=None, policy_assignment_scope: str=None, policy_definition_name: str=None, policy_definition_action: str=None, policy_definition_category: str=None, policy_set_definition_id: str=None, policy_set_definition_name: str=None, policy_set_definition_owner: str=None, policy_set_definition_category: str=None, policy_set_definition_parameters: str=None, management_group_ids: str=None, policy_definition_reference_id: str=None, **kwargs) -> None: + def __init__(self, *, additional_properties=None, odataid: str=None, odatacontext: str=None, timestamp=None, resource_id: str=None, policy_assignment_id: str=None, policy_definition_id: str=None, effective_parameters: str=None, is_compliant: bool=None, subscription_id: str=None, resource_type: str=None, resource_location: str=None, resource_group: str=None, resource_tags: str=None, policy_assignment_name: str=None, policy_assignment_owner: str=None, policy_assignment_parameters: str=None, policy_assignment_scope: str=None, policy_definition_name: str=None, policy_definition_action: str=None, policy_definition_category: str=None, policy_set_definition_id: str=None, policy_set_definition_name: str=None, policy_set_definition_owner: str=None, policy_set_definition_category: str=None, policy_set_definition_parameters: str=None, management_group_ids: str=None, policy_definition_reference_id: str=None, compliance_state: str=None, policy_evaluation_details=None, **kwargs) -> None: super(PolicyState, self).__init__(**kwargs) self.additional_properties = additional_properties self.odataid = odataid @@ -148,3 +155,5 @@ def __init__(self, *, additional_properties=None, odataid: str=None, odatacontex self.policy_set_definition_parameters = policy_set_definition_parameters self.management_group_ids = management_group_ids self.policy_definition_reference_id = policy_definition_reference_id + self.compliance_state = compliance_state + self.policy_evaluation_details = policy_evaluation_details diff --git a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/query_options.py b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/query_options.py index c40d8684b069..6fff3f17bf60 100644 --- a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/query_options.py +++ b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/query_options.py @@ -36,6 +36,9 @@ class QueryOptions(Model): :type to: datetime :param apply: OData apply expression for aggregations. :type apply: str + :param expand: The $expand query parameter. For example, to expand + policyEvaluationDetails, use $expand=policyEvaluationDetails + :type expand: str """ _attribute_map = { @@ -46,6 +49,7 @@ class QueryOptions(Model): 'from_property': {'key': '', 'type': 'iso-8601'}, 'to': {'key': '', 'type': 'iso-8601'}, 'apply': {'key': '', 'type': 'str'}, + 'expand': {'key': '', 'type': 'str'}, } def __init__(self, **kwargs): @@ -57,3 +61,4 @@ def __init__(self, **kwargs): self.from_property = kwargs.get('from_property', None) self.to = kwargs.get('to', None) self.apply = kwargs.get('apply', None) + self.expand = kwargs.get('expand', None) diff --git a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/query_options_py3.py b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/query_options_py3.py index 8629761f5dba..ed3bb4d1609d 100644 --- a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/query_options_py3.py +++ b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/query_options_py3.py @@ -36,6 +36,9 @@ class QueryOptions(Model): :type to: datetime :param apply: OData apply expression for aggregations. :type apply: str + :param expand: The $expand query parameter. For example, to expand + policyEvaluationDetails, use $expand=policyEvaluationDetails + :type expand: str """ _attribute_map = { @@ -46,9 +49,10 @@ class QueryOptions(Model): 'from_property': {'key': '', 'type': 'iso-8601'}, 'to': {'key': '', 'type': 'iso-8601'}, 'apply': {'key': '', 'type': 'str'}, + 'expand': {'key': '', 'type': 'str'}, } - def __init__(self, *, top: int=None, filter: str=None, order_by: str=None, select: str=None, from_property=None, to=None, apply: str=None, **kwargs) -> None: + def __init__(self, *, top: int=None, filter: str=None, order_by: str=None, select: str=None, from_property=None, to=None, apply: str=None, expand: str=None, **kwargs) -> None: super(QueryOptions, self).__init__(**kwargs) self.top = top self.filter = filter @@ -57,3 +61,4 @@ def __init__(self, *, top: int=None, filter: str=None, order_by: str=None, selec self.from_property = from_property self.to = to self.apply = apply + self.expand = expand diff --git a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/operations/operations.py b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/operations/operations.py index 64d9a5abe9a5..bae440b8c3ac 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-04-04". + :ivar api_version: API version to use with the client requests. Constant value: "2018-07-01-preview". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-04-04" + self.api_version = "2018-07-01-preview" self.config = config 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 3066f0bae9fe..3573f1dc52e7 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-04-04". + :ivar api_version: API version to use with the client requests. 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". """ @@ -36,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._serialize = serializer self._deserialize = deserializer self.management_groups_namespace = "Microsoft.Management" - self.api_version = "2018-04-04" + self.api_version = "2018-07-01-preview" self.policy_states_summary_resource = "latest" self.authorization_namespace = "Microsoft.Authorization" @@ -645,6 +645,9 @@ def list_query_results_for_resource( apply = None if query_options is not None: apply = query_options.apply + expand = None + if query_options is not None: + expand = query_options.expand # Construct URL url = self.list_query_results_for_resource.metadata['url'] @@ -671,6 +674,8 @@ def list_query_results_for_resource( query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') if apply is not None: query_parameters['$apply'] = self._serialize.query("apply", apply, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') # Construct headers header_parameters = {} diff --git a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/version.py b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/version.py index 9bd1dfac7ecb..53a203f32aaf 100644 --- a/azure-mgmt-policyinsights/azure/mgmt/policyinsights/version.py +++ b/azure-mgmt-policyinsights/azure/mgmt/policyinsights/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.2.0" +VERSION = ""