Skip to content
Draft
Show file tree
Hide file tree
Changes from 48 commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
2a40de4
[Do not Merge] Eventgrid to CADL (#19819)
rakshith91 Nov 3, 2022
3435017
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
l0lawrence Nov 4, 2022
143a6fb
updating healthcare api enum for cadl
l0lawrence Nov 7, 2022
36f00c8
change number in Maps.cadl to float64
l0lawrence Nov 7, 2022
393129b
changing Map<k,V> to Record<V>
l0lawrence Nov 7, 2022
16645b4
update service title and version for healthcareapi
l0lawrence Nov 15, 2022
34fc27f
fix containerregistry
l0lawrence Nov 17, 2022
b08393a
container registry updated
l0lawrence Nov 28, 2022
d4ec258
updating container service cadl
l0lawrence Nov 28, 2022
be2094b
eventgrid service version
l0lawrence Nov 28, 2022
cce4031
eventhub cadl service version
l0lawrence Nov 28, 2022
0225638
healthcare api cadl
l0lawrence Nov 28, 2022
0facb8c
iothub cadl
l0lawrence Nov 28, 2022
37c2c2e
keyvault cadl
l0lawrence Nov 28, 2022
2abebc9
machine learning cadl
l0lawrence Nov 29, 2022
dccbb91
maps cadl
l0lawrence Nov 29, 2022
c55f5ff
policyInsights cadl
l0lawrence Nov 29, 2022
71e2088
redis cache cadl
l0lawrence Nov 29, 2022
72d72ba
resources cadl
l0lawrence Nov 29, 2022
c82df6f
servicebus cadl
l0lawrence Nov 29, 2022
9956450
signalRservice cadl
l0lawrence Nov 29, 2022
c387788
web cadl -- may need improvements
l0lawrence Nov 29, 2022
76ffb83
updating cadl inheritance story
l0lawrence Dec 2, 2022
b378f78
made a remove an add on communication
l0lawrence Dec 2, 2022
47dfa7a
trying 2 namespaces
l0lawrence Dec 2, 2022
3877057
cleaning up container
l0lawrence Dec 2, 2022
07b7cd0
2nd anmespace for baseevent container
l0lawrence Dec 2, 2022
f10f20d
adding in docs to healthcare cadl
l0lawrence Dec 2, 2022
9212d9d
add doc for healthcareresourcetype enum
l0lawrence Dec 2, 2022
7d342c1
save recent
l0lawrence Dec 3, 2022
c3743ba
two namespaces mediaservices
l0lawrence Dec 3, 2022
94c0d05
policy insights 2 namespaces
l0lawrence Dec 3, 2022
00ffafa
two namespaces resources
l0lawrence Dec 3, 2022
ed0e063
two namespaces sb
l0lawrence Dec 3, 2022
a4df0ff
2 namespace signalr
l0lawrence Dec 3, 2022
00ed94a
storage 2 namespaces
l0lawrence Dec 4, 2022
99f6a7f
2 namespaces web cadl
l0lawrence Dec 4, 2022
09cc3c7
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
l0lawrence Dec 6, 2022
699a920
ran prettier on cadl
l0lawrence Dec 6, 2022
9e2c10e
working on adding publish to EG cadl
l0lawrence Dec 6, 2022
5846e93
updating EG cadl
l0lawrence Dec 6, 2022
730a4ee
updated cadl version
l0lawrence Dec 7, 2022
bbfce94
remove service
l0lawrence Dec 9, 2022
d2334bc
remove repo level files
l0lawrence Dec 9, 2022
5bed832
remove repo level
l0lawrence Dec 9, 2022
9753a3e
changing baseEvents to alias
l0lawrence Dec 12, 2022
a7bcbf5
adding evnetgrid subnamespace to all files
l0lawrence Dec 13, 2022
f5ea629
inital generated swagger files from cadl
l0lawrence Dec 19, 2022
38b3e01
generation step initial
l0lawrence Dec 19, 2022
ba33c51
generation step initial2
l0lawrence Dec 19, 2022
ef97644
changing gen steps
l0lawrence Dec 20, 2022
6dfca48
change extends to spread
l0lawrence Dec 21, 2022
8acfecf
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
l0lawrence Jan 18, 2023
fc199c9
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
l0lawrence Jan 21, 2023
c920463
added in apimanagementgateway to cadl
l0lawrence Jan 21, 2023
0734085
cadl databox
l0lawrence Jan 21, 2023
256a3e9
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
l0lawrence Feb 16, 2023
12d2536
updating cadl to align with public client
l0lawrence Feb 16, 2023
bc26bdc
adding auth and apiversion fix
l0lawrence Feb 16, 2023
3ed06db
adding cadl output and operations file to show overlaod
l0lawrence Feb 17, 2023
f363d2c
overload?
l0lawrence Feb 17, 2023
66a5a1a
eg
l0lawrence Feb 17, 2023
237ab19
try overlaod again
l0lawrence Feb 17, 2023
6c45a0e
save here try to see why models are not showing
l0lawrence Feb 17, 2023
2871f29
save
l0lawrence Feb 17, 2023
4693df6
generalevent publish function
l0lawrence Feb 17, 2023
7cc26c3
shared route
l0lawrence Mar 14, 2023
b6ff831
remove commented code
l0lawrence Mar 14, 2023
46fe6fd
rename to typespec
l0lawrence Mar 15, 2023
a19e059
eventgrid updates
l0lawrence Mar 15, 2023
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
82 changes: 82 additions & 0 deletions specification/eventgrid/data-plane/cadl/ApiManagement.cadl
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
@doc("Describes the schema of the Azure API Management events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent.")
namespace EventGrid.ApiManagement {
@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.UserCreated event.")
model ApiManagementUserCreatedEventData{
...ApiManagementBase;
}

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.UserUpdated event.")
model ApiManagementUserUpdatedEventData{
...ApiManagementBase;
}

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.UserDeleted event.")
model ApiManagementUserDeletedEventData{
...ApiManagementBase;
}

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.SubscriptionCreated event.")
model ApiManagementSubscriptionCreatedEventData{
...ApiManagementBase;
}

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.SubscriptionUpdated event.")
model ApiManagementSubscriptionUpdatedEventData{
...ApiManagementBase;
}

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.SubscriptionDeleted event.")
model ApiManagementSubscriptionDeletedEventData{
...ApiManagementBase;
}

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ProductCreated event.")
model ApiManagementProductCreatedEventData{
...ApiManagementBase;
}

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ProductUpdated event.")
model ApiManagementProductUpdatedEventData{
...ApiManagementBase;
}

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ProductDeleted event.")
model ApiManagementProductDeletedEventData{
...ApiManagementBase;
}

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APICreated event.")
model ApiManagementApiCreatedEventData{
...ApiManagementBase;
}

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIUpdated event.")
model ApiManagementApiUpdatedEventData{
...ApiManagementBase;
}

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIDeleted event.")
model ApiManagementApiDeletedEventData{
...ApiManagementBase;
}

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIReleaseCreated event.")
model ApiManagementApiReleaseCreatedEventData{
...ApiManagementBase;
}

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIReleaseUpdated event.")
model ApiManagementApiReleaseUpdatedEventData{
...ApiManagementBase;
}

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIReleaseDeleted event.")
model ApiManagementApiReleaseDeletedEventData{
...ApiManagementBase;
}

alias ApiManagementBase = {
@doc("The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/<ResourceType>/<ResourceName>`")
resourceUri?: string;
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
@doc("Describes the schema of the Azure API Management events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent.")
namespace EventGrid.ApiManagement {

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.UserCreated event.")
model ApiManagementUserCreatedEventData{
...BaseEventData;
};

model ApiManagementUserCreatedEvent is EventGrid.TypedEventGridEvent<"Microsoft.ApiManagement.UserCreated", ApiManagementUserCreatedEventData>;
model ApiManagementUserCreatedEventCloud is EventGrid.TypedCloudEvent<"Microsoft.ApiManagement.UserCreated", ApiManagementUserCreatedEventData>;

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.UserUpdated event.")
model ApiManagementUserUpdatedEventData{
...BaseEventData;
};

model ApiManagementUserUpdatedEvent is EventGrid.TypedEventGridEvent<"Microsoft.ApiManagement.UserUpdated", ApiManagementUserUpdatedEventData>;
model ApiManagementUserUpdatedEventCloud is EventGrid.TypedCloudEvent<"Microsoft.ApiManagement.UserUpdated", ApiManagementUserUpdatedEventData>;


@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.UserDeleted event.")
model ApiManagementUserDeletedEventData{
...BaseEventData;
};

model ApiManagementUserDeletedEvent is EventGrid.TypedEventGridEvent<"Microsoft.ApiManagement.UserDeleted", ApiManagementUserDeletedEventData>;
model ApiManagementUserDeletedEventCloud is EventGrid.TypedCloudEvent<"Microsoft.ApiManagement.UserDeleted", ApiManagementUserDeletedEventData>;


@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.SubscriptionCreated event.")
model ApiManagementSubscriptionCreatedEventData{
...BaseEventData;
};

model ApiManagementSubscriptionCreatedEvent is EventGrid.TypedEventGridEvent<"Microsoft.ApiManagement.SubscriptionCreated", ApiManagementSubscriptionCreatedEventData>;
model ApiManagementSubscriptionCreatedEventCloud is EventGrid.TypedCloudEvent<"Microsoft.ApiManagement.SubscriptionCreated", ApiManagementSubscriptionCreatedEventData>;


@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.SubscriptionUpdated event.")
model ApiManagementSubscriptionUpdatedEventData{
...BaseEventData;
};

model ApiManagementSubscriptionUpdatedEvent is EventGrid.TypedEventGridEvent<"Microsoft.ApiManagement.SubscriptionUpdated", ApiManagementSubscriptionUpdatedEventData>;
model ApiManagementSubscriptionUpdatedEventCloud is EventGrid.TypedCloudEvent<"Microsoft.ApiManagement.SubscriptionUpdated", ApiManagementSubscriptionUpdatedEventData>;

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.SubscriptionDeleted event.")
model ApiManagementSubscriptionDeletedEventData{
...BaseEventData;
};

model ApiManagementSubscriptionDeletedEvent is EventGrid.TypedEventGridEvent<"Microsoft.ApiManagement.SubscriptionDeleted", ApiManagementSubscriptionDeletedEventData>;
model ApiManagementSubscriptionDeletedEventCloud is EventGrid.TypedCloudEvent<"Microsoft.ApiManagement.SubscriptionDeleted", ApiManagementSubscriptionDeletedEventData>;

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ProductCreated event.")
model ApiManagementProductCreatedEventData{
...BaseEventData;
};

model ApiManagementProductCreatedEvent is EventGrid.TypedEventGridEvent<"Microsoft.ApiManagement.ProductCreated", ApiManagementProductCreatedEventData>;
model ApiManagementProductCreatedEventCloud is EventGrid.TypedCloudEvent<"Microsoft.ApiManagement.ProductCreated", ApiManagementProductCreatedEventData>;

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ProductUpdated event.")
model ApiManagementProductUpdatedEventData{
...BaseEventData;
};

model ApiManagementProductUpdatedEvent is EventGrid.TypedEventGridEvent<"Microsoft.ApiManagement.ProductUpdated", ApiManagementProductUpdatedEventData>;
model ApiManagementProductUpdatedEventCloud is EventGrid.TypedCloudEvent<"Microsoft.ApiManagement.ProductUpdated", ApiManagementProductUpdatedEventData>;

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ProductDeleted event.")
model ApiManagementProductDeletedEventData{
...BaseEventData;
};

model ApiManagementProductDeletedEvent is EventGrid.TypedEventGridEvent<"Microsoft.ApiManagement.ProductDeleted", ApiManagementProductDeletedEventData>;
model ApiManagementProductDeletedEventCloud is EventGrid.TypedCloudEvent<"Microsoft.ApiManagement.ProductDeleted", ApiManagementProductDeletedEventData>;

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APICreated event.")
model ApiManagementApiCreatedEventData{
...BaseEventData;
};

model ApiManagementApiCreatedEvent is EventGrid.TypedEventGridEvent<"Microsoft.ApiManagement.ApiCreated", ApiManagementApiCreatedEventData>;
model ApiManagementApiCreatedEventCloud is EventGrid.TypedCloudEvent<"Microsoft.ApiManagement.ApiCreated", ApiManagementApiCreatedEventData>;

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIUpdated event.")
model ApiManagementApiUpdatedEventData{
...BaseEventData;
};

model ApiManagementApiUpdatedEvent is EventGrid.TypedEventGridEvent<"Microsoft.ApiManagement.ApiUpdated", ApiManagementApiUpdatedEventData>;
model ApiManagementApiUpdatedEventCloud is EventGrid.TypedCloudEvent<"Microsoft.ApiManagement.ApiUpdated", ApiManagementApiUpdatedEventData>;


@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIDeleted event.")
model ApiManagementApiDeletedEventData{
...BaseEventData;
};

model ApiManagementApiDeletedEvent is EventGrid.TypedEventGridEvent<"Microsoft.ApiManagement.ApiDeleted", ApiManagementApiDeletedEventData>;
model ApiManagementApiDeletedEventCloud is EventGrid.TypedCloudEvent<"Microsoft.ApiManagement.ApiDeleted", ApiManagementApiDeletedEventData>;

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIReleaseCreated event.")
model ApiManagementApiReleaseCreatedEventData{
...BaseEventData;
};

model ApiManagementApiReleaseCreatedEvent is EventGrid.TypedEventGridEvent<"Microsoft.ApiManagement.ApiReleaseCreated", ApiManagementApiReleaseCreatedEventData>;
model ApiManagementApiReleaseCreatedEventCloud is EventGrid.TypedCloudEvent<"Microsoft.ApiManagement.ApiReleaseCreated", ApiManagementApiReleaseCreatedEventData>;


@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIReleaseUpdated event.")
model ApiManagementApiReleaseUpdatedEventData{
...BaseEventData;
};

model ApiManagementApiReleaseUpdatedEvent is EventGrid.TypedEventGridEvent<"Microsoft.ApiManagement.ApiReleaseUpdated", ApiManagementApiReleaseUpdatedEventData>;
model ApiManagementApiReleaseUpdatedEventCloud is EventGrid.TypedCloudEvent<"Microsoft.ApiManagement.ApiReleaseUpdated", ApiManagementApiReleaseUpdatedEventData>;

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIReleaseDeleted event.")
model ApiManagementApiReleaseDeletedEventData{
...BaseEventData;
};

model ApiManagementApiReleaseDeletedEvent is EventGrid.TypedEventGridEvent<"Microsoft.ApiManagement.ApiReleaseDeleted", ApiManagementApiReleaseDeletedEventData>;
model ApiManagementApiReleaseDeletedEventCloud is EventGrid.TypedCloudEvent<"Microsoft.ApiManagement.ApiReleaseDeleted", ApiManagementApiReleaseDeletedEventData>;

alias BaseEventData = {
@doc("The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/Microsoft.ApiManagement/service/<ServiceName>/<ResourceType>/<ResourceName>`")
resourceUri?: string;
};

}
45 changes: 45 additions & 0 deletions specification/eventgrid/data-plane/cadl/AppConfiguration.cadl
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
@doc("Describes the schema of the Azure App Configuration events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent.")
namespace EventGrid.AppConfiguration{

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.KeyValueModified event.")
model AppConfigurationKeyValueModifiedEventData{
...AppConfigurationBase<"modified">;
};

@doc("Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.KeyValueDeleted event.")
model AppConfigurationKeyValueDeletedEventData{
...AppConfigurationBase<"deleted">;
};


// need to figure out an alternative to this method --- should we pass in docstring here or should we just copy/paste and see what happens
alias AppConfigurationBase<TEventType> = {
@doc(
"The key used to identify the key-value that was {name}.",
{
name: TEventType,
}
)
key?: string;

@doc(
"The label, if any, used to identify the key-value that was {name}.",
{
name: TEventType,
}
)
label?: string;

@doc(
"The etag representing the key-value that was {name}.",
{
name: TEventType,
}
)
etag?: string;

@doc("The sync token representing the server state after the event.")
syncToken?: string;
};

}
Loading