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
5 changes: 5 additions & 0 deletions src/dns-resolver/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

Release History
===============
1.2.0
++++++
* Bump from 2025-05-01 to 2025-10-01-preview
* Adds managed domain list option for dns security rule, allowing usage of threat intel managed security rules.

1.1.0
++++++
* Bump from 2023-07-01-preview to 2025-05-01
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Create(AAZCommand):
"""

_aaz_info = {
"version": "2025-05-01",
"version": "2025-10-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnsresolvers/{}", "2025-05-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnsresolvers/{}", "2025-10-01-preview"],
]
}

Expand Down Expand Up @@ -122,7 +122,7 @@ def __call__(self, *args, **kwargs):
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
lro_options={"final-state-via": "location"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
Expand All @@ -131,7 +131,7 @@ def __call__(self, *args, **kwargs):
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
lro_options={"final-state-via": "location"},
path_format_arguments=self.url_parameters,
)

Expand Down Expand Up @@ -174,7 +174,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-05-01",
"api-version", "2025-10-01-preview",
required=True,
),
}
Expand All @@ -184,10 +184,10 @@ def query_parameters(self):
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"If-Match", self.ctx.args.if_match,
"if-match", self.ctx.args.if_match,
),
**self.serialize_header_param(
"If-None-Match", self.ctx.args.if_none_match,
"if-none-match", self.ctx.args.if_none_match,
),
**self.serialize_header_param(
"Content-Type", "application/json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class Delete(AAZCommand):
"""

_aaz_info = {
"version": "2025-05-01",
"version": "2025-10-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnsresolvers/{}", "2025-05-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnsresolvers/{}", "2025-10-01-preview"],
]
}

Expand Down Expand Up @@ -86,7 +86,7 @@ def __call__(self, *args, **kwargs):
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
lro_options={"final-state-via": "location"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200]:
Expand All @@ -95,7 +95,7 @@ def __call__(self, *args, **kwargs):
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
lro_options={"final-state-via": "location"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [204]:
Expand All @@ -104,7 +104,7 @@ def __call__(self, *args, **kwargs):
session,
self.on_204,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
lro_options={"final-state-via": "location"},
path_format_arguments=self.url_parameters,
)

Expand Down Expand Up @@ -147,7 +147,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-05-01",
"api-version", "2025-10-01-preview",
required=True,
),
}
Expand All @@ -157,7 +157,7 @@ def query_parameters(self):
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"If-Match", self.ctx.args.if_match,
"if-match", self.ctx.args.if_match,
),
}
return parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ class List(AAZCommand):
"""

_aaz_info = {
"version": "2025-05-01",
"version": "2025-10-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/providers/microsoft.network/dnsresolvers", "2025-05-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnsresolvers", "2025-05-01"],
["mgmt-plane", "/subscriptions/{}/providers/microsoft.network/dnsresolvers", "2025-10-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnsresolvers", "2025-10-01-preview"],
]
}

Expand Down Expand Up @@ -125,7 +125,7 @@ def query_parameters(self):
"$top", self.ctx.args.top,
),
**self.serialize_query_param(
"api-version", "2025-05-01",
"api-version", "2025-10-01-preview",
required=True,
),
}
Expand Down Expand Up @@ -160,9 +160,10 @@ def _build_schema_on_200(cls):
_schema_on_200 = cls._schema_on_200
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
flags={"read_only": True},
)
_schema_on_200.value = AAZListType()
_schema_on_200.value = AAZListType(
flags={"required": True},
)

value = cls._schema_on_200.value
value.Element = AAZObjectType()
Expand Down Expand Up @@ -287,7 +288,7 @@ def query_parameters(self):
"$top", self.ctx.args.top,
),
**self.serialize_query_param(
"api-version", "2025-05-01",
"api-version", "2025-10-01-preview",
required=True,
),
}
Expand Down Expand Up @@ -322,9 +323,10 @@ def _build_schema_on_200(cls):
_schema_on_200 = cls._schema_on_200
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
flags={"read_only": True},
)
_schema_on_200.value = AAZListType()
_schema_on_200.value = AAZListType(
flags={"required": True},
)

value = cls._schema_on_200.value
value.Element = AAZObjectType()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class ListByVirtualNetwork(AAZCommand):
"""

_aaz_info = {
"version": "2025-05-01",
"version": "2025-10-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/listdnsresolvers", "2025-05-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworks/{}/listdnsresolvers", "2025-10-01-preview"],
]
}

Expand Down Expand Up @@ -128,7 +128,7 @@ def query_parameters(self):
"$top", self.ctx.args.top,
),
**self.serialize_query_param(
"api-version", "2025-05-01",
"api-version", "2025-10-01-preview",
required=True,
),
}
Expand Down Expand Up @@ -163,9 +163,10 @@ def _build_schema_on_200(cls):
_schema_on_200 = cls._schema_on_200
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
flags={"read_only": True},
)
_schema_on_200.value = AAZListType()
_schema_on_200.value = AAZListType(
flags={"required": True},
)

value = cls._schema_on_200.value
value.Element = AAZObjectType()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Show(AAZCommand):
"""

_aaz_info = {
"version": "2025-05-01",
"version": "2025-10-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnsresolvers/{}", "2025-05-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnsresolvers/{}", "2025-10-01-preview"],
]
}

Expand Down Expand Up @@ -120,7 +120,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-05-01",
"api-version", "2025-10-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Update(AAZCommand):
"""

_aaz_info = {
"version": "2025-05-01",
"version": "2025-10-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnsresolvers/{}", "2025-05-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnsresolvers/{}", "2025-10-01-preview"],
]
}

Expand All @@ -51,6 +51,10 @@ def _build_arguments_schema(cls, *args, **kwargs):
options=["--if-match"],
help="ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.",
)
_args_schema.if_none_match = AAZStrArg(
options=["--if-none-match"],
help="Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.",
)
_args_schema.dns_resolver_name = AAZStrArg(
options=["-n", "--name", "--dns-resolver-name"],
help="The name of the DNS resolver.",
Expand Down Expand Up @@ -155,7 +159,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-05-01",
"api-version", "2025-10-01-preview",
required=True,
),
}
Expand Down Expand Up @@ -202,7 +206,7 @@ def __call__(self, *args, **kwargs):
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
lro_options={"final-state-via": "location"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
Expand All @@ -211,7 +215,7 @@ def __call__(self, *args, **kwargs):
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
lro_options={"final-state-via": "location"},
path_format_arguments=self.url_parameters,
)

Expand Down Expand Up @@ -254,7 +258,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-05-01",
"api-version", "2025-10-01-preview",
required=True,
),
}
Expand All @@ -264,7 +268,10 @@ def query_parameters(self):
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"If-Match", self.ctx.args.if_match,
"if-match", self.ctx.args.if_match,
),
**self.serialize_header_param(
"if-none-match", self.ctx.args.if_none_match,
),
**self.serialize_header_param(
"Content-Type", "application/json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand):

_aaz_info = {
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnsresolvers/{}", "2025-05-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnsresolvers/{}", "2025-10-01-preview"],
]
}

Expand Down Expand Up @@ -116,7 +116,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-05-01",
"api-version", "2025-10-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Bulk(AAZCommand):
"""

_aaz_info = {
"version": "2025-05-01",
"version": "2025-10-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnsresolverdomainlists/{}/bulk", "2025-05-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnsresolverdomainlists/{}/bulk", "2025-10-01-preview"],
]
}

Expand Down Expand Up @@ -115,7 +115,7 @@ def __call__(self, *args, **kwargs):
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
lro_options={"final-state-via": "location"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200]:
Expand All @@ -124,7 +124,7 @@ def __call__(self, *args, **kwargs):
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "azure-async-operation"},
lro_options={"final-state-via": "location"},
path_format_arguments=self.url_parameters,
)

Expand Down Expand Up @@ -167,7 +167,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-05-01",
"api-version", "2025-10-01-preview",
required=True,
),
}
Expand All @@ -177,10 +177,10 @@ def query_parameters(self):
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"If-Match", self.ctx.args.if_match,
"if-match", self.ctx.args.if_match,
),
**self.serialize_header_param(
"If-None-Match", self.ctx.args.if_none_match,
"if-none-match", self.ctx.args.if_none_match,
),
**self.serialize_header_param(
"Content-Type", "application/json",
Expand Down
Loading
Loading