diff --git a/eng/pipelines/typespec-ci.yml b/eng/pipelines/typespec-ci.yml index f895daf53682..a8615a3ad466 100644 --- a/eng/pipelines/typespec-ci.yml +++ b/eng/pipelines/typespec-ci.yml @@ -49,6 +49,11 @@ jobs: Folder: specification/cognitiveservices/OpenAI.Inference DisplayName: OpenAI.Inference + - template: templates/steps/typespec-ci.yml + parameters: + Folder: specification/containerservice/Fleet.Management + DisplayName: Fleet.Management + - template: templates/steps/typespec-ci.yml parameters: Folder: specification/translation/Azure.AI.TextTranslation diff --git a/specification/containerservice/Fleet.Management/fleet.tsp b/specification/containerservice/Fleet.Management/fleet.tsp index 022c52ffbc23..428727913a6c 100644 --- a/specification/containerservice/Fleet.Management/fleet.tsp +++ b/specification/containerservice/Fleet.Management/fleet.tsp @@ -107,8 +107,7 @@ interface Fleets { get is ArmResourceRead; @doc("Creates or updates a Fleet.") - @operationId("Fleets_CreateOrUpdate") - create is ArmResourceCreateOrUpdateAsync< + createOrUpdate is ArmResourceCreateOrUpdateAsync< Fleet, BaseParameters & IfMatchParameters & @@ -121,12 +120,6 @@ interface Fleets { BaseParameters & IfMatchParameters >; - @extension( - "x-ms-long-running-operation-options", - { - "final-state-via": "location", - } - ) delete is ArmResourceDeleteAsync< Fleet, BaseParameters & IfMatchParameters @@ -135,7 +128,6 @@ interface Fleets { @doc("Lists fleets in the specified subscription and resource group.") listByResourceGroup is ArmResourceListByParent; - @operationId("Fleets_ListBySubscription") @doc("Lists fleets in the specified subscription.") listBySubscription is ArmListBySubscription; diff --git a/specification/containerservice/Fleet.Management/tspconfig.yaml b/specification/containerservice/Fleet.Management/tspconfig.yaml index c90edaf758dd..cf3eb6cf2d59 100644 --- a/specification/containerservice/Fleet.Management/tspconfig.yaml +++ b/specification/containerservice/Fleet.Management/tspconfig.yaml @@ -2,7 +2,8 @@ emit: - '@azure-tools/typespec-autorest' options: '@azure-tools/typespec-autorest': - azure-resource-provider-folder: '{cwd}/../resource-manager' + azure-resource-provider-folder: "resource-manager" + emitter-output-dir: "{project-root}/.." + examples-directory: "examples" output-file: "{azure-resource-provider-folder}/{service-name}/fleet/{version-status}/{version}/fleets.json" - examples-directory: '{cwd}/examples' - omit-unreachable-types: true \ No newline at end of file + omit-unreachable-types: true