Skip to content

Commit 12492ed

Browse files
cdxu-147msyyckazrael2119
authored
AGC-v.2025-01-01 (#31902)
* AGC-v.2025-01-01 * change api version * udpate readme * udpate readme * main.tsp change * change readme * Remove azure-sdk-for-python from swagger-to-sdk * update --------- Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com> Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
1 parent 1cb540f commit 12492ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3561
-2
lines changed

specification/servicenetworking/ServiceNetworking.Management/client.tsp

+4
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ import "@azure-tools/typespec-client-generator-core";
44
using Azure.ClientGenerator.Core;
55

66
@@clientName(Microsoft.ServiceNetworking, "ServiceNetworkingMgmt", "python");
7+
@@clientName(Microsoft.ServiceNetworking,
8+
"ServiceNetworkingManagementClient",
9+
"javascript"
10+
);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"title": "Delete Association",
3+
"operationId": "AssociationsInterface_Delete",
4+
"parameters": {
5+
"api-version": "2025-01-01",
6+
"subscriptionId": "subid",
7+
"resourceGroupName": "rg1",
8+
"trafficControllerName": "tc1",
9+
"associationName": "as1"
10+
},
11+
"responses": {
12+
"202": {
13+
"headers": {
14+
"Retry-After": 3,
15+
"location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1"
16+
}
17+
},
18+
"204": {}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"title": "Get Association",
3+
"operationId": "AssociationsInterface_Get",
4+
"parameters": {
5+
"api-version": "2025-01-01",
6+
"subscriptionId": "subid",
7+
"resourceGroupName": "rg1",
8+
"trafficControllerName": "tc1",
9+
"associationName": "as1"
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"name": "as1",
15+
"type": "Microsoft.ServiceNetworking/trafficControllers/associations",
16+
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1",
17+
"location": "NorthCentralUS",
18+
"properties": {
19+
"associationType": "subnets",
20+
"subnet": {
21+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
22+
},
23+
"provisioningState": "Succeeded"
24+
}
25+
}
26+
}
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"title": "Update Association",
3+
"operationId": "AssociationsInterface_Update",
4+
"parameters": {
5+
"api-version": "2025-01-01",
6+
"subscriptionId": "subid",
7+
"resourceGroupName": "rg1",
8+
"trafficControllerName": "tc1",
9+
"associationName": "as1",
10+
"properties": {
11+
"properties": {
12+
"associationType": "subnets",
13+
"subnet": {
14+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
15+
}
16+
}
17+
}
18+
},
19+
"responses": {
20+
"200": {
21+
"body": {
22+
"name": "as1",
23+
"type": "Microsoft.ServiceNetworking/trafficControllers/associations",
24+
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1",
25+
"location": "NorthCentralUS",
26+
"properties": {
27+
"associationType": "subnets",
28+
"subnet": {
29+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
30+
}
31+
}
32+
}
33+
}
34+
}
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"title": "Put Association",
3+
"operationId": "AssociationsInterface_CreateOrUpdate",
4+
"parameters": {
5+
"api-version": "2025-01-01",
6+
"subscriptionId": "subid",
7+
"resourceGroupName": "rg1",
8+
"trafficControllerName": "tc1",
9+
"associationName": "as1",
10+
"resource": {
11+
"location": "NorthCentralUS",
12+
"properties": {
13+
"associationType": "subnets",
14+
"subnet": {
15+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
16+
}
17+
}
18+
}
19+
},
20+
"responses": {
21+
"200": {
22+
"body": {
23+
"name": "associatedvnet-1",
24+
"type": "Microsoft.ServiceNetworking/trafficControllers/associations",
25+
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1",
26+
"location": "NorthCentralUS",
27+
"properties": {
28+
"associationType": "subnets",
29+
"subnet": {
30+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
31+
},
32+
"provisioningState": "Accepted"
33+
}
34+
}
35+
},
36+
"201": {
37+
"body": {
38+
"name": "associatedvnet-1",
39+
"type": "Microsoft.ServiceNetworking/trafficControllers/associations",
40+
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1",
41+
"location": "NorthCentralUS",
42+
"properties": {
43+
"associationType": "subnets",
44+
"subnet": {
45+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
46+
}
47+
}
48+
}
49+
}
50+
}
51+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"title": "Get Associations",
3+
"operationId": "AssociationsInterface_ListByTrafficController",
4+
"parameters": {
5+
"api-version": "2025-01-01",
6+
"subscriptionId": "subid",
7+
"resourceGroupName": "rg1",
8+
"trafficControllerName": "tc1"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"value": [
14+
{
15+
"name": "as1",
16+
"type": "Microsoft.ServiceNetworking/trafficControllers/associations",
17+
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1",
18+
"location": "NorthCentralUS",
19+
"properties": {
20+
"associationType": "subnets",
21+
"subnet": {
22+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"
23+
},
24+
"provisioningState": "Succeeded"
25+
}
26+
}
27+
]
28+
}
29+
}
30+
}
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"title": "Delete Frontend",
3+
"operationId": "FrontendsInterface_Delete",
4+
"parameters": {
5+
"api-version": "2025-01-01",
6+
"subscriptionId": "subid",
7+
"resourceGroupName": "rg1",
8+
"trafficControllerName": "tc1",
9+
"frontendName": "fe1"
10+
},
11+
"responses": {
12+
"202": {
13+
"headers": {
14+
"Retry-After": 3,
15+
"location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1"
16+
}
17+
},
18+
"204": {}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"title": "Get Frontend",
3+
"operationId": "FrontendsInterface_Get",
4+
"parameters": {
5+
"api-version": "2025-01-01",
6+
"subscriptionId": "subid",
7+
"resourceGroupName": "rg1",
8+
"trafficControllerName": "tc1",
9+
"frontendName": "fe1"
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"name": "fe1",
15+
"location": "NorthCentralUS",
16+
"type": "Microsoft.ServiceNetworking/trafficControllers/frontends",
17+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1",
18+
"properties": {
19+
"fqdn": "test.net",
20+
"provisioningState": "Succeeded"
21+
}
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"title": "Update Frontend",
3+
"operationId": "FrontendsInterface_Update",
4+
"parameters": {
5+
"api-version": "2025-01-01",
6+
"subscriptionId": "subid",
7+
"resourceGroupName": "rg1",
8+
"trafficControllerName": "tc1",
9+
"frontendName": "fe1",
10+
"properties": {}
11+
},
12+
"responses": {
13+
"200": {
14+
"body": {
15+
"name": "fe1",
16+
"location": "NorthCentralUS",
17+
"type": "Microsoft.ServiceNetworking/trafficControllers/frontends",
18+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1",
19+
"properties": {
20+
"fqdn": "test.net",
21+
"provisioningState": "Succeeded"
22+
}
23+
}
24+
}
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"title": "Put Frontend",
3+
"operationId": "FrontendsInterface_CreateOrUpdate",
4+
"parameters": {
5+
"api-version": "2025-01-01",
6+
"subscriptionId": "subid",
7+
"resourceGroupName": "rg1",
8+
"trafficControllerName": "tc1",
9+
"frontendName": "fe1",
10+
"resource": {
11+
"location": "NorthCentralUS",
12+
"properties": {}
13+
}
14+
},
15+
"responses": {
16+
"200": {
17+
"body": {
18+
"name": "fe1",
19+
"location": "NorthCentralUS",
20+
"type": "Microsoft.ServiceNetworking/trafficControllers/frontends",
21+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1",
22+
"properties": {
23+
"fqdn": "test.net",
24+
"provisioningState": "Succeeded"
25+
}
26+
}
27+
},
28+
"201": {
29+
"body": {
30+
"name": "fe1",
31+
"location": "NorthCentralUS",
32+
"type": "Microsoft.ServiceNetworking/trafficControllers/frontends",
33+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1",
34+
"properties": {
35+
"fqdn": "test.net",
36+
"provisioningState": "Succeeded"
37+
}
38+
}
39+
}
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"title": "Get Frontends",
3+
"operationId": "FrontendsInterface_ListByTrafficController",
4+
"parameters": {
5+
"api-version": "2025-01-01",
6+
"subscriptionId": "subid",
7+
"resourceGroupName": "rg1",
8+
"trafficControllerName": "tc1"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"value": [
14+
{
15+
"name": "fe1",
16+
"location": "NorthCentralUS",
17+
"type": "Microsoft.ServiceNetworking/trafficControllers/frontends",
18+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1",
19+
"properties": {
20+
"fqdn": "test.net",
21+
"provisioningState": "Succeeded"
22+
}
23+
}
24+
]
25+
}
26+
}
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"title": "Get Operations List",
3+
"operationId": "Operations_List",
4+
"parameters": {
5+
"api-version": "2025-01-01"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"name": "Microsoft.ServiceNetworking/trafficControllers/read",
13+
"isDataAction": false,
14+
"display": {
15+
"provider": "Microsoft Service Networking",
16+
"resource": "Traffic Controller",
17+
"operation": "Get Traffic Controller configuration",
18+
"description": "Traffic Controller is a L7 Load Balancing solution for a Multi Cluster setup"
19+
},
20+
"origin": "user,system"
21+
}
22+
]
23+
}
24+
}
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"title": "Get SecurityPolicies",
3+
"operationId": "SecurityPoliciesInterface_ListByTrafficController",
4+
"parameters": {
5+
"api-version": "2025-01-01",
6+
"subscriptionId": "subid",
7+
"resourceGroupName": "rg1",
8+
"trafficControllerName": "tc1"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"value": [
14+
{
15+
"name": "waf-0",
16+
"type": "Microsoft.ServiceNetworking/trafficControllers/securityPolicies",
17+
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/sample-tc/securityPolicies/waf-0",
18+
"location": "eastus",
19+
"properties": {
20+
"policyType": "waf",
21+
"wafPolicy": {
22+
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Networking/applicationGatewayWebApplicationFirewallPolicies/wp-0"
23+
},
24+
"provisioningState": "Succeeded"
25+
}
26+
}
27+
]
28+
}
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)