Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TypeSpec]: Fix Traffic Controller cadl #24082

Merged
merged 14 commits into from
May 25, 2023
5 changes: 5 additions & 0 deletions eng/pipelines/typespec-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ jobs:
Folder: specification/containerservice/Fleet.Management
DisplayName: Fleet.Management

- template: templates/steps/typespec-ci.yml
parameters:
Folder: specification/servicenetworking/ServiceNetworking.Management
DisplayName: Microsoft.ServiceNetworking

- template: templates/steps/typespec-ci.yml
parameters:
Folder: specification/translation/Azure.AI.TextTranslation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"title": "Delete Association",
"operationId": "AssociationsInterface_Delete",
"parameters": {
"api-version": "2023-05-01-preview",
"subscriptionId": "subid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"title": "Get Association",
"operationId": "AssociationsInterface_Get",
"parameters": {
"api-version": "2023-05-01-preview",
"subscriptionId": "subid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"title": "Update Association",
"operationId": "AssociationsInterface_Update",
"parameters": {
"api-version": "2023-05-01-preview",
"subscriptionId": "subid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"title": "Put Association",
"operationId": "AssociationsInterface_CreateOrUpdate",
"parameters": {
"api-version": "2023-05-01-preview",
"subscriptionId": "subid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"title": "Get Associations",
"operationId": "AssociationsInterface_ListByTrafficController",
"parameters": {
"api-version": "2023-05-01-preview",
"subscriptionId": "subid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"title": "Delete Frontend",
"operationId": "FrontendsInterface_Delete",
"parameters": {
"api-version": "2023-05-01-preview",
"subscriptionId": "subid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"title": "Get Frontend",
"operationId": "FrontendsInterface_Get",
"parameters": {
"api-version": "2023-05-01-preview",
"subscriptionId": "subid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"title": "Update Frontend",
"operationId": "FrontendsInterface_Update",
"parameters": {
"api-version": "2023-05-01-preview",
"subscriptionId": "subid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"title": "Put Frontend",
"operationId": "FrontendsInterface_CreateOrUpdate",
"parameters": {
"api-version": "2023-05-01-preview",
"subscriptionId": "subid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"title": "Get Frontends",
"operationId": "FrontendsInterface_ListByTrafficController",
"parameters": {
"api-version": "2023-05-01-preview",
"subscriptionId": "subid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"title": "Get Operations List",
"operationId": "Operations_List",
"parameters": {
"api-version": "2023-05-01-preview"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"title": "Delete Traffic Controller",
"operationId": "TrafficControllerInterface_Delete",
"parameters": {
"api-version": "2023-05-01-preview",
"subscriptionId": "subid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "TrafficControllerInterface_Get",
"title": "Get Traffic Controller",
"parameters": {
"api-version": "2023-05-01-preview",
"subscriptionId": "subid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "TrafficControllerInterface_Update",
"title": "Patch Traffic Controller",
"parameters": {
"api-version": "2023-05-01-preview",
"subscriptionId": "subid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "TrafficControllerInterface_CreateOrUpdate",
"title": "Put Traffic Controller",
"parameters": {
"api-version": "2023-05-01-preview",
"subscriptionId": "subid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "TrafficControllerInterface_ListByResourceGroup",
"title": "Get Traffic Controllers",
"parameters": {
"api-version": "2023-05-01-preview",
"subscriptionId": "subid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"operationId": "TrafficControllerInterface_ListBySubscription",
"title": "Get Traffic Controllers List",
"parameters": {
"api-version": "2023-05-01-preview",
"subscriptionId": "subid"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ model Frontend is TrackedResource<FrontendProperties>{
@visibility("read")
@path
@segment("frontends")
@pattern("[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+")
name : string;
}

@doc("Frontend Properties.")
model FrontendProperties {
@visibility("read")
@doc("The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend.")
fqdn : string;
fqdn? : string;

@visibility("read")
@doc("Provisioning State of Traffic Controller Frontend Resource")
Expand All @@ -54,6 +55,7 @@ model Association is TrackedResource<AssociationProperties> {
@doc("Name of Association")
@path
@segment("associations")
@pattern("[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+")
name: string;
}

Expand Down Expand Up @@ -86,6 +88,7 @@ model TrafficController is TrackedResource<TrafficControllerProperties> {
@path
@segment("trafficControllers")
@doc("traffic controller name for path")
@pattern("[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+")
name: string;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
emit:
- "@azure-tools/typespec-autorest"
options:
"@azure-tools/typespec-autorest":
azure-resource-provider-folder: "./resource-manager"
emitter-output-dir: "{project-root}/.."
examples-directory: "./examples"
output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/TrafficController.json"

This file was deleted.

Loading