Skip to content

Commit

Permalink
AGC-v.2025-01-01 (#31902)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people authored Dec 20, 2024
1 parent 1cb540f commit 12492ed
Show file tree
Hide file tree
Showing 49 changed files with 3,561 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ import "@azure-tools/typespec-client-generator-core";
using Azure.ClientGenerator.Core;

@@clientName(Microsoft.ServiceNetworking, "ServiceNetworkingMgmt", "python");
@@clientName(Microsoft.ServiceNetworking,
"ServiceNetworkingManagementClient",
"javascript"
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"title": "Delete Association",
"operationId": "AssociationsInterface_Delete",
"parameters": {
"api-version": "2025-01-01",
"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-01-01",
"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-01-01",
"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-01-01",
"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-01-01",
"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-01-01",
"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,25 @@
{
"title": "Get Frontend",
"operationId": "FrontendsInterface_Get",
"parameters": {
"api-version": "2025-01-01",
"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",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"title": "Update Frontend",
"operationId": "FrontendsInterface_Update",
"parameters": {
"api-version": "2025-01-01",
"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",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"title": "Put Frontend",
"operationId": "FrontendsInterface_CreateOrUpdate",
"parameters": {
"api-version": "2025-01-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1",
"frontendName": "fe1",
"resource": {
"location": "NorthCentralUS",
"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",
"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",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"title": "Get Frontends",
"operationId": "FrontendsInterface_ListByTrafficController",
"parameters": {
"api-version": "2025-01-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1"
},
"responses": {
"200": {
"body": {
"value": [
{
"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",
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"title": "Get Operations List",
"operationId": "Operations_List",
"parameters": {
"api-version": "2025-01-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.ServiceNetworking/trafficControllers/read",
"isDataAction": false,
"display": {
"provider": "Microsoft Service Networking",
"resource": "Traffic Controller",
"operation": "Get Traffic Controller configuration",
"description": "Traffic Controller is a L7 Load Balancing solution for a Multi Cluster setup"
},
"origin": "user,system"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"title": "Get SecurityPolicies",
"operationId": "SecurityPoliciesInterface_ListByTrafficController",
"parameters": {
"api-version": "2025-01-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"trafficControllerName": "tc1"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "waf-0",
"type": "Microsoft.ServiceNetworking/trafficControllers/securityPolicies",
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/sample-tc/securityPolicies/waf-0",
"location": "eastus",
"properties": {
"policyType": "waf",
"wafPolicy": {
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Networking/applicationGatewayWebApplicationFirewallPolicies/wp-0"
},
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
Loading

0 comments on commit 12492ed

Please sign in to comment.