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
29 changes: 29 additions & 0 deletions specification/genome/data-plane/Action/client.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import "./main.tsp";
import "@azure-tools/typespec-client-generator-core";

using Azure.ClientGenerator.Core;
using Genome;

// Operation names
@@clientName(getActions, "getActions");
@@clientName(getActionById, "getActionById");
@@clientName(createActionExecution, "createActionExecution");
@@clientName(getActionExecutions, "getActionExecutions");
@@clientName(getActionExecutionById, "getActionExecutionById");
@@clientName(getAllActionExecutions, "getAllActionExecutions");

// Model renames for .NET SDK naming conventions (AZC0030, AZC0012, AZC0034)
@@clientName(ActionListResponse, "GenomeActionList", "csharp");
@@clientName(ActionResponse, "GenomeAction", "csharp");
@@clientName(ActionExecutionRequest, "ActionExecutionContent", "csharp");
@@clientName(ActionExecutionResponse, "ActionExecution", "csharp");
@@clientName(ActionExecutionListResponse, "ActionExecutionList", "csharp");
@@clientName(ActionExecutionSummaryResponse,
"ActionExecutionSummary",
"csharp"
);
@@clientName(PaginationResponse, "GenomePagination", "csharp");
@@clientName(ActionExecutionDetailResponse, "ActionExecutionDetail", "csharp");
@@clientName(ExecutionErrorResponse, "ExecutionError", "csharp");
@@clientName(ExecutionProgressResponse, "ExecutionProgress", "csharp");
@@clientName(ErrorResponse, "GenomeError", "csharp");
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"title": "Create a new action execution",
"operationId": "CreateActionExecution",
"parameters": {
"api-version": "2025-11-11-preview",
"actionId": "brxpiywlrbgcufosnrgriqobodzkdm",
"body": {
"inputParameters": {},
"metadata": {
"userId": "ywbppfgkqidzehld",
"source": "wmhs"
}
}
},
"responses": {
"200": {
"body": {
"executionId": "z",
"actionId": "xgijybxtbgslkbgjymoudg",
"status": "Queued",
"queuedAt": "2025-11-17T23:06:16.258Z",
"message": "dolbjstthdcslagnojvlaotjy"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"title": "Get action by ID",
"operationId": "GetActionById",
"parameters": {
"api-version": "2025-11-11-preview",
"actionId": "ryq"
},
"responses": {
"200": {
"body": {
"actionId": "iiaypfdhchjvvquzifdejldetyczxx",
"actionName": "zwpctknapazgtbymgnmnlfqi",
"actionDescription": "z",
"requiredInputParameters": {},
"tags": [
"jhlwmmepwwmzsvrlqfb"
],
"estimatedDuration": "zdohybbromtskyrez"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"title": "Get action by ID - minimum set",
"operationId": "GetActionById",
"parameters": {
"api-version": "2025-11-11-preview",
"actionId": "tynszblwue"
},
"responses": {
"200": {
"body": {
"actionId": "iiaypfdhchjvvquzifdejldetyczxx",
"actionName": "zwpctknapazgtbymgnmnlfqi",
"actionDescription": "z",
"requiredInputParameters": {}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"title": "Get action execution details by ID",
"operationId": "GetActionExecutionById",
"parameters": {
"api-version": "2025-11-11-preview",
"actionId": "lecuzieaughwsauxtlvh",
"executionId": "o"
},
"responses": {
"200": {
"body": {
"startedAt": "2025-11-17T23:06:16.309Z",
"completedAt": "2025-11-17T23:06:16.309Z",
"failedAt": "2025-11-17T23:06:16.309Z",
"error": {
"code": "kaizuykhhserceftf",
"message": "kjscgzkdxttzlyhrpzulx",
"details": "avmvcancy"
},
"progress": {
"currentStep": "dmkny",
"stepsCompleted": 29,
"totalSteps": 30
},
"executionId": "xeryvt",
"actionId": "xlhcnzaqjbxsnxpftnqbjxh",
"status": "Queued",
"queuedAt": "2025-11-17T23:06:16.310Z",
"message": "mtikibkrccoachfjwywgxzg"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"title": "Get action execution details by ID - minimum set",
"operationId": "GetActionExecutionById",
"parameters": {
"api-version": "2025-11-11-preview",
"actionId": "rymnljbtrklzcuabujyyvkfqdxx",
"executionId": "nesndxbynzosstncus"
},
"responses": {
"200": {
"body": {
"executionId": "xeryvt",
"actionId": "xlhcnzaqjbxsnxpftnqbjxh",
"status": "Queued",
"queuedAt": "2025-11-17T23:06:16.310Z"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"title": "Get executions for a specific action",
"operationId": "GetActionExecutions",
"parameters": {
"api-version": "2025-11-11-preview",
"actionId": "xgpfqqxpkqx",
"status": "Queued",
"limit": 72,
"offset": 28
},
"responses": {
"200": {
"body": {
"executions": [
{
"executionId": "aqxogbryuxkswmvemouygyxydvo",
"actionId": "gflcvxdjcgu",
"actionName": "ty",
"status": "Queued",
"queuedAt": "2025-11-17T23:06:15.848Z",
"completedAt": "2025-11-17T23:06:15.848Z",
"duration": "kyubtwxfbuzcvtqdya",
"userId": "kcktszacm"
}
],
"pagination": {
"totalCount": 1,
"limit": 2,
"offset": 17,
"hasNext": true,
"hasPrevious": true
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"title": "Get executions for a specific action - minimum set",
"operationId": "GetActionExecutions",
"parameters": {
"api-version": "2025-11-11-preview",
"actionId": "cdnmzvnnpdatuhyewabfxbrsy"
},
"responses": {
"200": {
"body": {
"executions": [
{
"executionId": "aqxogbryuxkswmvemouygyxydvo",
"actionId": "gflcvxdjcgu",
"status": "Queued",
"queuedAt": "2025-11-17T23:06:15.848Z"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"title": "Get all available actions",
"operationId": "GetActions",
"parameters": {
"api-version": "2025-11-11-preview"
},
"responses": {
"200": {
"body": {
"actions": [
{
"actionId": "iiaypfdhchjvvquzifdejldetyczxx",
"actionName": "zwpctknapazgtbymgnmnlfqi",
"actionDescription": "z",
"requiredInputParameters": {},
"tags": [
"jhlwmmepwwmzsvrlqfb"
],
"estimatedDuration": "zdohybbromtskyrez"
}
],
"totalCount": 1
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"title": "Get all available actions - minimum set",
"operationId": "GetActions",
"parameters": {
"api-version": "2025-11-11-preview"
},
"responses": {
"200": {
"body": {
"actions": [
{
"actionId": "iiaypfdhchjvvquzifdejldetyczxx",
"actionName": "zwpctknapazgtbymgnmnlfqi",
"actionDescription": "z",
"requiredInputParameters": {}
}
],
"totalCount": 1
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"title": "Get all action executions",
"operationId": "GetAllActionExecutions",
"parameters": {
"api-version": "2025-11-11-preview",
"status": "Queued",
"actionId": "qlecsygcmhtpghahpbclioejahu",
"userId": "qhbwodflsimpxo",
"limit": 5,
"offset": 15,
"sortBy": "queuedAt",
"sortOrder": "asc"
},
"responses": {
"200": {
"body": {
"executions": [
{
"executionId": "aqxogbryuxkswmvemouygyxydvo",
"actionId": "gflcvxdjcgu",
"actionName": "ty",
"status": "Queued",
"queuedAt": "2025-11-17T23:06:15.848Z",
"completedAt": "2025-11-17T23:06:15.848Z",
"duration": "kyubtwxfbuzcvtqdya",
"userId": "kcktszacm"
}
],
"pagination": {
"totalCount": 1,
"limit": 2,
"offset": 17,
"hasNext": true,
"hasPrevious": true
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"title": "Get all action executions - minimum set",
"operationId": "GetAllActionExecutions",
"parameters": {
"api-version": "2025-11-11-preview"
},
"responses": {
"200": {
"body": {
"executions": [
{
"executionId": "aqxogbryuxkswmvemouygyxydvo",
"actionId": "gflcvxdjcgu",
"status": "Queued",
"queuedAt": "2025-11-17T23:06:15.848Z"
}
]
}
}
}
}
47 changes: 47 additions & 0 deletions specification/genome/data-plane/Action/main.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/**
* PLEASE DO NOT REMOVE - USED FOR CONVERTER METRICS
* Generated by package: @autorest/openapi-to-typespec
* Parameters used:
* isFullCompatible: false
* guessResourceKey: false
* Version: 0.11.12
* Date: 2025-11-12T19:45:45.474Z
*/
import "@typespec/rest";
import "@typespec/http";
import "./routes.tsp";

using TypeSpec.Http;
using TypeSpec.Versioning;

/**
* Comprehensive API documentation for Genome operations.
*/
@versioned(Versions)
@service(#{ title: "Genome API" })
@useAuth(
OAuth2Auth<[
{
type: OAuth2FlowType.implicit,
authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize",
scopes: ["https://genome.azure.com/.default"],
}
]>
)
@server(
"{endpoint}/action",
"Comprehensive API documentation for Genome operations.",
{
/**
* Supported Genome API endpoints (protocol and hostname, for example:
* https://westus.api.genome.contoso.com).
*/
endpoint: url,
}
)
namespace Genome;

enum Versions {
@doc("2025-11-11-preview version")
v2025_11_11_preview: "2025-11-11-preview",
}
Loading
Loading