Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
ef35785
try migrate
haolingdong-msft Jul 21, 2025
1700b5c
update tsp and compile again
haolingdong-msft Jul 21, 2025
5c15573
Fix and generate
haolingdong-msft Jul 21, 2025
d7f0407
delete temp files
haolingdong-msft Jul 21, 2025
68a95ea
remove old swagger
haolingdong-msft Jul 21, 2025
59f74c5
delete sparse-spec
haolingdong-msft Jul 21, 2025
a186543
fix lint
haolingdong-msft Jul 22, 2025
3378d59
configure sdk emitter
haolingdong-msft Jul 22, 2025
defd8d2
configure sdk emitter
haolingdong-msft Jul 22, 2025
0680c79
configure sdk emitter
haolingdong-msft Jul 22, 2025
51c5df4
fix typespec validation
haolingdong-msft Jul 22, 2025
d8ee9c1
pretieer
haolingdong-msft Jul 22, 2025
878aa6f
remove dnsresolver.json
haolingdong-msft Jul 22, 2025
3f81535
update tspconfig
haolingdong-msft Jul 22, 2025
5888788
fix duplicate actionType issue
haolingdong-msft Jul 22, 2025
f035212
add clientLocation
haolingdong-msft Jul 22, 2025
8fca647
resolve spec changes
haolingdong-msft Jul 25, 2025
1a927e5
fix validation
haolingdong-msft Jul 25, 2025
b2093ac
fix validation
haolingdong-msft Jul 25, 2025
141b219
fix swagger validation
haolingdong-msft Jul 25, 2025
dd18d21
fix swagger validation
haolingdong-msft Jul 25, 2025
9010143
update suppress message and update CloudError
haolingdong-msft Jul 25, 2025
11cbf17
regen swagger
haolingdong-msft Jul 25, 2025
329c525
update
Jul 25, 2025
b5f7e7e
resolve breaking
v-jiaodi Jul 29, 2025
cc6b859
Merge remote-tracking branch 'origin/main' into tsp-conversion-dnsres…
haolingdong-msft Aug 1, 2025
2f4558c
no need client.tsp
haolingdong-msft Aug 1, 2025
21b09e1
Merge branch 'tsp-conversion-dnsresolver' of https://github.com/Azure…
haolingdong-msft Aug 1, 2025
b7bdd18
resolve breaking
v-jiaodi Aug 7, 2025
db24c04
Update tspconfig.yaml
haolingdong-msft Aug 14, 2025
9bad76b
Update tspconfig.yaml
tadelesh Aug 19, 2025
f9ea2cd
Merge branch 'main' into tsp-conversion-dnsresolver
haolingdong-msft Aug 20, 2025
36d8200
fix lro and paging validation errors
haolingdong-msft Aug 20, 2025
c2f20bd
remove sparse-spec
haolingdong-msft Aug 21, 2025
abf5637
Fix partial resource
Aug 21, 2025
92dc401
Add .net configuration
Aug 22, 2025
680bb1d
update etag
haolingdong-msft Aug 22, 2025
01b6415
remove operation id
haolingdong-msft Aug 22, 2025
d1e4949
suppress validation error
haolingdong-msft Aug 22, 2025
1639bd5
use using Network
haolingdong-msft Aug 22, 2025
3e2ac28
update .net configuration
Aug 25, 2025
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 @@ -24,7 +24,13 @@ model DnsForwardingRuleset
SegmentName = "dnsForwardingRulesets",
NamePattern = ""
>;
...Azure.ResourceManager.EntityTagProperty;

/**
* ETag of the DNS forwarding ruleset.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@visibility(Lifecycle.Read)
etag?: string;
}

@armResourceOperations
Expand Down Expand Up @@ -126,7 +132,6 @@ interface DnsForwardingRulesets {
}

@@doc(DnsForwardingRuleset.name, "The name of the DNS forwarding ruleset.");
@@encodedName(DnsForwardingRuleset.eTag, "application/json", "etag");
@@doc(DnsForwardingRuleset.properties,
"Properties of the DNS forwarding ruleset."
);
Expand Down
9 changes: 7 additions & 2 deletions specification/dnsresolver/Network.Management/DnsResolver.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ model DnsResolver
SegmentName = "dnsResolvers",
NamePattern = ""
>;
...Azure.ResourceManager.EntityTagProperty;

/**
* ETag of the DNS resolver..
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@visibility(Lifecycle.Read)
etag?: string;
}

@armResourceOperations
Expand Down Expand Up @@ -123,7 +129,6 @@ interface DnsResolvers {
}

@@doc(DnsResolver.name, "The name of the DNS resolver.");
@@encodedName(DnsResolver.eTag, "application/json", "etag");
@@doc(DnsResolver.properties, "Properties of the DNS resolver.");
@@doc(DnsResolvers.createOrUpdate::parameters.resource,
"Parameters supplied to the CreateOrUpdate operation."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ model DnsResolverDomainList
SegmentName = "dnsResolverDomainLists",
NamePattern = "^[a-zA-Z0-9]([a-zA-Z0-9_\\-]*[a-zA-Z0-9])?$"
>;
...Azure.ResourceManager.EntityTagProperty;

/**
* ETag of the DNS resolver domain list.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@visibility(Lifecycle.Read)
etag?: string;
}

@armResourceOperations
Expand Down Expand Up @@ -136,7 +142,6 @@ interface DnsResolverDomainLists {
@@maxLength(DnsResolverDomainList.name, 80);
@@minLength(DnsResolverDomainList.name, 1);
@@doc(DnsResolverDomainList.name, "The name of the DNS resolver domain list.");
@@encodedName(DnsResolverDomainList.eTag, "application/json", "etag");
@@doc(DnsResolverDomainList.properties,
"Properties of the DNS resolver domain list."
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ model DnsResolverPolicy
SegmentName = "dnsResolverPolicies",
NamePattern = "^[a-zA-Z0-9]([a-zA-Z0-9_\\-]*[a-zA-Z0-9])?$"
>;
...Azure.ResourceManager.EntityTagProperty;

/**
* ETag of the DNS resolver policy.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@visibility(Lifecycle.Read)
etag?: string;
}

@armResourceOperations
Expand Down Expand Up @@ -114,7 +120,6 @@ interface DnsResolverPolicies {
@@maxLength(DnsResolverPolicy.name, 80);
@@minLength(DnsResolverPolicy.name, 1);
@@doc(DnsResolverPolicy.name, "The name of the DNS resolver policy.");
@@encodedName(DnsResolverPolicy.eTag, "application/json", "etag");
@@doc(DnsResolverPolicy.properties, "Properties of the DNS resolver policy.");
@@doc(DnsResolverPolicies.createOrUpdate::parameters.resource,
"Parameters supplied to the CreateOrUpdate operation."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ model DnsResolverPolicyVirtualNetworkLink
SegmentName = "virtualNetworkLinks",
NamePattern = "^[a-zA-Z0-9]([a-zA-Z0-9_\\-]*[a-zA-Z0-9])?$"
>;
...Azure.ResourceManager.EntityTagProperty;

/**
* ETag of the DNS resolver policy virtual network link.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@visibility(Lifecycle.Read)
etag?: string;
}

@armResourceOperations
Expand Down Expand Up @@ -107,10 +113,6 @@ interface DnsResolverPolicyVirtualNetworkLinks {
@@doc(DnsResolverPolicyVirtualNetworkLink.name,
"The name of the DNS resolver policy virtual network link for the DNS resolver policy."
);
@@encodedName(DnsResolverPolicyVirtualNetworkLink.eTag,
"application/json",
"etag"
);
@@doc(DnsResolverPolicyVirtualNetworkLink.properties,
"Properties of the DNS resolver policy virtual network link."
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ model DnsSecurityRule
SegmentName = "dnsSecurityRules",
NamePattern = "^[a-zA-Z0-9]([a-zA-Z0-9_\\-]*[a-zA-Z0-9])?$"
>;
...Azure.ResourceManager.EntityTagProperty;

/**
* ETag of the DNS security rule.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@visibility(Lifecycle.Read)
etag?: string;
}

@armResourceOperations
Expand Down Expand Up @@ -102,7 +108,6 @@ interface DnsSecurityRules {
@@maxLength(DnsSecurityRule.name, 80);
@@minLength(DnsSecurityRule.name, 1);
@@doc(DnsSecurityRule.name, "The name of the DNS security rule.");
@@encodedName(DnsSecurityRule.eTag, "application/json", "etag");
@@doc(DnsSecurityRule.properties, "Properties of the DNS security rule.");
@@doc(DnsSecurityRules.createOrUpdate::parameters.resource,
"Parameters supplied to the CreateOrUpdate operation."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ model ForwardingRule
SegmentName = "forwardingRules",
NamePattern = ""
>;
...Azure.ResourceManager.EntityTagProperty;

/**
* ETag of the forwarding rule.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@visibility(Lifecycle.Read)
etag?: string;
}

@armResourceOperations
Expand Down Expand Up @@ -103,7 +109,6 @@ interface ForwardingRules {
}

@@doc(ForwardingRule.name, "The name of the forwarding rule.");
@@encodedName(ForwardingRule.eTag, "application/json", "etag");
@@doc(ForwardingRule.properties, "Properties of the forwarding rule.");
@@doc(ForwardingRules.createOrUpdate::parameters.resource,
"Parameters supplied to the CreateOrUpdate operation."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ model InboundEndpoint
SegmentName = "inboundEndpoints",
NamePattern = ""
>;
...Azure.ResourceManager.EntityTagProperty;

/**
* ETag of the inbound endpoint.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@visibility(Lifecycle.Read)
etag?: string;
}

@armResourceOperations
Expand Down Expand Up @@ -112,7 +118,6 @@ interface InboundEndpoints {
@@doc(InboundEndpoint.name,
"The name of the inbound endpoint for the DNS resolver."
);
@@encodedName(InboundEndpoint.eTag, "application/json", "etag");
@@doc(InboundEndpoint.properties, "Properties of the inbound endpoint.");
@@doc(InboundEndpoints.createOrUpdate::parameters.resource,
"Parameters supplied to the CreateOrUpdate operation."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ model OutboundEndpoint
SegmentName = "outboundEndpoints",
NamePattern = ""
>;
...Azure.ResourceManager.EntityTagProperty;

/**
* ETag of the outbound endpoint.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@visibility(Lifecycle.Read)
etag?: string;
}

@armResourceOperations
Expand Down Expand Up @@ -112,7 +118,6 @@ interface OutboundEndpoints {
@@doc(OutboundEndpoint.name,
"The name of the outbound endpoint for the DNS resolver."
);
@@encodedName(OutboundEndpoint.eTag, "application/json", "etag");
@@doc(OutboundEndpoint.properties, "Properties of the outbound endpoint.");
@@doc(OutboundEndpoints.createOrUpdate::parameters.resource,
"Parameters supplied to the CreateOrUpdate operation."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ model VirtualNetworkLink
SegmentName = "virtualNetworkLinks",
NamePattern = ""
>;
...Azure.ResourceManager.EntityTagProperty;

/**
* ETag of the virtual network link.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@visibility(Lifecycle.Read)
etag?: string;
}

@armResourceOperations
Expand Down Expand Up @@ -110,7 +116,6 @@ interface VirtualNetworkLinks {
}

@@doc(VirtualNetworkLink.name, "The name of the virtual network link.");
@@encodedName(VirtualNetworkLink.eTag, "application/json", "etag");
@@doc(VirtualNetworkLink.properties, "Properties of the virtual network link.");
@@doc(VirtualNetworkLinks.createOrUpdate::parameters.resource,
"Parameters supplied to the CreateOrUpdate operation."
Expand Down
2 changes: 1 addition & 1 deletion specification/dnsresolver/Network.Management/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@ interface DnsResolverPoliciesOperationGroup {
*/
@path
virtualNetworkName: string,
): ArmResponse<SubResourceListResult>;
): ArmResponse<SubResourceListResult> | ErrorResponse;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4087,6 +4087,12 @@
"schema": {
"$ref": "#/definitions/SubResourceListResult"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
Expand Down Expand Up @@ -4250,9 +4256,8 @@
},
"etag": {
"type": "string",
"description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.",
"readOnly": true,
"x-ms-client-name": "eTag"
"description": "ETag of the DNS forwarding ruleset.",
"readOnly": true
}
},
"required": [
Expand Down Expand Up @@ -4347,9 +4352,8 @@
},
"etag": {
"type": "string",
"description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.",
"readOnly": true,
"x-ms-client-name": "eTag"
"description": "ETag of the DNS resolver..",
"readOnly": true
}
},
"required": [
Expand All @@ -4372,9 +4376,8 @@
},
"etag": {
"type": "string",
"description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.",
"readOnly": true,
"x-ms-client-name": "eTag"
"description": "ETag of the DNS resolver domain list.",
"readOnly": true
}
},
"allOf": [
Expand Down Expand Up @@ -4550,9 +4553,8 @@
},
"etag": {
"type": "string",
"description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.",
"readOnly": true,
"x-ms-client-name": "eTag"
"description": "ETag of the DNS resolver policy.",
"readOnly": true
}
},
"allOf": [
Expand Down Expand Up @@ -4627,9 +4629,8 @@
},
"etag": {
"type": "string",
"description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.",
"readOnly": true,
"x-ms-client-name": "eTag"
"description": "ETag of the DNS resolver policy virtual network link.",
"readOnly": true
}
},
"required": [
Expand Down Expand Up @@ -4767,9 +4768,8 @@
},
"etag": {
"type": "string",
"description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.",
"readOnly": true,
"x-ms-client-name": "eTag"
"description": "ETag of the DNS security rule.",
"readOnly": true
}
},
"required": [
Expand Down Expand Up @@ -4942,9 +4942,8 @@
},
"etag": {
"type": "string",
"description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.",
"readOnly": true,
"x-ms-client-name": "eTag"
"description": "ETag of the forwarding rule.",
"readOnly": true
}
},
"required": [
Expand Down Expand Up @@ -5103,9 +5102,8 @@
},
"etag": {
"type": "string",
"description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.",
"readOnly": true,
"x-ms-client-name": "eTag"
"description": "ETag of the inbound endpoint.",
"readOnly": true
}
},
"required": [
Expand Down Expand Up @@ -5234,9 +5232,8 @@
},
"etag": {
"type": "string",
"description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.",
"readOnly": true,
"x-ms-client-name": "eTag"
"description": "ETag of the outbound endpoint.",
"readOnly": true
}
},
"required": [
Expand Down Expand Up @@ -5452,9 +5449,8 @@
},
"etag": {
"type": "string",
"description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.",
"readOnly": true,
"x-ms-client-name": "eTag"
"description": "ETag of the virtual network link.",
"readOnly": true
}
},
"required": [
Expand Down
Loading