Skip to content
Open
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 @@ -27,6 +27,16 @@ using Microsoft.ServiceNetworking;
"autorest"
);
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(
Microsoft.ServiceNetworking.PrivateEndpointConnection.properties,
"autorest"
);
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(
Microsoft.ServiceNetworking.PrivateLinkResource.properties,
"autorest"
);
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(
Azure.ResourceManager.Foundations.ResourceUpdateModel.properties,
"autorest"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,41 @@ using Microsoft.ServiceNetworking;
Azure.ResourceManager.Models.SubResource[],
"csharp"
);
@@alternateType(
TrafficControllerProperties.privateEndpointConnections,
Azure.ResourceManager.Models.SubResource[],
"csharp"
);
@@alternateType(
FrontendAssociation.id,
Azure.Core.armResourceIdentifier,
"csharp"
);
@@alternateType(
FrontendAssociationUpdate.id,
Azure.Core.armResourceIdentifier,
"csharp"
);

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "property flatten for SDK backward compatibility"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(
PrivateEndpointConnection.properties,
"csharp"
);
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "property flatten for SDK backward compatibility"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(
PrivateLinkResource.properties,
"csharp"
);

@@clientName(FrontendType, "TrafficControllerFrontendType", "csharp");
@@clientName(
PrivateLinkServiceConnectionStatus,
"ServiceNetworkingPrivateLinkServiceConnectionStatus",
"csharp"
);

@@clientName(
Versions.v2023_11_01,
Expand All @@ -154,6 +189,16 @@ using Microsoft.ServiceNetworking;
"$DO_NOT_NORMALIZE$V2025_05_01",
"javascript"
);
@@clientName(
Versions.v2025_10_01_preview,
"$DO_NOT_NORMALIZE$V2025_10_01_preview",
"javascript"
);
@@clientName(
Versions.v2026_03_01,
"$DO_NOT_NORMALIZE$V2026_03_01",
"javascript"
);

// we add this model in this namespace in order to replace some models with this model via alternateType decorator
namespace Azure.ResourceManager.Models {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"title": "Delete Association",
"operationId": "AssociationsInterface_Delete",
"parameters": {
"api-version": "2025-10-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1",
"associationName": "as1"
},
"responses": {
"202": {
"headers": {
"Retry-After": 3,
"location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"title": "Get Association",
"operationId": "AssociationsInterface_Get",
"parameters": {
"api-version": "2025-10-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1",
"associationName": "as1"
},
"responses": {
"200": {
"body": {
"name": "as1",
"type": "Microsoft.ServiceNetworking/trafficControllers/associations",
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1",
"location": "NorthCentralUS",
"properties": {
"associationType": "subnets",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
},
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"title": "Update Association",
"operationId": "AssociationsInterface_Update",
"parameters": {
"api-version": "2025-10-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1",
"associationName": "as1",
"properties": {
"properties": {
"associationType": "subnets",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
}
}
}
},
"responses": {
"200": {
"body": {
"name": "as1",
"type": "Microsoft.ServiceNetworking/trafficControllers/associations",
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1",
"location": "NorthCentralUS",
"properties": {
"associationType": "subnets",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"title": "Put Association",
"operationId": "AssociationsInterface_CreateOrUpdate",
"parameters": {
"api-version": "2025-10-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1",
"associationName": "as1",
"resource": {
"location": "NorthCentralUS",
"properties": {
"associationType": "subnets",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
}
}
}
},
"responses": {
"200": {
"body": {
"name": "associatedvnet-1",
"type": "Microsoft.ServiceNetworking/trafficControllers/associations",
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1",
"location": "NorthCentralUS",
"properties": {
"associationType": "subnets",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
},
"provisioningState": "Accepted"
}
}
},
"201": {
"body": {
"name": "associatedvnet-1",
"type": "Microsoft.ServiceNetworking/trafficControllers/associations",
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1",
"location": "NorthCentralUS",
"properties": {
"associationType": "subnets",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"title": "Get Associations",
"operationId": "AssociationsInterface_ListByTrafficController",
"parameters": {
"api-version": "2025-10-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "as1",
"type": "Microsoft.ServiceNetworking/trafficControllers/associations",
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1",
"location": "NorthCentralUS",
"properties": {
"associationType": "subnets",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
},
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"title": "Delete Frontend",
"operationId": "FrontendsInterface_Delete",
"parameters": {
"api-version": "2025-10-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1",
"frontendName": "fe1"
},
"responses": {
"202": {
"headers": {
"Retry-After": 3,
"location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"title": "Get Frontend",
"operationId": "FrontendsInterface_Get",
"parameters": {
"api-version": "2025-10-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1",
"frontendName": "fe1"
},
"responses": {
"200": {
"body": {
"name": "fe1",
"location": "NorthCentralUS",
"type": "Microsoft.ServiceNetworking/trafficControllers/frontends",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1",
"properties": {
"fqdn": "test.net",
"type": "public",
"securityPolicyConfigurations": {
"ipAccessRulesSecurityPolicy": {
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/sample-tc/securityPolicies/ipAccessRules-0"
}
},
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"title": "Update Frontend",
"operationId": "FrontendsInterface_Update",
"parameters": {
"api-version": "2025-10-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1",
"frontendName": "fe1",
"properties": {}
},
"responses": {
"200": {
"body": {
"name": "fe1",
"location": "NorthCentralUS",
"type": "Microsoft.ServiceNetworking/trafficControllers/frontends",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1",
"properties": {
"fqdn": "test.net",
"securityPolicyConfigurations": {
"ipAccessRulesSecurityPolicy": {
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/sample-tc/securityPolicies/ipAccessRules-0"
}
},
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"title": "Put Frontend",
"operationId": "FrontendsInterface_CreateOrUpdate",
"parameters": {
"api-version": "2025-10-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1",
"frontendName": "fe1",
"resource": {
"location": "NorthCentralUS",
"properties": {
"type": "public"
}
}
},
"responses": {
"200": {
"body": {
"name": "fe1",
"location": "NorthCentralUS",
"type": "Microsoft.ServiceNetworking/trafficControllers/frontends",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1",
"properties": {
"fqdn": "test.net",
"type": "public",
"securityPolicyConfigurations": {
"ipAccessRulesSecurityPolicy": {
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/sample-tc/securityPolicies/ipAccessRules-0"
}
},
"provisioningState": "Succeeded"
}
}
},
"201": {
"body": {
"name": "fe1",
"location": "NorthCentralUS",
"type": "Microsoft.ServiceNetworking/trafficControllers/frontends",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1",
"properties": {
"fqdn": "test.net",
"type": "public",
"securityPolicyConfigurations": {
"ipAccessRulesSecurityPolicy": {
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/sample-tc/securityPolicies/ipAccessRules-0"
}
},
"provisioningState": "Succeeded"
}
}
}
}
}
Loading