Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from .remediation_deployment_py3 import RemediationDeployment
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
Expand Down Expand Up @@ -52,7 +51,6 @@
from .remediation_deployment import RemediationDeployment
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
Expand All @@ -70,6 +68,8 @@
from .policy_tracked_resource_paged import PolicyTrackedResourcePaged
from .remediation_deployment_paged import RemediationDeploymentPaged
from .remediation_paged import RemediationPaged
from .policy_event_paged import PolicyEventPaged
from .policy_state_paged import PolicyStatePaged
from .policy_insights_client_enums import (
PolicyStatesResource,
)
Expand All @@ -88,7 +88,6 @@
'RemediationDeployment',
'ErrorResponse', 'ErrorResponseException',
'PolicyEvent',
'PolicyEventsQueryResults',
'ExpressionEvaluationDetails',
'IfNotExistsEvaluationDetails',
'PolicyEvaluationDetails',
Expand All @@ -106,5 +105,7 @@
'PolicyTrackedResourcePaged',
'RemediationDeploymentPaged',
'RemediationPaged',
'PolicyEventPaged',
'PolicyStatePaged',
'PolicyStatesResource',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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.paging import Paged


class PolicyEventPaged(Paged):
"""
A paging container for iterating over a list of :class:`PolicyEvent <azure.mgmt.policyinsights.models.PolicyEvent>` object
"""

_attribute_map = {
'next_link': {'key': '@odata\\.nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[PolicyEvent]'}
}

def __init__(self, *args, **kwargs):

super(PolicyEventPaged, self).__init__(*args, **kwargs)

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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.paging import Paged


class PolicyStatePaged(Paged):
"""
A paging container for iterating over a list of :class:`PolicyState <azure.mgmt.policyinsights.models.PolicyState>` object
"""

_attribute_map = {
'next_link': {'key': '@odata\\.nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[PolicyState]'}
}

def __init__(self, *args, **kwargs):

super(PolicyStatePaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class PolicyStatesQueryResults(Model):
:type odatacount: int
:param value: Query results.
:type value: list[~azure.mgmt.policyinsights.models.PolicyState]
:param odatanext_link: Odata next link, used to get the next set of
records.
:type odatanext_link: str
"""

_validation = {
Expand All @@ -33,10 +36,12 @@ class PolicyStatesQueryResults(Model):
'odatacontext': {'key': '@odata\\.context', 'type': 'str'},
'odatacount': {'key': '@odata\\.count', 'type': 'int'},
'value': {'key': 'value', 'type': '[PolicyState]'},
'odatanext_link': {'key': '@odata\\.nextLink', 'type': 'str'},
}

def __init__(self, **kwargs):
super(PolicyStatesQueryResults, self).__init__(**kwargs)
self.odatacontext = kwargs.get('odatacontext', None)
self.odatacount = kwargs.get('odatacount', None)
self.value = kwargs.get('value', None)
self.odatanext_link = kwargs.get('odatanext_link', None)
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class PolicyStatesQueryResults(Model):
:type odatacount: int
:param value: Query results.
:type value: list[~azure.mgmt.policyinsights.models.PolicyState]
:param odatanext_link: Odata next link, used to get the next set of
records.
:type odatanext_link: str
"""

_validation = {
Expand All @@ -33,10 +36,12 @@ class PolicyStatesQueryResults(Model):
'odatacontext': {'key': '@odata\\.context', 'type': 'str'},
'odatacount': {'key': '@odata\\.count', 'type': 'int'},
'value': {'key': 'value', 'type': '[PolicyState]'},
'odatanext_link': {'key': '@odata\\.nextLink', 'type': 'str'},
}

def __init__(self, *, odatacontext: str=None, odatacount: int=None, value=None, **kwargs) -> None:
def __init__(self, *, odatacontext: str=None, odatacount: int=None, value=None, odatanext_link: str=None, **kwargs) -> None:
super(PolicyStatesQueryResults, self).__init__(**kwargs)
self.odatacontext = odatacontext
self.odatacount = odatacount
self.value = value
self.odatanext_link = odatanext_link
Loading