Skip to content
Merged
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 @@ -17,6 +17,8 @@ class PolicyDefinitionSummary(Model):

:param policy_definition_id: Policy definition ID.
:type policy_definition_id: str
:param policy_definition_reference_id: Policy definition reference ID.
:type policy_definition_reference_id: str
:param effect: Policy effect, i.e. policy definition action.
:type effect: str
:param results: Non-compliance summary for the policy definition.
Expand All @@ -25,12 +27,14 @@ class PolicyDefinitionSummary(Model):

_attribute_map = {
'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'},
'policy_definition_reference_id': {'key': 'policyDefinitionReferenceId', 'type': 'str'},
'effect': {'key': 'effect', 'type': 'str'},
'results': {'key': 'results', 'type': 'SummaryResults'},
}

def __init__(self, **kwargs):
super(PolicyDefinitionSummary, self).__init__(**kwargs)
self.policy_definition_id = kwargs.get('policy_definition_id', None)
self.policy_definition_reference_id = kwargs.get('policy_definition_reference_id', None)
self.effect = kwargs.get('effect', None)
self.results = kwargs.get('results', None)
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class PolicyDefinitionSummary(Model):

:param policy_definition_id: Policy definition ID.
:type policy_definition_id: str
:param policy_definition_reference_id: Policy definition reference ID.
:type policy_definition_reference_id: str
:param effect: Policy effect, i.e. policy definition action.
:type effect: str
:param results: Non-compliance summary for the policy definition.
Expand All @@ -25,12 +27,14 @@ class PolicyDefinitionSummary(Model):

_attribute_map = {
'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'},
'policy_definition_reference_id': {'key': 'policyDefinitionReferenceId', 'type': 'str'},
'effect': {'key': 'effect', 'type': 'str'},
'results': {'key': 'results', 'type': 'SummaryResults'},
}

def __init__(self, *, policy_definition_id: str=None, effect: str=None, results=None, **kwargs) -> None:
def __init__(self, *, policy_definition_id: str=None, policy_definition_reference_id: str=None, effect: str=None, results=None, **kwargs) -> None:
super(PolicyDefinitionSummary, self).__init__(**kwargs)
self.policy_definition_id = policy_definition_id
self.policy_definition_reference_id = policy_definition_reference_id
self.effect = effect
self.results = results
Original file line number Diff line number Diff line change
Expand Up @@ -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: "2017-12-12-preview".
:ivar api_version: API version to use with the client requests. Constant value: "2018-04-04".
"""

models = models
Expand All @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2017-12-12-preview"
self.api_version = "2018-04-04"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class PolicyEventsOperations(object):
:param deserializer: An object model deserializer.
:ivar policy_events_resource: The name of the virtual resource under PolicyEvents resource type; only "default" is allowed. Constant value: "default".
: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: "2017-12-12-preview".
:ivar api_version: API version to use with the client requests. Constant value: "2018-04-04".
:ivar authorization_namespace: The namespace for Microsoft Authorization resource provider; only "Microsoft.Authorization" is allowed. Constant value: "Microsoft.Authorization".
"""

Expand All @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer):
self._deserialize = deserializer
self.policy_events_resource = "default"
self.management_groups_namespace = "Microsoft.Management"
self.api_version = "2017-12-12-preview"
self.api_version = "2018-04-04"
self.authorization_namespace = "Microsoft.Authorization"

self.config = config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: "2017-12-12-preview".
:ivar api_version: API version to use with the client requests. Constant value: "2018-04-04".
: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".
"""
Expand All @@ -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 = "2017-12-12-preview"
self.api_version = "2018-04-04"
self.policy_states_summary_resource = "latest"
self.authorization_namespace = "Microsoft.Authorization"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -46,7 +46,7 @@ def __init__(
self.credentials = credentials


class PolicyInsightsClient(object):
class PolicyInsightsClient(SDKClient):
"""PolicyInsightsClient

:ivar config: Configuration for client.
Expand All @@ -69,10 +69,10 @@ def __init__(
self, credentials, base_url=None):

self.config = PolicyInsightsClientConfiguration(credentials, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(PolicyInsightsClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2017-12-12-preview'
self.api_version = '2018-04-04'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "2017-12-12-preview"
VERSION = "2018-04-04"